1.5 Kako Alaska Xbase++ 1.9 formira resurse
Resurs script fajl za formiranje RESURS.RES
Example: fajl RESURS.ARC
#include "RESURS.CH"
ICON
ICO_USB1
= "ICON\USB1.ICO"
ICO_USB2
= "ICON\USB2.ICO"
ICO_USB3
= "ICON\USB3.ICO"
BITMAP
BMP_USB1
= "ICON\USB1.BMP"
BMP_USB2
= "ICON\USB2.BMP"
BMP_USB3
= "ICON\USB3.BMP"
USERDEF PNG
1001 = FILE
"ICON\USB1.PNG"
2001 = FILE
"ICON\USB2.PNG"
3001 = FILE
"ICON\USB3.PNG"
USERDEF GIF
1002 = FILE
"ICON\USB1.GIF"
2002 = FILE
"ICON\USB2.GIF"
3002 = FILE
"ICON\USB3.GIF"
USERDEF JPG
1003 = FILE
"ICON\USB1.JPG"
2003 = FILE
"ICON\USB2.JPG"
3003 = FILE
"ICON\USB3.JPG"
#define MANIFEST_RESID 1
#define MANIFEST
24
#ifdef __ARC__
USERDEF
MANIFEST
MANIFEST_RESID
= FILE "WINDOWSXP.MANIFEST"
#endif
|
Heder script fajl za formiranje RESURS.RES
Example: fajl RESURS.CH
// ICON
#define ICO_USB1 1
#define ICO_USB2 2
#define ICO_USB3 3
// BITMAP
#define BMP_USB1 101
#define BMP_USB2 102
#define BMP_USB3 103
#define
MENUITEM_SEPARATOR {NIL,NIL,XBPMENUBAR_MIS_SEPARATOR, 0}
|
Formiranje fajla RESURS.RES za ugradnju u RESURSEXE.EXE ili RESURSDLL.DLL aplikaciju
Example: fajl RESURS.BAT --->
RESURS.RES
@ECHO OFF
ARC.EXE
RESURS.ARC -v
PAUSE
|
Project script fajl za formiranje RESURSEXE.EXE
Example: fajl RESURSEXE.XPJ
[PROJECT]
COMPILE = xpp
COMPILE_FLAGS = /q
DEBUG = no
GUI = yes
LINKER = alink
LINK_FLAGS =
RC_COMPILE = arc
RC_FLAGS = /v
OBJ_DIR = RESUSRSEXE________OBJ
RESURSEXE.XPJ
[RESURSEXE.XPJ]
RESURSEXE.EXE
[RESURSEXE.EXE]
RESURS.ARC
RESURS.CH
RESURS.RES
DCLIPX.LIB // eXpress++
MAIN.PRG
PROGRAMS.PRG
|
Formiranje fajla RESURSEXE.EXE
Example: fajl RESURSEXE.BAT --->
RESURSEXE.EXE
@ECHO OFF
PBUILD.EXE
RESURSEXE.XPJ > RESURSEXE________.TXT
Pause
|
Project script fajl za formiranje RESURSDLL.DLL
Example: fajl RESURSDLL.XPJ
[PROJECT]
COMPILE = xpp
COMPILE_FLAGS = /q
DEBUG = no
GUI = yes
LINKER = alink
LINK_FLAGS =
RC_COMPILE = arc
RC_FLAGS = /v
OBJ_DIR = RESUSRSDLL________OBJ
RESURSDLL.XPJ
[RESURSDLL.XPJ]
RESURSDLL.DLL
[RESURSDLL.DLL]
COMPILE_FLAGS
= -q -dll:dynamic
RESURS.ARC
RESURS.CH
RESURS.RES
|
Formiranje fajla RESURSDLL.DLL
Example: fajl RESURSDLL.BAT --->
RESURSDLL.DLL
@ECHO OFF
PBUILD.EXE
RESURSDLL.XPJ > RESURSDLL________.TXT
Pause
|
Nema komentara:
Objavi komentar