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
    9 Views
    D
    As always. It depends. It depends on what the calculations are and how you write the code. There's no way for anyone to give you a direct answer for this. Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak
  • Calling Java from C++ Frame not in module

    c++ java tutorial com testing
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • 0 Votes
    2 Posts
    4 Views
    L
    That does not make sense. The data pointed to by the MEASUREITEMSTRUCT is what you have set when you create the control. However, whether it is ANSI or Unicode does not matter, as the actual display dimensions will be the same.
  • Grades

    business learning
    5
    0 Votes
    5 Posts
    11 Views
    J
    How are your results different from what is expected? Also, showing the files exact contents would be helpful. "the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
  • reference question

    question com help
    3
    0 Votes
    3 Posts
    7 Views
    L
    You are trying to use a C++ construct in a C-language program.
  • math

    css question
    6
    0 Votes
    6 Posts
    25 Views
    C
    I`ll keep it in mind.
  • Game loop and time measurement.

    com game-dev question lounge
    3
    0 Votes
    3 Posts
    7 Views
    C
    Thanks to parallel processing these days you can feed in your game loop a constant value as time variable. (there is no fluctuation between frames as far as time is concerned). You should care about Frame Rate Independent movement only if you`re developing a game meant to hit the store shelf.
  • College Project Visual Enhancement

    tutorial learning design help
    4
    0 Votes
    4 Posts
    6 Views
    L
    Sorry, but without some actual problem details there is nothing much we can offer.
  • 0 Votes
    6 Posts
    21 Views
    D
    In that case, add command line switch support for installing your context menu items and removing them. Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak
  • Listbox items disappear

    debugging
    6
    0 Votes
    6 Posts
    9 Views
    F
    My process is that I do Addstring with values I have Then when clicking right icon dropdown on the combo box The Drawitem exit is invoked, allowing me to format that string with font, the rcitem RECT member has Dimensions from the MeasureItem exit the problem is at the end of stepping thru DrawItem the listbox remains intact non displayable. Victor Suggested I use TRACE have to look into that Thanks
  • Capture BACK SPACE Key in Edit Box

    help
    2
    0 Votes
    2 Posts
    4 Views
    L
    The edit control is designed to handle all key events in order to manage the input and display of the text. If you want to override its default behaviour then you need to subclass the control: Subclassing Controls - Win32 apps | Microsoft Docs[^].
  • 0 Votes
    14 Posts
    42 Views
    L
    No, you have to do the layout calculations yourself. And TBH if GUI applications are your main focus then I would suggest you stick to .NET with C# or VB.NET.
  • 0 Votes
    6 Posts
    11 Views
    A
    Now faced with the same problem. Tell me, how did you solve it (if you figured it out)?
  • vector and Template confusion

    question graphics help
    11
    0 Votes
    11 Posts
    11 Views
    CPalliniC
    You only, having the full code, might know. "In testa che avete, Signor di Ceprano?" -- Rigoletto
  • Application check for virus

    c++ sales question
    4
    0 Votes
    4 Posts
    18 Views
    G
    Thank you Richard and Dave for reply and suggestion. Regards, Gopinath.
  • Setting Font and Text Colors items of ComboBox

    4
    0 Votes
    4 Posts
    17 Views
    F
    I downloaded it built it debug x64 and as I was stepping thru that code it got an exception it was somewhere in MFC code the call stack indicated it was from an Additem Ill go back and try to fix it up thank you
  • Accessing and displaying semaphore count

    help tutorial question announcement
    8
    0 Votes
    8 Posts
    18 Views
    C
    Noted, Thank you,
  • OwnerDraw Combox

    2
    0 Votes
    2 Posts
    5 Views
    V
    Perhaps your implementation/override of DrawItem is not complete? Have a look at some of the CP articles describing the ownerdraw comboboxe, like this one: [Group Combo Box](https://www.codeproject.com/Articles/489189/Group-Combo-Box#OwnerDrawnComboBoxes)
  • C++ code for Gomoku

    c++ game-dev
    3
    0 Votes
    3 Posts
    10 Views
    V
    Did you try something from [Gomoku game code - Google Search](https://www.google.com/search?q=Gomoku+game+code&newwindow=1&rlz=1C1CHBF\_enDE886DE886&sxsrf=ALiCzsbfHPk8MKhcNQtFFvjkVLHfPlWeMw%3A1652901768671&ei=iEeFYr3QKJH1kwWYsIqgDQ&ved=0ahUKEwi9tJT24un3AhWR-qQKHRiYAtQQ4dUDCA4&uact=5&oq=Gomoku+game+code&gs\_lcp=Cgdnd3Mtd2l6EAMyBQghEKABMgUIIRCgAToHCAAQRxCwAzoHCAAQsAMQQzoICAAQgAQQiwM6BQgAEIAEOgYIABAWEB46CAgAEA8QFhAeSgQIQRgASgQIRhgAUMcLWLccYO4haAFwAXgAgAHbAYgBhAaSAQUwLjQuMZgBAKABAcgBCrgBAsABAQ&sclient=gws-wiz)
  • How can i define cardinalization in c++?

    question c++ help
    4
    0 Votes
    4 Posts
    9 Views
    L
    Member 15637771 wrote: I have an block of code which already defined classes. And I want to define their cardinalization. I think your question may be about object-oriented "one-to-one, one-to-many and many-to-many" C++ class/object relationships. Cardinality (data modeling) - Wikipedia[^]