Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 11th, 2006, 8:29 PM   #21
Zap
Guest
 
Posts: n/a
Quote:
As for the wxWidget's vs. Win32 API thing, it's important to note that the win32 API is not *just* for graphics alone. It is an extremely large library of apis and interfaces you can utilize. For general graphics programming it will probably take longer to develop than it would MFC or wxWidgets depending on the situation, however, what you use needs to be taken seriously. I've never used wxWidgets myself, so don't ask me how it stands up against, say, MFC, but if you're going to be writing something like a database frontend or activex control, then wxWidgets/MFC might be worth seriously considering over the raw API.
This is good. But I'm still worried about efficiency. How much overhead are we talking here I mean if it's not noticeable, I'll go for it. Atleast, when I need rapid development.
  Reply With Quote
Old Jul 11th, 2006, 8:35 PM   #22
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
When you say manual I hope you have already found this. They have a pretty good forum to. Along with a decent wiki.

About performance, I really can't give you hard numbers. I have only used wxWidgets on Mac and Linux. The speed was acceptable and like other have said the slow down usually comes in the processing your application does, not the actuall interface. Use wxWidgets because it lets you create cross platform native applications.

EDIT: The one thing you have to watch for is the drawing of custom widgets. Just make sure you do thing effciently and you should have any performance problems.

Last edited by Game_Ender; Jul 11th, 2006 at 8:46 PM.
Game_Ender is offline   Reply With Quote
Old Jul 11th, 2006, 8:50 PM   #23
Zap
Guest
 
Posts: n/a
Quote:
When you say manual I hope you have already found this. They have a pretty good forum to. Along with a decent wiki.
Yes, I've seen those. I'm looking for an offline help file... (for Windows)

As for performance, I need someone who has tried both the Windows Application Programming Interface, and wxWidgets. I need to see two Apps that do the same thing (in almost the same way, if possible) and compare them side by side. If the overhead is too great, I will only use them for cross platform. BTW, has anyone ever programmed for the Mac API?
  Reply With Quote
Old Jul 11th, 2006, 10:23 PM   #24
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
Let me lay it down for you Zan, wxWidgets will be slower, just accept that. Your code will be clearner and more understandable than Win32 api code and it will also be portable. That's the trade off you pay.

If there is something really GUI heavy you have to do in your app create a small Win32 and wxWidgets test program and profile them to compare preformance. It will probably also be a pretty good example of how things are different in wxWidgets than Win32.

When making an application speed should not be first consideration. Create a decent flexible design for you program, code it, profile it and tweak as necesary to get the needed performance. No need to spend so much time worrying about the wxWidgets API slowing you down when its that network bottle neck, or the hard drive access, or that heavy math computation you are doing in the background.
Game_Ender is offline   Reply With Quote
Old Jul 12th, 2006, 9:55 AM   #25
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Zap
and would not like to push the subject further, thank you.
Okay... Why bring it up in the first place, then?
Quote:
Originally Posted by Zap
I need to see two Apps that do the same thing (in almost the same way, if possible) and compare them side by side. If the overhead is too great, I will only use them for cross platform.
Since you already a little about the Win32 API, why not try and implement one of the simpler wxWidgets example programs using the Win32 API. Then you can contrast and compare the two approaches without needing to learn wxWidgets.
Arevos is offline   Reply With Quote
Old Jul 12th, 2006, 10:50 AM   #26
Zap
Guest
 
Posts: n/a
I may just do that
  Reply With Quote
Old Jul 12th, 2006, 1:51 PM   #27
Eoin
Hobbyist Programmer
 
Eoin's Avatar
 
Join Date: Jun 2006
Location: Ireland
Posts: 152
Rep Power: 3 Eoin is on a distinguished road
Zap, I share your feelings regarding code bloat and large overheads. Personally I found wxWidgets just too big, specificially regarding final executable size. I chose a third option; WTL. It has a clean OOP interface using templates to be size efficient, if your going to develop for Windows I highly recommend it .
__________________
Visit my website BinaryNotions.
Eoin is offline   Reply With Quote
Old Jul 12th, 2006, 3:03 PM   #28
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,005
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by Zap
I just read the wxWidgets wiki. It says that MFC has smaller exe size then it does. That's not good. MFC exes are bigger compared to exes made with Windows API... That just leaves one question, how much bigger are wxWidgets exes?
I think you'll find that many of these size increases are flat amounts, not proportional. Thus, if you are writing programs that were previously very small, the size increases may seem disproportionate, but if you are writing larger programs, they are not bad at all. If you're planning on delivering a suite of small applications to the same end user(s), you might want to see if dynamic linking of the libraries will provide a solution; this way, the size increase would not be multiplied unduly.

If you need cross-platform support, it will come at a cost. It might be financial, it might be in code size, it might be in run-time performance, or it might be in development time (likely more than one of these).
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Jul 12th, 2006, 3:59 PM   #29
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,005
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by Game_Ender
Bite the hand that feeds you...
Ahh, thanks; you just reminded me I haven't read least Friday's BOFH. Non-sequitur? Not so much; The Register's slogan is 'biting the hand that feeds IT'.

Quote:
Originally Posted by Zap
I understand. But it's not like I called Windows that one OS.
No, but by referring to the Win32 API as 'API', you effectively called it 'that one API'.
Quote:
Originally Posted by Zap
I see what your saying... It's funny you say 1996, because I actually used to have a computer from 1996. I got it for free and didn't have the money to get a new one. I got it for free from my mom, who got it from work. I did get a new computer quite awhile ago, though, so it's less of an issue now ( well, it's not new just quite alot bit better; I got it for free too)
I, too, use an outdated machine. As a student, I don't have an awful lot of free cash to spend on the latest and greatest. Look at the bright side, though: if your code works well on your machine, it should perform quite well on new hardware.
Quote:
Originally Posted by Zap
But I think it's important to say also that: Big Corporations are bullshit. I hate them. I know I have no senority to say this, but I am still going to. I cannot stand Corporate America which is one of the main reasons I will move out of America very soon. Corperations make a game out of peoples lives. They send millions on their ass for profit. BTW, if someone wants to argue that I am too young to make this point then consider this situation:

I grew up in a small town. When I was 5 a company bought out the land and made my family homeless. This is my reality.
I doubt they made your family homeless. Your family may have sold their home, perhaps under pressure from this company. They may have been renting or leasing, and the owner may have sold it. Either way, it is not as though the company's objective was to deprive your family of their home.

Even if it was, you're ascribing the attributes of that one company to all big companies. This is a variant of the ad hominem logical fallacy. To give an example, imagine I got mugged by a black man. If I then said "I hate black men, because they are muggers", you would probably call me a racist.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Jul 13th, 2006, 8:14 AM   #30
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 239
Rep Power: 3 Soulstorm is on a distinguished road
Quote:
Originally Posted by zap
BTW, has anyone ever programmed for the Mac API?
There's not just one API for the Macintosh OS.

And yes, I have. I have originally gotten involved with Carbon, but not much later, I moved to Cocoa API, and I recently built some useful GUI apps for people that asked me to. What do you want to know?
__________________
Project::Soulstorm (personal homepage)
Soulstorm is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:25 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC