Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Robin

@Robin
About
Posts
7
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Is there a Visual Studio Compile Option
    R Robin

    You can set where the output executable/dll location in the "Link" tab in project options (Alt-F7) ..

    C / C++ / MFC

  • Copy constructor in Exception Class
    R Robin

    I have a exception class which I would want to be catch by ref only, so I declare the copy constructor private. However, VC++ 6 refuses to compile, giving me an error an error that the exception object cannot be thrown because of an inaccessible copy constructor. But upon checking, the copy constructor is only called when the exception object is caught by value eg catch(MyExceptionClass e) // only this needs the copy constructor {} catch(MyExceptionClass &e) // this doesn't need the copy constructor {} So has anyone been able to ensure the exception object is to be catch by ref only, not value??

    C / C++ / MFC

  • SEH problem in release mode
    R Robin

    Just to let u know.. There seems to be a problem with SEH raising exceptions in release mode (using VC++ 6 SP4) In release mode, a divide by zero does not raise any exceptions but it does in debug mode. However, if I uncomment the cout line after the divide (in release mode), an exception would be raised. If the program was compile with the /EHa option (asynchronous exception), then an exception is always raised. I didn't do an disassembly but it's probably due to the compiler not generating the divide code since it's not used. [source] #include < windows.h > #include < iostream > #include < stdexcept > using namespace std; void SEH_Translator( unsigned int u, EXCEPTION_POINTERS* pExp ) { throw exception("SEH exception"); } void main() { try { _set_se_translator(SEH_Translator); int x,y; x = 9999; y = 0; int z = x/y; // cause a divide by zero exception // cout << z << endl; // uncommenting this throws an exception in release mode } catch(...) { cout << "Exception caught" << endl; } } [/source]

    C / C++ / MFC

  • Exception: Async Vs Sync
    R Robin

    From the MSDN "Catching hardware exceptions is still possible with the synchronous model. However, some of the unwindable objects in the function where the exception occurs may not get unwound, if the compiler judges their lifetime tracking mechanics to be unnecessary for the synchronous model." The above statment make me feel uneasy about sync model, although it seems much better since it generates less code? Can anyone makes sense on what the above is trying to say plz?

    C / C++ / MFC

  • Help: GDI functions not working in OnInitDialog
    R Robin

    try looking at OnCtlCOlor Function AFter InitDialog it would call this function which does the painting of all dialog controls and the dialog RObin

    C / C++ / MFC

  • change the font of the Mainframe Title
    R Robin

    How do I change the font of the Application Title that is on the Mainframe window thanks robin

    C / C++ / MFC

  • My Vis Studio editor runs like a dog
    R Robin

    If its an MFC based project you could try deleting the .dsw(workspace ) file. Create a new blank workspace and insert the dsp file into this workspace. robin

    C / C++ / MFC
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups