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
  • Setting breakpoints in source code in manual compile

    c++ question workspace
    14
    0 Votes
    14 Posts
    0 Views
    J
    What I have learned is that many people spout subjective opinions as facts without actually understanding that it is is subjective. And then they attempt to rationalize it when someone points it out.
  • C, Win32 API: l need a help

    json help question lounge workspace
    3
    0 Votes
    3 Posts
    0 Views
    V
    You may want to look at this discussion: Multiple top-level frame windows via Win32 API[^]. Also this article (althogh it is MFC): Multiple Top Level Windows[^] could be useful. You can also google for Multiple Top-Level Windows Interface win32. Perhaps, you'll find something more useful and helpful.
  • InitDialog in splitter

    graphics game-dev help tutorial question
    11
    0 Votes
    11 Posts
    0 Views
    V
    Member 12282738 wrote: So I assume that OnInitalUpdate is called automaticaly and I don't need to do anything to invoke it but where would I put the override code in CFormRight : public CFormView or COpenGLControl : public CWnd ? Yes, it is called automatically. Note that if you do not override the OnInitalUpdate in your derived class then the base class implementation will be called. And note, that OnInitalUpdate is a method of a CView, not a CDialog. So - override it in CFormRight class.
  • How to overwrite one angle arc over other during runtime

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    Kornfeld Eliyahu PeterK
    You should decide where to ask this question...Re-posting here (after the QA) will not gain you any advantage, but maybe some who thing you are annoying them... Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
  • problem with compiler

    question linux help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • COleDateTime

    com hardware help
    6
    0 Votes
    6 Posts
    4 Views
    J
    Still learning how to code wrote: My Arduino code expects time quantities to be received as localtime (i.e. adjusted for DST) You should change that to UTC if possible. When your Arduino uses a different time zone than your Windows system, the results would be wrong again.
  • Old code

    question
    6
    0 Votes
    6 Posts
    1 Views
    L
    Try it.
  • Algorithm on secrete key generation

    algorithms security regex help
    3
    0 Votes
    3 Posts
    0 Views
    P
    We don't do your HomeWork. Advice try to solve the problem by habd, see how you build the solution. try to device a program that will follow the same processus. It is not so difficult. Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein
  • vector in turbo c

    graphics
    3
    0 Votes
    3 Posts
    0 Views
    P
    There is no vector in C ! Just arrays. Advice read C documentation. Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein
  • HOW WORKING A GHOSTER?

    com business question learning
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Vagarities of Multiple threads in Windows

    c++ asp-net data-structures help question
    14
    0 Votes
    14 Posts
    0 Views
    L
    You said "Furthermore it is quite inefficient as a synchronisation method. It typically means burning CPU Cycles waiting for something to happen. The better way is to put the thread to sleep, by the use of something like WaitForSingleObject()." First the method is not necessarily inefficient (it can be a lot faster than alternatives) and you can not use WaitForSingleObject to solve the problem in any way because the problem is you don't know when the change will occur. WaitForSingleObject hangs around and waits when you know a CHANGE OF SOMETHING MUST OCCUR. That function is of no use for the sort of problem you are dealing with it is used more for asynchronous transfers. The next part is correct. Sychronization is the issue and CriticalSections, Mutexes and Semaphores are the only real way to get around it but THEY CAN BE EXTREMELY INEFFICIENT. A well used volatile with careful coding around the variable can save lots of messing around with synchronization in the simplest situations which is often 90% of cases. It is however NO GUARANTEED FIX you still have to understand what your threads are doing with memory access, the when where and how factors. This statement by you => "All worked to perfection when I built a Skeleton Application, of essentially blank Dialogs. Started to fill in Details, Controls, etc, and the App Clock Ticks are no longer recognised." That tends to suggest you have a synchronization issue because your message posts are going AWL. The app clock tick should be picked up and delivered by DispatchMessage and it can't get lost unless something is going wrong with the memory .... It is delivered to a window based on handle. I would start with following the code for that tick message because it should be dead easy to put a watch on and see where it is getting dispatched to and why it is failing. In vino veritas
  • graphics.DrawImage return generic error

    graphics help
    7
    0 Votes
    7 Posts
    0 Views
    L
    Sorry, but as I said, the only way to track this sort of error is by using your debugger. There is nothing that anyone here can do to assist, as there is no useful information provided.
  • Need a suggestion in searching a file

    algorithms help
    13
    0 Votes
    13 Posts
    0 Views
    L
    Thank you sir for your kind help and I am really sorry for the late reply
  • Adding MFC dependency as static

    help c++
    4
    0 Votes
    4 Posts
    0 Views
    U
    I had the same problem, the easiest way to solve it its download missed .dll library file from http://fix4dll.com/mfc100u_dll[^] this is the fastest way without installing any additional tools or software, hope it will be useful for you. Good luck.
  • Image size and location change at time of printing

    graphics help
    5
    0 Votes
    5 Posts
    0 Views
    L
    I suggest you open a new question, and provide proper details of both code and error. You can help to isolate the problem by using your debugger to step through your code.
  • WaitForInputIdle parent process gets access exception

    business
    6
    0 Votes
    6 Posts
    0 Views
    F
    thanks
  • 0 Votes
    7 Posts
    1 Views
    F
    I did use GetWindow and got NULL. I was able to get Window Handle by doing a SendMessage to the other app as the return Value is From the other Window App (not Windows like PostMessage) I returned the dialog window in LRESULT Thanks
  • CDialog::OnInitDialog called ? Erroneosly

    question data-structures learning
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • embed WxWidgets in MFC applications?

    c++ com linux xml help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • xx

    2
    0 Votes
    2 Posts
    0 Views
    L
    Sorry, I think you are in the wrong forum. These forums deal with programming issues, we are not fans of hacking.