-
March 13th, 2010, 07:45 AM
#1
How can use VB dll in VC++ code?
Hi all,
i have a DLL that is created by VB,
now i want to use this in my VC++ dialog based mfc application.
please tell me how can i do this.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
-
March 13th, 2010, 08:16 AM
#2
Re: How can use VB dll in VC++ code?
Victor Nijegorodov
-
March 13th, 2010, 02:41 PM
#3
Re: How can use VB dll in VC++ code?
Originally Posted by vjshankwar
Hi all,
i have a DLL that is created by VB,
now i want to use this in my VC++ dialog based mfc application.
please tell me how can i do this.
thanks in advance.
You have to tell us more details about what DLL is and what you want to use from it.
-
March 14th, 2010, 11:32 PM
#4
Re: How can use VB dll in VC++ code?
Actully i want use this code Text tp PDU conversion.
http://www.scampers.org/steve/sms/samples.htm#pdu
this is a link of code in VB or C#,
i want to use this code in VC but im not able to do this,so i decided to create a dll from this code,and now i want to use the dll of this code in my VC++ application,for PDU conversion.
please help if u provide me guidance to PDU conversion or otherwise use this dll.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
-
March 15th, 2010, 02:31 AM
#5
Re: How can use VB dll in VC++ code?
Assume VB DLL name is project1.dll
The first thing you have to do in VC++ is to add #import ".\\Project1.dll" no_namespace, then
Code:
.........
CoInitialize(NULL);
_Class1Ptr ptr;
ptr.CreateInstance(__uuidof(Class1));
.......
The above just reference, hope it helps.
-----------------------------------------------
If it helps, please Rate this post, thanks!
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
|