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
    3 Posts
    27 Views
    P
    jeron1, thank you, but I have started with that acticle :) It was useful but didn't helped me.
  • VS Copilot - Seeing is believing

    1
    1 Votes
    1 Posts
    77 Views
    No one has replied
  • Installing a TTF font

    3
    0 Votes
    3 Posts
    551 Views
    S
    I notice the source code download are broken. The source code for the 1st article can be downloaded from Github. https://github.com/shaovoon/use_font_without_install_on_win
  • This should be an easy question... 128-bit blues.

    question tutorial
    9
    0 Votes
    9 Posts
    171 Views
    C
    Using 128 bit ints
  • Variables

    performance question
    6
    0 Votes
    6 Posts
    159 Views
    Mircea NeacsuM
    trønderen wrote: class objects (instances), the compiler adds another "semi-hidden" field to hold a reference to the class definition object. The class definition is present at run time, and may be interrogated. The class definition is the type of the class instances. With the small caveat that classes need at least one virtual function to get this RTTI (Run-Time Type Information). Classes without virtual function members don't get this vtable member. Pretty sure this is standard required behavior, but I haven't checked. It is true however at least in the case of MSVC, the compiler I know best. Mircea (see my latest musings at neacsu.net)
  • Code to capture and send ip packets

    c++
    5
    0 Votes
    5 Posts
    134 Views
    J
    Member 16391238 wrote: What if rephrase the question to lookf or to capture frames from NIC? And then what? How do you view them? How do you collect them? You are going to need more than just that. Member 16391238 wrote: an academic project This is going to be a complex project. FIRST, you would need to learn how to write a driver, and driver. And figure out how to do it for the target OS. Either Windows or Linux. Then you would need to find a NIC that you can actually find internal documentation for. So you can access it. Following is the layers you would be looking to replace. And it took me a bit to even find that diagram. The Internet Protocol Stack[^] I suspect you would need to create a IP layer. I think you can do that these days with C++. However you are going to need to really understand how linking works and API interfaces. And probably a bit of hardware knowledge also. It will likely also require special compilation macros to insure that your API is constructed correctly. Internally you might be able to use OO but for the API methods they will not be class methods. It is possible that one of the small hobby computers (like 'Basic Stamp') might be workable mainly because it might be easier to find hardware details. But with that you are then also going to learn how to use that and to create binaries for it.
  • How to get the title of CPropertyPage ?

    com debugging tutorial question
    5
    0 Votes
    5 Posts
    100 Views
    D
    The CPropertyPage object is created during its construction, not when it is added to the sheet. Since you constructed it without a title, a title you cannot retrieve. "One man's wage rise is another man's price increase." - Harold Wilson "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
  • 0 Votes
    1 Posts
    34 Views
    No one has replied
  • What Should I do to Export OST File to PST?

    csharp algorithms question announcement
    1
    0 Votes
    1 Posts
    27 Views
    No one has replied
  • build4ARM

    question
    3
    0 Votes
    3 Posts
    63 Views
    W
    I meant building for ARM from an Intel PC with VS2022.
  • GUI Freezes randomly /MFC /C++

    c++ design help
    7
    0 Votes
    7 Posts
    159 Views
    D
    Zishan Ud787 wrote: case BUTTON1: This case is not ever going to execute because it's all uppercase (and what's getting assigned to m_threadCmd is not). Is that intentional? "One man's wage rise is another man's price increase." - Harold Wilson "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
  • Reading HID Bluetooth devices' buffer on Win32

    mobile database json question lounge
    1
    0 Votes
    1 Posts
    29 Views
    No one has replied
  • Character set

    question
    27
    0 Votes
    27 Posts
    523 Views
    Mircea NeacsuM
    trønderen wrote: Almost all the Western world had their needs covered by 8859-1 Funny you say that: I cannot even properly write my last name in 8859-1. It is written "Neacşu". I have to go to Windows-1252 for that. The Wikipedia page for ISO/IEC 8859-1[^] lists also other languages that are not fully covered. Anyway, at this point, I think we should agree to disagree as I'll continue to keep everything in UTF-8 inside my programs. Mircea
  • REMOVED

    2
    0 Votes
    2 Posts
    58 Views
    L
    As you have been told many times, this forum is for questions on C, C++ and MFC; it is not for Qt issues. The Qt help forum is at Qt | Tools for Each Stage of Software Development Lifecycle[^].
  • 0 Votes
    3 Posts
    57 Views
    L
    This is a Qt issue as far as using the toInt function. And as the documentation (QString Class | Qt Core 5.15.17[^]) clearly shows, it handles numbers in any base from 2 to 36.
  • Looking for opinions on currency handling....

    question performance discussion
    16
    0 Votes
    16 Posts
    182 Views
    J
    I think peeps assume I’m a total n00b just because I’m asking for folk’s opinions. Using an integer was the first thing I mentioned. I promise you I know of 64-bit ints. The question was has anybody used 128-bit ints and noticed a serious performance hit. The only reason I mentioned all three original ways is because I knew someone would come along and tell something unrelated. Also, that’s grossly over simplifying system design. I’ve architected plenty of enterprise apps in my day. Future proofing is also a consideration. So, to repeat man… the question isn’t what’s an int. It’s how fast is a 128-bit int for those who actually used it in a project. If someone has a better way to store currency than the four ways already mentioned (including fixed point) - great. Jeremy Falcon
  • wrapping enum in namespace ?

    devops regex question
    3
    0 Votes
    3 Posts
    67 Views
    M
    ahhhh yes, I've seen that before. thanks. :thumbsup: CI/CD = Continuous Impediment/Continuous Despair
  • Own border in client area

    question
    3
    0 Votes
    3 Posts
    52 Views
    M
    You'll have to draw a frame manually (CDC::Rectangle) and handle all the mouse click events to be able to move it. What exactly are you trying to do ? CI/CD = Continuous Impediment/Continuous Despair
  • Data file

    tutorial question
    5
    0 Votes
    5 Posts
    65 Views
    C
    Thanks for your feedback. I think I understand.
  • Inheritance and arrays thread follow up

    c++ data-structures oop help tutorial
    4
    0 Votes
    4 Posts
    66 Views
    C
    Thank you guys indirection was the problem