News:

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

Main Menu

Recent posts

#61
Feature requests / Re: RichEdit 4.1
Last post by TimoVJL - November 17, 2025, 11:27:40 AM
If Rich-edit class "RichEdit50W" be option to Rich-edit 2.0 control, no new button needed.
#62
Feature requests / Re: RichEdit 4.1
Last post by John Z - November 16, 2025, 11:02:11 PM
Always good to maintain balance...

Maybe the TOOLTIPS_CLASS could balance the scales.

John Z
#63
Feature requests / Re: RichEdit 4.1
Last post by Pelle - November 16, 2025, 06:34:09 PM
I'm not sure how many new classic dialogs are created these days...
...but probably not a big thing, except I sure like to have an even number of buttons in the tool palette.

Also, unless officially deprecated -which I seriously doubt will happen- it's hard to just remove controls that have been there "forever"...

Possibly, but I will have to think about this...
#64
Chit-Chat / Re: WinDirStat
Last post by TimoVJL - November 15, 2025, 02:32:30 PM
That Everything works fine and was updated recently.
#65
Chit-Chat / Re: WinDirStat
Last post by Vortex - November 15, 2025, 08:49:09 AM
Another file search tool : Everything

QuoteLocate files and folders by name instantly.

https://www.voidtools.com/
#66
Beginner questions / Re: Lib HID / HID API
Last post by TimoVJL - November 15, 2025, 12:58:23 AM
Have to use __cdecl calling convention.

Also header modification may help
/* To be removed in v1.0 */
#ifndef HID_API_CALL
    #define HID_API_CALL /**< API call macro */
#endif
and define preprocessor symbol
HID_API_CALL=__cdeclor in source
#define HID_API_CALL __cdecl

HINT:
open import library with pope.exe or TLPEView to see import symbol
pFile    Data    Description    Value
000016FC    0008    Type    IMPORT_OBJECT_CODE
        Name Type    IMPORT_OBJECT_NAME_NO_PREFIX
        Symbol info:   
        Symbol Name    _hid_open
        Dll    hidapi.dll
        Name    hid_open
That _hid_open is cdecl symbol
#67
Beginner questions / Lib HID / HID API
Last post by RKSJBeck - November 14, 2025, 11:57:39 PM
I've been trying to use the latest HID API in both source files , I get a linker error, and a compiled DLL.  Obviously a good DLL would be the ticket, but I don't seem to able to get it to work either.  I'm really a noob when it comes to non-embedded code, so I know I'm missing something obvious.  I keep getting :
"POLINK: error: Unresolved external symbol '_hid_init@0' - referenced from 'C:\Users\James Beck\Documents\Pelles C Projects\LibHIDTest\output\main.obj'.
POLINK: fatal error: 1 unresolved external(s)."
Even though I have loaded the DLL and even put the "lib" file in the linker library list.
I have included the DLL and header files, can anyone get the thing to work?
#68
Add-ins / Re: PrjChkMS Add-In
Last post by TimoVJL - November 14, 2025, 04:44:19 PM
Thanks,
more informative.
#69
Add-ins / Re: PrjChkMS Add-In
Last post by John Z - November 14, 2025, 02:24:50 PM
Here is the fix - 
one required change in BuildCheck, one recommended notification addition
changes marked //ZZ or just copy and paste in this code replacing the procedure.
void BuildCheck(HWND hWndPrj)
{
//AddIn_WriteOutput(g_hwndMain, TEXT("Build error"));
HWND hWnd = GetDlgItem(g_hwndMain, 0x17B6); // 0x17B6 PC_Build
if (hWnd)
{
//AddIn_WriteOutput(g_hwndMain, TEXT("PC_Build"));
FINDTEXT ft;
ft.chrg.cpMin = 0;
ft.chrg.cpMax = -1;
//ZZ ft.lpstrText = TEXT("#error: \"No Target Architecture\"");
ft.lpstrText = TEXT("fatal error #1014"); //ZZ FIX
HWND hREdit = FindWindowEx(hWnd, NULL, TEXT("RichEdit20W"), NULL);
if (SendMessage(hREdit, EM_FINDTEXT, 1, (LPARAM)&ft) > 0) {
TCHAR szTmp[1024];
AddIn_WriteOutput(g_hwndMain, TEXT("fatal error #1014 -No Target Architecture"));
int nLen = AddIn_GetProjectSymbol(hWndPrj, TEXT("CCFLAGS"), szTmp, 2048);
lstrcpy(szTmp+nLen, TEXT(" -Ze"));
//AddIn_WriteOutput(g_hwndMain, szTmp);
AddIn_SetProjectSymbol(hWndPrj, TEXT("CCFLAGS"), szTmp);
AddIn_WriteOutput(g_hwndMain, TEXT("Fixed error, Build again -"));//ZZ recommend ADD
}
}
}

Tested PellesC V13 on Win 11 24H2 but should work for any other windows version using PellesC V13

John z
#70
Chit-Chat / Re: WinDirStat
Last post by John Z - November 14, 2025, 10:30:21 AM
Yes it is very handy. I have used the portable version for many years.
https://portableapps.com/apps/utilities/windirstat_portable

Also a good site, and as the name implies portableapps can be installed on a USB and run leaving no traces, or very minimal, on the system.

However the most used tool now is SwiftSearch - the speed this has searching a NTFS formatted drive is just astounding.  Open source too.
https://sourceforge.net/projects/swiftsearch/


John Z