Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a VB Dll library
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00453307
Message ID:
00453464
Views:
23
>>>>Hi All,
>>>>
>>>>I am having difficulty in creating a declare statement for a DLL that was built with VB.
>>>>
>>>>In VB, the syntax is as follows (as provided by the developer):
>>>>
>>>>Dim encoder As New CodeGen.encoder
>>>>encoder.SoundX("Test","True")
>>>>
>>>>
>>>>How would I set up the declare to call the SoundX function from within VFP?
>>>>
>>>>
>>>>Thanks in advance...
>>>
>>>No declare is used. Like VFP, VB creates COM DLLs only.
>>>
>>>VFP:
>>>encoder = createobject('codegen.encoder')
>>>encoder.SoundX("Test","True")
>>
>>
>>I have one other quick question. How can I tell if the component is already registered?
>
>Since Larry answered the second part...Check the HKEY_CLASSES_ROOT hive in the registry for the ProgID. In this case, "Codegen.Encoder".


Thanks!
Patrick L. Stovall
Senior Architect/Developer
MCP - C#

VeroQuest
P.O.Box 7216
Kalispell, MT 59904
Previous
Reply
Map
View

Click here to load this message in the networking platform