![]() |
keine gültige 16Bit Ressource
Hi
Möchte mal fragen wie ihr bzw .. mit welchen Programm ihr eure ressource Dateien erstellt. Ich möchte eine Resource einbinden wie folgt.
Delphi-Quellcode:
und wie oben ersichtlich zur laufzeit einen Dialog aus der resource laden.
//Microsoft Developer Studio generated resource script.
// #include "resrc1.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "resource.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // Deutsch (Deutschland) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU) #ifdef _WIN32 LANGUAGE LANG_GERMAN, SUBLANG_GERMAN #pragma code_page(1252) #endif //_WIN32 ///////////////////////////////////////////////////////////////////////////// // // Icon // // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. FACE1 ICON DISCARDABLE "FACE1.ICO" FACE2 ICON DISCARDABLE "FACE2.ICO" FACE3 ICON DISCARDABLE "FACE3.ICO" FACE4 ICON DISCARDABLE "FACE4.ICO" FACE5 ICON DISCARDABLE "FACE5.ICO" ///////////////////////////////////////////////////////////////////////////// // // Dialog // 100 DIALOG DISCARDABLE 103, 94, 78, 160 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU CAPTION "Select Fish" FONT 8, "MS Sans Serif" BEGIN CONTROL "",101,"Button",BS_AUTORADIOBUTTON,13,19,12,10 CONTROL "",102,"Button",BS_AUTORADIOBUTTON,13,45,12,10 CONTROL "",103,"Button",BS_AUTORADIOBUTTON,13,70,12,10 CONTROL "",104,"Button",BS_AUTORADIOBUTTON,13,99,12,10 CONTROL "",105,"Button",BS_AUTORADIOBUTTON,13,132,12,10 ICON "FACE1",-1,33,12,20,20 ICON "FACE2",-1,33,38,20,20 ICON "FACE3",-1,33,64,20,20 ICON "FACE4",-1,33,93,20,20 ICON "FACE5",-1,33,125,20,20 END 101 DIALOG DISCARDABLE 85, 68, 174, 65 STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION CAPTION "About" FONT 8, "MS Sans Serif" BEGIN ICON "FACE4",-1,7,7,18,20 LTEXT "Water Gadget",-1,37,8,128,8 LTEXT "Copyright © 2008 BrewIdeas@EmilWeiss, Inc.",-1,37,19, 140,8 PUSHBUTTON "&OK",IDOK,62,43,58,14 END ///////////////////////////////////////////////////////////////////////////// // // Menu // POPUPMENU MENU DISCARDABLE BEGIN POPUP "&Tray" BEGIN MENUITEM "Exit Water Gadget", IDCANCEL MENUITEM SEPARATOR MENUITEM "&About", IDOK END END //.... bla bla Aber Delphi murrt rum das es keine 16Bit ressource ist. Was kann ich machen ? gruss Emil |
Re: keine gültige 16Bit Ressource
normal meckert D2006 wenn es keine 32Bit Ressource ist.. :gruebel:
wie bindest du den die ressource ein und wie erstellst sie? |
Re: keine gültige 16Bit Ressource
Zitat:
Und einbinden so {$R Tray.rc} Oder muss die mit *.res abgelegt werden ? EDIT: Also habs jetzt so {$R *.RES} {$R 'Tray.res'} Zitat:
|
Re: keine gültige 16Bit Ressource
Probier's doch mal so:
Delphi-Quellcode:
Uli.
{$R 'res\Blubb.res' 'res\Blubb.rc'}
|
Re: keine gültige 16Bit Ressource
Zitat:
Trotzdem danke. gruss Emil |
Re: keine gültige 16Bit Ressource
Sonst versuch es doch mal mit dem Ressourcencompiler (brcc32.exe).
|
Re: keine gültige 16Bit Ressource
Hallo Emil,
in diesem ![]() Dort wird vermutet das es an einer korrupten dfm Datei liegt. Vielleicht hilft Dir ja die Lösung welche ganz unten im Thread geposted wurde. Grüße Klaus |
Re: keine gültige 16Bit Ressource
Zitat:
ps: wie ist deine commandline beim brc32? |
Re: keine gültige 16Bit Ressource
Zitat:
gruss Emil |
Re: keine gültige 16Bit Ressource
ich meinte ja nicht die .DFM sondern die .RES welche du mit dem BRC32 aus der .RC erzeugst. denn die .RES bindest du ja dann in dein prog ein. oder :?:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:56 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz