|
Hi,
I need some way to save the file any without opening it.
so that I can change it's modification date.
that's the purpose of saving the .txt file
sonani prakash
|
|
|
|
|
why dont you use SetFileTime() function?
nave
|
|
|
|
|
If all you need to do is update the modification time, look into finding a Windows version of the touch utility. Should be rather easy to find, and really easy to write - look up the SetFileTime(...) function.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
let me try this one
thanks
Prakash.
sonani prakash
|
|
|
|
|
Sonani Prakash wrote: How to save the notepad file without opening it.
If the file has not been opened, it therefore has not been changed, thus no save is necessary. Please elaborate.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
But do you have any idea for it?
|
|
|
|
|
Hi,
how to get absolute path of %systemroot% or %userprofile%.
I want to create file into %userprofile% path and CFile does not accept that sort of path so I need somehow absolute path of %UserProfile%. as it is changing depending on user's account on PC.
Can anyboday let me know about this ?
Thanks,
Prakash
sonani prakash
|
|
|
|
|
use GetEnvironmentVariable() function.
or
ExpandEnvironmentStrings()
nave
|
|
|
|
|
yes i got it.
thanks for your effort,
Prakash
sonani prakash
|
|
|
|
|
Sonani Prakash wrote: thanks for your effort
You can say thanks to him by voting him. Votes are meant for thanking these volunteers.
|
|
|
|
|
prasad_som wrote: Votes are meant for thanking
But which 1 or 5
|
|
|
|
|
WhiteSky wrote: But which 1 or 5
Hmmm, 5 will do, like I'm giving you now.
|
|
|
|
|
;)
Thank you
|
|
|
|
|
Hi,
I am having an application in which i am using Rich Edit 2.0.
I am having some string (CString)object. & i want to display some part of it in diffrent font.
eg : "What You are Doing?"
I want that "you are " should have diffrent format.
If anybody knows the solution Please tell me.
Thanks. swapnil
|
|
|
|
|
See previous post below...
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
|
Is there a simple way to process right click events on a dialog? I've successfully used the long filename ellipsis CStatic control to display long filenames, but would like to be able to right click and perhaps have a tooltip or something that can display the entire path
|
|
|
|
|
overide the WM_RBUTTONDOWN message.
nave
|
|
|
|
|
Since users are used to holding a mouse button down to initiate drag and/or selection actions, you could react to the WM_RBUTTONUP event (rarely the down event, unless you really know what you are doing).
Associating a tooltip to the control would allow the tooltip to appear automatically when the user hovers over it for a time, which is pretty standard behavior. Try it right now - hover over a toolbar button in Internet Explorer or a truncated text item in the list view in Explorer and see what happpens.
Never create a new or different workflow when an existing one already exists that users may already be familiar with.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
You can use of WM_RBUTTONDOWN/WM_RBUTTONUP but do you want these events on the CStatic
|
|
|
|
|
|
Hi all.
I must write Windows service thet will be simple file manager.
I have idea thet write program, use MFC thet will install my service and handel some other problems.
But I have problem:
how can I give(send) my data from program thet is writen by using MFC to service thet use this data?
P.S.
To write service I use "Console Application" not "Windous Service".
Thanks for any help.
|
|
|
|
|
i have called function.
suppose file is x.cpp call function of y.cpp
x.cpp
hr = pEncoder->Compress(WpszInFile ,pszOutFile,pIWMProfile,fMultipass,FALSE,FALSE,Host,UserID,InitPackageRequest,ScriptFile,Port,hwndParent,w_KeyID);
y.cpp
HRESULT Encoder::Compress(WCHAR *pwszInputFile ,WCHAR * pwszOutputFile,
IWMProfile * pProifle,
BOOL fMultiPass,
BOOL fMultiChannel,
BOOL fSmartRecompression,string Host,string UserID,string InitPackageRequest,string ScriptFile,INTERNET_PORT Port, HWND hwndParent, WCHAR *w_KeyID )
{
Log log;
HRESULT hr = S_OK;
//
// Initialize the pointers
//
m_hEvent = NULL;
m_pReader = NULL;
m_pReaderAdvanced = NULL;
m_pReaderHeaderInfo = NULL;
m_pReaderProfile = NULL;
m_pWriter = NULL;
m_pWriterPreprocess = NULL;
m_pWriterHeaderInfo = NULL;
m_pdwPreprocessPass = NULL;
m_pdwOutputToInput = NULL;
m_pdwOutputToStream = NULL;
if( NULL == pwszInputFile || NULL == pwszOutputFile || NULL == pProifle )
{
return E_INVALIDARG;
}
..................
..................
..................
....................
when the function call there is value like d:\tt.wmv in *pwszInputFile
but when the control goes in the function body it lost valve and give me the value in unicode type
like squares.
what is the reason and why how could i got my value?
Amit
|
|
|
|
|
What are you doing with this pointer inside your function ?
Remember that you pass a pointer to the function, meaning that all modification you do on the contents will be 'visible' from outside your function. The function doesn't make a copy of the string.
|
|
|
|
|
i am again pass this function to the other function.
hr = pEncoder->Compress(WpszInFile,pszOutFile,pIWMProfile,fMultipass,FALSE,FALSE,Host,UserID,InitPackageRequest,ScriptFile,Port,hwndParent,w_KeyID);
in compress function ,original file pass ,on the base of that file there is one new encodedfile created.
this will be pass as parameter.
Amit
|
|
|
|