I wonder if any one has a full , but simple
example of a very simple consol Visual C++ program calling an Masm 32 assembly program,
I've used inline asm before, but this would be very cool, to be able use Masm 32 in Visual C++,
I think, you have to use Extern,(I've never used extern), Well you know ,this is the kind of info, that is only known here anyway.
Any suggestions would be appreciated, but a full simple example,
would be really cool, It just seems hard.
To piece it all together,
Anyway this place is Great!
THanks
Andy
:stupid:
example of a very simple consol Visual C++ program calling an Masm 32 assembly program,
I've used inline asm before, but this would be very cool, to be able use Masm 32 in Visual C++,
I think, you have to use Extern,(I've never used extern), Well you know ,this is the kind of info, that is only known here anyway.
Any suggestions would be appreciated, but a full simple example,
would be really cool, It just seems hard.
To piece it all together,
Anyway this place is Great!
THanks
Andy
:stupid:
Just put your asm code in a dll, and call the dll functions just like any other dll. There is a good sample on Icz's site about how to make a dll in asm (it's quite easy).
Or, just make an exe, and ShellExecute it.
but this would be very cool, to be able use Masm 32 in Visual C++
Any inline asm you have in your VC++ project IS already in masm syntax...
Or, just make an exe, and ShellExecute it.
but this would be very cool, to be able use Masm 32 in Visual C++
Any inline asm you have in your VC++ project IS already in masm syntax...
Limited syntax though, sludge.
andy, do a proc like this:
in your c/cpp file, do the following
Play with it...
andy, do a proc like this:
myWonderfulProc proc C public
ret
myWonderfulProc endp
in your c/cpp file, do the following
#ifdef __cplusplus
extern "C" {
#endif
void myWonderfulProc(void);
#ifdef __cplusplus
}
#endif
Play with it...
I found an article online that showed how you link up in
Visual C++
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q106399
THanks
Andy
Visual C++
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q106399
THanks
Andy