PC Review


Reply
Thread Tools Rate Thread

Assembly language link with VB.NET

 
 
Chin Fui
Guest
Posts: n/a
 
      29th Feb 2004
I am writting a CD-ROM Emulator application using assembly language and link
with the VB.NET interface. But, I am not sure whether assembly language is
linkable with VB.NET.

Another question is I am now stuck in the coding, not much idea in
implementing this application. I hope to get some hints on that...

Thank you.

Chin Fui


 
Reply With Quote
 
 
 
 
Tom Spink
Guest
Posts: n/a
 
      29th Feb 2004
Hi, If it is linkable, which I doubt very much it is.... I wouldn't pursue
it anyway, because VB.NET compiles to machine-indepenant bytecode. Assembly
language is machine-dependant code.

--
HTH,
-- Tom Spink, Über Geek

Woe be the day VBC.EXE says, "OrElse what?"

Please respond to the newsgroup,
so all can benefit
"Chin Fui" <(E-Mail Removed)> wrote in message
news:uF93#Ju$(E-Mail Removed)...
> I am writting a CD-ROM Emulator application using assembly language and

link
> with the VB.NET interface. But, I am not sure whether assembly language is
> linkable with VB.NET.
>
> Another question is I am now stuck in the coding, not much idea in
> implementing this application. I hope to get some hints on that...
>
> Thank you.
>
> Chin Fui
>
>



 
Reply With Quote
 
Tom Leylan
Guest
Posts: n/a
 
      29th Feb 2004
Tom: If you can access your CD-ROM with VB.Net why wouldn't you be able to
access a CD-ROM emulator with VB.Net? It's a device accessed through a
driver... we aren't using special VB.Net compatible audio and video drivers
are we?

Chin: I can't see why you couldn't use assembly language.

"Tom Spink" <thomasdotspinkat@ntlworlddotcom> wrote...
> Hi, If it is linkable, which I doubt very much it is.... I wouldn't pursue
> it anyway, because VB.NET compiles to machine-indepenant bytecode.

Assembly
> language is machine-dependant code.
>
> --
> HTH,
> -- Tom Spink, Über Geek
>
> Woe be the day VBC.EXE says, "OrElse what?"
>
> Please respond to the newsgroup,
> so all can benefit
> "Chin Fui" <(E-Mail Removed)> wrote in message
> news:uF93#Ju$(E-Mail Removed)...
> > I am writting a CD-ROM Emulator application using assembly language and

> link
> > with the VB.NET interface. But, I am not sure whether assembly language

is
> > linkable with VB.NET.
> >
> > Another question is I am now stuck in the coding, not much idea in
> > implementing this application. I hope to get some hints on that...
> >
> > Thank you.
> >
> > Chin Fui



 
Reply With Quote
 
Ralph
Guest
Posts: n/a
 
      1st Mar 2004

"Chin Fui" <(E-Mail Removed)> wrote in message
news:uF93%23Ju$(E-Mail Removed)...
> I am writting a CD-ROM Emulator application using assembly language and

link
> with the VB.NET interface. But, I am not sure whether assembly language is
> linkable with VB.NET.
>
> Another question is I am now stuck in the coding, not much idea in
> implementing this application. I hope to get some hints on that...
>
> Thank you.
>
> Chin Fui


The easiest method would be to compile your "assembly language" code
(separate lib or as embedded asm instructions in C, ...) and then create a
managed C++ assembly to provide a wrapper for the asm routines. You can then
use the new classes directly in your VB code using
System::Runtime::InteroptServices

-ralph


 
Reply With Quote
 
Tom Leylan
Guest
Posts: n/a
 
      1st Mar 2004
Ralph,

I'm obviously not the person who posted the original question but at I am at
a loss to understand now a CD-ROM emulator would be compiled into a VB.Net
application. I'm far from an expert but what would the advantage of coding
it into an app be? I only ask since nobody I know of is offering VB.Net
libraries specifically designed for hardware-based CD-ROMs...

