You don't have a reference to an ABC object inside GHI's constructor. m_strErrorMessageText is an instance variable, not a static variable, so you need an ABC pointer/reference/object. Nested classes are only a definition scope - you don't automatically get a GHI instance member of ABC, for example.
DoEvents: Generating unexpected recursion since 1991
Mike, thanks for your excellent response. It explains things exactly and coupled with led mike's response, I'm going to have to re-design things. Not sure why the original designer used the nested classes. It seems superflous considering the original design had no members for the ABC class. Appreciate the quick explanation and help.
I have added a List control as a resource on a dialog box. It is multicolumn and i have been able to set its column headers and width.
Now in my OnIinitDialog function i want to insert first row where the second column should have a check box instead of having any value.
Dont know how to add a check box as a item to a multilist column.
Please help me.
Dhiraj Kumar Saini
-- modified at 9:53 Wednesday 19th September, 2007
I want to add such a control in my dialog box which can house several pictures in it and can decrease and incease in size dynamically as i add pictures in it and also pictures can be of any type.
One thing more which i want is that each picture should have a caption at the bottom as a title of the picture and on taking mouse over it the title hsould change its colour from black to blue.
I f u have problem in understanding what i want to do just see webshot desktop which i am also trying to develop exactly same.
Please help me.
when I compile my project, there is a fatel error "fatal error RC1015: cannot open include file 'winresrc.h". the file is under the directory "Z:\gen_tools\include", and I added the path "Z:\gen_tools\include" in "tools ->options->directories" too. I don't know what can I do with the error. Please help! thanks in advance!!
I have list control whose property is set to
WS_BORDER | WS_TABSTOP,293,37,146,214,
WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE | WS_EX_RIGHT |
Am displaying the data read from the serial port in the list control but there is lot of filckering.Below is the code to display the data in list control.Is there any thing am missing in the code.Why there is flickering?More flickering starts when i start deleting the data.If i don't delete i get assert error that maybe due to memory overflow of the list control.Plz help me out.
void CNgpptDialog::ReadSerialData(CString sIn)
int counter = ptrCmdResp->GetItemCount();
ptrCmdResp->InsertItem(counter, "");// to insert a row
ptrCmdResp->SetItemText(counter, 0, pressure_data);// column0
ptrCmdResp->EnsureVisible(counter, FALSE); // Scrolls downwords.
if(counter > 150)// I start deleting first data when the number of items in the list control is > 150
int nIndex = ptrCmdResp->GetItemCount();
I have an VC++ application connected to database. It does the database operations such as searching records, moving to next/previous record, add, update and delete records.
Problem: When i search for records (i.e with certain condition and with sort), i will get the records on the text fields.
For example, i have retrieved 1 2 3 7 9 (using select statement in code.)
These will be stored in recordset. Suppose if i update value 9 to 4. The sort order should be maintained in text fields.. How can i get the sort order (i.e 1 2 3 4 7) without reapplying select statement?
I think that if the process which is using DLL still exist, then the dll will also remain in memory whether you use it or not.
To Remove the dll, use FreeLibrary. But that will only remove dll loaded with LoadLibrary.
From the MSDN: Each process maintains a reference count for each loaded library module. This reference count is incremented each time LoadLibrary is called and is decremented each time FreeLibrary is called.
A DLL module loaded at process initialization due to load-time dynamic linking has a reference count of one. This count is incremented if the same module is loaded by a call to LoadLibrary.
Last Visit: 31-Dec-99 18:00 Last Update: 23-Jul-21 6:57