Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding ActiveX control

Status
Not open for further replies.

bebbo

Programmer
Dec 5, 2000
621
GB
I have created a small exe file to test a Shockwave object. This exe file works fine on my machine and on a seperate machine. However if I run it on the machine it is required for I get the following message:

Fatal Error Exception Code C0000005

I have installed Shockwave on this machine and installed Foxpro Runtime which includes Shockwave ActiveX Control. It is definately the Shockwave Control which is causing a problem as if I build the exe without the Shockwave Object the exe file runs.

I have further news on my problem. It now appears the exe file works on Win98 but not NT. The program has been recompiled on Win NT but it still does not work on NT.

However should you run the program from source on NT machine it works. Run the same program using the exe file it does not work.

I have als tried adding the object within the code (ie thisform.addobject("Object","olecontrol""swctl.swctl.8.5.1")
Once agin this works when running via source. It fails on NT machine via exe, works on 98 via exe.
 
First, have you verified that the version (including Service Pack) level is the same for both the development and Runtime files?

What version of VFP are you running? 3.0b, 5.0 SP3, 6.0 SP5, 7.0 SP1?

Does the Shockwave website offer any advice for using their control? (or state any limitations/restrictions?)

Rick
 
hi

I'm running VF version 6.0. How would I verify that the version (including Service Pack) level is the same for both the development and Runtime files?

I have looked on their web page. The only thing I can say from their is that they do not guarantee the ActiveX outside a web page.

I can't understand it working in the source but not the exe file.

Thanks




 
First the versions of VFP 6.0 and 7.0 are listed at
To check the development version, in the command window enter:
?version()
Or Menu -> Help -> About Microsoft Visual FoxPro ...
You can also locate VFP6.exe (in C:\Program Files\Microsoft Visual Studio\Vfp98\ on my system), and in the Windows Explorer right-click on it and choose Properties, then click on the Version tab.

To check the runtime files, locate VFP6R.DLL (in C:\WINDOWS\system32\ on my system) and follow the Explore procedure above to check the version. For completeness, you should check any other VFP6*.DLLs (or .EXEs) too - just to make sure they are all the same version.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top