News:

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

Main Menu

Recent posts

#31
Assembly discussions / Re: Enumerating top level wind...
Last post by TimoVJL - December 05, 2025, 09:24:58 AM
I was after something like thisinclude     EnumWnd.inc
includelib user32.lib

STD_OUTPUT_HANDLE equ -11

GetStdHandle PROTO :DWORD
WriteFile PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD

.data

f1          db '%s',13,10,0

.data?

hStdOut dd ?
buffer      db 128 dup(?)
buffer2     db 128 dup(?)

.code

start:
    invoke  GetStdHandle, STD_OUTPUT_HANDLE
    mov     hStdOut, eax
    invoke  EnumWindows,ADDR EnumWndProc,0
    invoke  ExitProcess,0
   

EnumWndProc PROC hwnd:DWORD,lParam:DWORD
    invoke  GetWindowText,hwnd,ADDR buffer,64
    invoke  wsprintf,ADDR buffer2,ADDR f1,ADDR buffer
    cmp     eax,2
    je      @f
invoke  WriteFile, hStdOut, ADDR buffer2, eax, 0, 0
@@:
    mov     eax,1
    ret

EnumWndProc ENDP

END start
#32
Expert questions / Re: Controls 'extra data'
Last post by Robert - December 05, 2025, 03:14:17 AM
Hi John Z:

Thanks. Got it.
#33
User contributions / Re: Simple resizer Library
Last post by Robert - December 05, 2025, 03:10:50 AM
Hi John Z:

Thank you. The demo will be very helpful for those of us trying to understand how the library is implemented.

For me, the demo is absolutely essential. Without it, I couldn't even begin.
#34
Beginner questions / Re: Different results, Debug v...
Last post by PhilG57 - December 05, 2025, 12:35:52 AM
Thanks. No debug interface demo add-on installed.  It seems that setting breakpoints and poking around at a breakpoint is what is causing problems.  I'll keep playing with it.
#35
Tips & tricks / Re: Testing Console
Last post by TimoVJL - December 04, 2025, 10:35:47 PM
Windows 11 Home 25H2
#36
Tips & tricks / Re: Testing Console
Last post by Vortex - December 04, 2025, 10:06:32 PM
Hi Timo,

What is the exact version of your Windows 11 installation ? For example, is it Windows 11 2024 H2 ?
#37
Assembly discussions / Re: Enumerating top level wind...
Last post by Vortex - December 04, 2025, 09:34:55 PM
Hi Timo,

Here is the new version skipping the blank lines :
include     EnumWnd.inc

.data

f1          db '%s',13,10,0

.data?

buffer      db 128 dup(?)
buffer2     db 128 dup(?)

.code

start:

    invoke  EnumWindows,ADDR EnumWndProc,0
    invoke  ExitProcess,0
   

EnumWndProc PROC hwnd:DWORD,lParam:DWORD

    invoke  GetWindowText,hwnd,ADDR buffer,64
    invoke  wsprintf,ADDR buffer2,ADDR f1,ADDR buffer
    cmp     eax,2
    je      @f
    invoke  StdOut,ADDR buffer2
@@:
    mov     eax,1
    ret

EnumWndProc ENDP

END start
#38
Beginner questions / Re: Different results, Debug v...
Last post by TimoVJL - December 04, 2025, 04:17:55 PM
Have you test switch off Add-Ins, like Debugger interface demo ?
#39
Beginner questions / Re: Different results, Debug v...
Last post by John Z - December 04, 2025, 02:45:47 PM
Hi PhilG57,

Open ended question not sure how help can be provided w/o more specific details or examples, I'm no expert though -

One suggestion however is to see if you are using any compiler optimizations -

Project - Options- Compiler - Optimizations
if so turn off all optimizations in the Debug mode and see if it helps. 

Also does the project actually run outside of Pelles IDE environment?  Might be a clue.

You might create a new Debug mode by copying the Release mode to something like Debug_new then adjusting settings for debugging.  This would/should remove any question with the original Debug Mode settings.

John Z
#40
Expert questions / Re: Controls 'extra data'
Last post by John Z - December 04, 2025, 01:44:22 AM
Hi Robert,

https://forum.pellesc.de/index.php?topic=11682.msg41681#new

Most discussion under Work in Progress, but 'latest' code under User Contributions.

Demo program still under Work in Progress too though. Moved to User Contributions also

John Z