News:

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

Main Menu

Recent posts

#81
General discussions / Re: Older version that run on ...
Last post by TimoVJL - March 30, 2025, 11:52:52 PM
There is 32-bit version 8.0, that might work.

https://forum.pellesc.de/index.php?board=26.0

It is also last version, that support CodeView debug info.
#82
General discussions / Older version that run on Wind...
Last post by kyga116 - March 30, 2025, 10:33:13 PM
This was probably asked somewhere already, but is there a repository of the old versions that would work on WinXP?

There's a link on the downloads page to "johnfindlay.plus.com" but it appears to be broken... I'm also not even sure that would have older versions.
#83
Assembly discussions / Re: Displaying an image with G...
Last post by TimoVJL - March 29, 2025, 08:39:50 PM
GdiPlus have some functions for displaying image:
GpGraphics *g;
GdipCreateFromHDC(hDC, &g);
GdipDrawImage(g, img, 0.0, 0.0);
//GdipDrawImageRect(g, img, 0.0, 0.0, 100.0, 100.0);
GdipDeleteGraphics(g);
Naturally painting a bitmap might be faster.
#84
Assembly discussions / Re: Displaying an image with G...
Last post by Vortex - March 29, 2025, 08:30:49 PM
Hi Timo,

About creating a picture without a bitmap, could you provide some detailş?
#85
Feature requests / Re: Function parameter hints
Last post by John Z - March 29, 2025, 03:46:41 PM
Another thing this add-in
https://forum.pellesc.de/index.php?topic=11547.0
can answer so give it a look.

John Z
#86
Feature requests / Re: Autocomplete
Last post by John Z - March 29, 2025, 03:44:33 PM
Hi CandCPlusPlus,

See if https://forum.pellesc.de/index.php?topic=11547.0 can be useful for your needs.
I couldn't really fix the Pelles hover-over duration but this add-in provides other methods for
getting and/or pasting the complete function prototype. It includes over 11 thousand entries.

It also makes it very easy to search for a function even if you only remember it starts with something like 'Doc'.

John Z
#87
Add-ins / Hint Add-IN
Last post by John Z - March 29, 2025, 03:33:49 PM
Here is a new Add-in  8)  It is called Hint.  The purpose is to provide information at your finger tips for Win32 API functions.  The add-in consists of hint.dll and a sql database.
Copy hint.dll to the AddIns64 directory and copy the sql db to the \Bin\Help directory.  If you have WIN32.CHM then also copy that to the \Bin\Help directory. Enable the Add-IN "PellesC WIN32 API Function Hint" if it not already enabled.

Once enabled a new menu item will appear on the RIGHT click source context menu near the bottom "Win32 API Function Hint".
For a simple example in a source document type in AbortDoc then hover the mouse over it and right click, select the menu item, you will see details about AbortDoc.

HellOfMice did a lot of testing and provided valuable input suggestions, including the one about adding a WEB button.  His help really made the Add-in better and caught some bugs I missed too.  So even though I wrote it all, he gets credit too. But if any bugs still exist - that's all on me....

In the download is a text file describing all of the different features of the add-in.  This is a bit more complicated than the average add-in but I think it adds a lot of value.  I hope you do too.  The images below show the add-in windows and features it can provide.  May see complicated at first but after a use or two it is really simple to use.

Tested on Win 11 23H2, Win 11 24H2, Win 7 Pro

Cheers,and Happy Computing,
John Z

See posting below for the latest version which incorporates an Expert mode to bypass the main window.
#88
Announcements / Re: Upgraded Forum to SMF 2.1....
Last post by iwrbc - March 26, 2025, 11:01:52 AM
Thanks, I like the new look.
#89
Assembly discussions / Re: Displaying an image with G...
Last post by TimoVJL - March 25, 2025, 08:14:11 PM
GdiPlusFlat is capable to paint picture without bitmap.
Perhaps in a your further example is coming ?
#90
Assembly discussions / Re: Displaying an image with G...
Last post by Vortex - March 25, 2025, 06:48:31 PM
Using GDI+ functions to retrieve the height and width of an image :

   .if uMsg == WM_CREATE

        mov     rax,OFFSET StartupInfo
        mov     GdiplusStartupInput.GdiplusVersion[rax],1

        invoke  GdiplusStartup,ADDR token,ADDR StartupInfo,0
        invoke  UnicodeStr,ADDR filename,ADDR UnicodeFileName

        invoke  GdipCreateBitmapFromFile,ADDR UnicodeFileName,\
                ADDR BmpImage

        invoke  GdipGetImageWidth,BmpImage,ADDR ImgWidth+rip
        invoke  GdipGetImageHeight,BmpImage,ADDR ImgHeight+rip

        invoke  GdipCreateHBITMAPFromBitmap,BmpImage,\
                ADDR hBitmap+rip,0

        invoke  GdipDisposeImage,BmpImage
       
        invoke  GdiplusShutdown,token

    .elseif uMsg == WM_PAINT

        invoke  BeginPaint,_hWnd,ADDR ps
        mov     hdc,rax

        invoke  CreateCompatibleDC,rax
        mov     hMemDC,rax

        invoke  SelectObject,rax,hBitmap+rip

        invoke  BitBlt,hdc,0,0,\
                ImgWidth+rip,ImgHeight+rip,\
                hMemDC,0,0,SRCCOPY
           
        invoke  DeleteDC,hMemDC
        invoke  EndPaint,_hWnd,ADDR ps