i'm trying, without suces, add resouce file to exe
(i have read 1 thread from these forum, but i continue with same error
)
these lines are VB strings, but i will explain my best
these line recive the files and folder names:
Code:
strCompilerName = App_Path & "\MinGW32\bin\g++.exe"
strEXEFileName = """" & App_Path & "\test" & """"
strCPPFonteName = """" & App_Path & "\test.cpp" & """"
strMainIcon = """" & App_Path & "\MainIcon.res" & """"
strRC = """" & App_Path & "\MainIcon.o" & """"
strObjectSource = """" & App_Path & "\test.o" & """"
strResCompilerName = """" & App_Path & "\MinGW32\bin\windres.exe" & """"
(the App_Path is my program folder)
heres how i compile the resource file:
Code:
strResCompilerName & " -o " & strMainIcon & strRC
how i compile the source file to object:
Code:
strCompilerName & " -c " & strObjectSource & strCPPFonteName
now heres how combine the object files with resource for the exe:
Code:
strCompilerName & " -o " & strEXEFileName & " " & strObjectSource & strRC & " -static"
"-static" is for add the dependents DLL's
(if these is confuse, please tell me.. i'm portuguese)
my problem is that i think the resource file isn't compiled. can anyone tell what i'm doing wrong?
(i have GCC 4.8.1 version)