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
    4 Posts
    2 Views
    M
    Hi Jochen, Thanks for your response. I got the code working. I was passing the link of the confirmation page, that was the issue. Thanks..!! Regards,
  • IoleUndoManager with Excel application

    help c++ com data-structures
    3
    0 Votes
    3 Posts
    0 Views
    J
    Hi, I did ask similar questions in the VB and COM forums before and in other websites as well .. but these rather difficult questions often remain ignored or without a propper solution .. I thought VC programmers were more confortable with these type of in depth subjects. The very few vb lines in the above code snippet should be easy to understand by non vb programmers .. I hope that anyone fmiliar with ole/com would hopefully be able to give me (at least) a rough hint Regards.
  • 0 Votes
    3 Posts
    0 Views
    S
    I just happened to google that a few days ago: http://support.microsoft.com/en-us/kb/813808[^] http://stackoverflow.com/questions/5486009/custom-form-designer-by-using-visual-c-sharp-net[^] Form Designer[^] I have no experience with that but judging from what I've seen and read so far, it's far from trivial.
  • MFC CDialog hosting WPF components

    question csharp c++ visual-studio wpf
    3
    0 Votes
    3 Posts
    0 Views
    M
    Thanks for suggestion. I have just done so. But I'm not sure that the answer to my problem is inside the WPF part. It can also be in the MFC one.
  • const char error

    help csharp c++ visual-studio
    10
    0 Votes
    10 Posts
    0 Views
    F
    So if I select for my project setting char set -> not set .... And wrap all of my strings with a _T( macro is that best practice ... Thanks
  • Implementing Finite State Machine using C++

    c++ game-dev tutorial question
    5
    0 Votes
    5 Posts
    0 Views
    S
    CPallini has given you a basic example for a FSM - you will understand that we're not here to provide ready solutions. You have formulated your game states - what stops you from extending that sample with that, or, at least trying?
  • catching return key (VK_RETURN) with OnKeyDown

    question
    6
    0 Votes
    6 Posts
    0 Views
    U
    Don't forget to add ON_WM_GETDLGCODE() to the message map of your class.
  • Unwanted radio button click

    question c++ tools
    6
    0 Votes
    6 Posts
    0 Views
    D
    Nope, radio button had focus. "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
  • 0 Votes
    2 Posts
    0 Views
    M
    You need add the Interop.Excel.dll to your project. With that dll you can create a excel application to handle menus, bars, and so on. The documentation is [here]
  • [C++]execute other program on second monitor

    c++ tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    L
    Please read http://www.codeproject.com/Messages/2922875/HOW-TO-ASK-A-QUESTION.aspx[^].
  • Binary Tree Recursion Problem

    asp-net linux data-structures help
    9
    0 Votes
    9 Posts
    0 Views
    U
    You solved it, thanks!
  • Cpu temperature to obtain the sample code in visual c/c++ .

    c++
    3
    0 Votes
    3 Posts
    0 Views
    D
    I can give you some pointers (no pun intended) using WMI. "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
  • Controls, variable and dialogs

    c++ architecture question
    4
    0 Votes
    4 Posts
    0 Views
    F
    If you are worried about the memory needed to store several values twice, you could define a class or struct, create an object of it in your view class and pass the reference to this object to the dialog objects in their constructors. This way you only have 4 byte overhead per dialog. The good thing about pessimism is, that you are always either right or pleasently surprised.
  • 0 Votes
    11 Posts
    0 Views
    U
    Thanks Jochen Arndt
  • Writing Vector object into a .txt file

    graphics game-dev announcement
    25
    0 Votes
    25 Posts
    0 Views
    M
    Just got some information on data logging for haptic thread. It's basically a data structure for the buffering of data on a haptic thread but I didn't understood completely how to use this for my application. It's basically a header. I'm attaching it here: /****** * * Written by Dan Morris * dmorris@cs.stanford.edu * http://cs.stanford.edu/~dmorris * * You can do anything you want with this file as long as this header * stays on it and I am credited when it's appropriate. * ******/ #ifndef _BLOCK_LINKED_LIST_H_ #define _BLOCK_LINKED_LIST_H_ // This is a custom data structure that I used for buffering data on // its way out to disk. It is not a random access data structure; // it just buffers up objects of type T and flushes them out to disk. // // If you're using flusher and writer threads, the general protocol // is to only allow the writer to call the push_back function, and // let the reader use the safe_flush function to do its flushing. // Then at some point when the writer is done forever, the reader can // call flush() to flush the remaining blocks that were currently in use // by the writer. // // This is a lock-free solution to the producer-consumer problem with the // constraint that immediate consumption is not important. // // This addresses a common access pattern for applications that have a time- // critical thread (e.g. a haptics thread) that generates data that // needs to be logged to disk. This approach avoids any disk access or // mutex access on the high-priority thread. I've used this data // structure for haptics (where a high-priority thread generates forces) // and neurophysiology/psychophysics (where a high-priority thread // controls an experiment). // // Note that in this mode, the "flusher" thread should _not_ also put // data into the array; i.e. the writer thread "owns" the push_back // function. // The node type for the linked list template class block_linked_list_node { public: // An array of T's T* data; block_linked_list_node* next; block_linked_list_node() { data = new T[chunk_size]; next = 0; } ~block_linked_list_node() { delete [] data; } }; // The data structure itself template class block_linked_list { public: // The head of the list block_linked_list_node* head; // The number of T's in the list size_t total_count; // A pointer to the curren
  • Quicksort slower than mergesort...

    algorithms data-structures question
    7
    0 Votes
    7 Posts
    0 Views
    P
    here is answer https://sourceforge.net/projects/pwwhashmap/files/?source=navbar[^]
  • Visual Studio C++ compiler empty functions

    csharp c++ visual-studio question
    4
    0 Votes
    4 Posts
    0 Views
    M
    Yes, the compiler will eliminate useless calls (maybe not in DEBUG mode, but surely in RELEASE mode). today's compiler are a lot more smarter than you can imagine. Is there a particular reason for this question? I'd rather be phishing!
  • win32 - how avoid flickers?

    question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • error: source file cannot be found 3DCurve.h

    help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    0 Views
    No one has replied