Click here to Skip to main content
15,908,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: to enter numeric value into an edit box Pin
Cedric Moonen7-Jul-03 22:16
Cedric Moonen7-Jul-03 22:16 
GeneralRe: to enter numeric value into an edit box Pin
Emre Zorlu7-Jul-03 22:25
Emre Zorlu7-Jul-03 22:25 
GeneralRe: to enter numeric value into an edit box Pin
Cedric Moonen7-Jul-03 22:40
Cedric Moonen7-Jul-03 22:40 
GeneralRe: to enter numeric value into an edit box Pin
Emre Zorlu7-Jul-03 22:44
Emre Zorlu7-Jul-03 22:44 
GeneralC++ compiler Pin
BoudewijnEctor7-Jul-03 21:33
BoudewijnEctor7-Jul-03 21:33 
GeneralRe: C++ compiler Pin
Rage7-Jul-03 22:42
professionalRage7-Jul-03 22:42 
GeneralRe: C++ compiler Pin
BoudewijnEctor7-Jul-03 23:05
BoudewijnEctor7-Jul-03 23:05 
GeneralRe: C++ compiler Pin
Mike Dimmick7-Jul-03 23:06
Mike Dimmick7-Jul-03 23:06 
Assuming you haven't enabled the /clr switch (Use Managed Extensions in the General category of your project's Properties), the compiler should be producing native code. If you're not sure, run dumpbin /clrheader exe-name from the VS.NET Command Prompt. If it's a native executable, you'll get output like:
Microsoft (R) COFF/PE Dumper Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file Work\Assorted Tests\RunTimeChecks\Debug\RunTimeChecks.exe

File Type: EXECUTABLE IMAGE

  Summary

        4000 .data
        1000 .idata
        3000 .rdata
       13000 .text
       10000 .textbss
whereas if it does require the Framework, it will output something like:
Microsoft (R) COFF/PE Dumper Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file c:\winnt\Microsoft.NET\Framework\v1.1.4322\CasPol.exe

File Type: EXECUTABLE IMAGE

  clr Header:

              48 cb
            2.00 runtime version
            EB60 [    6ED4] RVA [size] of MetaData Directory
               9 flags
         6000010 entry point token
            96A4 [    5464] RVA [size] of Resources Directory
            2050 [      80] RVA [size] of StrongNameSignature Directory
               0 [       0] RVA [size] of CodeManagerTable Directory
               0 [       0] RVA [size] of VTableFixups Directory
               0 [       0] RVA [size] of ExportAddressTableJumps Directory


  Summary

        2000 .reloc
        2000 .rsrc
       14000 .text
Typically, release build optimisations can now allow a release build to perform up to around 4x faster than your debug build. Add in the fact that you have extra code in your debug build (you are using assert, aren't you?) and this can be 6 or 8 times faster.

However, if your program is really slow, compiler optimisations aren't going to cut it. You need to look at your algorithms: how you're storing and manipulating data. Perhaps you should swap a linked list for an array, or vice versa - if you're using a lot of data, and inserting into the middle of a structure frequently, maybe you should be using a linked list. Conversely, if you don't have a lot of data - perhaps a small lookup table - you should use an array and search linearly rather than use a map.

--
Mike Dimmick
GeneralRe: C++ compiler Pin
BoudewijnEctor8-Jul-03 5:03
BoudewijnEctor8-Jul-03 5:03 
GeneralRe: C++ compiler Pin
Mike Dimmick8-Jul-03 5:19
Mike Dimmick8-Jul-03 5:19 
GeneralRe: C++ compiler Pin
BoudewijnEctor8-Jul-03 21:37
BoudewijnEctor8-Jul-03 21:37 
GeneralRe: C++ compiler Pin
Mike Dimmick8-Jul-03 22:49
Mike Dimmick8-Jul-03 22:49 
GeneralRe: C++ compiler Pin
BoudewijnEctor11-Jul-03 1:59
BoudewijnEctor11-Jul-03 1:59 
GeneralRe: C++ compiler Pin
Mike Dimmick11-Jul-03 2:32
Mike Dimmick11-Jul-03 2:32 
GeneralDisable Right Click Context menu!!! Pin
xxhimanshu7-Jul-03 19:58
xxhimanshu7-Jul-03 19:58 
GeneralRe: Disable Right Click Context menu!!! Pin
FlyingDancer7-Jul-03 20:36
FlyingDancer7-Jul-03 20:36 
GeneralRe: Doesnt work!!! Pin
xxhimanshu7-Jul-03 21:23
xxhimanshu7-Jul-03 21:23 
GeneralRe: Disable Right Click Context menu!!! Pin
Rage7-Jul-03 22:49
professionalRage7-Jul-03 22:49 
GeneralRe: Disable Right Click Context menu!!! Pin
xxhimanshu7-Jul-03 23:06
xxhimanshu7-Jul-03 23:06 
GeneralRe: Disable Right Click Context menu!!! Pin
Ryan Binns7-Jul-03 22:53
Ryan Binns7-Jul-03 22:53 
GeneralRe: Disable Right Click Context menu!!! Pin
xxhimanshu7-Jul-03 23:08
xxhimanshu7-Jul-03 23:08 
GeneralRe: Disable Right Click Context menu!!! Pin
Ryan Binns7-Jul-03 23:16
Ryan Binns7-Jul-03 23:16 
GeneralRe: Disable Right Click Context menu!!! Pin
Rage8-Jul-03 0:44
professionalRage8-Jul-03 0:44 
GeneralRe: Disable Right Click Context menu!!! Pin
Ryan Binns8-Jul-03 0:47
Ryan Binns8-Jul-03 0:47 
GeneralRe: Disable Right Click Context menu!!! Pin
Iain Clarke, Warrior Programmer7-Jul-03 23:48
Iain Clarke, Warrior Programmer7-Jul-03 23:48 

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.