[RESOLVED] Unicode and ASSERT
I have a huge program that started it's life 15 years ago as a VS6 project under Windows 9.x. It's always been a multi-byte program. We've decided to finally convert to unicode and I'm attempting the...
View ArticleSetScrollSize and FormView
Hello, I created a formview with nested controls. My problem is setting the correct values for vertical scroll size so that I can scroll thru the complete range of the view. At the moment, my code...
View ArticleWhy is `float` so much faster than `int` in this program?
This simple program copy data from the array `xy` to `arr` and prints the time it takes Code: --------- #include #include class Point { public: float x, y; Point() :x(0), y(0) {} Point(float x, float...
View ArticleC++ OOP-Revision Question on Class, Data Members, and Member Methods
Having acquired very basic skills in C++, I've started learning Object Oriented Programming in C++ for a week now. I came across a revision question below and got stuck. I feel there are some other...
View ArticleCDockablePane in CMDIChildWndEx
I have an MDI app, built in VS2008. On some childframes, I have inserted some CDockablePane. But I have a probem: They don't know to save their state and position. The CDockablePane's ones that is part...
View ArticleCustomizing print preview
Hi all of you. I intend to customize the print preview, after what doctor ordered: https://msdn.microsoft.com/en-us/library/aabc3hc6.aspx And I have tried in MFC feature pack this solution ... but I...
View ArticleWindows that has the lowest Z-order so that all objects are above it?
I am looking into something like a Owned window, which is owned by the Desktop Code: --------- HWND owner_hwnd = GetDesktopWindow(); CreateWindow(L"ABC", L"ABC", WS_POPUP , ...., owner_hwnd, ...);...
View Articlehow to change the color of property sheet wizard button in VC++
Hi All, I want to change the color of property sheet wizard button. The wizard has ID_WIZNEXT, ID_WIZFINISH and other default button. the button label and position is changed. i want to change the...
View ArticleHow to regain right-click context menu after creating a window-based desktop?
Code: --------- winClass.lpszClassName = "Alt_Desktop"; winClass.cbSize = sizeof(WNDCLASSEX); winClass.style = CS_HREDRAW | CS_VREDRAW; winClass.lpfnWndProc = WindowProc; winClass.hInstance =...
View Article[RESOLVED] Why doesn't this method of closing a worker thread work?
I have an MFC application whose GUI has a start and a stop button. The start button calls a function which I want to run in the background, periodically. My solution was to use the *SetTimer *function...
View ArticleUsing Structure to Create Accounts and Calculating Currentbalance.
As part of my C++(OOP) learning process, I'm I have a tempted a question that requires a user to enter details of 3 bank account holders then calculate and display their Current Balances. I know...
View ArticleError when using Nodes in C++
Code: --------- void LIST::insertEvent(EVENT *e) { LLNODE* curr = front; LLNODE* newn = new LLNODE(e); LLNODE* old = NULL; if (curr == NULL) { front = newn; } do { old = curr; curr = curr->next;...
View ArticleC++ Read access violation when accessing private data member
Hello, so I am trying to make a member function that returns the int processTime of an event. The class for the Event class is: Code: --------- class EVENT { private: string device; int type; int...
View ArticleMultiple user input and task execution
Hello there . SO I have a question about my program .
View ArticleNeed help finishing with this c++ project
I need help on how to get my program like it is. prompt: One large chemical company pays its salespeople on a commission basis. The salespeople each receive $200 per week plus 9 percent of their gross...
View Articleprinting multiple figures side by side
hello there . So this is my code where I had to display right triangle shapes in different position . Everything is working fine . But I have a problem using a for loop statement to display them side...
View Articlecompute a growth with variable rate
Hello there . So I was asked to solve this problem which I don't fully understand that's why I have difficulties starting with it since I'm still a beginner. here it is : There are approximately 2.5...
View ArticleChanging mode MM_ISOTROPIC causes control to resize
Now if I try to draw a simple rectangle which occupies the whole control, I get that as expected. Code: --------- BOOL CZoomDemoDlg::OnInitDialog() { CDialogEx::OnInitDialog(); // .... typical default...
View Article[RESOLVED] What is secret inside address of string C++?
Here is my test code: Code: --------- std::cout << &str << '\t' << (void *)&str[0] << '\t' << (void *)&str[1] << '\t' << (void *)&str[2]...
View ArticleHow to make Qt-grade GUI with resedit?
Is it possible to make a very beautiful GUI by using the resedit and vc++ 2010 express software, much like the product created by Qt? Are there any good tutorials to recommend? Thanks Jack
View Article