The MASM Forum Archive 2004 to 2012

Specialised Projects => Compiler Based Assembler => Assembler With Microsoft Visual C => Topic started by: ragdog on October 30, 2011, 06:37:11 PM

Title: VS2008 compile error
Post by: ragdog on October 30, 2011, 06:37:11 PM
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?
Title: Re: VS2008 compile error
Post by: dedndave on October 30, 2011, 08:07:34 PM
those are warning errors - not hard errors
there may be some way to supress the messages
Title: Re: VS2008 compile error
Post by: ragdog on October 31, 2011, 10:57:09 AM
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
Title: Re: VS2008 compile error
Post by: ToutEnMasm on October 31, 2011, 11:01:52 AM
It is just warning,not errors.  /W<number> Set warning level
ML /W0   ... /W3              ;3 is max
not referenced  mean not used