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
  • mfc LoadBitmap hangs my application...

    help c++ design hardware debugging
    10
    0 Votes
    10 Posts
    16 Views
    C
    :thumbsup: Charlie Gilley <italic>Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
  • Windows CBT Hooks

    com json question
    12
    0 Votes
    12 Posts
    1 Views
    L
    Unhook it before you post the WM_QUIT message In vino veritas
  • inverse sinus, floats

    c++
    15
    0 Votes
    15 Posts
    0 Views
    C
    I have my object rotation algorithm working though it will only rotate 180 degrees atm. It`s an algorithm that handles object rotations without matrices.
  • void type

    question
    12
    0 Votes
    12 Posts
    2 Views
    Greg UtasG
    Member 7989122 wrote: In languages with runtime array (/object) descriptors, it is possible. In C, or C++ in classical C usage pattern, it is quite difficult. The proprietary language in which I worked for many years (designed in the late 1970s) had descriptors built in. The compiler knew the size of each array element, and a descriptor was a pointer to the beginning of the array (as in C++) and its size (number of elements). The compiler then generated code to perform bounds checking on an index at run-time. If the size of the array was known at compile time, a descriptor wasn't needed; the compiler just did bounds checking against the fixed length. Descriptors were used for dynamically allocated arrays or to reference a subset ("slice") of a larger array. Much more recently, C++ has added std::span[^] to the STL, which does the same thing. Robust Services Core | Software Techniques for Lemmings | Articles
  • Passing an array as argument to a function

    question data-structures
    61
    0 Votes
    61 Posts
    0 Views
    K
    How could you not? A C "array" IS a pointer to the start of it. There is nothing more to it. Stop thinking of C as a high level language. It is a CPU independent assembly language.
  • Coding Hacking Spamming

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • basic MFC app

    csharp c++ learning
    21
    0 Votes
    21 Posts
    0 Views
    C
    Thanks Victor
  • 0 Votes
    4 Posts
    0 Views
    D
    Where's main()? "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
  • whatsapp plus

    android com announcement
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Facial Recognition in C++, from scratch

    c++ graphics algorithms help question
    3
    0 Votes
    3 Posts
    0 Views
    _
    A way to accomplish this is use the source code from a library that do that, which is huge work :) ... even is a school work, I guess it can be used OpenCV directly, most of them are free.
  • 0 Votes
    5 Posts
    0 Views
    T
    Oh my god. I only forgot to bind the buffers just before creation, in the very first frame. What a silly error. I apologize for your lost time. Thank you very much for your support. It is really appreciated. Greets, txes
  • Not able to set DPI for PNG files - libpng

    help question
    4
    0 Votes
    4 Posts
    0 Views
    L
    Well you cannot expect anyone here to be able to guess what the code does. Try asking the people who produced the library.
  • TCHAR vs built in char

    visual-studio question
    8
    0 Votes
    8 Posts
    1 Views
    D
    I've seen things. We all have seen things. GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X
  • [C++] Where to find coding examples and exercises?

    c++ help question learning
    11
    0 Votes
    11 Posts
    0 Views
    D
    They usually use SO, CP is quite unknown here in Italy except for the actual professionals. GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X
  • Thanks for a new feature

    c++
    4
    0 Votes
    4 Posts
    3 Views
    Z
    :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :thumbsup::thumbsup: And about 5 years ago too. Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.
  • Getting 2203 error while doing silent installation of MSI

    help tutorial
    5
    0 Votes
    5 Posts
    0 Views
    D
    OK. In that case, if the command line your code generated works if an admin on the machine runs it, the problem is going to be in your code that logs in as an admin, but apparently doesn't run anything as an admin. I couldn't tell you what the problem is there. Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak
  • Finding a directory

    help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    L
    SHBrowseForFolder SHBrowseForFolderA function (shlobj_core.h) - Win32 apps | Microsoft Docs[^] CodeProject has a sample app How to Browse for a Folder[^] In vino veritas
  • 0 Votes
    3 Posts
    0 Views
    CPalliniC
    Did you preserve the project Character Set value in the migration process? Quote: _CharType=char is an hint a "Not Set" or "Use Multi-Byte Character Set" is selected, while "Use Unicode Character Set" would be possiby more appropriate.
  • 0 Votes
    2 Posts
    0 Views
    L
    Check your project to see where it is being referenced from.
  • Which is the Best Astrologer In India?

    learning php com question career
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied