You are here

wxWidgets

11 posts / 0 new
Last post
Jonathan
Offline
Last seen: 16 years 4 months ago
Joined: 2006-04-12 21:49
wxWidgets

So I'm trying to learn wxWidgets and it seems that Steve Lamerton picked it up pretty quickly so I thought this would be a good place to ask.

What books do you guys recommend, compilers/dev tools, and anything else that I'll most likely need (or find useful) to learn/use wxWidgets. If the cost of these could stay low (especially the compiler, if not free, that would be awesome.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 6 months ago
Developer
Joined: 2005-12-10 15:22
I'd get

the official book. I find it much easier to understand than the web based documentation and it comes with a free version of Dialog Blocks (google it), that really makes the whole process very easy.

Yours

Steve Lamerton

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Thanks

I was thinking the same thing.
I use CodeBlocks anyway, which I believe is the open-source equivalent to Dialog Blocks.
----
R McCue
PortaBlog Home and My Website
PortaBlog is now officially out of beta!

"If you're not part of the solution, you're part of the precipitate."

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 6 months ago
Developer
Joined: 2005-12-10 15:22
Yeh,

I think you're right. The books great any how.

Yours

Steve Lamerton

Jonathan
Offline
Last seen: 16 years 4 months ago
Joined: 2006-04-12 21:49
The Official Book

would be this right? http://www.amazon.com/gp/product/0131473816/104-0190369-8086361

Also, can I use the Portable wx-Dev Cpp that I downloaded from PortaSoft.org. And if so, how do I get that running, since I downloaded the .pdf of that official book from the wxWidgets site.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 6 months ago
Developer
Joined: 2005-12-10 15:22
Yep

thats the book. As for wx-DevCPP, check out their website. If you still can't figure it out then ask again later.

Yours

Steve Lamerton

Jonathan
Offline
Last seen: 16 years 4 months ago
Joined: 2006-04-12 21:49
Right now when I'm compiling

Right now when I'm compiling I'm getting there errors:

[Linker error] undefined reference to 'WinMain@16'
ld returned 1 exit status
[Build Error] [minimal.exe] Error 1

Not sure what's wrong. Any help would be appreciated.

Bruce Pascoe
Offline
Last seen: 12 years 2 months ago
Joined: 2006-01-15 16:14
...

If you're compiling a Windows GUI application (as opposed to a console app), you need to use a function called WinMain in place of the standard main. The prototype for WinMain is as follows:

int WINAPI WinMain (HINSTANCE,HINSTANCE,LPSTR,int);

Note that you also have to #include <windows.h>, but I'm figuring you already knew that (and wxWidgets probably automatically includes it, anyway).

-
Lauren She eats everything! It's like having a goat. A giant, two-Godzillaton goat.
maggie Hey, I resent that remark! I only weigh ONE Godzillaton!
~ Spectacles: Bruce's Story

Jonathan
Offline
Last seen: 16 years 4 months ago
Joined: 2006-04-12 21:49
Hmmm, I'm not sure. It

Hmmm, I'm not sure. It compiles every other apps so I think I'm okay.

Bruce Pascoe
Offline
Last seen: 12 years 2 months ago
Joined: 2006-01-15 16:14
...

Look through the code for those other apps. See if you can find anything in them that's missing from the one that won't compile and figure it out through process of elimination. It's called troubleshooting. Figuring out things the hard way might be a royal pain in the neck, but you learn more from it in the long run. Smile

-
Lauren She eats everything! It's like having a goat. A giant, two-Godzillaton goat.
maggie Hey, I resent that remark! I only weigh ONE Godzillaton!
~ Spectacles: Bruce's Story

Jonathan
Offline
Last seen: 16 years 4 months ago
Joined: 2006-04-12 21:49
Well, I rewrote the code a

Well, I rewrote the code a different way to do the same thing, so that's why I'm okay. Smile

Topic locked