Team OS/2 Italia - Developer Assistant

------------------------------------------

INI Copier v1.00

Un esempio di programma PM Multi-Threaded

main.rc

/* OS/2 Warp Resource Script File */

#define INCL_WINSYS
#define INCL_WINSTDDLGS
#define INCL_WINSTDSPIN
#define INCL_NLS
#define INCL_SW

#include <os2.h>
#include <os2me.h>

#include "resource.h"

/* Icona associata all'applicazione e alla finestra principale */
ICON WIN_INICOPIER inicpy.ico

/* include la definizione della finestra principale */
RCINCLUDE "wndtemp.rc" 


/* Messaggi d'errore */
MESSAGETABLE LOADONCALL
BEGIN
	IDE_MSGQUEUE, "Cannot create message queue."
        IDE_MEMORY, "Not enough memory or allocation error."
        IDE_STRING, "Cannot find string resource."
        IDE_EXITLSTA, "Cannot add function to exit list."
        IDE_EXITLSTE, "Cannot process exit list."
        IDE_INITIALIZE, "Initialization impossible."
        IDE_WNDCLSREG, "Cannot register private window class."
        IDE_MAINWND, "Cannot create main window."
        IDE_INTERNAL, "Internal error."
        IDE_CLOSEXCP, "Close thread exception !"
        IDE_OPENXCP, "Open thread exception !"
        IDE_PRFCLOSE, "Error closing profile."
        IDE_CANTOPEN, "Unable to open profile."
END

/* Alcune stringe utili */
STRINGTABLE LOADONCALL
BEGIN
	IDS_WNDCLASS, "INICopierClass"
        IDS_APPNAME, "INI Copier v1.0"
	IDS_PMERRFMT, "Presentation Manager error ID: %X"
END

/* Risosrsa custom contenente il copyright (rimossa) */
/*
RESOURCE TYPE_COPYRIGHT IDR_COPYRIGHT LOADONCALL MOVEABLE DISCARDABLE 850 "copyrigh.res"
*/

/* end of Main.rc */

---------------------------------------------------

Torna alla nostra HomePage - Pagina a cura di: Giovanni Pagni
Last modified 27-10-97