'ml' is not recognized as an internal or external operable program or batch file.
'rc' is not recognized as an internal or external operable program or batch file.
'link' is not recognized as an internal or external operable program or batch file.
Using the batch file make.bat that comes with the mosiac game lesson. I change it so that the rc.exe would know the search path for the rc script. rc /i C:\masm32\game project mosiac.rc. I could find any where I could change the settings for ml or link. Can Ijust link and assemble this manually since the bat file does work properly. I normally compile in qeditor will this do the job.
thanks in advance for your thoughts and consideration:alright:
I don't know it this is stupid but, have you checked your PATH environment string?:confused:
Tried it manually and keep getting a fatal error msg.
C:\masm32\BIN> rc /V mosiac.rc
using codepage 1252 as default
Creating mosiac.RES
RC: RCPP -CP 1252 -f C:\masm32\BIN\RCa01440 -g C:\masm32\BIN\RDa01440 -DRC
_INVOKED -D_WIN32 -pc\:/ -E -I. -I
RC: fatal error RC1110: could not open mosiac.rc
Which I created in notepad hope this is not the reason it can't open it. Should be thou. The same error can when trying rc /i C:\masm32\game project mosiac.rc
Seems the options in the help file don't work that well on winXP. Telling if I'm missing something still not sure if this is the correct way to compile .rc manually.
C:\masm32\BIN> rc /V mosiac.rc
using codepage 1252 as default
Creating mosiac.RES
RC: RCPP -CP 1252 -f C:\masm32\BIN\RCa01440 -g C:\masm32\BIN\RDa01440 -DRC
_INVOKED -D_WIN32 -pc\:/ -E -I. -I
RC: fatal error RC1110: could not open mosiac.rc
Which I created in notepad hope this is not the reason it can't open it. Should be thou. The same error can when trying rc /i C:\masm32\game project mosiac.rc
Seems the options in the help file don't work that well on winXP. Telling if I'm missing something still not sure if this is the correct way to compile .rc manually.
how can I check my path in winXP.
If you're looking to check an environment string you can do it like this:
Right click on MyComputer
Select properties
Select the Advanced Tab
press Environment Variables
The list will be shown
Right click on MyComputer
Select properties
Select the Advanced Tab
press Environment Variables
The list will be shown
'My computer->properties', perhaps 'advanced' and look for 'environment strings', or something like this. I can't tell you exactily because I use with 2000 and XP in ocassions, and all is in spanish. If you find it, go to 'system variables' and look for 'path'. Ensure the path of ml.exe, rc.exe and link.exe are referenced in it.
Tried it manually and keep getting a fatal error msg.
C:\masm32\BIN> rc /V mosiac.rc
Ok so you "cd'd" to the bin directory to run RC directly, but you did not add a path to mosaic (you have it spelled mosiac, with the i and a switched), unless mosaic.rc is in your masm bin directory, you will have to add a path to it for rc to find the file.
It's better modify the path string, because you normally work with a lot of projects...
you can write:
set path=\masm32\bin;%PATH%
in the command line, and then execute your makefile, or bat....
or you can type always something like this...
\masm32\bin\ml /c /coff .....
\masm32\bin\rc etc etc...
If you alter the path, you can forget of '\masm32\bin' till your computer crashes.
:grin:
you can write:
set path=\masm32\bin;%PATH%
in the command line, and then execute your makefile, or bat....
or you can type always something like this...
\masm32\bin\ml /c /coff .....
\masm32\bin\rc etc etc...
If you alter the path, you can forget of '\masm32\bin' till your computer crashes.
:grin:
thanks everyone I got it working now. Just one more ? thou
I assemble the file by the madwizard and it works fine. My gives a error about
Undefined symbol: ICON1_BIG
INVOKE argument type mismatch: argument: 2
Undefined symbol: ICON2_SMALL
INVOKE argument type mismatch:argument: 2
<snippet>...
That is the piece that's giving me problems right now. And Carefully reviewing Madwizard source for this it's exactly how he did it. and it compiles with no errors
How can this be:confused:
I assemble the file by the madwizard and it works fine. My gives a error about
Undefined symbol: ICON1_BIG
INVOKE argument type mismatch: argument: 2
Undefined symbol: ICON2_SMALL
INVOKE argument type mismatch:argument: 2
<snippet>...
invoke LoadIcon, hInstance, ICON1_BIG
mov wc.hIcon, eax
invoke LoadIcon, hInstance, ICON2_SMALL
mov wc.Iconsm, eax
That is the piece that's giving me problems right now. And Carefully reviewing Madwizard source for this it's exactly how he did it. and it compiles with no errors
How can this be:confused:
Either the definitions (EQU) are added manually, or there is a program to generate these same definitions from the resource script.
If the definition is not in the main code, it will probably be in an INCLUDE.
If the definition is not in the main code, it will probably be in an INCLUDE.
In each case they are looking for a resource number, you can check the RC file to find the corresponding equate and use that in your program (without the #define).