News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#51
Graphics programming / Re: Building Graphics Librarie...
Last post by TimoVJL - June 11, 2025, 01:26:02 PM
If GLEW comes with project files for msvc, try to import it with Import Microsoft Visual Studio Solution...
#52
Graphics programming / Re: Building Graphics Librarie...
Last post by John Z - June 11, 2025, 10:18:44 AM
Hi kyga116,

No cmake but there is a pomake to use.

Possible GLEW, GLFW help for you here:
https://forum.pellesc.de/index.php?topic=6861.msg25864#msg25864

and maybe here:
https://forum.pellesc.de/index.php?topic=5402.msg20740#msg20740

There are also threads, some fairly recently, on batch file building using Pelle C

John Z
#53
Graphics programming / Building Graphics Libraries?
Last post by kyga116 - June 10, 2025, 09:57:09 PM
What is the preferred method of building GLFW and GLEW on Pelles C?

From my limited research, it sounds like cmake is not compatible with Pelles, and I'd rather stay away from any GNU tools if possible (for personal reasons). On this forum I've seen installers being made for these libraries, how is this being accomplished?
#54
Chit-Chat / Re: Pelle Orinius
Last post by kyga116 - June 10, 2025, 04:54:07 PM
I'm guessing the release of v13.00 means all is OK?
#55
User contributions / Re: Hint_SA (Standalone)
Last post by Marco - June 09, 2025, 11:05:32 AM
Very interesting, especially when you need to quickly retrieve information about a particular API.

Thanks John.
#56
User contributions / Hint_SA (Standalone)
Last post by John Z - June 08, 2025, 12:45:52 PM
Seems like the Hint add-in would be also useful to more people if it was a standalone program,
then it could be used with MASM, C, or anything else needing some win API information.

So....here is Hint_SA, basically the same functionality as the Hint Add-in but with some differences to accommodate the standalone requirement.

Works well installed as a Pelles C IDE 'tool' too.

Three files are needed two of the three are included in the attached Just_Hint_SA.7z.  Win32.chm needs to be added to the Hint_SA program directory, it is too big to include here.

The Hint_SA_project.zip is the entire project, but without win32.chm as well.  It uses SQLite3 so if it does not compile you'll need to get those files.  In the project zip the db3 is 7z'ed so it would fit.  Un-7z it before use.

Hopefully useful,

John Z

Update: removed old sources and exe, get the newer sources and program below.
#57
Assembly discussions / Re: Assigning a string to a re...
Last post by Vortex - June 04, 2025, 12:23:59 PM
Macros split to handle ANSI and UNICODE strings:

sas MACRO var,quoted_text:VARARG

LOCAL txtname

.data

    txtname db quoted_text,0
    align 4

.code

    mov var,OFFSET txtname

ENDM


sasw MACRO var,quoted_text:VARARG

LOCAL txtname

.data

    txtname dw quoted_text,0
    align 4

.code

    mov var,OFFSET txtname

ENDM
#58
Assembly discussions / Assigning a string to a regist...
Last post by Vortex - June 02, 2025, 08:16:30 PM
Original macro from the Masm32 package adapted to Poasm :

sas MACRO var,quoted_text:VARARG
LOCAL txtname

IFNDEF __UNICODE__

    .data
        txtname db quoted_text,0
    align 4
    .code
   
ELSE

    .data
    txtname dw quoted_text,0
    align 4
    .code

ENDIF

    mov var,OFFSET txtname

ENDM

Example :

include    sasMacro.inc

.code

start:

    sas    edx,"This is a test.", " Another test."

    invoke  StdOut,edx
    invoke  ExitProcess,0

END start
#59
Work in progress / Re: win32-doc md files
Last post by TimoVJL - June 02, 2025, 07:57:31 PM
In Pelles C bin folder is SQLite3.dll
To create x64 SQLite3.lib
SET PATH=C:\Program Files\PellesC\bin
polib "%PATH%\SQLite3.dll" -out:SQLite3.lib
EDIT: processing .yml file can be used for external help system to open pages from MS site.
#60
Work in progress / Re: win32-doc md files
Last post by John Z - June 02, 2025, 04:21:40 PM
Here is the newest mdfiles program and MD_Files_3.db3 to use with it.

This version outputs the win32-doc.zip path for every API NAME outputted when using TimoVJL's extract utility.  Note that due to GitHub documentation inconsistencies some API NAMES are not really API NAMES, but these are still handled in this db3.  For example entering /-o shows a list to pick for example /-out yielding a filename and path as
Win32-docs\desktop-src\Midl\-out.md 

This program just shows how to get the filename and path from the db3.  It does not extract the .md file to be displayed in a suitable .md file viewer or using webview.

The .db3 is compressed with zip inside of the project zip and needs to be uncompressed before using.  The db3 file of course can be used by anyone, for anything . . . . as can this program.

John Z