Search found 947 matches
- Fri Apr 12, 2024 7:32 am
- Forum: Windows
- Topic: unable to load c2.dll when importing a static library
- Replies: 9
- Views: 374
- Fri Apr 12, 2024 7:30 am
- Forum: Coding Questions
- Topic: ReceiveHTTP doesnt work on Windows 7. Any solution?
- Replies: 10
- Views: 437
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
- Wed Apr 10, 2024 3:34 am
- Forum: Windows
- Topic: unable to load c2.dll when importing a static library
- Replies: 9
- Views: 374
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 ...
- Tue Apr 09, 2024 10:33 pm
- Forum: Windows
- Topic: unable to load c2.dll when importing a static library
- Replies: 9
- Views: 374
Re: unable to load c2.dll when importing a static library
You have to tell the linker where to find those symbols like this...
or include them in the static lib in VS
Code: Select all
Import "Ole32.lib" : EndImport
Import "Winhttp.lib" : EndImport
...
- Tue Apr 09, 2024 8:10 pm
- Forum: Windows
- Topic: unable to load c2.dll when importing a static library
- Replies: 9
- Views: 374
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
- Tue Apr 09, 2024 7:46 pm
- Forum: Windows
- Topic: Detect if a window has curved corners?
- Replies: 6
- Views: 252
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...
- Wed Jan 10, 2024 7:13 pm
- Forum: Feature Requests and Wishlists
- Topic: PureBasic Librarian
- Replies: 24
- Views: 2220
Re: PureBasic Librarian
You could try Pb2StaticLib... Maybe it fits your needs.
- Mon Nov 13, 2023 5:06 pm
- Forum: Announcement
- Topic: Blog post !
- Replies: 325
- Views: 92810
- Mon Nov 13, 2023 4:33 pm
- Forum: Announcement
- Topic: Blog post !
- Replies: 325
- Views: 92810
Re: Blog post !
Wow, great news! Will we be able to switch between static and dynamic linking of the UCRT?
- 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: 992
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...
- 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: 992
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 ...
- 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: 992
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 = ...
- Thu Sep 21, 2023 6:46 pm
- Forum: Coding Questions
- Topic: Integrate TinyC libtcc.lib into PureBasic
- Replies: 16
- Views: 1096
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...
- Thu Sep 21, 2023 12:39 pm
- Forum: Coding Questions
- Topic: Integrate TinyC libtcc.lib into PureBasic
- Replies: 16
- Views: 1096
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...
- Wed Jul 19, 2023 3:50 am
- Forum: Coding Questions
- Topic: port PB GUI app to Android as .apk SaveFileRequester()
- Replies: 27
- Views: 2062
Re: SaveFileRequester()
No problem . Also, you might want to take a look at STARGÅTE's TabBarGadget...