|
-
September 21st, 2001, 08:07 PM
#1
Making DLL that can be used in V/B
I'm devdeloping my program using V/B.
In my program, I have to implement some functionality.
Someone offered library that can implement that functionality.
I know that only DLL can be called by V/B program.
What is more, the dll source is made by Visual C++.
How can I make a dll to fit to call?
Vaguely, I intend to make dll by wrapping lib.
There are 6-type ways to make dll.
Win32 Dynamic-Link Library
1.empty DLL project.
2.simple DLL project.
3.DLL that exports some symbols.
MFC(AppWizardDll)
4.Regular DLL with MFC statically linked.
5.Regular DLL using shared MFC DLL
6.MFC Extension DLL(using shared MFC DLL)
In the upper list, Which way do I have to select?
Could anyone who know it let me know?
Thank you.
I'm a senior programmer.
Working at CamSight, Dental imaging solutions industry.
-
September 22nd, 2001, 02:23 PM
#2
Re: Making DLL that can be used in V/B
Since you are on the subject of DLLs can you tell me where I can learn about them? Books? Websites?
-
September 22nd, 2001, 07:56 PM
#3
Re: Making DLL that can be used in V/B
One method that works is as follows:
Start with a Simple DLL project, and write your functions. Don't forget to declare the functions as __stdcall. And finally, make a .def file listing all the functions that you want to call from VB.
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
|