Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / it has begun!

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. it has begun!
#4856
Posted by: 2004-07-20 04:33:16
Well, my wx experience has begun!

First the good stuff: i have successfully compiled the lib. (-:
then the bad stuff: could not get it working with Dev-Cpp. )-:

After two days of try-catch play, i've decided to give up on that, and installed MinGW Studio, which (suprisingly) works fine..

One thing though, is disturbing my enthusiasm: dialog editing. I'm very very much used to VISUAL dialog editing, not coding the dialog.

does anyone have _step-by-step_ instructions on how to use dialog resources (and other too), because i'm having much trouble with 'em. i have XRCed, but it's not visual(?), DialogBlocks and some other (can't remember the names). And I guess I could compile contrib tools which came with wx2.4.2, but I would need to know how to use them.. (-:

in the end thanx to upCASE for his help and great site (that thing is going under my links section;-))

greets,

t1
Message2. Re: it has begun!
#4860
Posted by: upCASE 2004-07-20 15:14:36
Hi!
"First the good stuff: i have successfully compiled the lib. (-:
then the bad stuff: could not get it working with Dev-Cpp. )-:"
Weird... Normally people complain about the other way round :)
Anyway: If you want to give Dev-C++ another try (IMHO the better free IDE on Windows) I'd be happy to help you. I could mail you a copy of the wxWidgets template I use with Dev-C++ and which hasd never failed me :)
Problem is that Dev-C++ supports outdated versions of wxWidgets, while mingw Studio supports the recent stable one.

RC: I had plans on writing a series of tutorials (maybe on a weekly or bi-weekly basis) and that would definitly be a topic. Maybe when I have some time I'll start off with it at last.
The problem is not only that there's no "standard" visual editor, but that wxWidgets depends on "sizers", which are not that easy to understand and handle in the beginning. Read the docs on that topic and play around with the examples. If you have some Java experience the idea will be quite familiar to you.
As a visual editor I allways recommend wxGlade (http://wxglade.sourceforge.net). It's beta, but yet stable enough and has support for C++ code, Python code and XRC formats.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message3. Re: it has begun!
#4862
Posted by: funlovin 2004-07-20 16:42:07
Hi,

i have one more possibility for you...the C++BuilderX form Borland.
It's also a free (for personal and ecucational use) IDE for windows and it has a lot of fine features, but unfortunately no code completion at the moment.
If you install the preview (only for windows at the moment) the wx framework is installed (2.5.1 or 2.5.2 i'm not sure) and you can start programming your one wx apps. The included RAD Designer is not usable and i would follow the tip from upCASE and use wxGlade.

funlovin

Message4. Re: it has begun!
#4897
Posted by: 2004-07-24 08:30:58
hi everyone,

sorry for my rather late reply:-)

i've started playing with wxGlade, and it seems kewl, but i have trouble with loading .XRC files in code (i.e. i have NO IDEA how to do that, and i can't find a decent sample).

i'd like to try Dev-Cpp because MinGW Studio doesn't display wx code completition (just win32 api), and i really miss that. (although generaly looking MinGW Studio is more VC6.0 styled, and i'm used to VC6.0) BTW, is there an equivalent wx class of MFC's CArchive ?? serialization?

i've d/l-ed devpak from the link on upCASE's site, so i'll try that one of these days.. it will still take a while to get used to wx, although it's quite like MFC, it's also quite different at the same time. i'll get over it:-)

thanx!
Message5. Re: it has begun!
#4901
Posted by: upCASE 2004-07-26 15:08:58
Hi!
XRC: To "load" XRC you'll need the contrib stuff (dl the contrib devpack).

No, there is no equivalent to CArchive, I'm sorry. Serialization is one of these features (like full XML support) that I'd really like to see in wx...
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message6. Re: it has begun!
#4935
Posted by: 2004-08-04 04:01:47
Oh this is terrible..I'm really sorry for my late reply, I've mentioned before that I have no net @ home.. sorry..

Off-topic: I've noticed that my compiled executables are quite large, to say the least. Debug version of the basic hello world app is 16 Megs large and release "only" 2 Megs.. Is this normal or is just me? (this was with MinGW compiler)

Now.. I actually do have the contrib devpak, but I wonder how to do it from code, because samples are like..too much to start with for someone who has just laid his eyes upon wxWidgets..

Too bad for the serialization..I guess we can always code our own class :-)

thx again!
Message7. Re: it has begun!
#4939
Posted by: upCASE 2004-08-04 14:22:29
Hi!
Let wxGlade do the job for you. It supports C++ output.

About the size: Yes, this is normal. For final release apps:
1. Strip the executable using the -s switch
2. Leave out exceptions and RTTI if you don't need it (never versions of wxWidgets have support for it, but the older ones use an internal system).
3. Use an exe packer like UPX.

This is not just a problem of mingw, but VC too (I guess any compiler). Check out the wxWidgets Wiki, there where some posts on this topic.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message8. Re: it has begun!
#4952
Posted by: 2004-08-06 04:04:14
oh, so 'C++ output' means THAT :)

I've checked out the UPX homepage, seems kewl enough, I will surely try that. Thanx for other tips too.

Do you have any more good resources on the net, and I'm thinking on good tutorials and things like that. I've read a few of those, and they're kewl, but I'm still knowledge-hungry :-)

dst
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2022-12-9  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0