VS2008 compile error

Started by ragdog, October 30, 2011, 06:37:11 PM

Previous topic - Next topic

ragdog

Hi

I try to build a exe with masm32 in Visual Studio 2008

I have make a emty and copy my asm to this folder now add this asm file to Vs Solution explorer .
And by Include path in Proberty page have i "\Masm32\include"

Now have i this error by Build the project

1>Assembling...
1> Assembling: .\DlgMain.Asm
1>.\DlgMain.Asm(76) : warning A6004:procedure argument or local not referenced : wParam
1>.\DlgMain.Asm(76) : warning A6004:procedure argument or local not referenced : lParam

Can you help me?

dedndave

those are warning errors - not hard errors
there may be some way to supress the messages

ragdog

I have solved it with this way

DlgProc proc hWnd:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM
mov eax,lParam   ;<<<<<<<<<<<<<<<<<<
mov eax,wParam ;<<<<<<<<<<<<<<<<<<
   .if uMsg==WM_INITDIALOG

But if this this new in Ml.exe 9x?
with the Ml from Masm32 package hav i not this Warning

A other question gives a way to use Auto list Menbers in Vs2008 for masm32?
i mean this auto complete from Radasm

Greets

ToutEnMasm

It is just warning,not errors.  /W<number> Set warning level
ML /W0   ... /W3              ;3 is max
not referenced  mean not used