>>>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".
George
Ubi caritas et amor, deus ibi est