On connait les paramètres pour PB3.94 ; j'ai demandé à Fred une actualisation pour PB4.00, mais rien pour l'instant :
http://www.purebasic.fr/english/viewtopic.php?t=19423
On communique avec PBCompiler (en standby) comme çà :
Code : Tout sélectionner
PostThreadMessage_(CompilerThreadID, PB_MSG_ID, #PB_MSG_XXXXXXXX, Flags)
avec les paramètres (connus et/ou déduits !) suivants :
Code : Tout sélectionner
#PB_MSG_Start_Compilation = 10156
#PB_MSG_Compiler_Ready = 10157
#PB_MSG_Quit = 10158
#PB_MSG_Syntax_Error = 10160
#PB_MSG_Compilation_Finished = 10161
#PB_MSG_Run_Program = 10162
#PB_MSG_Create_Executable = 10163
#PB_MSG_Is_PureCommand = 10164
#PB_MSG_Fatal_Error = 10165
#PB_MSG_Editor_Ready = 10166
#PB_MSG_Structures_Listing = 10167
#PB_MSG_Structure_Info = 10168
#PB_MSG_Assembler_Error = 10169
#PB_MSG_Linker_Error = 10170
#PB_MSG_Interfaces_Listing = 10171
#PB_MSG_Interface_Info = 10172
#PB_MSG_Resource_Error = 10173
#PB_MSG_Restart_Compiler = 10174
;
; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
;
#PB_FLG_INLINEASM = 1
;#PB_FLG_ENABLENT4 = 1 << 1
#PB_FLG_DEBUGGER = 1 << 2
#PB_FLG_CONSOLE = 1 << 3
#PB_FLG_DLL = 1 << 4
#PB_FLG_ENABLEXP = 1 << 5
#PB_FLG_CPU_MMX = 1 << 6
#PB_FLG_CPU_3DNOW = 1 << 7
#PB_FLG_CPU_SSE = 1 << 8
#PB_FLG_CPU_SSE2 = 1 << 9
#PB_FLG_CPU_DYNAMIC = 1 << 10
#PB_FLG_ENABLEONERROR = 1 << 11
#PB_FLG_THREADSAFE = 1 << 13
;
; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
; ***** PB4 news *****
; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
; Freak says :
; - The EnableNT4 flag has no effect anymore, you have to use /SUBSYSTEM NT4
; - For Unicode and Subsystem, there is no flag to change this while the compiler is running.
; (the compiler has to know the mode when it is started)
; - So you have to include the /UNICODE and /SUBSYSTEM parameters in the call
; that starts the compiler, and whenever the setting changes, you have to kill
; and restart the compiler with the needed flags set.
; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Voir les sources de jaPBe (
http://people.freenet.de/gnozal/jaPBeForPB400.7z ) pour en savoir plus, et plus particulièrement le fichier Compiler.pbi.