Re: using "CreateFile" for open a file archive
- From: Ken <Ken@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Apr 2005 18:48:02 -0700
What is that set of command if using VB.net 2003?
"iLLiDaN" wrote:
> ok, thank you, it is what I'm looking for. I suppose usually this is used by
> developers in their apps.
>
> Regardss.
>
> "Riki Risnandar" wrote:
>
> > why dont u place your config.txt in your application folder.
> > this is the function to get the fullname or app path
> >
> > void CMyApp::GetAppPath(CString &sReturnPath)
> > {
> > CString strFilePath;
> > CString strFolderPath;
> >
> > // Get fullname path
> > TCHAR lpFileName[MAX_PATH+1];
> > GetModuleFileName(NULL, lpFileName, MAX_PATH);
> > strFilePath = lpFileName;
> >
> > // Get program folder
> > int nLastIndex = strFilePath.ReverseFind('\\');
> > strFolderPath = strFilePath.Left(nLastIndex+1);
> > sReturnPath.Format(_T("%s"),strFolderPath);
> > }
> >
> > Regards,
> >
> > Riki Risnandar
> >
> > "iLLiDaN" <iLLiDaN@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:C379C703-651F-44C5-B575-7F7C996F422E@xxxxxxxxxxxxxxxx
> >
> > > So How can I do a CString for obtain the correct folder to the archive?I
> > > tried Windows CE directory identifiers (like %CE1%) but it doesn't work.
> > >
> > > Thanks.
> > > Regards.
> > >
> >
> >
> >
.
- Prev by Date: help setting the environmental variable path
- Next by Date: Re: Connecting a PPC Device to AS/400
- Previous by thread: help setting the environmental variable path
- Next by thread: Does eVC 4 support WMMX
- Index(es):
Relevant Pages
|
Loading