![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2008
Posts: 2
Rep Power: 0
![]() |
Need help getting an API app started/working
I've been programming in C, VB6, PHP, etc for a long time, but I was always too lazy to learn how to write C apps with GUIs. Now I decided to try my hand at it, and I'm kind of stumped. I use Dev-C++ and this code is compiling fine, but it refuses to run. I get the error: "Could not create main dialog"
If I can get something going to start with, figuring out how to access each control shouldn't be very hard. I should hopefully be able to just Google for anything I get hung up on. ELFedit.c: c Syntax (Toggle Plain Text)
ELFedit.h: c Syntax (Toggle Plain Text)
Main.rc: c Syntax (Toggle Plain Text)
|
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Jun 2005
Posts: 852
Rep Power: 4
![]() |
Re: Need help getting an API app started/working
You should return TRUE in your callback function when you handle a message, this might be causing the problem, as Windows thinks you haven't handled the INITDIALOG message.
You can use GetLastError and FormatMessage after the CreateDialog call fails to get a more detailed error description, it might point you in the right direction. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jun 2008
Posts: 2
Rep Power: 0
![]() |
Re: Need help getting an API app started/working
I finally found a good tutorial to work from. http://www.winprog.org/tutorial/
Now I'd love it if someone could tell me how inline assemblers work. Is it possible to enable editing a single row in a listbox? Or is it some special grid/excel spreadsheet-like control? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My DataBase App | BstrucT | Show Off Your Open Source Projects | 13 | Jul 29th, 2008 9:46 AM |
| voice chat app | Brent | Show Off Your Open Source Projects | 9 | Feb 25th, 2008 6:20 PM |
| Help compiling app | titaniumdecoy | C++ | 2 | Jan 17th, 2008 11:06 PM |
| Vb6 App from Access97 to Access2002 | rednek | Visual Basic | 0 | Nov 10th, 2007 4:50 PM |
| console app with wxWidgets | rwm | C++ | 7 | Sep 4th, 2007 9:44 AM |