Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM, using in Visual FoxPro: HOW?
Message
 
 
To
18/07/2003 16:19:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00811666
Message ID:
00811670
Views:
20
Robert,

In VFP you can creates only COM DLL's not Windows DLL's. the CREATEOBJECT() function is correct way to acces such COM dll.

>The example given in VFP8 Help Topic "COM, using in Visual FoxPro" works if you leave the created MYSERVER.DLL in your folder, but what about putting it in Windows system/system32 folder?
>It doesn't work.
>How do a set my (created from VFP8) .dll runing (as services) in a W2000 and access them from my VFP clients?
>
>Example:
>
>I add this code to the myclass definition:
>
>FUNCTION addinteger(par1 as integer,par2 as integer)
>RETURN par1+par2
>
>It works fine this way:
>o=CREATEOBJECT('myserver.myclass')
>?o.addinteger(1,2)
>
>BUT:
>DECLARE integer addinteger IN myserver integer,integer
>
>ok but when I issue
>
>?addinteger(1,2)
>
>I get Cannot find entry point addinteger in the DLL
>
>What is wrong?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform