|
|
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 |
|
amando1957
Messages: 57 Registered: November 2007 Location: Wien/Vienna/Viden
|
Member |
|
|
Hi to all,
Got it,
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
|
|
|
Re: C:\upp\mingw\bin\windres.exe [message #18186 is a reply to message #18162] |
Mon, 15 September 2008 08:24 |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |
|
|
Greetings, Martin.
This is rather strange situation as my projects compiled by MinGW without any source code change. I think it is not U++ source issue, but something with Win32 libraries or something with MinGW. Anyway this is critical bug and I don`t remember anyone complained about that since I started using TheIDE about a year ago.
So my proposal is re-checking everything (MingGW, resource executables versions, platform libs, U++ version, etc) instead of changing Core code.
Yes, there is a possibility of U++ internal sources error but this way MinGW compilation had to failed for all the others. But it is OK.
I understand it doesn`t help a much but at least I try to make your search a little bit narrowed.
I hope Mirek will reply this situation as an U++ author. He surely can give you more informative answer than me.
[Updated on: Mon, 15 September 2008 08:27] Report message to a moderator
|
|
|
Re: C:\upp\mingw\bin\windres.exe [message #18187 is a reply to message #18186] |
Mon, 15 September 2008 10:32 |
|
amando1957
Messages: 57 Registered: November 2007 Location: Wien/Vienna/Viden
|
Member |
|
|
Hi Pavel,
Quote: | instead of changing Core code
|
I did not change anything in the Core, just the main.cpp and the *.upp (removed the res).
Quote: | So my proposal is re-checking everything (MingGW, resource executables versions, platform libs, U++ version, etc)
|
Here I feel a little overcharged. If it runs at other machines, one can easy guess that. Maybe the MS-Platform-SDK is an issue again.
On the other hand: the samples with the CtrlCore are all running fluently, while its true they also depend of the correct installation, since they are just wrapping.
Maybe in the CtrlCore anything is fixed I do not have at the Win32 sample.
Now it runs anyway, so I will rather go ahead with my projects. Thanks a lot for your effort!
have a nice day
Martin
|
|
|
Re: C:\upp\mingw\bin\windres.exe [message #18188 is a reply to message #18186] |
Mon, 15 September 2008 10:34 |
bytefield
Messages: 210 Registered: December 2007
|
Experienced Member |
|
|
Mindtraveller, i believe you miss the point. There is no modifications to Upp libs in Martin code... just in his WINAPI code. Some days ago I've also tried to compile the Win32 sample(from templates) which come with TheIde and the compilation was ok, but no window was showed. I will try to see if there are some problems with mingw libs and then come here and post investigation results.
L.E: seems I've replied in the same time with Martin...
Sorry for duplication of words...
cdabbd745f1234c2751ee1f932d1dd75
[Updated on: Mon, 15 September 2008 10:36] Report message to a moderator
|
|
|
Re: C:\upp\mingw\bin\windres.exe [message #18189 is a reply to message #18188] |
Mon, 15 September 2008 11:06 |
bytefield
Messages: 210 Registered: December 2007
|
Experienced Member |
|
|
There is a problem with code generated by TheIde for Win32 template... I've tried other examples of WINAPI code and all works with mingw or msc.
cdabbd745f1234c2751ee1f932d1dd75
|
|
|
|
|
Goto Forum:
Current Time: Fri Mar 29 00:32:00 CET 2024
Total time taken to generate the page: 0.02269 seconds
|
|
|