Click here to Skip to main content
15,891,673 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How I can use assembly code in VB.Net 2005? I want to implement content interrupt instruction for interfacing with COM port.
Posted
Updated 1-May-10 23:57pm
v2

You can't. You'll have make an unmanaged module in unmanaged C++, and call that from your Basic code.
 
Share this answer
 
You cannot use assembly directly from VB.Net. You will have to implement the assembly code in a C++ application and call it from VB.Net.

Note that you cannot directly access hardware from any programming language from Windows XP onwards. If you really want to access hardware then you will have to write a driver for that purpose can call the driver from user mode applications.

-Saurabh
 
Share this answer
 
See this 4 part article series[^].
 
Share this answer
 
Maybe you should hire someone else to do this for you - you seem to be a complete novice to programming in general and .Net programming in particular.

On the off chance that you might decide to use google, I would search for the "pinvoke" and "com port library". Maybe you'll get lucky and find that someone else has already written something you can use.
 
Share this answer
 
how can call c++ code in vb.net ???????????
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900