
Code: Select all
---------------------------
PureBasic - Linker error
---------------------------
error: �������� � �������.
Code: Select all
---------------------------
PureBasic - Linker error
---------------------------
error: Отказано в доступе.
Code: Select all
---------------------------
PureBasic - Linker error
---------------------------
error: �������� � �������.
Code: Select all
---------------------------
PureBasic - Linker error
---------------------------
error: Отказано в доступе.
Code: Select all
ErrorCode = 5
ErrorBuffer.s{256}
FormatMessage_(#FORMAT_MESSAGE_FROM_SYSTEM, 0, ErrorCode, 0, @ErrorBuffer, 256, 0)
Debug ErrorBuffer
Code: Select all
;#PB_Program_UTF8 in RunProgramm with #PB_Ascii in OpenConsole in child program for Charaters >=$80 PrintN returns Charaters $FD
son=RunProgram("D:\son.exe","","",#PB_Program_UTF8|#PB_Program_Open|#PB_Program_Read|#PB_Program_Write|#PB_Program_Error)
WriteProgramStringN(son,"Hallo Jürgen.",#PB_UTF8) ; #PB_UTF8 : Write the String as UTF8 (Standard)
If son
While ProgramRunning(son)
If AvailableProgramOutput(son)
s.s=ReadProgramString(son)
If Len(Output$)<1
Output$=Hex(Asc(Left(s,1)),#PB_Ascii)+" "+Hex(Asc(Mid(s,14,1)),#PB_Ascii)+" "+s+#CRLF$
Else
Output$ + s +#CRLF$
EndIf
EndIf
Wend
CloseProgram(son)
EndIf
MessageRequester("Father",Output$)
SetClipboardText(Output$)
; FD FD �h, here is J�rgen.
; Hallo J�rgen.
; Hallo Jürgen.
Code: Select all
; Son read ReadConsoleData from stdin and write PrintN, WriteConsoleData with umlauts to stdout
OpenConsole("-- Son",#PB_Ascii)
;OpenConsole("-- Son", #PB_UTF8 )
*p=AllocateMemory(100)
ReadConsoleData(*p,14)
s.s=PeekS(*p,-1,#PB_UTF8)
MessageRequester("Son",s)
PrintN("Äh, here is Jürgen.")
PrintN(s)
WriteConsoleData(*p,14)
CloseConsole()
CompilerIf #PB_Compiler_ExecutableFormat<>#PB_Compiler_Console
CompilerError "Please use ExecutableFormat Console."
CompilerEndIf
This problem was reported here tooUser_Russian wrote: In PB IDE 6.02 there is no problem and the text is displayed correctly.
Boddhi wrote: I get now the linker warning message "error: Le chemin d?acc?s sp?écifi? est introuvable" (Note: the ? are there to indicate a problem with unicode conversion).