Ich würde es aber eher umgekehrt machen! (nur dann funktioniert es auch, wie gedacht).
Code:
ImportC ""
CompilerIf #PB_Compiler_Unicode
CompilerIf #PB_Compiler_Processor = #PB_Processor_x86
printf(format.s, a1=0, a2=0, a3=0, a4=0, a5=0, a6=0, a7=0, a8=0) As "_wprintf"
CompilerElse
printf(format.s, a1=0, a2=0, a3=0, a4=0, a5=0, a6=0, a7=0, a8=0) As "wprintf"
CompilerEndIf
CompilerElse
printf(format.s, a1=0, a2=0, a3=0, a4=0, a5=0, a6=0, a7=0, a8=0)
CompilerEndIf
EndImport
OpenConsole()
myVariable.s = "value"
printf ("My Text: %s", @myVariable)
Input()
Sobald ich das As Keyword benutze, muß die Original-Schreibweise eingehalten werden, also führender Unterstrich bei x86.
Sobald ich das As Keyword nicht nutze, kann ich die Original-Schreibweise nutzen, ohne Unterstrich.
Gruß
Thomas