Skip to content

C / C++ / MFC

C, Visual C++ and MFC discussions

This category can be followed from the open social web via the handle c-c-mfc@forum.codeproject.com

111.5k Topics 465.7k Posts
  • 0 Votes
    2 Posts
    0 Views
    F
    found out the bugmyself now I used the virtual keyword in the declaration class MyClass : virtual public ImyInterface, public CBase removing the virtual keyword makes the error disappear :)
  • Debug COM DLL from ASP.Net

    csharp asp-net visual-studio com windows-admin
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Inheritance classes

    oop question
    3
    0 Votes
    3 Posts
    0 Views
    A
    your box2.printX(box1); statement is printing the garbage of box1::x. Note there are no initialization for FirstClass::x in its default constructor. FirstClass box1; will call default constructor for FirstClass . x is garbage here. SecondClass box2(100); will initialize the SecondClas::FirstClass::x to 100. box2.printX(box1); this will try to print the x in object box1, which is garbage.
  • 0 Votes
    4 Posts
    0 Views
    L
    The person who wrote the DLLs used the same name for the message window in each DLL hence the bug!
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    15 Posts
    0 Views
    N
    I did That But the tab order doesn't work on checkbox and RadioButton and i don't know why !!
  • NcPaint and Invalid rect/region

    3
    0 Votes
    3 Posts
    0 Views
    C
    GetUpdateRect returns only client area coordinates that should be updated. I need whole control's invalid area including non-client parts. Actually seems I've already find an answer: when Windows send WM_NCPAINT message it puts invalid region handle into wParam, but seems in coordinates relative to the desktop, - that's what I was looking for.
  • Calling a method with the pointer to a base class

    6
    0 Votes
    6 Posts
    0 Views
    L
    Ah the joys of deep class hierarchy in C++ and OOP coding circa 1980-1990 :-) Probably too much danger in doing what should be done with that old code and using modern Composition over inheritance style. It isn't going to be fun and C++ is going to fight you all the way as it will try to discourage that style. Working with old code I feel your pain ... good luck. In vino veritas
  • Exchange of values among different classes

    tutorial c++ learning
    2
    0 Votes
    2 Posts
    2 Views
    U
    Same problem i am facing.
  • Suport for MFC

    8
    0 Votes
    8 Posts
    0 Views
    B
    Well Guys Got It!! Took me a While Thanks! Now I have to learn the Interface! :rose: Bram van Kampen
  • shell extension dll

    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • reguired fast printing

    5
    0 Votes
    5 Posts
    0 Views
    P
    Simple. When printing, Windows transforms what you want to print into a graphic bitmap and then send the graphic to the dot matrix printer which can be very slow to process. This technique is used because anything that can be showed on screen can be printed. With DOS, the app is directly sending commands to the printer, but is limited to printer internal fonts (Arial may be not available in the printer), sizes and other settings. Another problem is that the app must know the commands of the printer. So DOS os faster because it takes advantage of the printer internal capabilities. On windows, you can print in raw mode, but you are responsible of everything. You can make windows print in the DOS fashion by installing the driver for for a Generic/Text Only printer. It will be fast but ugly. Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein
  • Problem with C++ arrays.

    12
    0 Votes
    12 Posts
    0 Views
    S
    Not sure if it's an agreement or not... Let's say: no memory corruption occurs! A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • CMFCRibbonBar High DPI

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Internet Explorer

    4
    0 Votes
    4 Posts
    0 Views
    U
    Thank you. that helped me.
  • How to handle runtime access violation exception

    4
    0 Votes
    4 Posts
    0 Views
    L
    You have pointers to structures AVPacket and AVFrame and got_output You may have 1.) Changed the structures 2.) Changed the compiler settings for packing of structures. Making the structure not what the DLL expects You sort of say get_output is an int but that isn't what the documentation says. Finally you have a return error in ret .... what does it return? Things like invalid parameter will tell you more. In vino veritas
  • Windows Compatibility Mode

    c++ asp-net question announcement learning
    13
    0 Votes
    13 Posts
    0 Views
    B
    Where can I buy this version! Bram van Kampen
  • CFileStatus m_mtime problems

    8
    0 Votes
    8 Posts
    0 Views
    U
    I have solved the Problem with this: Retrieving the Last-Write Time (Windows)[^]
  • Compile dll in Ubuntu to include in Windows 7 (32 bit) program

    3
    0 Votes
    3 Posts
    0 Views
    L
    Assuming that your code has no linux OS calls in it and is just generic stuff you just define an interface for it and compile it like Jochen's answer. If you have linux OS calls you will need to build windows replacements or use a framework. In vino veritas