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
  • Richard that worked better Please Read

    graphics
    2
    0 Votes
    2 Posts
    1 Views
    D
    Reply to one of his posts so he gets a notification you posted something. DO NOT create a new thread. NOw you're just hoping (the correct) Richard comes along and realizes it's for him. There's no notifications to anyone that you posted this. Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak
  • 0 Votes
    10 Posts
    5 Views
    F
    thanks going try one more thing before bypassing richedit's coloring capabilities
  • 0 Votes
    3 Posts
    3 Views
    Richard DeemingR
    You already have the answer on your repost of this: Please give me explanation of this code.[^] "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • CPrintDialog default printer.

    c++ visual-studio graphics devops question
    6
    0 Votes
    6 Posts
    4 Views
    L
    You are welcome.
  • ++ operator in the case of pointers

    question
    11
    0 Votes
    11 Posts
    3 Views
    C
    Thanks
  • Hiriing C++ Developer for Zoom SDK integration

    c++ announcement career
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    3 Posts
    2 Views
    N
    What is a software development company? Software development is a process where software is developed for real-time use from start to finish. Software development is used by many companies around the globe to put together software solutions that make their business run as smoothly as possible. Software development companies can help companies develop everything from custom software applications for mobile and web applications to custom software solutions for enterprise, e-commerce, and web-based business. Some of the worlds biggest companies even depend on the experience of dedicated software development companies to develop software and apps for their mobile and web applications and for their enterprise, e-commerce, and web-based business. I recommend you contact syndicode.com
  • https://www.worthydiets.com/orbis-heater/

    com
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Call for discussion / opinions about "system call"

    discussion tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    11 Posts
    1 Views
    R
    Got the answer mostly due to Microsoft Q&A This code placed in the derived property sheet works if the bitmap images are all of exactly the same size Thanks also to Victor Nijegorodov for his suggestions: m_wndPane1.RemoveAllButtons(); retval=m_wndPane1.AddButton(m_bmpimgs[0], "Create a Job", 10050, 0); retval=m_wndPane1.AddButton(m_bmpimgs[1], "Manage a Job", 10051, 1); retval=m_wndPane1.AddButton(m_bmpimgs[2], "Restore a Job", 10052, 2); m_wndPane1.InvalidateButton(0); m_wndPane1.InvalidateButton(1); m_wndPane1.InvalidateButton(2); Deekonda Ramesh
  • 0 Votes
    9 Posts
    1 Views
    L
    It definitely looks as a linker "suggestion " when "libbluetooth" is set as an option When both ":" and ".a" are used linker does not complain. /usr/bin/ld: cannot find -llibbluetooth /usr/bin/ld: note to link with /usr/lib/x86_64-linux-gnu/libbluetooth.a use -l:libbluetooth.a or rename it to liblibbluetooth.a collect2: error: ld returned 1 exit status
  • 0 Votes
    4 Posts
    2 Views
    M
    I disabled my intellisense that borked my classes/resources windows CI/CD = Continuous Impediment/Continuous Despair
  • CBitmap::LoadBitmap help

    graphics help
    17
    0 Votes
    17 Posts
    3 Views
    F
    Quote: used TransparentBLT thank you all"
  • 0 Votes
    4 Posts
    2 Views
    L
    I don't have MFC so I cannot test this control. However, it occurs to me that perhaps the RichEdit control reserves some edge space for its own purposes (possibly a scrollbar). Try calling GetWindowRect on the control and compare that with the dialog's client rect. [edit] I just checked the difference between the Window and Client sizes of a simple Edit control. The width was 25 pixels different, and the height 4. So I guess what you are seeing is correct. [/edit]
  • RGB image to CMYK gdi+

    c++ dotnet winforms graphics adobe
    3
    0 Votes
    3 Posts
    2 Views
    R
    Whatever works is the right method. There's no "not". Unless all one does is repost code they dug up from elsewhere and hasn't the foggiest idea what they're doing THAT for. :thumbsdown:
  • C language exercise - beginner

    question learning
    9
    0 Votes
    9 Posts
    3 Views
    L
    Bram van Kampen wrote: I think you are a bit harsh! We all had to learn! Indeed we did, and for many of us there was no internet to help. But there seems to be an attitude among a number of students (I assume a minority) these days that they do not have to put any actual effort into learning. We get regular questions in QA of this type, which at best are, "please do my assignment". Some of them even use the excuse that they don't have time to learn, or it must be ready by tomorrow at the latest.
  • data structure

    c++ design data-structures performance tutorial
    4
    0 Votes
    4 Posts
    2 Views
    B
    The question is: Do you seriously want to learn how to become an IT specialist, who can code, or are you more interested in the party type student life. The problems you want resolved are quite trivial, and I could easily write you the required lines. However, I will not! You seem to be early in your course. I have no doubt that your college provided you with the resources required where you can find out how to write this code. Read it, and Try it out, fail and Learn. Writing Code is about Trying and Learning, the whole time. You write the Code, Compile it. You get Compiling errors. That means that the Compiler does not understood what you wrote. Solve them, it Compiles. Now you have a running program or App. Does the App do what you want it to do! Very Often it does not. They call that Debugging! I learned C and CPP/MFC the hard way. By myself, trial and error. My University simply did not have a computer that students could work with in 1974. My first computer was a Commodore 64 in 1985, where I learned the beginnings of Machine Code and ASM programming. A small PC with a C Compiler came as a godsend, and at the time I was in no doubt what compilers linkers, and debug/retail versions did and could do. You have an institution with resources behind you. Use those resourses and learn. Stop asking this forum to resolve your exam questions. Bram van Kampen
  • Inserting a Bitmap into a RichEditctrl

    question csharp visual-studio com graphics
    3
    0 Votes
    3 Posts
    3 Views
    F
    I know I tried streaming in a z/os assembler listing when I look at the project date it was 1/2020 it was under windows 10 I now have a different computer newer version of windows 10 back then inserting the bullet via richeditole->object worked I just would like to ask you a general question if streamin the text with SF_TEXT should I after doing the other api calls be able to do richediole->insertobject I did setsel to where I want to place it and put value in REFORMT structure to use current selection for bitmap should this work if initial text was streamed in with SF_TEXT
  • 0 Votes
    5 Posts
    1 Views
    F
    Thanks
  • Run powershell in C#

    question csharp com windows-admin help
    8
    0 Votes
    8 Posts
    3 Views
    D
    Works for me: private DateTime GetLastUpdateSuccessDate() { Type t = Type.GetTypeFromProgID("Microsoft.Update.AutoUpdate"); dynamic a = Activator.CreateInstance(t); DateTime lastUpdate = a.Results.LastInstallationSuccessDate; return lastUpdate; } Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak