From: Jonathan W. <jo...@tp...> - 2003-07-17 13:20:17
|
problems are: 1.the resource file #includes afxres.h (which is something many visual C++ programs, even those that dont use MFC do). Solution: A.add winres.h to MingW, containing the same stuff as the MS winres.h B.add afxres.h to MingW, containing whatever bits that the MS header has that are neccessary. Pretty much all of what is in afxres.h is related specificly to MFC stuff. afxres.h also #includes winres.h winres.h #includes winresrc.h and adds a couple of definitions to it. If I create an afxres.h that just #includes winres.h and a winres.h that just #includes winresrc.h, that solves one problem. Then, the next problem is that IDC_STATIC is undefined This is #defined in winres.h (it #undef's it if its already defines it and then #defines it. Adding a definition for IDC_STATIC to winres.h fixed that The third problem is this line: IDR_SPRNAMES RCDATA MOVEABLE PURE "sprname.dat" Its supposed to create a RCDATA resource with an ID of IDR_SPRNAMES (which is a #define in the resource.h file thats pulled in by the .rc file and use the contents of sprname.dat as the data for the RCDATA resource. Microsofts resource compiler handles it just fine but windres does not. Can someone tell me why and/or how to fix it/make it do what I want? |