Search found 91 matches

by PeDe
Fri Apr 19, 2024 6:56 am
Forum: Coding Questions
Topic: c vs asm - MoveFileEx()/GetLastError()
Replies: 4
Views: 192

Re: c vs asm - MoveFileEx()/GetLastError()

OK -- why does movefilex fail? GetLastError() is called immediately after movefilex() The result of 'MoveFileEx_()' is output by 'Debug'. If an API function is called by 'Debug', the last error code for 'GetLastError_()' can be deleted. The empty string "" for 'MoveFileEx()' is not a null...
by PeDe
Thu Apr 18, 2024 1:38 pm
Forum: Coding Questions
Topic: c vs asm - MoveFileEx()/GetLastError()
Replies: 4
Views: 192

Re: c vs asm - MoveFileEx()/GetLastError()

You must call GetLastError_() immediately after an error, and you must not use 'Debug ...'. e.g.: ;Debug MoveFileEx_( tempFilename, "", #MOVEFILE_DELAY_UNTIL_REBOOT ) ;Debug GetLastError_(); C=0, asm=3 (system cannot find path specified) If Not MoveFileEx_( tempFilename, "", #MOV...
by PeDe
Wed Apr 17, 2024 7:02 pm
Forum: Bugs - Windows
Topic: [PB 6.03 x64] DLL negative return value difference Asm and C
Replies: 6
Views: 598

Re: [PB 6.03 x64] DLL negative return value difference Asm and C

same error with PB v6.10 x64 & v6.11b1 x64 (Windows 7 x64)

ASM = 4294967291
C = -5

Peter
by PeDe
Tue Apr 09, 2024 5:58 am
Forum: Bugs - Windows
Topic: [Done] [6.10LTS WIN x86 ASM / C] SvgVectorOutput() causes IMA
Replies: 10
Views: 298

Re: [6.10LTS WIN x86 ASM / C] SvgVectorOutput() causes IMA

The error does not occur if the VC2022 linker is present in the 'vc' directory.

Peter
by PeDe
Sat Dec 16, 2023 6:56 am
Forum: Announcement
Topic: PureBasic 6.04 LTS is out !
Replies: 78
Views: 12236

Re: PureBasic 6.04 LTS is out !

But integrated debugger doesnt works with project in the Windoz x64 version and C backend compiler. Have you also selected the correct C compiler in the settings? I can reproduce the problem if I use a C compiler from PB v6.03 in PB v6.04. The debugger also opens in a separate window, but disappear...
by PeDe
Fri Dec 15, 2023 2:29 pm
Forum: Coding Questions
Topic: Get wrong results ntohs_() with PB 6.04 x86 Win10 x64
Replies: 12
Views: 675

Re: Get wrong results with > 5.73

I am using Windows 7 x64 here.
With PB v6.04 x64 and x86, downloaded today, everything is correct with every IDE and compiler, x86/x64 ASM/C.

Peter
by PeDe
Wed Dec 06, 2023 5:09 pm
Forum: Announcement
Topic: PureBasic 6.04 LTS is out !
Replies: 78
Views: 12236

Re: PureBasic 6.04 beta 2 is out !

Thanks Fred!

My compiled program and the IDE are working again with Windows XP.

Peter
by PeDe
Tue Dec 05, 2023 7:18 am
Forum: Announcement
Topic: PureBasic 6.04 LTS is out !
Replies: 78
Views: 12236

Re: PureBasic 6.04 beta 1 is out !

I still compile with PB v6.03 for Windows XP and Windows 2000, and have no problem with it. With PB v6.04 beta 1 I get the error message with Windows XP (Translated): "The application failed to initialize properly (0xC0000034)" Even removing the manifest does not work, the same error alway...
by PeDe
Thu Nov 16, 2023 6:13 pm
Forum: Coding Questions
Topic: Making an OxygenBasic compiler with PureBasic
Replies: 11
Views: 1175

Re: Making an OxygenBasic compiler with PureBasic

I was just playing around, and with these changes the code and result is output. Peter CompilerIf #PB_Compiler_IsMainFile EnableExplicit CompilerEndIf Prototype.i Prototype_o2_abst(*isrc) Prototype.i Prototype_o2_asmo(*isrc) Prototype.i Prototype_o2_basic(src.p-bstr) Prototype.i Prototype_o2_buf(p.i...
by PeDe
Thu Oct 19, 2023 7:40 am
Forum: Bugs - IDE
Topic: PB 6.03 - not work marking of matching keywords
Replies: 11
Views: 1104

Re: PB 6.03 - not work marking of matching keywords

I have read that in Windows 11 the font 'Courier' is mapped to 'Courier New'. According to the list, there is no 'Courier' font either:
https://learn.microsoft.com/en-us/typog ... _font_list

Peter
by PeDe
Thu Oct 19, 2023 6:24 am
Forum: Bugs - IDE
Topic: PB 6.03 - not work marking of matching keywords
Replies: 11
Views: 1104

Re: PB 6.03 - not work marking of matching keywords

There is the font 'Courier' (Bitmap) and 'Courier New' (TrueType). With the Bitmap version there is no underlining. This is also the case with Window 7.

Peter
by PeDe
Sat Oct 14, 2023 7:33 pm
Forum: Bugs - Windows
Topic: [PB 6.03 x64] DLL negative return value difference Asm and C
Replies: 6
Views: 598

[PB 6.03 x64] DLL negative return value difference Asm and C

PB v6.03 x64 und Windows 7 x64 I have an error here with the return value from a DLL call with negative value. The libusb-1.0.dll and the libusb_setlocale function are used. In case of an error, negative values are returned as long, e.g. -5 for LIBUSB_ERROR_NOT_FOUND. I assign the value to an intege...
by PeDe
Fri Oct 06, 2023 3:16 pm
Forum: Bugs - IDE
Topic: Background color for word being searched
Replies: 14
Views: 1171

Re: Background color for word being searched

With the code from yuki and this additional code, you can restore the colors of the selection for now: Backspace key, delete indentation parts? https://www.purebasic.fr/english/viewtopic.php?p=608726#p608726 Define iColor.i iColor = SendMessage_(scintillaHandle, #SCI_GETELEMENTCOLOUR, #SC_ELEMENT_SE...
by PeDe
Wed Sep 20, 2023 8:52 am
Forum: Bugs - IDE
Topic: Background color for word being searched
Replies: 14
Views: 1171

Re: Background color for word being searched

Just for your information, you can set the background color in the Scintilla gadget with e.g. the following values: ScintillaSendMessage(iScintillaNumber, #SCI_SETELEMENTCOLOUR, #SC_ELEMENT_SELECTION_INACTIVE_BACK, #RED) There are #SC_ELEMENT_SELECTION_INACTIVE_TEXT and #SC_ELEMENT_SELECTION_INACTIV...
by PeDe
Sun Sep 03, 2023 7:32 am
Forum: Coding Questions
Topic: gscintilla giving error "[ERROR] Overflow in a dynamically allocated memory block.
Replies: 3
Views: 467

Re: gscintilla giving error "[ERROR] Overflow in a dynamically allocated memory block.

Scintilla can return zero at line 301. For example, if the cursor is in the last line without text. Line 309 then passes a pointer to an empty memory location. This should trigger the error. So you should check the return of line 301 for zero, and not assume that there is always a length greater tha...