News:

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

Main Menu

Recent posts

#11
Beginner questions / Re: Different results, Debug v...
Last post by John Z - Yesterday at 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
#12
Expert questions / Re: Controls 'extra data'
Last post by John Z - Yesterday at 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
#13
Tips & tricks / Re: Testing Console
Last post by TimoVJL - Yesterday at 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.
#14
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 ?
#15
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
#16
Beginner questions / Different results, Debug vs. R...
Last post by PhilG57 - December 03, 2025, 11:28:28 PM
Why would a program run to conclusion when called via Pelles Project->Execute xxx, but crashes repeatedly when called via Project->Debug xxx?  This is with the same executable which was compiled under Debug.

Also, if during a Debug session (before it blows up), I can utilize the debugger to show 'Auto', 'Watch",  'Locals', and 'Registers', but when I click on 'Globals', the program and the Pelles environment immediately crashes.

Admittedly this is a large multi-project workspace effort, with lots of individual modules which are all old and ugly. But the difference in behavior between Debug and Release is perplexing and the crashing trying to check out Globals is downright frustrating.

Thanks in advance.
#17
Assembly discussions / Re: Enumerating top level wind...
Last post by Vortex - December 03, 2025, 09:23:22 PM
Hi Timo,

Thanks, I will take care of it.
#18
Expert questions / Re: Controls 'extra data'
Last post by John Z - December 03, 2025, 02:14:31 PM
Yes, that is where if figured out the extra magic.  It looks like it is only incorporated into the subclassed control to me.  However I'm not well versed in that so I'm not positive it actually exists without subclassing and therefore is not available to use without subclassing.

I've never needed to subclass a control so I'm quite the novice.

John Z
#19
Expert questions / Re: Controls 'extra data'
Last post by TimoVJL - December 03, 2025, 01:40:32 PM
Just check Pelle's resizer.
#20
Expert questions / Controls 'extra data'
Last post by John Z - December 03, 2025, 01:37:34 PM
I 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