PC Review


Reply
 
 
Brian Henry
Guest
Posts: n/a
 
      12th Aug 2004
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


 
Reply With Quote
 
 
 
 
Peter Huang
Guest
Posts: n/a
 
      12th Aug 2004
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.

 
Reply With Quote
 
Cantelmo Software
Guest
Posts: n/a
 
      12th Aug 2004
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 Removed)

"Brian Henry" <(E-Mail Removed)> ha scritto nel messaggio
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Brian Henry
Guest
Posts: n/a
 
      12th Aug 2004
now that's an interesting way around it *LOL*


"Cantelmo Software" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 Removed)
>
> "Brian Henry" <(E-Mail Removed)> ha scritto nel messaggio
> news:(E-Mail Removed)...
>> 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
>>
>>

>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      12th Aug 2004
* "Cantelmo Software" <(E-Mail Removed)> scripsit:
> 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.

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

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:14 AM.