tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fw: [Tinycc-devel] windows resources LinkRes2Exe.exe by Mike Henning


From: bj
Subject: Re: Fw: [Tinycc-devel] windows resources LinkRes2Exe.exe by Mike Henning
Date: Thu, 05 Oct 2006 15:42:44 +0800
User-agent: Opera Mail/9.02 (Win32)

//windowwithbutton.rc file
#include "windowwithbutton.h"
#include <linktosoundandsentencetemp.h>

ID_SOUND        SOUND   SOUNDfile
ID_FONT RT_FONT         FONTfile
ISOLATIONAWARE_MANIFEST_RESOURCE_ID RT_MANIFEST RT_MANIFESTfile


//windowwithbutton.h file
#define ID_SOUND                        104
#define ID_FONT                                                 105
#define ID_MANIFEST                                                     106
//#define ISOLATIONAWARE_MANIFEST_RESOURCE_ID 106
#define fontname                                                        
FilipinoDictionary Charis SIL L
#define fontnamewithquotes                      "FilipinoDictionary Charis SIL 
L"
#define fontnamettf8                                            
"FilipinoDictionaryCharisSILLitR.ttf"
#define FONTfile                                                        
"..\\FilipinoDictionaryCharisSILLitR.ttf"
TCHAR fontnamettf[MAX_PATH] = "";
#define RT_MANIFESTfile                         
"gccwindowwithbutton.exe.manifest"


//linktosoundandsentencetemp.h file
#define SENTENCE "1234567890 abcdefghijklmnopqqrstuvwxyz ABCDEFGHIJKLMNOPQQRSTUVWXYZ ?,!.ÁÀÂÈÉÊÌÍÎÒÓÔÙÚÛÑáàâèéêìíîòóôùúûñ ×ØÙÚÛÝÞàáâãåæçèéêëìíîïðñòóôõ÷øùúûýþÿuni02A4+€<"
#define SOUNDfile                                                       
"chimes.wav"



//the linktosoundandsentencetemp.h is included in my rc.exe include path when i compile the files to .res file so it's okay for it to be enclosed in < and >. if the manifest file makes it not work i can delete it. i can already write the manifest using fwrite. how about the restartable program, anyone has one?


On Thu, 05 Oct 2006 05:21:11 +0800, Mike Henning <address@hidden> wrote:

It looks like you may be using Text names for the
ResName. Your script file should look something like:

#include <windows.h>

10   ICON         "chip.ico"
1    RT_MANIFEST  "WindowsXP.Manifest"

Can you post the .rc script file you are using?

Thanks,
Mike H.




--- bj <address@hidden> wrote:


  i forgot to put the output of LinkRes2Exe.exe,
sorry :)

DataSize    = 0
HeaderSize  = 32
ResType     = NULL
ResName     = 0
DataVersion = 0
MemFlags    = None
LangId      = 0
Version     = 0
Charistics  = 0

------------------------------------------------------------
DataSize    = 55776
HeaderSize  = 40
ResType     = Unknown
ResName     = 4E
DataVersion = 68
MemFlags    = MOVEABLE PURE PRELOAD DISCARDABLE
LangId      = 104
Version     = 0
Charistics  = 67698736

------------------------------------------------------------
DataSize    = 1769234802
HeaderSize  = 28271
ResType     = Unknown
ResName     = 0
DataVersion = 5505106
MemFlags    = MOVEABLE PRELOAD
LangId      = 70
Version     = 5111887
Charistics  = 84


------------------------------------------------------------
my resource file has a sound file, font file and a
manifest file. if
anyone could give me an example c and rc source code
that uses resources
like a sound file, a font file and a text file using
LinkRes2Exe that Mike
sent to us all, i would gladly appreciate it.
or if anyone had made LinkRes2Exe work with
resources, please email me the
source code or email it to us all.
thanks  :)

On Thu, 05 Oct 2006 02:01:11 +0800, bj
<address@hidden> wrote:

