ASM in VB?

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

Is it possible to incorporate ASM code into a vb.net app kinda like you can
do in c++ with __Asm? not really wanting to, but just wondering if MS ever
added this capability :) thanks
 
Hi Brian,

Based on my knowledge, VB.NET compiler does not support the ASM code
inline. We may need to wrap the asm code in the managed c++ and then call
in the vb.net.
Because .NET application based on .net framework was targeted for MSIL
language which is machine indepent, while ASM code is machine is machine
dependent, which will make the code unmigratable.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Brian,
....nothing is impossible if not tests the absurdity :-)

you must incorporate (oops...convert!) your asm code as a byte Array to pass
to the function: CallWindowProcA

regards,
Marcello

"Cantelmo Software" del Geom. Marcello Cantelmo
C.F.: CNTMCL68L17E506H - P.IVA: 03733730752
C.C.I.A.A. Lecce n° 241514 dal 29/09/2003
* * * * *
Via Verona, 10 - 73100 Lecce (LE) - Italy
Sito Web: www.cantelmosoftware.com (in continuous modernization)
E-Mail: (e-mail address removed)
 
now that's an interesting way around it *LOL*


Cantelmo Software said:
Hi Brian,
...nothing is impossible if not tests the absurdity :-)

you must incorporate (oops...convert!) your asm code as a byte Array to
pass
to the function: CallWindowProcA

regards,
Marcello

"Cantelmo Software" del Geom. Marcello Cantelmo
C.F.: CNTMCL68L17E506H - P.IVA: 03733730752
C.C.I.A.A. Lecce n° 241514 dal 29/09/2003
* * * * *
Via Verona, 10 - 73100 Lecce (LE) - Italy
Sito Web: www.cantelmosoftware.com (in continuous modernization)
E-Mail: (e-mail address removed)
 
* "Cantelmo Software said:
you must incorporate (oops...convert!) your asm code as a byte Array to pass
to the function: CallWindowProcA

This may cause problems with Windows XP SP2 when running on systems that
provide data segment execution protection.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top