Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a String to a DLL
Message
From
26/04/2001 10:44:47
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00499201
Message ID:
00500109
Views:
29
>>>>What am I doing wrong?
>>>>
>>>>Stephane.
>>
>>>Have you tried declaring the paramater ByVal?
>>
>>>Is this DLL written in VB?
>>
>>This may seem like an obvious question, but do you have to register the DLL with windows?
>
>What kind of DLL is it?
>
>DLL that are to build on the COM specifications (like the ones build with VB) needs to be registered. Also, you can't «Declare» procedures from it, you need to set a reference to the component, to create an instance and use the instance:
>Dim X as new ComponentName.ClassName
>X.DoSomething

Ok, it's a dll written in straight C and it wasn't built on my computer. I tried registering the dll (using regsvr32) but I got the "no entry point" message. I almost always get this message to a point that I think that my "regsvr32" program is corrupted. So, I wouldn't mind the message.

Now, what do you mean when you say that I need to set a reference to the componenent?

Thanks again, Stephane.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform