Hi all, I've managed to add a binary file (tga) as a resource to my program,
the generated code looks like:
anyhow I'd now like to "load" the contents of this using the tgaload command in easyce. how do I go it? any ideas? Ive tried and keep getting.... things like:
E:\Squish3\sample.cpp(226) : error C2664: 'memcpy' : cannot convert parameter 2 from 'const int' to 'const void *'
or
E:\Squish3\sample.cpp(183) : error C2665: 'tgaload' : none of the 2 overloads can convert parameter 1 from type 'const int'
or
E:\Squish3\sample.cpp(183) : error C2665: 'tgaload' : none of the 2 overloads can convert parameter 1 from type 'unsigned short *'
help, this must be "doo-able"
-thanks brendan
B.T.W the icon works fine
the generated code looks like:
- Code:
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by resource.rc
//
#define IDI_ICON1 102
#define IDR_BINARY1 103
anyhow I'd now like to "load" the contents of this using the tgaload command in easyce. how do I go it? any ideas? Ive tried and keep getting.... things like:
E:\Squish3\sample.cpp(226) : error C2664: 'memcpy' : cannot convert parameter 2 from 'const int' to 'const void *'
or
E:\Squish3\sample.cpp(183) : error C2665: 'tgaload' : none of the 2 overloads can convert parameter 1 from type 'const int'
or
E:\Squish3\sample.cpp(183) : error C2665: 'tgaload' : none of the 2 overloads can convert parameter 1 from type 'unsigned short *'
help, this must be "doo-able"
-thanks brendan
B.T.W the icon works fine