CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Alex F

Page 1 of 5 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    223

    Re: Memory Leak in Constructor?

    _CrtDumpMemoryLeaks prints every C++ allocation which is not released yet. The name is misleading: its impossible to say, whether unrelaesed memory is leak or not:



    char*p = new char[100];...
  2. Replies
    8
    Views
    328

    Re: Visual C++ Studio 2008, Intellisense????

    From my experience, solution with 20-30 C++ projects is almost unusable in VS2010 because of super-slow Intellisence. Disabling Intellisence removes also Class View, effectively converting Visual...
  3. Replies
    8
    Views
    328

    Re: Visual C++ Studio 2008, Intellisense????

    C++ Intellisence sucks in all Visual Studio versions. The only way I know is to buy Visual Assist...
  4. Re: Deploy - Setup problem!! Installed program wont run!

    C++/CLI WinForms application has the following runtime requirements: .NET Framework and VC++ Runtime. They should be added as prerequisites to the installation package.
    What exactly is "the app...
  5. Re: Deploy - Setup problem!! Installed program wont run!

    This is spam - don't try to understand it :)
  6. Replies
    12
    Views
    540

    Re: count mouse clicks

    Eri 253: WH_MOUSE_LL does not require Dll. All he needs is just to add SetWindowsHookEx call and KeyboardEvent to the program.
  7. Replies
    12
    Views
    540

    Re: count mouse clicks

    There are no mouse hooks in .NET, you need to add this code to your .NET application. You don't need to create thread with message loop, because Windows Forms application already has message loop....
  8. Re: if any1 know how to convert this c++ code into assembly please do help ......urge

    Write this in C and see Assembly code produced by compiler. You can see Assembly code by producing compiler Assembly listing, or in Debugger, by opening Disassembly window.
  9. Re: How to change color of MS windows button control?

    Use WM_CTLCOLORBTN message: http://msdn.microsoft.com/en-us/library/windows/desktop/bb761849%28v=vs.85%29.aspx
  10. Re: How to sendmassage to select check box with VC ?

    BM_SETCHECK message: http://msdn.microsoft.com/en-us/library/windows/desktop/bb775989%28v=vs.85%29.aspx
  11. Re: How to read and write on serial port with MFC ?

    Serial communications using Win32 API:
    http://msdn.microsoft.com/en-us/library/ff802693.aspx

    MFC doesn't have classes for serial communication. If you don't want to write from scratch, there are...
  12. Re: I can't use FindWindowEx() to find control.

    Start from learning Microsoft Security Essential window structure with Spy++.
  13. Replies
    13
    Views
    633

    Re: count mouse clicks

    Create Windows Application using Visual Studio Application Wizard. Find WindowProc or WndProc function in the code generated by the Wizard. This is the function that handles Windows messages. It...
  14. Re: "extern "C" void (*)(int)" cannot be converted to type "void (*)(int)"

    Just move HandlerRoutine outside of the namespace.
  15. Re: "extern "C" void (*)(int)" cannot be converted to type "void (*)(int)"

    C language doesn't support namespaces, so extern "C" and namespaces are incompatible. Function defined inside of a namespace cannot be declared as extern "C".
  16. Re: Stuck Building a project & MakeFile under Windows

    g++ command line contains -lSDL switch. It looks like SDL library exists on your computer, and found by the linker. Try to investigate, how -lSDL switch is resolved - the same should be valid for...
  17. Re: Stuck Building a project & MakeFile under Windows

    In Linux the message "cannot find -lSDL_ttf" means that it cannot find file libSDL_ttf.so (.so is like lib/dll in Windows). I am not sure about CygWin names, but you need to look for a library, and...
  18. Re: list dll library functions signature at runtime

    Or by running them with strace.
  19. Replies
    4
    Views
    440

    Re: Reference with constant modifier

    In real time programming we don't implement any concepts, just make things done... Mostly in C. :)
  20. Replies
    17
    Views
    1,112

    Re: Show memory leaks in dll?

    Hi ,

    Pl tell me how to make memory leaks with MFC.

    When and Where should I call that and how Can I see the output ?

    Thanks a lot
  21. Replies
    3
    Views
    466

    Re: How to call sleep()?

    Possibly you mean Sleep function. Required header is Windows.h.
    http://msdn.microsoft.com/en-us/library/windows/desktop/ms686298%28v=vs.85%29.aspx
  22. Replies
    17
    Views
    1,112

    Re: Show memory leaks in dll?

    You don't need to call _CrtDumpMemoryLeaks. MFC calls this function when all user libraries are unloaded. _CrtDumpMemoryLeaks just prints all undeleted allocations. So, if you call this function, it...
  23. Replies
    17
    Views
    1,112

    Re: Show memory leaks in dll?

    You need to be more specific. Is this MFC application or not? Do you request memory leaks dump? Do you redefine new to DEBUG_NEW? Where is the code that creates memory leaks in both your posts? What...
  24. Replies
    17
    Views
    1,112

    Re: Show memory leaks in dll?

    VC++ program prints memory leaks by calling _CrtDumpMemoryLeaks just before the program is closed. Memory leaks dump includes all libraries in the process. In your case, if executable uses dll, this...
  25. Re: Importance of static object in a class and how they are different from general ob

    Did you try to compile this?
Results 1 to 25 of 116
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width