|
i have done my coursework already...thx for your kindness..
i am deeply appreciate....
thanks a lot...
|
|
|
|
|
yetyet wrote: Can someone write this program for me??
You deserve an A for honesty!
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
thanks for your advise...
|
|
|
|
|
I want to know how can I access the registry location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrnetVersion\App Paths ? I tried to access throught the command GetSettings but it doesn't work for this location.
Any help will be Appreciated.
Sekhar
|
|
|
|
|
|
SekharOne wrote: I tried to access throught the command GetSettings...
What is GetSettings() ?
SekharOne wrote: ...but it doesn't work for this location.
Why not?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi, take a look to This thread[^] I posted some time ago, I got very good explanations about, and there are some examples.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
hello all,
i'am having 4 child form(window) in my application, and i added a combo box in the main frame tool bar. now how can i find which child form is active and based on that active form i would like to change the cursor position of combo,
can you please tell, how to do it? which function is suitable
thanks
panthal
|
|
|
|
|
before initiating any child dialog, try to set the corresponding combo item.
|
|
|
|
|
Does GetActiveWindow helpful?
|
|
|
|
|
i'am going to change combo item in the main frame window based on active child form,
if the child form 1 is active , the main frame combo box value is set to cursor(1).so how can i identify the active child form? and where will i initialize the combo in main frame
thank u
|
|
|
|
|
how to check , whether the child window is active or not.
is there any function to find it?
-- modified at 2:28 Saturday 3rd November, 2007
|
|
|
|
|
|
When you are on the active window you can send your data to combobox.
|
|
|
|
|
How do I use CDatabase and CRecordset to return a list of tables in a given database. I am connecting sucessfully to a MySQL server on a unix machine. I know this because I can pass a SELECT * FROM query and get a populated recordset in return.....however when I try "SHOW TABLES FROM db_name" I get an assertion error.
Thanks.
|
|
|
|
|
|
JKallen wrote: ...when I try "SHOW TABLES FROM db_name" I get an assertion error.
What line of what file is asserting?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Class CSDITest1Doc creates a new instance of a dialog class. Works OK. Example below:
CTestDlg* aDlg = new CTestDlg(); //code is in CSDITest1Doc
From class CSDITest1Doc I can execute functions of the new CTestDlg. For example, LoadMessage() is a function of CTestDlg. Works OK. Example below:
aDlg->LoadMessage(); //this code is in CSDITest1Doc
Sometimes I want to alert CSDITest1Doc of something that happens in CTestDlg. Sometimes I want CTestDlg to ask for data from CSDITest1Doc. Suppose XYZ() is a function of CSDITest1Doc. How do I execute a XYZ()of CSDITest1Doc from CTestDlg?
|
|
|
|
|
Oliver123 wrote: How do I execute a XYZ()of CSDITest1Doc from CTestDlg?
One way is to pass a CSDITest1Doc pointer to the CTestDlg instance.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I tried this, but found I didn't really know what to load into the pointer. In CSDITest1Doc I entered the following code. I figured if I could get the pointer aDoc loaded with the address of the instance of CSDITest1Doc , I could call a function from CTestDlg , and use that to pass the pointer to CTestDlg.
CSDITest1Doc* aDoc;<br />
aDoc = ???????
Is this a correct approach?
Thanks
|
|
|
|
|
Oliver123 wrote: Is this a correct approach?
No. Try:
CTestDlg* aDlg = new CTestDlg(this); Remember to create an appropriate CTestDlg constructor.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Re: Entering Negative values in MSVS 6.0 Edit dialogs.
Has anyone found a solution or work around for the problem with entering a “negative” value in an Edit-Control Dialog box?
When a ‘int type’ is specified and validation is used or not, the same “Enter a Number Error” dialog is displayed when the first entry is the “ - “ key!
I am aware of one work around first enter the number, then use HOME key, and then enter the – key, but this is very clumsy and many users would not know to use this.
Ralph_L
|
|
|
|
|
Ralph_L wrote: in MSVS 6.0 Edit dialogs.
What is an "MSVS 6.0 Edit dialog"? You mean like where you enter the number of spaces to use for a Tab? Why would you put a negative number in there?
|
|
|
|
|
MSVS 6.0 is Microsoft Visual Studio ver 6.0 for C++/MFC.
The Edit box is a Dialog Edit box where one can enter value into.
Ralph_L
|
|
|
|
|
Ralph_L wrote: When a ‘int type’ is specified and validation is used or not, the same “Enter a Number Error” dialog is displayed when the first entry is the “ - “ key!
Because "-" is not a numeric character. Use a masked edit control.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|