|
-
Dec 20th, 2000, 03:27 AM
#1
Thread Starter
Addicted Member
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...
-
Dec 20th, 2000, 12:44 PM
#2
Fanatic Member
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
Iain, thats with an i by the way!
-
Dec 20th, 2000, 09:40 PM
#3
Thread Starter
Addicted Member
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...
-
Dec 21st, 2000, 08:41 AM
#4
PowerPoster
Take a look on this Thread
-
Dec 25th, 2000, 10:31 PM
#5
Thread Starter
Addicted Member
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...
-
Dec 25th, 2000, 10:55 PM
#6
PowerPoster
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!
-
Dec 28th, 2000, 09:14 PM
#7
Thread Starter
Addicted Member
Chris...
is there any example program or source code that i can referred to?
-
Jan 1st, 2001, 09:51 AM
#8
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.
-
Jan 4th, 2001, 03:50 AM
#9
PowerPoster
Is there any way I can load Win32 Dll's and Activex Dll at run time?
-
Jan 4th, 2001, 04:40 AM
#10
PowerPoster
I think you need to reference it during desing time and not run time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|