Re: using "CreateFile" for open a file archive



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.
> > >
> >
> >
> >
.



Relevant Pages


Loading