Hi,
I'm struggling to embed a DLL in a resource (.rc) file. windres complains with:
[code]Compiling: resource.rc
windres.exe: resource.rc:17: syntax error
From what I can tell, everything is setup correctly. In my header I have:
[code// ID of the embedded DLL.
#define IDR_PKEY_DLL 102[/code]
And then in the rc I have:
IDR_PKEY_DLL BINARY MOVEABLE PURE “res\\Project.dll”
I'm pretty sure that's worked with Microsofts resource compiler as part of VC++ (euck!), but not windres. Any ideas?
Thanks,
Dave
Thanks for the reply Tim.
Sorry for messing up the code tags in the original post, not sure what happened there.
I've removed the res/resource folder altogether, but the problem persists. I've also tried the smart tags as suggested without much luck:
IDR_PKEY_DLL BINARY MOVEABLE PURE “ProductKeyFinder.dll”
Still errors with:
Compiling: resource.rc
windres.exe: C:\\Users\\DAVEHO~1\\Desktop\\2.0\\DEVEL\\resource.rc:17: syntax error
Any other ideas?
I have gotten it to compile; did not test it it works at runtime.
I added this code to an working rc file.
#define IDR_TBEHK_DEBUG 130
IDR_TBEHK_DEBUG BINARY MOVEABLE PURE "icudt41.dll"
I then added the path to the DLL file "icudt41.dll" under this location in Code::Blocks
Project -> Build Options
Tab "search directory"
SubTab "Resource Compiler"
I used a relative path, but an full path should work.
Tim S