From: <oh...@co...> - 2009-05-07 05:41:59
|
Hi, I'm trying to add a call to MessageBoxA in a Nasm app. I know how to setup the parameters for the call, but I can't get Nasm to assemble successfully. I have added an "extern MessageBoxA" and "import MessageBoxA user32.dll" (this is on Windows), but when I do that, I get an error from parser saying that an instruction is expected. If I comment out the "import" line, I get a linker error. Am I not suppose to use both the "extern" and "import" lines, before the .Code line? Thanks, Jim |