Skip to content
Code Project
CODE PROJECT For Those Who Code

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
    6 Posts
    0 Views
    _
    WTL is a light weight template library for creating UI controls. Michael Dunn[^] has written some great articles about WTL. These couple of articles would be useful for you - WTL for MFC Programmers, Part IV - Dialogs and Controls[^] WTL for MFC Programmers, Part V - Advanced Dialog UI Classes[^] «_Superman_»  _I love work. It gives me something to do between weekends. _Microsoft MVP (Visual C++) (October 2009 - September 2013) Polymorphism in C
  • 0 Votes
    5 Posts
    0 Views
    N
    I think the std::next_permutation would be perfect tough i need conditions for it so that it doesn't try to find every permutation for all 70^70, which would take forever. I'm actually not sure if it will be fast enough even with conditions. I'm obviously not good enough with C++ to manage this :p
  • use of %u

    question
    3
    0 Votes
    3 Posts
    0 Views
    _
    %u is not a good choice for outputting memory addresses. Personally, I use %p or %x for memory addresses. Look here for printf type fields - printf Type Field Characters[^] «_Superman_»  _I love work. It gives me something to do between weekends. _Microsoft MVP (Visual C++) (October 2009 - September 2013) Polymorphism in C
  • Adding new GUID to uuids.h and the new library won't link

    help debugging question
    5
    0 Votes
    5 Posts
    0 Views
    _
    Didn't take too many classes in programming. Mostly self learnt, like most of the people here. It's probably 16 years of doing the same thing that's helping. I also retain all the test code that I ever wrote with proper book keeping. So that becomes the perfect reference material. Was in Dallas for a couple of days last month. Never been to Houston except during transit a couple of times. Will ping you the next time I'm around and get that beer. :) If you're coming to India any time, please get in touch. :thumbsup: «_Superman_»  _I love work. It gives me something to do between weekends. _Microsoft MVP (Visual C++) (October 2009 - September 2013) Polymorphism in C
  • MFC App & Physical Memory

    help question c++ visual-studio performance
    5
    0 Votes
    5 Posts
    1 Views
    D
    Don Guy wrote: I didn't try to run the app for more than an hour yet, as i am not sure whether that will screw up other app's in the system.   What does this increase in Physical Memory mean? Is this a problem?   If yes, how can i fix that? See here. "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
  • Circular buffer for file

    help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    CPalliniC
    Your circular buffer may contain, for instance the file names, e.g. fname[0] fname[1] ... fname[9] With a next variable holding next item in the circular buffer. For instance, if next == 4 then the file having fname[4] (if any) is deleted and fname[4] is assigned with the name of a newly created file. Then next is incremented (and set to zero if greater than 9). Hope it makes sense. Veni, vidi, vici.
  • CMAP vs String table resource

    database visual-studio learning workspace
    8
    0 Votes
    8 Posts
    0 Views
    CPalliniC
    You are welcome. Veni, vidi, vici.
  • Receiving double value differently

    question
    3
    0 Votes
    3 Posts
    0 Views
    J
    Floating point numbers used by computers can be only rational (have a limited number of digits). When storing irrational numbers, the stored value must be rounded. Numbers are also stored internally with base 2. So not all decimal numbers (base 10) can be represented as identical base 2 numbers (while the decimal number is rational, the converted base 2 number may be irrational). See the section 'Representable numbers, conversion and rounding' in the Floating point[^] Wikipedia article for a more detailed explanation.
  • Redirecting the Web Site to My own Site

    tutorial
    7
    0 Votes
    7 Posts
    0 Views
    Richard Andrew x64R
    Chapter 12 of the following book contains what you need: Network Programming for Windows[^] The difficult we do right away... ...the impossible takes slightly longer.
  • CDHtmlDialog : Memory Management

    c++ help javascript html hardware
    2
    0 Votes
    2 Posts
    1 Views
    Richard Andrew x64R
    When you run the program in the debugger, if you exit the program normally, then the Output window in Visual Studio should show you a list of memory leaks that it finds. This may be helpful in tracking it down. The difficult we do right away... ...the impossible takes slightly longer.
  • Where is the WM_NCHITTEST send? SOLVED

    c++ debugging help question
    6
    0 Votes
    6 Posts
    0 Views
    V
    Thanks for the update. In retrospect - my "mistake" was not understanding how main frame non-client message gets back to windows message processing. After accessing the current active MDI frame I have a better understanding of things. Of couse few "new" documents ( DirectShow graph) insterted during test and left in did not help. Many thanks for your assistance, appreciate it. Vaclav
  • Windows Store Apps And Desktop App

    c++ wpf graphics game-dev
    2
    0 Votes
    2 Posts
    0 Views
    L
    Google for samples, or look iin the CodeProject Articles section[^].
  • 0 Votes
    3 Posts
    0 Views
    S
    Thanks for the reply. Yes indeed it works but since i am using codejock's library i get assertion errors and the app is not closing as it would expected but it stays alive doing nothing (no mouse or keyboard response). Regards, sdancer75
  • How to distinguish between the voices

    c++ sysadmin tutorial question
    2
    0 Votes
    2 Posts
    1 Views
    L
    This question is impossible to answer in a forum such as this. There are many packages available for sound processing, and Google will help you find examples.
  • MAKEFILE SOURCE CODE IN C LANGUAGE

    help
    6
    0 Votes
    6 Posts
    0 Views
    J
    Member 9978154 wrote: But as we are developing our own debugger,so i want to develop my own makefile. The former has nothing to do with the latter. Member 9978154 wrote: I want some source code...please suggest me You can find open source for the make application. Still no idea what you think you are going to get from it.
  • What Does 100-nanosecond Unit means?

    visual-studio com question
    4
    0 Votes
    4 Posts
    0 Views
    L
    Oh poo! :(
  • 0 Votes
    6 Posts
    0 Views
    A
    That first error essentially says that the texture<> template is undefined. Make sure you have the appropriate header included.
  • How to embed webbrowser control in the MFC DLL

    c++ tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    I
    Not mean
  • Tortoise svn checkpoint

    collaboration tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    A
    Every time you check in you essentially create a checkpoint, hence you can undo/track any changes in source. Usually your main source is kept in a folder labeled as a "trunk", projects are kept in a "branch" until they're finished and ready to be re-integrated into the trunk, and you can create a "tag" of any major event (such as software releases).
  • Handling mouse using OS interrupts

    help c++ com game-dev
    12
    0 Votes
    12 Posts
    2 Views
    M
    Hi, SuperCoder2014 your codes and links solve the problem about mouse handling during runtime but I stuck at deleting the bar3d(). At some point I have to create bar3d() using and after pressing mouse button I have to make disapper that bar3d() on the same background. Thanks for your help before, and I would appreciate any reply.