|
Hi
How can I change the color of a Tab Control? I manged to change the color of a static text and dialog. I need to change the color of the Button control and Tab control from the default gray to a color matching my dialog. How to do this? Please help
Thanks in advance
Deepak
|
|
|
|
|
|
hi,
i have a C++ program which can open cmd using createprocess() function but i want to give command to cmd.means when i run my program it will open cmd and if i want to show the directory i ahve to write in cmd dir but i want that i write dir in my program and it will automatically execute in cmd.can i do this?
|
|
|
|
|
Do you have troubles adding "cmd " to the actual command typed in your application?
You may also use the system CTR function, for instance
void main()
{
system("dir");
}
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
no no actually i use there scanf function and if i use system() commmand and type command cd c:\ then it will not goes to c: drive.I simply want to write a program which can give command to cmd and show me the output in my C++ running window.means whatever cmd shows it will be shown on my screen
|
|
|
|
|
Are you talking about console input/output redirection?
|
|
|
|
|
|
See here and here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
|
There are several articles about here [^] at Code Project.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
ravi 12 wrote: ...when i run my program it will open cmd and if i want to show the directory i ahve to write in cmd dir...
Why don't you use the FindFirstFile() and FindNextFile() pair?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
I don't know how you guys decipher this gibberish. It looks like Liquid Nitrogen to me...
|
|
|
|
|
|
In a C++ MFC application I have a Main dialog and several child dialogs. Now one of these child dialogs I used the Tabbed Dialog (CTabDialog - which had a main dialog and a dialog for each TAB). This worked greatand it has loads of code associated with the many controls on these tabs.
Now I would like to clone this dialog x2.
What is the best way to try and do this?
I am worried about the IDD/IDC etc in the resource.h file.
I can do global exchange for many items in the code.
Has anyone done this before or suggest the scheme to do this.
Many thanks,
Graham
grahamfff
|
|
|
|
|
Why do you need to clone it ? Can't you simply reuse it ?
Do you need different functionalities ? If yes, can't you simply make two classes inheriting from the same base class ?
|
|
|
|
|
The program controlled a hardware item, using a database and shared library. Now would like to control three items of hardware; which can be done OK. But need three instances of the GUI to control each h/w item.
If was starting the scratch then could design a class for this scheme, but too late now.
For ease and speed, clone the GUI and global change the code behind it.
Graham.
grahamfff
|
|
|
|
|
Hello,
I have a code to open an excel file , add a chart and want to save the chart with the file. Opening file adding chart is done but for saving the file is not saved directly it asks for changes
_Workbook newBook;
newBook.Save(); // this save doesnt work
// i have to write the SaveAs
newBook.SaveAs(COleVariant("d:\\wip4.csv"),vOpt,vOpt,
vOpt,vOpt,vOpt,0,vOpt,vOpt,vOpt,vOpt,vOpt);
How should I save the changes to file ?
Pritha
|
|
|
|
|
prithaa wrote: newBook.Save(); // this save doesnt work
Which means what exactly?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Hello,
newBook.Save() gives Unhandled exception in .exe Microsoft C++ exception.
Pritha
|
|
|
|
|
Granted, this is vba code - though I'm sure you'll work it out if you've come his far...
---------- 8< ----------------
Sometimes the application displays a messagebox asking if the user wants to continue,
if he/she wants to save a file before closing, or want some other verification from the user.
These messages can be turned off by using this command in a macro :
Application.DisplayAlerts = False
The warningmessages will remain turned off until you enable them again with this command:
Application.DisplayAlerts = True
If you just want to close a workbook without the user being prompted for any confirmations about saving
the workbook you can simply do this:
ActiveWorkbook.Close False ' closes the active workbook without saving any changes
ActiveWorkbook.Close True ' closes the active workbook and saves any changes
--------------------- >8 ------------------------
|
|
|
|
|
Hey guys,
How can I enable my class, which is derived from CCmdTarget, to use message maps and message queues.
|
|
|
|
|
I have to make an application which will run on Servers like win 2k3 and Win 2k8. This application will run in system account with multiple instances each for one user logged on the machine. This application is designed to trap logoff event and stop logoff ..do some job and then progress ahead with logff.I am trapping WM_QUERYENDSESSION for this purpose, but unfortunately I donot get any information about which user has loggedd off. I am stuck here as all my applications running trap this message but I need to match them with the user name who actually wants to logg of depending upon that I will have to log off that particular user using his session ID.Please help me out in this.
Regards,
Kushagra
I hate coding but I luv to develop
|
|
|
|
|
How about creating a Winlogon notification package? There's also the ISensLogon and ISensLogon2 interfaces, but those also notify after the fact.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
I have already created winlogon package which allows me to see which user has logged on as I get the token of explorer in this case. Where as If I try to capture the log off event It is caught when the log off is in progress so I cannot do any thing at that time to abort logoff also by the time the dll gets a call for Logoff the explorer dies and thus I am not able to get which user has logged off. I need to find out which user has logged off.
Regards,
Kushagra
I hate coding but I luv to develop
|
|
|
|
|
Hi Friends Iam Very new to STL i want to know what Data Structures are used in MAP<char *,char="" *=""> internally to search or to insert or to delete. can any body let me know this is assignment assigned by my teacher......
Thanks in Advance....
|
|
|
|