|
There is a windows version of awk. And I think, that sed and grep exist for windows too, try google.
Robert-Antonio
"I launched Norton Commander and saw, drive C: on the left, drive C: on the
right...Damn, why I need two drives C:??? So I formatted one..."
|
|
|
|
|
I may provide you with some code. Do you have the file format description of a MATLAB .dat ?
~RaGE();
|
|
|
|
|
How can I determine whether a window on the desktop is a topmost window or not. I need to bring a window momentarily to the top (with HWND_TOPMOST), and then to restore it back to the position it was. I can use GetWindow(hWnd, HWND_RREV) to determine the previous window, and use this handle in SetWindowPos(). But since I have altered the TOPMOST position, how do I restore it?
|
|
|
|
|
Would GetForegroundWindow() be of any use?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
The window might be topmost, but not on the foreground. For example, We can set MSN to Always on top, and the task manager, which is always on top. Both of these are topmost windows, but any of them could be in the foreground. The following line solved the problem:
bool isTopmost = GetWindowLong(hWnd, GWL_EXSTYLE) & WS_EX_TOPMOST
|
|
|
|
|
Can someone tell me where I can get the following dll's as I need in order to get am app to run that I downloaded from here. They are mfc71.dll and msvcr71.dll
Thanks a bunch for whatever help you can supply.
|
|
|
|
|
|
Thanks Chris, really appreciate it as I was at a loss as how to resolve my problem. Best regards, Lee
|
|
|
|
|
I've a few tabs in my main program.
Each tab has a button.
I wanted to click on the button of the first tab and it should move to the second tab.
How can I do that?
|
|
|
|
|
Are you using a TabCtrl(CTabCtrl) or just a Propertysheet with pages?
|
|
|
|
|
I am using an inherent TabCtrl class, which added in some extra function into the standard TabCtrl, like change tab tax color when mouse over it … so if someone knows how to solve this problem using TabCtrl then our problem will be solved, and by the way, our TabCtrl is constructed on a Dialog(MFC dialog project, not Doc/View, I found a solution for Doc/View already but quite complex, and all function is nested in one class, it’s not applicable on our project).
Maybe you can provide me with your email and I can do a screen capture of my program.
|
|
|
|
|
SetCurSel( GetCurSel( ) + 1);
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi,
I want to have a normal CDialog as a child window in a mdi application. I am using Visual c++ 6.0.
Can somebody help me with that?
I would be very thankful,
MAX
|
|
|
|
|
What is the correct syntax for the use of an extractor for a _variant_t object?
For example assume a _varient_t object was constructed as follows:
short number = 100;
_variant_t((short) number, VT_I2);
The extractor in the VCPP documentation is specified as:
operator short()
What is the correct usage and syntax to extract 'number' from the _variant_t object using this function?
Thanks.
|
|
|
|
|
It's a standard C++ conversion operator:
short number = 100;
_variant_t v ((short) number, VT_I2);
short sh1 = (short) v;
short sh2 = v; Just be prepared to catch exceptions - the converter will throw if the _variant_t doesn't actually hold a short .
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
Actual sign at the laundromat I go to: "No tinting or dying."
|
|
|
|
|
Mike,
Thanks for the answer.
I had put off giving any thought to catching exceptions until I had the operator part figured, but you have nicely filled in that part also.
Bill
|
|
|
|
|
screenshot:
http://www.guiicons.com/high/ICONS.jpg
preview and download xp icons please browse
http://www.guiicons.com
|
|
|
|
|
guiicons wrote:
preview and download xp icons please browse
No spam in the CodeProject forums - please tell someone.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
There is a saying in statistics that a million monkeys pounding on typewriters would eventually create a work of Shakespeare. Thanks to the Internet, we now know that this is not true.
|
|
|
|
|
I have two questions. First is, how can I read and write a text file? I've done this before with fstream, but that method doesn't seem to work at all with MFC.
Second, is there a way I can easily intergrate these text files into the executable? If not, then they could just be kept in the same folder, but it would clean it up a lot if they were apart of it.
If you have a problem with my spelling, just remember that's not my fault. I (as well as everyone else who learned to spell after 1976) blame it on Robert A. Kolpek for U.S. Patent 4,136,395.
|
|
|
|
|
fstream should work, but it's C. You should use iostreams to read and write text files. Plenty of tutorials on CP.
You should be able to integrate text using resources, depending on how big they are. I've not done it tho.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Can anyone suggest a solid example tutorial for using an MDI app to access a database?
|
|
|
|
|
Hi
I am looking to write a small VC++ utility which inserts possibly a few thousand records at a time into an Access database.
The primary criteria here is efficiency. Which is the more suitable candidate? ODBC or OLE DB?
Any input is appreciated.
thanks
Satheesh
Man Learns from History that he never learns from History
|
|
|
|
|
You wont see much of a performance difference between the OLE DB ODBC provider and using the ODBC API directly. OLE DB is based on COM and it doesnt introduce any overhead. OLE DB is basically to use COM so that we can have a plug-and-play architecture for application components.
|
|
|
|
|
You can choose OLEDB. because ODBC is a generailised interface it will take some more time than OLEDB.
all the best
|
|
|
|
|
What's the easiest way to read in a large file to parse out specific dat from. Sometimes this file can be over a meg. I know I can open it with CFile and read it that way. but then I need to find specific words (using a token). Is there another class that will allow me to read in the file line by line until I hit end of file?
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|