Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2005

Tip: Looking for answers? Try searching our database.

DLL From VB to use in VC++

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
iwdu15 - 20 Oct 2005 02:03 GMT
Hi, i made a VB.net dll....i want to kno how i can use it in C++. I kno i
need to make it a com object and how to call it. ive looked at several
websites and none of them seem to work bc i dont understand it....so if
anyone can any help id be grateful....thanks

-iwdu150
Marcus Heege - 20 Oct 2005 12:04 GMT
If you are forced to use native C++, you have to use COM Interop, indeed.
Here is how you can do this:

  tlbExp myVBdotNETLib.dll

generates a .tlb file

in your C++ code:
 #import "myVBdotNETLib.tlb"

However if you can use the managed features of C++, it is much easier, since
you just need to reference the managed dll in order to use it's types from
managed code. You can import this either via
#using "myVBdoNETLib.dll"
or via the compiler switch /FU, use VS.NET project settings for that.

Marcus Heege

> Hi, i made a VB.net dll....i want to kno how i can use it in C++. I kno i
> need to make it a com object and how to call it. ive looked at several
> websites and none of them seem to work bc i dont understand it....so if
> anyone can any help id be grateful....thanks
>
> -iwdu150
iwdu15 - 21 Oct 2005 02:08 GMT
sorry for my n00b question but my class hasnt covered some of thi stuff
yet...what is "native" c++? and whats the differennce bertween it and the
opposite of it and how can i tell ? thanks
Signature

-iwdu15

Atul - 21 Oct 2005 08:57 GMT
Native C++ is plain old C++  programs where you do not use any of the
Managed .Net classes or compile with the /clr option.

----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
 &
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
----------------

> sorry for my n00b question but my class hasnt covered some of thi stuff
> yet...what is "native" c++? and whats the differennce bertween it and the
> opposite of it and how can i tell ? thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.