Even if one could (and I find it hard to believe one couldn't) what would
the advantage be? They operate across all languages currently why would
anybody target .Net? It seems incredibly limiting. Not if it "had" to be
done that way but it doesn't appear to be necessary.


"Ralph" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "Chin Fui" <(E-Mail Removed)> wrote in message
> news:uF93%23Ju$(E-Mail Removed)...
> > I am writting a CD-ROM Emulator application using assembly language and

> link
> > with the VB.NET interface. But, I am not sure whether assembly language

is
> > linkable with VB.NET.
> >
> > Another question is I am now stuck in the coding, not much idea in
> > implementing this application. I hope to get some hints on that...
> >
> > Thank you.
> >
> > Chin Fui

>
> The easiest method would be to compile your "assembly language" code
> (separate lib or as embedded asm instructions in C, ...) and then create a
> managed C++ assembly to provide a wrapper for the asm routines. You can

then
> use the new classes directly in your VB code using
> System::Runtime::InteroptServices
>
> -ralph
>
>



 
Reply With Quote
 
Ralph
Guest
Posts: n/a
 
      1st Mar 2004

"Tom Leylan" <(E-Mail Removed)> wrote in message
news:OgWcZkz$(E-Mail Removed)...
> Ralph,
>
> I'm obviously not the person who posted the original question but at I am

at
> a loss to understand now a CD-ROM emulator would be compiled into a VB.Net
> application. I'm far from an expert but what would the advantage of

coding
> it into an app be? I only ask since nobody I know of is offering VB.Net
> libraries specifically designed for hardware-based CD-ROMs...
>
> Even if one could (and I find it hard to believe one couldn't) what would
> the advantage be? They operate across all languages currently why would
> anybody target .Net? It seems incredibly limiting. Not if it "had" to be
> done that way but it doesn't appear to be necessary.
>
>
> "Ralph" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> > "Chin Fui" <(E-Mail Removed)> wrote in message
> > news:uF93%23Ju$(E-Mail Removed)...
> > > I am writting a CD-ROM Emulator application using assembly language

and
> > link
> > > with the VB.NET interface. But, I am not sure whether assembly

language
> is
> > > linkable with VB.NET.
> > >
> > > Another question is I am now stuck in the coding, not much idea in
> > > implementing this application. I hope to get some hints on that...
> > >
> > > Thank you.
> > >
> > > Chin Fui

> >
> > The easiest method would be to compile your "assembly language" code
> > (separate lib or as embedded asm instructions in C, ...) and then create

a
> > managed C++ assembly to provide a wrapper for the asm routines. You can

> then
> > use the new classes directly in your VB code using
> > System::Runtime::InteroptServices
> >
> > -ralph
> >
> >


Tom,

I must have hit the wrong reply button. Did I accidently email you directly?
I apologize.

Actually I am with you - I am not sure where such a thing would 'fit' within
an 'application', be it .NET, C runtime, etc... I just knee-jerked responded
to someone that appeared to be asking "How can I use my asm within a .NET
application"? Without a second thought as to whether such a thing would
even be necessary or practical.

I often fail to have second-thoughts. <g>

-ralph


 
Reply With Quote
 
Tom Spink
Guest
Posts: n/a
 
      1st Mar 2004
My point is that VB.NET and C# and indeed anything that compiles to MSIL is
designed to be platform independant. If I write a replica of Notepad in
VB.NET and compile it, and not use any external API, then I expect it to
work exactly the same on Linux, MacOS, FreeBSD or any other platform with a
version of the .NET framework.

If I start using Assembly language, I lose that platform independancy.

--
HTH,
-- Tom Spink, Über Geek

Woe be the day VBC.EXE says, "OrElse what?"

Please respond to the newsgroup,
so all can benefit
"Tom Leylan" <(E-Mail Removed)> wrote in message
news:##1fKDv$(E-Mail Removed)...
> Tom: If you can access your CD-ROM with VB.Net why wouldn't you be able

to
> access a CD-ROM emulator with VB.Net? It's a device accessed through a
> driver... we aren't using special VB.Net compatible audio and video

drivers
> are we?
>
> Chin: I can't see why you couldn't use assembly language.
>
> "Tom Spink" <thomasdotspinkat@ntlworlddotcom> wrote...
> > Hi, If it is linkable, which I doubt very much it is.... I wouldn't

pursue
> > it anyway, because VB.NET compiles to machine-indepenant bytecode.

> Assembly
> > language is machine-dependant code.
> >
> > --
> > HTH,
> > -- Tom Spink, Über Geek
> >
> > Woe be the day VBC.EXE says, "OrElse what?"
> >
> > Please respond to the newsgroup,
> > so all can benefit
> > "Chin Fui" <(E-Mail Removed)> wrote in message
> > news:uF93#Ju$(E-Mail Removed)...
> > > I am writting a CD-ROM Emulator application using assembly language

and
> > link
> > > with the VB.NET interface. But, I am not sure whether assembly

language
> is
> > > linkable with VB.NET.
> > >
> > > Another question is I am now stuck in the coding, not much idea in
> > > implementing this application. I hope to get some hints on that...
> > >
> > > Thank you.
> > >
> > > Chin Fui

>
>



 
Reply With Quote
 
Tom Leylan
Guest
Posts: n/a
 
      1st Mar 2004
Not a problem Tom... you'll find this is not the case despite the
advertising. We've been there, in the past it was called Java.

Again to clarify... your CD-ROM driver will not work in Linux, MacOs,
FreeBSD and Windows. It isn't worth arguing about however.

Take care,
Another "Tom"
..

"Tom Spink" <thomasdotspinkat@ntlworlddotcom> wrote in message
news:usykCg8$(E-Mail Removed)...
> My point is that VB.NET and C# and indeed anything that compiles to MSIL

is
> designed to be platform independant. If I write a replica of Notepad in
> VB.NET and compile it, and not use any external API, then I expect it to
> work exactly the same on Linux, MacOS, FreeBSD or any other platform with

a
> version of the .NET framework.
>
> If I start using Assembly language, I lose that platform independancy.
>
> --
> HTH,
> -- Tom Spink, Über Geek
>
> Woe be the day VBC.EXE says, "OrElse what?"
>
> Please respond to the newsgroup,
> so all can benefit
> "Tom Leylan" <(E-Mail Removed)> wrote in message
> news:##1fKDv$(E-Mail Removed)...
> > Tom: If you can access your CD-ROM with VB.Net why wouldn't you be able

> to
> > access a CD-ROM emulator with VB.Net? It's a device accessed through a
> > driver... we aren't using special VB.Net compatible audio and video

> drivers
> > are we?
> >
> > Chin: I can't see why you couldn't use assembly language.
> >
> > "Tom Spink" <thomasdotspinkat@ntlworlddotcom> wrote...
> > > Hi, If it is linkable, which I doubt very much it is.... I wouldn't

> pursue
> > > it anyway, because VB.NET compiles to machine-indepenant bytecode.

> > Assembly
> > > language is machine-dependant code.
> > >
> > > --
> > > HTH,
> > > -- Tom Spink, Über Geek
> > >
> > > Woe be the day VBC.EXE says, "OrElse what?"
> > >
> > > Please respond to the newsgroup,
> > > so all can benefit
> > > "Chin Fui" <(E-Mail Removed)> wrote in message
> > > news:uF93#Ju$(E-Mail Removed)...
> > > > I am writting a CD-ROM Emulator application using assembly language

> and
> > > link
> > > > with the VB.NET interface. But, I am not sure whether assembly

> language
> > is
> > > > linkable with VB.NET.
> > > >
> > > > Another question is I am now stuck in the coding, not much idea in
> > > > implementing this application. I hope to get some hints on that...
> > > >
> > > > Thank you.
> > > >
> > > > Chin Fui

> >
> >

>
>



 
Reply With Quote
 
Tom Spink
Guest
Posts: n/a
 
      1st Mar 2004
> Not a problem Tom... you'll find this is not the case despite the
> advertising. We've been there, in the past it was called Java.


;-) It is the future... I forsee it

> Again to clarify... your CD-ROM driver will not work in Linux, MacOs,
> FreeBSD and Windows. It isn't worth arguing about however.


I'm not writing the driver, it's not my driver.... I've got better things to
be doing (like writing a .net framework for every possible platform)

--
HTH,
-- Tom Spink, Über Geek

Woe be the day VBC.EXE says, "OrElse what?"

Please respond to the newsgroup,
so all can benefit
"Tom Leylan" <(E-Mail Removed)> wrote in message
news:e8FnBv9$(E-Mail Removed)...
> Not a problem Tom... you'll find this is not the case despite the
> advertising. We've been there, in the past it was called Java.
>
> Again to clarify... your CD-ROM driver will not work in Linux, MacOs,
> FreeBSD and Windows. It isn't worth arguing about however.
>
> Take care,
> Another "Tom"
> .
>
> "Tom Spink" <thomasdotspinkat@ntlworlddotcom> wrote in message
> news:usykCg8$(E-Mail Removed)...
> > My point is that VB.NET and C# and indeed anything that compiles to MSIL

> is
> > designed to be platform independant. If I write a replica of Notepad in
> > VB.NET and compile it, and not use any external API, then I expect it to
> > work exactly the same on Linux, MacOS, FreeBSD or any other platform

with
> a
> > version of the .NET framework.
> >
> > If I start using Assembly language, I lose that platform independancy.
> >
> > --
> > HTH,
> > -- Tom Spink, Über Geek
> >
> > Woe be the day VBC.EXE says, "OrElse what?"
> >
> > Please respond to the newsgroup,
> > so all can benefit
> > "Tom Leylan" <(E-Mail Removed)> wrote in message
> > news:##1fKDv$(E-Mail Removed)...
> > > Tom: If you can access your CD-ROM with VB.Net why wouldn't you be

able
> > to
> > > access a CD-ROM emulator with VB.Net? It's a device accessed through

a
> > > driver... we aren't using special VB.Net compatible audio and video

> > drivers
> > > are we?
> > >
> > > Chin: I can't see why you couldn't use assembly language.
> > >
> > > "Tom Spink" <thomasdotspinkat@ntlworlddotcom> wrote...
> > > > Hi, If it is linkable, which I doubt very much it is.... I wouldn't

> > pursue
> > > > it anyway, because VB.NET compiles to machine-indepenant bytecode.
> > > Assembly
> > > > language is machine-dependant code.
> > > >
> > > > --
> > > > HTH,
> > > > -- Tom Spink, Über Geek
> > > >
> > > > Woe be the day VBC.EXE says, "OrElse what?"
> > > >
> > > > Please respond to the newsgroup,
> > > > so all can benefit
> > > > "Chin Fui" <(E-Mail Removed)> wrote in message
> > > > news:uF93#Ju$(E-Mail Removed)...
> > > > > I am writting a CD-ROM Emulator application using assembly

language
> > and
> > > > link
> > > > > with the VB.NET interface. But, I am not sure whether assembly

> > language
> > > is
> > > > > linkable with VB.NET.
> > > > >
> > > > > Another question is I am now stuck in the coding, not much idea in
> > > > > implementing this application. I hope to get some hints on that...
> > > > >
> > > > > Thank you.
> > > > >
> > > > > Chin Fui
> > >
> > >

> >
> >

>
>



 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly language =?Utf-8?B?ZnJvZ3dhbGtlcg==?= Windows XP General 0 21st Sep 2004 01:55 AM
C++ vs. C# vs. Assembly Language nospam Microsoft Dot NET 22 17th Oct 2003 07:57 AM
C++ vs. C# vs. Assembly Language nospam Microsoft Dot NET Framework 17 17th Oct 2003 07:57 AM
C++ vs. C# vs. Assembly Language nospam Microsoft ADO .NET 17 17th Oct 2003 07:57 AM
C++ vs. C# vs. Assembly Language nospam Microsoft C# .NET 17 17th Oct 2003 07:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:12 PM.