|
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....
|
|
|
|
|
You can download the stl source code from [^]
Since, this is your assignment, you should solve it.
HINT : check map.h and other files included in it.
|
|
|
|
|
It can vary from implementation to implementation but I believe that most use a balanced binary tree.
|
|
|
|
|
It all depends on the implementation. And anyway, if this is YOUR assignment, assigned by YOUR teacher, then YOU should be doing the work of finding out the answer, not asking someone else to do it - look at the source code.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
The STL standard doesn't specify how a std::map is coded but rather its interface, which includes the complexity[^] of various operations. However, the complexity constraints and interface limit the choices. Generally a Red-black tree[^] is used.
Steve
|
|
|
|
|
I am currently developing application that plays videos for people in a simulator. The video player was developed by an old employee who has since moved on. The old developer used the elecard librarys/SDK to create the video player. The player works pretty good.
However, When I close the player and attempt to load another video the desktop is displayed for a short period of time. I tried to create a splash screen to hide the desktop using (CSplash - A Splash Window Class) project found on here. However, the splash screen stops working after new video player is loaded with file and ready to play in full screen. The splash screen window still exist in task manager but the screen is not visible and task manager says it;s not responding.
I tried to use tweakUI General, Focus, Prevent applications from stealing focus option. However that did not work Is there way to ensure, the splash screen is always on top?
Any help here would be great.
Scott Dolan
Jernie Corporation
Engineering & Manufacturing
Software, Hardware, & Enclosures
|
|
|
|