News:

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

Main Menu

Recent posts

#51
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.
#52
Tips & tricks / Re: Testing Console
Last post by TimoVJL - December 04, 2025, 10:35:47 PM
Windows 11 Home 25H2
#53
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 ?
#54
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
#55
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 ?
#56
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
#57
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
#58
Tips & tricks / Re: Testing Console
Last post by TimoVJL - December 04, 2025, 01:15:02 AM
so GetConsoleTitle() don't work in wine cmd.exe
also GetWindowLongPtr(hConWnd, GWLP_WNDPROC); fails.

And yes, a stupid test was made for Windows 7 and Windows 1x cmd.exe.
#59
Expert questions / Re: Controls 'extra data'
Last post by Robert - December 03, 2025, 11:54:06 PM
Quote from: John Z on December 03, 2025, 01:37:34 PMI see the need to add a few more options to my resizing effort.  Before adding a second configuration array or methods, I would like to know if the 'extra data' inserted by the IDE dialog designer is accessible without subclassing, or is it only incorporated in a subclassed control?

To add more flexibility to the resizer Lib is the extra data available without subclassing?

Example:
CONTROL "VR-HN", 4002, "Button", WS_TABSTOP, 28, 28, 50, 14 { 0xC0DE, 0x0001, 0x0008 } ->{ Magic# , version, code  }

I know none == 00, Resize == 10, Move == 11 (binary)
and Vertical is in upper bits XX-- while horizontal is in lower bits --XX

so 0x0008 means vertical is resize, horizonal is none i.e. 1000 (binary)
  0x000F means vertical is move, and horizontal is move i.e. 1111

Is there a way to access this when it exists? Resize 'none, none' means there is no magic.  :)

John Z

Hi John:

I apologize if I missed it, but where is the source code for your Lib ?
#60
Tips & tricks / Re: Testing Console
Last post by Robert - December 03, 2025, 11:49:01 PM
Compiled on Linux Wine with Pelles C.

Executed. Too stupid.

> wine ./StupidTest.exe
hConWnd 000000000002004Eh
CTitle:
WTitle:
hWnd 000000000001004Ah
WndProc 0000000000000000h
WndProc 0000000000000000h