Search found 943 matches

by chi
Wed Jan 10, 2024 7:13 pm
Forum: Feature Requests and Wishlists
Topic: PureBasic Librarian
Replies: 20
Views: 1938

Re: PureBasic Librarian

You could try Pb2StaticLib... Maybe it fits your needs.
by chi
Mon Dec 25, 2023 8:13 am
Forum: Bugs - C backend
Topic: [Done] PB6.10b1 Console + ASLR = not a valid Win32 application
Replies: 4
Views: 1263

Re: PB6.10b1 Console + ASLR = not a valid Win32 application

I've found the problem... It's not the linker or anything related, it's strip.exe :mrgreen:
Temp. fix: rename to strip_.exe
by chi
Sat Dec 23, 2023 5:26 pm
Forum: Bugs - C backend
Topic: [Done] PB6.10b1 Console + ASLR = not a valid Win32 application
Replies: 4
Views: 1263

[Done] PB6.10b1 Console + ASLR = not a valid Win32 application

Activating ASLR on a console application created with the C backend results in an invalid Win32 application... CompilerIf #PB_Compiler_Backend <> #PB_Backend_C CompilerError "Set the backend to C!" CompilerElseIf #PB_Compiler_ExecutableFormat <> #PB_Compiler_Console CompilerError "Set...
by chi
Mon Nov 13, 2023 5:06 pm
Forum: Announcement
Topic: Blog post !
Replies: 325
Views: 92106

Re: Blog post !

Fred wrote: Mon Nov 13, 2023 4:45 pm I guess it should be easy
Oh nice and thanks for all your hard work! Much appreciated 8)
by chi
Mon Nov 13, 2023 4:33 pm
Forum: Announcement
Topic: Blog post !
Replies: 325
Views: 92106

Re: Blog post !

Wow, great news! Will we be able to switch between static and dynamic linking of the UCRT?
by chi
Wed Oct 25, 2023 9:47 pm
Forum: Windows
Topic: One button with a hand cursor and the other a classic button with an arrow
Replies: 9
Views: 976

Re: One button with a hand cursor and the other a classic button with an arrow

That's the dirty part ;)... You can do it only at the end of the initialization of your "normal" gadgets. After you change the class, all subsequently created gadgets will have the new hand cursor. If you want the TAB key to work properly, use SetWindowPos_(GadgetID(...), #HWND_TOP or Gadg...
by chi
Wed Oct 25, 2023 4:11 am
Forum: Windows
Topic: One button with a hand cursor and the other a classic button with an arrow
Replies: 9
Views: 976

Re: One button with a hand cursor and the other a classic button with an arrow

Can this theory, I received from you, also be extended to ImageGadget, especially if 3 states are used? Sure, just replace the last ImageGadget with following code... Define StaticWC.WNDCLASS GetClassInfo_(0, "Static", StaticWC) StaticWC\hCursor = LoadCursor_(0, #IDC_HAND) StaticWC\style ...
by chi
Tue Oct 24, 2023 2:22 pm
Forum: Windows
Topic: One button with a hand cursor and the other a classic button with an arrow
Replies: 9
Views: 976

Re: One button with a hand cursor and the other a classic button with an arrow

quick & dirty: EnableExplicit If OpenWindow(0, 0, 0, 500, 170, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ButtonGadget(2, 252, 50, 230, 28, "Button without hand cursor", 0) Define Button.WNDCLASS GetClassInfo_(0, "Button", Button) Button\hCursor = ...
by chi
Thu Sep 21, 2023 6:46 pm
Forum: Coding Questions
Topic: Integrate TinyC libtcc.lib into PureBasic
Replies: 16
Views: 1067

Re: Integrate TinyC libtcc.lib into PureBasic

Instead of creating my own libtcc.lib, I used the .lib that comes with Tiny C There is no .lib in tcc-0.9.27-win64-bin.zip ;) Hi, I've got a question just out of curiosity: Since version 6.0 PureBasic has a C backend, which AFAIK also can be used directly. What is the advantage of using another C c...
by chi
Thu Sep 21, 2023 12:39 pm
Forum: Coding Questions
Topic: Integrate TinyC libtcc.lib into PureBasic
Replies: 16
Views: 1067

Re: Integrate TinyC libtcc.lib into PureBasic

Great work, infratec! You could also create an import lib from the def file and use it like this... ; polib.exe /MACHINE:x64 /DEF:libtcc.def /OUT:libtcc.lib CompilerIf #PB_Compiler_ExecutableFormat <> #PB_Compiler_Console CompilerError "You need to set the executable format to console in compil...
by chi
Wed Jul 19, 2023 3:50 am
Forum: Coding Questions
Topic: port PB GUI app to Android as .apk SaveFileRequester()
Replies: 27
Views: 2003

Re: SaveFileRequester()

Ktim07 wrote: Wed Jul 19, 2023 2:55 am
chi wrote: Tue Jul 18, 2023 11:26 pm Ha, how you like that?
O my Go :mrgreen: :mrgreen: :mrgreen: :mrgreen: d,this is the basic IDea that I envisioned, thanks ALOT
No problem :wink:. Also, you might want to take a look at STARGÅTE's TabBarGadget...
by chi
Wed Jul 19, 2023 3:41 am
Forum: Coding Questions
Topic: Replace Text in IDE as IDE Tool
Replies: 12
Views: 626

Re: Replace Text in IDE as IDE Tool

With LazyCoder I use...

Code: Select all

SendMessage_(IDE_HwndScintilla, #SCI_SETSELECTIONSTART, SCI_StartPos, 0)
SendMessage_(IDE_HwndScintilla, #SCI_SETSELECTIONEND, SCI_EndPos, 0)
SendMessage_(IDE_HwndScintilla, #EM_REPLACESEL, 0, utf8Buffer)
by chi
Tue Jul 18, 2023 11:26 pm
Forum: Coding Questions
Topic: port PB GUI app to Android as .apk SaveFileRequester()
Replies: 27
Views: 2003

Re: SaveFileRequester()

Ha, how you like that? EnableExplicit Enumeration Window #Window_0 EndEnumeration Enumeration #MainMenu EndEnumeration Define iEvent.i Enumeration Gadgets #Panel_1 #CanvCont_1 #CanvCont_2 EndEnumeration ;- Declare Declare Open_Window_0(X = 0, Y = 0, Width = 800, Height = 600) Procedure Open_Window_0...
by chi
Wed Jun 28, 2023 11:33 am
Forum: Coding Questions
Topic: I'm trying to create a client network dll in purebasic for c++, but I get an error sending messages to the server.
Replies: 8
Views: 548

Re: I'm trying to create a client network dll in purebasic for c++, but I get an error sending messages to the server.

on x86 it works fine... but when I compile using Pb64 and switch to platform x64 in visual studio c++, using the same code as you did, the above error still occurs... screenshot > https://prnt.sc/IOLTr7KqFHw1 is something missing from windows or dependencies? Maybe something is messed up in the pro...
by chi
Tue Jun 27, 2023 11:08 am
Forum: Coding Questions
Topic: I'm trying to create a client network dll in purebasic for c++, but I get an error sending messages to the server.
Replies: 8
Views: 548

Re: I'm trying to create a client network dll in purebasic for c++, but I get an error sending messages to the server.

Seems to work fine here with following changes: pbdll.pb ProcedureCDLL Connect( server.i, port.i ) ProcedureReturn OpenNetworkConnection(PeekS(server,-1,#PB_Ascii),port) EndProcedure ProcedureCDLL SendMsgString( id.i, msg.i ) MessageRequester("dll", "Send Message?") SendNetworkSt...