> to Mike Henning
> your program doesn't work.
> i have tried compiling it with MinGW, tcc, Borland
C compiler bcc32, and
> Microsoft Visual C++ Toolkit 2003 but only MinGW
and tcc were able to
> compile it to exe files. both exe files got an
error.
> these are their error reports:
> LinkRes2Exetcc(LinkRes2Exe.c compiled with tcc)
got this error report,
> the one you get when you click "click here" and
"click here" again in
> the dialog where you can send the error report.
> <?xml version="1.0" encoding="UTF-16"?>
> <DATABASE>
> <EXE NAME="LinkRes2Exetcc.exe"
FILTER="GRABMI_FILTER_PRIVACY">
>      <MATCHING_FILE NAME="LinkRes2Exe.exe"
SIZE="5632"
> CHECKSUM="0xF525AD9E" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x0"
> LINKER_VERSION="0x0" LINK_DATE="01/01/1970
00:00:00"
> UPTO_LINK_DATE="01/01/1970 00:00:00" />
>      <MATCHING_FILE NAME="LinkRes2Exe2.exe"
SIZE="22379"
> CHECKSUM="0x6B3B6C39" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x13D53"
> LINKER_VERSION="0x10000" LINK_DATE="10/04/2006
14:27:39"
> UPTO_LINK_DATE="10/04/2006 14:27:39" />
>      <MATCHING_FILE NAME="LinkRes2Exegcc.exe"
SIZE="22379"
> CHECKSUM="0x6B3B6C39" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x59A2"
> LINKER_VERSION="0x10000" LINK_DATE="10/04/2006
16:28:25"
> UPTO_LINK_DATE="10/04/2006 16:28:25" />
>      <MATCHING_FILE NAME="LinkRes2Exetcc.exe"
SIZE="5632"
> CHECKSUM="0xF525AD9E" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x0"
> LINKER_VERSION="0x0" LINK_DATE="01/01/1970
00:00:00"
> UPTO_LINK_DATE="01/01/1970 00:00:00" />
> </EXE>
> <EXE NAME="msvcrt.dll"
FILTER="GRABMI_FILTER_THISFILEONLY">
>      <MATCHING_FILE NAME="msvcrt.dll"
SIZE="343040"
> CHECKSUM="0x1BFAF375"
BIN_FILE_VERSION="7.0.2600.2180"
> BIN_PRODUCT_VERSION="6.1.8638.2180"
PRODUCT_VERSION="7.0.2600.2180"
> FILE_DESCRIPTION="Windows NT CRT DLL"
COMPANY_NAME="Microsoft
> Corporation" PRODUCT_NAME="Microsoft® Windows®
Operating System"
> FILE_VERSION="7.0.2600.2180
(xpsp_sp2_rtm.040803-2158)"
> ORIGINAL_FILENAME="msvcrt.dll"
INTERNAL_NAME="msvcrt.dll"
> LEGAL_COPYRIGHT="© Microsoft Corporation. All
rights reserved."
> VERFILEDATEHI="0x0" VERFILEDATELO="0x0"
VERFILEOS="0x40004"
> VERFILETYPE="0x1" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x57CD3"
> LINKER_VERSION="0x50001"
UPTO_BIN_FILE_VERSION="7.0.2600.2180"
> UPTO_BIN_PRODUCT_VERSION="6.1.8638.2180"
LINK_DATE="08/04/2004 07:59:14"
> UPTO_LINK_DATE="08/04/2004 07:59:14"
VER_LANGUAGE="English (United
> States) [0x409]" />
> </EXE>
> <EXE NAME="kernel32.dll"
FILTER="GRABMI_FILTER_THISFILEONLY">
>      <MATCHING_FILE NAME="kernel32.dll"
SIZE="983552"
> CHECKSUM="0x4CE79457"
BIN_FILE_VERSION="5.1.2600.2180"
> BIN_PRODUCT_VERSION="5.1.2600.2180"
PRODUCT_VERSION="5.1.2600.2180"
> FILE_DESCRIPTION="Windows NT BASE API Client DLL"

> COMPANY_NAME="Microsoft Corporation"
PRODUCT_NAME="Microsoft® Windows®
> Operating System" FILE_VERSION="5.1.2600.2180
> (xpsp_sp2_rtm.040803-2158)"
ORIGINAL_FILENAME="kernel32"
> INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="©
Microsoft Corporation. All
> rights reserved." VERFILEDATEHI="0x0"
VERFILEDATELO="0x0"
> VERFILEOS="0x40004" VERFILETYPE="0x2"
MODULE_TYPE="WIN32"
> PE_CHECKSUM="0xFF848" LINKER_VERSION="0x50001"
> UPTO_BIN_FILE_VERSION="5.1.2600.2180"
> UPTO_BIN_PRODUCT_VERSION="5.1.2600.2180"
LINK_DATE="08/04/2004 07:56:36"
> UPTO_LINK_DATE="08/04/2004 07:56:36"
VER_LANGUAGE="English (United
> States) [0x409]" />
> </EXE>
> </DATABASE>
> LinkRes2Exegcc(LinkRes2Exe.c compiled with MinGW)
has this error report
> <?xml version="1.0" encoding="UTF-16"?>
> <DATABASE>
> <EXE NAME="LinkRes2Exegcc.exe"
FILTER="GRABMI_FILTER_PRIVACY">
>      <MATCHING_FILE NAME="LinkRes2Exe.exe"
SIZE="5632"
> CHECKSUM="0xF525AD9E" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x0"
> LINKER_VERSION="0x0" LINK_DATE="01/01/1970
00:00:00"
> UPTO_LINK_DATE="01/01/1970 00:00:00" />
>      <MATCHING_FILE NAME="LinkRes2Exe2.exe"
SIZE="22379"
> CHECKSUM="0x6B3B6C39" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x13D53"
> LINKER_VERSION="0x10000" LINK_DATE="10/04/2006
14:27:39"
> UPTO_LINK_DATE="10/04/2006 14:27:39" />
>      <MATCHING_FILE NAME="LinkRes2Exegcc.exe"
SIZE="22379"
> CHECKSUM="0x6B3B6C39" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x5AD6"
> LINKER_VERSION="0x10000" LINK_DATE="10/04/2006
16:33:33"
> UPTO_LINK_DATE="10/04/2006 16:33:33" />
>      <MATCHING_FILE NAME="LinkRes2Exetcc.exe"
SIZE="5632"
> CHECKSUM="0xF525AD9E" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x0"
> LINKER_VERSION="0x0" LINK_DATE="01/01/1970
00:00:00"
> UPTO_LINK_DATE="01/01/1970 00:00:00" />
> </EXE>
> <EXE NAME="msvcrt.dll"
FILTER="GRABMI_FILTER_THISFILEONLY">
>      <MATCHING_FILE NAME="msvcrt.dll"
SIZE="343040"
> CHECKSUM="0x1BFAF375"
BIN_FILE_VERSION="7.0.2600.2180"
> BIN_PRODUCT_VERSION="6.1.8638.2180"
PRODUCT_VERSION="7.0.2600.2180"
> FILE_DESCRIPTION="Windows NT CRT DLL"
COMPANY_NAME="Microsoft
=== message truncated ===>
_______________________________________________
Tinycc-devel mailing list
address@hidden

http://lists.nongnu.org/mailman/listinfo/tinycc-devel



__________________________________________________
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



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]