|
Jijo raj wrote: You could use the api - PathFileExists()[^].
you and rajesh replied almost on sametime
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
bool FileExisting(const char * filename)
{
return GetFileAttributes(filename) != 0xFFFFFFFF;
}
or simply PathFileExists API
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Use the "File" class & check the return value of the below function to check whether the file exists or not.
File::Exists( path )
Regards,
Rane
|
|
|
|
|
Rane wrote: Use the "File" class & check the return value of the below function to check whether the file exists or not.
File class belongs to the .NET framework. We discuss native programming here.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Oops
Regards,
Rane
|
|
|
|
|
There's also _access() .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Or you can use of FindFirstFile .
|
|
|
|
|
Hi,
I have a ClistCtrl control which is being filled by data from the server after every 8 seconds.
Now when when i click a row the selected information is being displayed on another CListCtrl. But when i use keyboard navigatiuon keys to change the row i am not able to show the data updated data.
What i mean to say is that it is working fine for click events as i have used
NM_RCLICK
LVN_COLUMNCLICK
NM_DBLCLK
NM_CLICK
What should i use for navigation keys.
Please help me
Thanks in Advance
Dhiraj
modified on Wednesday, September 10, 2008 7:10 AM
|
|
|
|
|
Hi,
You better use this.
afx_msg void OnSetFocus(
CWnd* pOldWnd
);
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
Can u just show me an example
Please
|
|
|
|
|
Hi,
First inherit the CListCtrl class.
Then override OnSetFocus message.
When you select a row in the first List Control. In the OnSetFocus message show the particular row in the second list control..
Thats it..
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
IMO you don't need to handle those four messages. you should handle LVN_ITEMCHANGED instead
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Thanx LVN_ITEMCHANGED is working for navigation keys.
Can you just tell me the message when a user press enter key after selecting a CListCtrl item i.e.row
|
|
|
|
|
Why are waiting for the user to press enter? Don't you display your data immediately after selecting a CListCtrl item?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
please guide I create an application and from this application can created file.exe in vc++6.0. thank you very much
e.g : created file abc.bat, when double click this file ==> make file abc.exe
|
|
|
|
|
Your English seems
|
|
|
|
|
If may understanding is correct.. , I think you want to create a new file programatically. In order to do this use CreateFile Function.
Regards,
Rane
|
|
|
|
|
Are you trying to build the executable from the command line?
|
|
|
|
|
hi.
you can write specific ?
when you press Control + F5 in VC++6.0 ==> your application will file abc.exe. now I want write file abc.bat and when double click this file ==> made file abc.exe.
I wish you help me. thanks very much
|
|
|
|
|
Ctrl+F5 will run your application (and rebuild if necessary).
I think I know what you are trying to do.
You'll have to create the batch file that builds your "abc.exe":
Solution 1:
1. Export a makefile for your project (Project -> Export Makefile)
2. Create the batch file, example (where "MyProject" is the name of your project):
set PROJECT=MyProject
@NMAKE /F %PROJECT%.mak /NOLOGO CFG="%PROJECT% - Win32 Release"
Solution 2:
With VC6, you can build from the command line like this:
Create the batch file, example (where "MyProject" is the name of your project):
set PROJECT=MyProject
msdev.com %PROJECT%.dsp /MAKE "%PROJECT% - Win32 Release"
or
set PROJECT=MyProject
msdev.com %PROJECT%.dsw /MAKE "%PROJECT% - Win32 Release"
Obviously, all this requires that your environment variables for compiler, libraries, etc. are properly set.
modified on Wednesday, September 10, 2008 11:16 PM
|
|
|
|
|
That is the first time I work with it, so, could you show me how to work with it step by step?
|
|
|
|
|
phan xuan nguyen wrote: show me how to work with it step by step
That's what I did. What do you not understand?
|
|
|
|
|
can you write specific step by step in source visualc++ when new project by makefile. thanks
|
|
|
|
|
You lost me...
|
|
|
|
|
you guide step by step new project by feature makefile in visualc++6.0. thanks
|
|
|
|