[Dev-C++] Offset problems in assembly
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Bjorn T. <bjo...@ho...> - 2003-10-24 16:33:52
|
I'm using visual studio for this project, so it may be the wrong place for
the question.
Anyway, when I try compile code like:
char hello[] = "Hello";
__asm
{
mov ebx, offset hello
...
}
the compiler fail and respond "error C2415: improper operand type"
This only occur when I'm trying to use offset
Does anyone recognize this?
I havn't found any helpful information on MSDN or by searching with Google
Thanks
Bjorn Terelius
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
|