-
Goodday everybody...
I would like to know how do i use DLL developed in VC++ in VB programs? What are the procedure i need to do to link it to my VB programs and how do i actually use the functions available in the DLL on my VB programs?
Your help will be most appreciated...
-
Hi,
It all depends on what sort of dll you created in VC++.
If it is a standard dll, then you access the functions like you do with the win32 API, by declare statements.
If you built an ActiveX dll, then you add a reference to the dll in your project and use it like any other object in VB
-
thanks for replying Iain17...
i think the DLL that i create is Win32 API because when i was choosing to creat a project in VC++, i chose Win32 Dynamic-Link Library.
"By declare statement"? i don't really understand. i'm quite fresh in these things. so if you don't mind giving a sample or two, i'll be glad...
thanks...
-
Take a look on this Thread
-
what about ActiveX DLL?
how do i bulid an ActiveX DLL in VC++?
what i know is that u can build a Library-Type DLL...
-
Serhiy, To build the ActiveX DLL with VC++, you can use the ATL COM AppWizard that come together with VC++.
Try to play around with it.
Cheers!
-
Chris...
is there any example program or source code that i can referred to?
-
Adding DLL
You might need to register your DLL to use it in VB.
From the DOS prompt run:-
c:\windows\system\regsvr32.exe mydllfile.dll
Then look on the References list in VB and it should be there with an empty checkbox next to it.
Hope that's helped some.
-
Is there any way I can load Win32 Dll's and Activex Dll at run time?
-
I think you need to reference it during desing time and not run time.