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
    8 Posts
    0 Views
    S
    Member 14872681 wrote: However, if I post too many questions at once, I don't think I can get a proper answer, so I started posting questions like this. That is a good approach. The more you put into a single question, the more time it takes for everyone to read, and the less likely it is you will get a useful answer. However, it wouldn't hurt to mention that you are working on a larger problem and point to the related posts you made, so anyone willing to help can get a better look at the whole picture. Also, I like how you approach the translation. You keep sentences short and concise, that makes it harder for the translation engine to mess up the meaning. :thumbsup: (Sorry, I can't help with your problem. But I still felt that it's worth congratulating you on doing a good job asking questions - that is a rare skill nowadays!) GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
  • Is there an entry point for CppUnitTestFramework unit tests ?

    testing question
    3
    0 Votes
    3 Posts
    0 Views
    M
    Thanks, I will look into it, but it seems to be run for each test and is not global to all my test cases and test classes. ? "Defines methodName as a method that runs before each test method is run. TEST_METHOD_INITIALIZE can only be defined once in a test class and must be defined in the scope of the test class." I'd rather be phishing!
  • Vigra Firm Male Enhancement Reviews !

    help code-review
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • computer science

    c++ data-structures announcement
    3
    0 Votes
    3 Posts
    0 Views
    L
    I don't know where this came from, but it needs correcting before you start. The terms Class, Int, Public and Void are all incorrectly spelled. The correct forms are class, int, public and void; all lower case. Also the class definition is incorrect. You have Class bit queue, but class names are only one word. You also name the constructor Bitqueue, which may or may not match the correct class name. So there is really a lot to learn before you can venture into trying to solve this question.
  • 0 Votes
    12 Posts
    0 Views
    A
    It's probably a stupid question, but is there any way to make anonymous function usage like that compile inside a file with .c (not .cpp) extension? I know I'm allowed to put snippets of C-code inside a C++ file, but I suppose the opposite isn't possible (not even with clever macros)?
  • sorce code grid line

    css graphics game-dev help
    15
    0 Votes
    15 Posts
    0 Views
    L
    You could quite easily answer this for yourself just by going to: opengl grid line - Google Search[^].
  • In c++ How to deny usb read write?

    c++ help tutorial question
    7
    0 Votes
    7 Posts
    0 Views
    M
    It was a big hint to me. I don't know if I can.... Thank you.
  • QueryBinaryValue to CByteArray

    windows-admin help question learning
    4
    0 Votes
    4 Posts
    0 Views
    V
    _Flaviu wrote: sData = CString((LPCTSTR)arrByte.GetData(), arrByte.GetSize()); Note that conversion from byte array to CString may give you an unexpected result in some cases, also when compiling as MBCS. For instance when the byte array contains one or more zero bytes. In such a case you will get a truncated string!
  • 0 Votes
    4 Posts
    21 Views
    J
    FWIW, Visual Studio's C++ analysis is so bad, I keep it turned off. (Yes, it can find errors, but the number of false positives makes it pretty much worthless.)
  • 0 Votes
    3 Posts
    1 Views
    L
    Generally you would have a circular queue of pointers to struct on the transmission queue. You don't want to be copying data around when you don't have to and it means the transmission queue is always just a pointer that the transmission sender can check what the pointer points to. In your struct you could have for example a field which would be "size to send" and then the data. You either free the struct after sending if dynamic, or clear a flag in the struct to mark it free for reuse if using static structs. As you are feeding two threads into one queue you will also need to put a binary semaphore on queue access. In vino veritas
  • 0 Votes
    7 Posts
    1 Views
    L
    In Eclipse, you open the Properties of your project -> expand "C/C++ General" -> "Paths and Symbols". include dir is not right add the directory to it or fix what is there It throws that warning then goes down the search path set in enviroment and then finds it. So you end up compiling fine with a stupid warning in between. In vino veritas
  • 0 Votes
    12 Posts
    3 Views
    L
    It was right at the end of the build output in the previous message: /media/z/DEV_COPY_LABEL/ECLIPSE_FOLDER/2020_228/work_228/GTK_WIKI/Debug/../src/GTK_WIKI.cpp:49: undefined reference to `gtk_window_new' collect2: error: ld returned 1 exit status make: *** [GTK_WIKI] Error 1 "make all" terminated with exit code 2. Build might be incomplete. 10:50:37 Build Failed. 3 errors, 2 warnings. (took 2s.689ms) Did you search the original which did not have any errors? I can only assume that there is an object file or library missing from the build. [edit] I have also tried to explain a number of times to OP that adding header files to a build has no effect on linker errors. [/edit]
  • Develop VC++ for IPad

    c++ ios tutorial question
    4
    0 Votes
    4 Posts
    0 Views
    L
    See Android and iOS development with C++ in Visual Studio | C++ Team Blog[^]. There are various other resources that Google will find on the subject.
  • FFMPEG encrypt & decrypt Video offline

    c++ security tools json question
    5
    0 Votes
    5 Posts
    4 Views
    D
    I do not need ffplay.exe because i downloaded FFMPEG dev and i have written my own player program Which is based on FFMPEG! with QT & C++. I dont want use ffplay.exe that exist static FFMPEG Folder. . I want decrypt and play Encrypted File in my player program Through Programing code. Now how to decrypt encrypted files using FFMPeg API with C++ Programing? thanks.
  • how to compile this "hello world" program?

    csharp c++ visual-studio tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to fix Error 3371 status code 11118

    help collaboration tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Why My QuickBooks Not Opening? How Can I Fix It?

    help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Create C++ Program for Android Gaming

    c++ android question
    4
    0 Votes
    4 Posts
    0 Views
    CPalliniC
    Yes, though I am not sure it is the simplest path. Have a look at Android NDK  |  Android Developers[^].
  • python language

    python question learning
    5
    0 Votes
    5 Posts
    0 Views
    CPalliniC
    The C/C++/MFC forum, of course. :-D
  • use argv while debugging

    com testing beta-testing help question
    8
    0 Votes
    8 Posts
    2 Views
    L
    You are welcome.