Search found 947 matches

by chi
Fri Apr 12, 2024 7:30 am
Forum: Coding Questions
Topic: ReceiveHTTP doesnt work on Windows 7. Any solution?
Replies: 6
Views: 348

Re: ReceiveHTTP doesnt work on Windows 7. Any solution?

Fails here on Win7 too... But when I replace the first line with "*Buffer = ReceiveHTTPMemory("https://vaughn.live/browse/misc")" it works. So I guess the problem is with your server ;)
by chi
Wed Apr 10, 2024 3:34 am
Forum: Windows
Topic: unable to load c2.dll when importing a static library
Replies: 9
Views: 351

Re: unable to load c2.dll when importing a static library

I managed to get git_libgit2_init() running with... CompilerIf #PB_Compiler_IsMainFile Import "ole32.lib" : EndImport Import "winhttp.lib" : EndImport Import "crypt32.lib" : EndImport Import "wbemuuid.lib" : EndImport Import "rpcrt4.lib" : EndImport ...
by chi
Tue Apr 09, 2024 10:33 pm
Forum: Windows
Topic: unable to load c2.dll when importing a static library
Replies: 9
Views: 351

Re: unable to load c2.dll when importing a static library

You have to tell the linker where to find those symbols like this...

Code: Select all

Import "Ole32.lib" : EndImport
Import "Winhttp.lib" : EndImport
...
or include them in the static lib in VS ;)
by chi
Tue Apr 09, 2024 8:10 pm
Forum: Windows
Topic: unable to load c2.dll when importing a static library
Replies: 9
Views: 351

Re: unable to load c2.dll when importing a static library

@Quin: In VisualStudio you have to set "Whole Program Optimization" to No, or remove /GL in cmake to make static libs work in PB
by chi
Tue Apr 09, 2024 7:46 pm
Forum: Windows
Topic: Detect if a window has curved corners?
Replies: 6
Views: 240

Re: Detect if a window has curved corners?

I had the same problem and cobbled together this demo... Procedure _DwmSetWindowAttribute(hWnd, dwAttrib, *pvAttrib, cbAttrib) : EndProcedure Prototype _DwmSetWindowAttribute(hWnd, dwAttrib, *pvAttrib, cbAttrib) Procedure _DwmGetWindowAttribute(hWnd, dwAttrib, *pvAttrib, cbAttrib) : EndProcedure Pro...
by chi
Wed Jan 10, 2024 7:13 pm
Forum: Feature Requests and Wishlists
Topic: PureBasic Librarian
Replies: 20
Views: 1970

Re: PureBasic Librarian

You could try Pb2StaticLib... Maybe it fits your needs.
by chi
Mon Nov 13, 2023 5:06 pm
Forum: Announcement
Topic: Blog post !
Replies: 325
Views: 92467

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: 92467

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: 990

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: 990

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: 990

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: 1093

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: 1093

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: 2054

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...