|
|
How do I move/rename/copy/delete files within a C++ program?
All help appreciated!
Richard
|
|
|
|
|
::CopyFile and ::DeleteFile will do all of these. (rename = copyfile then deleteFile)
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
Or, alternately, ::MoveFile(...) ...
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
How can hide my app in put an icon on the taskbar?
BTW: for some of you that wished for CodeProject irc server
I create a channle on DalNet called "#CodeProject "
|
|
|
|
|
|
does any one know how can I use the text-to-speech engine ?
BTW: for some of you that wished for CodeProject irc server
I create a channle on DalNet called "#CodeProject "
|
|
|
|
|
|
Simple Question. Does the CRuntimeClass and the CObject::IsKindOf function support a class structure with Multiple Inheritance?
Joel Holdsworth - the vest from the west
|
|
|
|
|
|
I was following an article on MSDN about the common controls and new features in them but unfortunatly, when I try to use some of the newest features (like chevrons in toolbars), the compiler basicly says that it can't find the style that I am requesting.
Do I need any updated libraries to use these new features and if so, where can I download them from???
Thanks,
James Bird - birdjames@bigfoot.com
|
|
|
|
|
Download the Platform SDK from the MSDN-Homepage.
You will find it somewhere at msdn.microsoft.com
|
|
|
|
|
|
Hi
I just read the article about how to add a deskband to the InternetExplorer.
But this is not the thing I want to do.
I just want to add a button to the IE-Toolbar (e.g. like the downloadmanager "FlashGet" does)
I want ti execute my own code when the user clicks on this button (i.e. open a diaog-box or similiar things)
How can I achieve this?
thanks in advance
|
|
|
|
|
Is it possible to create, open, use, close and delete a FILE in memory, without flushing to disk?
|
|
|
|
|
i don't think so. but if you use Windows HANDLEs (CreateFile and friends) you can use memory or file based I/O transparently.
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
Maybe the only way is the FILE_ATTRIBUTE_TEMPORARY flag; probably the same than tmpfile() .
How long can I keep the file open before the OS flushes?
|
|
|
|
|
How can I read from a file?
for Example I have a file = test.txt
and than... I have a string
and now I want that the text from my test.txt file be copied in my String;
how can I do this?
is this the right way?
CString str;
CFile file("test.txt", CFile::modeRead);
file.Read( ... and then?
MessageBox(str); // to se what is in the test.txt
|
|
|
|
|
Go and buy a book about the C/C++ programming language.
|
|
|
|
|
If it's just a text file try using CStdioFile and calling the method ReadString
CString str;
CStdioFile file("test.txt", CFile::modeRead);
file.ReadString(str);
MessageBox(str);
Michael
|
|
|
|
|
thank you!
|
|
|
|
|
What is the best way to handle BLOB in automation interface? IStream seems to be a good candidate, anything different?
Best regards,
Paul.
Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan, and open for programming contract anywhere!
|
|
|
|
|
Hello,
I am writing a program that access a MSSQL 2000 3 times, in a windows 2000 evirenoment.
The problem is that the dbopen() function fails randomly in one of the 3 times it tries to open the database the error says:
DB-LIBRARY error:
NULL DBPROCESS pointer encoutred.
it happens that sometimes the program runs without errors.
the same program was running before on a windows NT4 /MSSQL 7 without problems.
|
|
|
|
|
Hi ,
I have a dll , which displays a dialog box. and I need to
invoke this dialog through a HTML page. There would be a
string send from the HTML to the dialog , and after processing, from the Dialog back to the HTML page.
Can someone please tell how can I achieve this.
Thanks
Sanksy ;-D
sp
|
|
|
|
|
Ordinary DLLs are not normally used, at least not easily in IE. Convert it to a COM server or write a simple COM server to access the DLL.
Best regards,
Paul.
Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan, and open for programming contract anywhere!
|
|
|
|