 |
|
 |
When I read all Files in a directory, I found one file less then existen.
Example: 12files are in directory, i found only 11files.
if(FileFinder.FindFile(csDirName))
{
bFound = FileFinder.FindNextFile();
if (!bFound)
{
kindItem1 = m_trFileTree.InsertItem(L"Der Ordner ist leer",FILE_ICON,FILE_ICON,vaterItem,TVI_FIRST);
}
while(bFound )
{
if (FileFinder.IsDirectory())
{
kindItem1 = m_trFileTree.InsertItem(FileFinder.GetFileName(),FOLDER_ICON,FOLDER_ICON,vaterItem,TVI_FIRST);
}
else
{
kindItem1 = m_trFileTree.InsertItem(FileFinder.GetFileName(),FILE_ICON,FILE_ICON,vaterItem,TVI_LAST);
}
bFound = FileFinder.FindNextFile();
}
FileFinder.Close();
|
|
|
|
 |
|
 |
Please someone can give me a hand with an open file solution in pure wince win32 not mfc, picka file from any typed path . thanks in advance.
|
|
|
|
 |
|
 |
Hello
With Windows CE - eVC 4 / C++ for a Windows CE 2003 device, is there a way to MAP a drive letter eg : F:\ to the PC to which the mobile unit is attached?
Thanks
Alex
aevans@microknox.com.au
|
|
|
|
 |
|
 |
Eh no there isn't ....
well not to my knowledge anyway ...
Regards
Ray
"Je Suis Mort De Rire"
|
|
|
|
 |
|
 |
Je nes't sui pas mort...
I know very little French
So - instead - how will I open afile that is on the Network drive from a program on the mobile unit? Can I just say use UNC like \\FileServer\Share\folder\file.txt?
Thanks again
Alex
|
|
|
|
 |
|
 |
I have been trying to make some embedded projects using this class but I'm findind some problems using it. First of all only creating an empty project and including I get link errors and also when I try to convert the class into a dll library. The error I get is:
Linking...
uafxwced.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in coredll.lib(COREDLL.dll)
uafxwced.lib(afxmem.obj) : warning LNK4006: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in coredll.lib(COREDLL.dll); second definition ignored
Creating library ARMDbg/CeFileFind.lib and object ARMDbg/CeFileFind.exp
ARMDbg/CeFileFind.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
Any ideas?
Thanks.
|
|
|
|
 |
|
 |
Are you attempting to use this class in a non-MFC project ?
Regards
Ray
"Je Suis Mort De Rire"
|
|
|
|
 |
|
 |
I have tried it with PocketPc Application and with Wince Dinamic Library, should I use a MFC project???
Thanks for your fast answer.
Paco.
|
|
|
|
 |
|
 |
Yes, I am afraid you will have to use and MFC application, choose either ...
WCE Pocket Pc 2002 MFC AppWizard (exe)
or
WCE Pocket Pc MFC AppWizard (exe)
or
WCE MFC AppWizard (exe)
Regards
Ray
"Je Suis Mort De Rire"
|
|
|
|
 |
|
 |
Hi, I fixed this problem by changing the project setting from MFC in a static library to DLL.
Thanks
Adrian Herridge
|
|
|
|
 |
|
 |
Hey, a little late, but...
you may have tried to add "_AFXDLL" to your preprocessor definitions when trying to statically link with MFC.
|
|
|
|
 |
|
 |
There is a bug in this class: m_pNextdata should be initialized to NULL in the constructor, otherwise the method Close may crash when called from FindFile.
Otherwise, good job, thanks, that's exactly what I needed
|
|
|
|
 |
|
 |
no problem,
I will sort it out ... thanks.
Regards
Ray
"Je Suis Mort De Rire"
|
|
|
|
 |
|
 |
I indeed found the same problem.
I changed the constructor to the following, and that solved the problem
CCeFileFind::CCeFileFind()
:m_hFileHandle(NULL), // initialize to NULL
m_pfiledata(NULL),
m_pNextdata(NULL)
{
}
|
|
|
|
 |