Click here to Skip to main content
16,007,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralICM 2.0 Question re: Bitmap.exe util Pin
Douglas Troy25-Jun-02 5:19
Douglas Troy25-Jun-02 5:19 
GeneralRe: ICM 2.0 Question re: Bitmap.exe util Pin
Anders Molin25-Jun-02 7:24
professionalAnders Molin25-Jun-02 7:24 
GeneralRe: ICM 2.0 Question re: Bitmap.exe util Pin
Douglas Troy25-Jun-02 9:22
Douglas Troy25-Jun-02 9:22 
GeneralMessaging via CMC Pin
Senkwe Chanda25-Jun-02 4:15
Senkwe Chanda25-Jun-02 4:15 
GeneralRe: Messaging via CMC Pin
25-Jun-02 6:55
suss25-Jun-02 6:55 
GeneralRe: Messaging via CMC Pin
Senkwe Chanda25-Jun-02 23:00
Senkwe Chanda25-Jun-02 23:00 
GeneralPlease enlighten me!!! Pin
Tommy Svensson25-Jun-02 1:49
Tommy Svensson25-Jun-02 1:49 
GeneralRe: Please enlighten me!!! Pin
Jason Henderson25-Jun-02 4:18
Jason Henderson25-Jun-02 4:18 
Tommy Svensson wrote:
Q1a: Why does a dialog based MFC app take appr. 1200KB of working memory?!
Q1b: I created an exact copy of this MFC dialog app with Delphi with the exact same functionality and it only aquires 150 KB of RAM... How come Delphi (Pascal) outperforms the living sh*t out of a regular C++ app?


A1a: MFC is a class library which resides in DLLs. Windows will load these DLLs when you run your app.
A1b: I don't know jack about Delphi, but its probably built on top of the WinAPI. MFC apps add a layer in between you and the API. As far as out performing the living sh*t out of a regular c++ app, I would have to see the performance stats to believe it. Try writing a windows app with the API in c++ and see which one wins.

Tommy Svensson wrote:
Q2: Within my MFC app I wish to allocate an array...
BUT, when doing exactly the same thing (not quite, i statically declare a 1000000 array) in Delphi the memory increases only by a few hundred kilobytes.

I don't believe this for a second. Besides, a class is different than an array so I wouldn't expect it to be the same. I just doubt that Delphi only allocates a few hundred kb.

Tommy Svensson wrote:
Feels weird to develop with C++ when Delphi seems to rock the world!

Someone kick this guy in the crotch for me.

Tommy Svensson wrote:
Q3: If I have a lengthy process where I do something like this...

A3: If you want to report the progress, you're going to have to sacrifice a little speed. GDI is not the fastest thing in the world so updating text or a progress bar using GDI is going to suck some speed out. Threading will help, but it will still be slower than having no updates at all.

Tommy Svensson wrote:
Thx for any advice,

This is a c++/mfc forum, I suggest you take the "Delphi kicks MFC a$$" attitude elsewhere.


Jason Henderson
quasi-homepage
articles
"Like it or not, I'm right!"


GeneralRe: Please enlighten me!!! Pin
Tommy Svensson25-Jun-02 12:41
Tommy Svensson25-Jun-02 12:41 
GeneralRe: Please enlighten me!!! Pin
Rage25-Jun-02 5:34
professionalRage25-Jun-02 5:34 
GeneralRe: Please enlighten me!!! Pin
Tommy Svensson25-Jun-02 12:46
Tommy Svensson25-Jun-02 12:46 
GeneralRe: Please enlighten me!!! Pin
Roger Allen25-Jun-02 5:39
Roger Allen25-Jun-02 5:39 
GeneralRe: Please enlighten me!!! Pin
Douglas Troy25-Jun-02 9:46
Douglas Troy25-Jun-02 9:46 
GeneralRe: Please enlighten me!!! Pin
Tommy Svensson25-Jun-02 12:52
Tommy Svensson25-Jun-02 12:52 
GeneralRe: Please enlighten me!!! Pin
Christian Graus25-Jun-02 12:48
protectorChristian Graus25-Jun-02 12:48 
GeneralChanging the color of scroll bars Pin
GUEJO25-Jun-02 1:42
GUEJO25-Jun-02 1:42 
GeneralRe: Changing the color of scroll bars Pin
aldeba25-Jun-02 5:30
aldeba25-Jun-02 5:30 
GeneralRe: Changing the color of scroll bars Pin
GUEJO26-Jun-02 0:18
GUEJO26-Jun-02 0:18 
GeneralTrouble with EnumChildWindows Pin
Still learning how to code25-Jun-02 1:41
Still learning how to code25-Jun-02 1:41 
GeneralRe: Trouble with EnumChildWindows Pin
Joaquín M López Muñoz25-Jun-02 10:19
Joaquín M López Muñoz25-Jun-02 10:19 
GeneralRe: Trouble with EnumChildWindows Pin
Still learning how to code25-Jun-02 22:04
Still learning how to code25-Jun-02 22:04 
QuestionHow to use TB_ADDSTRING & TB_INSERTBUTTON to add button more than one on toolbar Pin
24-Jun-02 22:24
suss24-Jun-02 22:24 
Generalsplash screens Pin
SilentWarrior24-Jun-02 21:38
SilentWarrior24-Jun-02 21:38 
GeneralRe: splash screens Pin
Rage25-Jun-02 5:24
professionalRage25-Jun-02 5:24 
GeneralRe: splash screens Pin
aldeba25-Jun-02 5:26
aldeba25-Jun-02 5:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.