Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Win32 sample has error [BUG]
Re: C:\upp\mingw\bin\windres.exe [message #18162 is a reply to message #18158] Sat, 13 September 2008 19:51 Go to previous messageGo to previous message
amando1957 is currently offline  amando1957
Messages: 57
Registered: November 2007
Location: Wien/Vienna/Viden
Member
Hi to all,

Got it, Smile

The error was the WNDCLASSEX, must be changed like this:
WNDCLASS wcex;
// wcex.cbSize = sizeof(WNDCLASS); 
// ...........
// also without the Ex-extension:
if(RegisterClass(&wcex) == 0)
	return FALSE;


As I see it, using the WNDCLASSEX we should also take the CreateWindowEx() to be suiting. Well its true, the WNDCLASS is the more old stuff, but its working.

If one likes to see my Win32 template with a tiny animation, get it here
(just copy and replace the shipping one):
http://nopaste.info/84c8103865.html
(but care for the *.upp)

BTW, in the main-loop the PeekMessage() is the better idea, as you can do even threads with it (a simple counter 0...3 will do).

I'm not sure about the res stuff now, maybe we can add it without harm.

kind greets
Martin
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TheIDE local backup/file versions (for crashes, etc.)
Next Topic: Assist autocomplete cause program crash.
Goto Forum:
  


Current Time: Mon May 13 05:36:09 CEST 2024

Total time taken to generate the page: 0.02499 seconds