I have test it, doesn't workgnozal wrote:Update
- added /UNICODE compiler switch

Moderator: gnozal
I have test it, doesn't workgnozal wrote:Update
- added /UNICODE compiler switch
How do you test ?ts-soft wrote:I have test it, doesn't workgnozal wrote:Update
- added /UNICODE compiler switch
Code: Select all
PostThreadMessage_(CompilerThreadID, PB_MSG_ID, #PB_MSG_Start_Compilation, flags)
Code: Select all
;
; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
; Compiler flags
#PB_FLG_INLINEASM = 1
#PB_FLG_ENABLENT4 = 1 << 1 ; still ok ?
#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
;
; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
;
; ////////////// what are the compiler flags for /THREAD and /UNICODE ?
;
#PB_FLG_THREADSAFE = 1 << 13 seems ok, the EXE imports Tls functions (TlsAlloc ...)
#PB_FLG_UNICODE = 1 << X ?
;
; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Thank you very much for the information , Freakfreak wrote:I will do a more complete info later, but this should help for now:
You are correct about the Thread flag.
The EnableNT4 flag has no effect anymore, you have to use /SUBSYSTEM NT4 (see below)
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.
Code: Select all
pbcompiler main.pb /UNICODE /EXE "main.exe"
Hmm, it seems to work for ts-soft.Xombie wrote:I've tested the Unicode option (Thank you!) but it doesn't work yet.
Compile/Run should also work [F5/F6] ... seems to work for ts-softXombie wrote:Yeah. But let me amend that. If I do "Create Executable" then yes, it works just great. But if I hit the Compile/Run or Compile/Debug buttons, then no, it does not seem to notice the /Unicode option. Is that by design?