YEAH!!!! it worked, i thought you meant like this
hResource=FindResource( hInstance,MAKEINTRESOURCE(ID_FONT),"RT_RCDATA");
but what you meant was this
hResource=FindResource( hInstance,MAKEINTRESOURCE(ID_FONT),RT_RCDATA);
and at finally it worked!!! thank you very much!!
to all, how does one code a c program that knows its executable name and
can restart itself?
On Thu, 05 Oct 2006 16:42:58 +0800, Mike Henning <address@hidden>
wrote:
--- bj <address@hidden> wrote:
//windowwithbutton.rc file
#include "windowwithbutton.h"
#include <linktosoundandsentencetemp.h>
ID_SOUND SOUND SOUNDfile
This looks like the culprit, try using RCDATA instead
of SOUND.
example:
ID_SOUND RCDATA SOUNDfile
Then in your program you just reference the type as
RT_RCDATA.
I'll probably add support for text names in a future
version, although they are rarely used anymore.
Mike H.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel