Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Compler error I do not understand (http://forums.winamp.com/showthread.php?t=300846)

RBIBBY 9th December 2008 08:20

Compler error I do not understand
 
Hello,

I have a function with the following code:

Function OnMonitorClick
Pop $0 # HWND

..... some code

; Select the Monitor section
!insertmacro SelectSection ${Monitor}

.... some code

FunctionEnd

and section like this

Section "Monitor" Monitor

SetOutPath "$INSTDIR"

; These are the deployed files
File ..\..\..\Monitor\deploy\Monitor.exe

... some code


but the compiler gives me an error message:

unknown variable/constant "{Monitor}" detected, ignoring (macro:UnselectSection:4)

any ideas why?

Thanks.

kichik 9th December 2008 09:33

Define OnMonitorClick after you define the section as ${Monitor} will only be defined once the section is defined.


All times are GMT. The time now is 04:42.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.