By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 1,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

c++ DLL's in VB.net

P: n/a
Hi Guys

I have just found a c++ dll that should allow me to communicate with my
phone system, can I use this in VB.net if so how, I have all the
documentation for it in c++ but unfortunatly I dont know that language.

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Michael,

"Michael Turner" <fi*****@m-turner.co.uk> schrieb:
I have just found a c++ dll that should allow me to communicate with my
phone system, can I use this in VB.net if so how, I have all the
documentation for it in c++ but unfortunatly I dont know that language.


Take a look at the documentation for 'Declare' and 'DllImportAttribute' +
platform invoke. If the DLL exports functions, you can consume them using
according declares.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2

P: n/a
As long as the C++ DLL's aren't MFC's then you can use them in VB/VB.NET

Here's a sample using VB.NET & C++ DLL's:

http://www.gotdotnet.com/Community/U...2-ca46ef086c12

I hope this helps

"Herfried K. Wagner [MVP]" wrote:
Michael,

"Michael Turner" <fi*****@m-turner.co.uk> schrieb:
I have just found a c++ dll that should allow me to communicate with my
phone system, can I use this in VB.net if so how, I have all the
documentation for it in c++ but unfortunatly I dont know that language.


Take a look at the documentation for 'Declare' and 'DllImportAttribute' +
platform invoke. If the DLL exports functions, you can consume them using
according declares.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.