M
mp
trying to study the sample code for findfile
I believe from previous response here that one still has to use the win api
FindFirstFile, FindNextFile to search for files matching some criteria.
so i searched on msdn and found this sample
url to sample code:
http://msdn.microsoft.com/en-us/library/3k3z0k7a(VS.71).aspx
first code snippet is as follows:
<quote>
The FindFile sample uses the following unmanaged function, shown with its
original function declaration:
a.. FindFirstFile exported from Kernel32.dll.
HANDLE FindFirstFile(LPCTSTR lpFileName, LPWIN32_FIND_DATA lpFindFileData);
<end quote>
it doesn't tell this abject beginner where that code goes.
If i start a new c# project(in express), say a windows form type
application, where does that definition belong?
do I create a class? or do i put it in the form.cs? if so, where in the
class or form code would that and subsequent code snippets from that sample
go?
that's one problem with being such a beginner, even when I find info in help
it sometimes assumes basic knowlege that i don't have yet...
like how to turn the computer on...<g> ....ok, i do know that much but not
much more....
thanks
mark'
I believe from previous response here that one still has to use the win api
FindFirstFile, FindNextFile to search for files matching some criteria.
so i searched on msdn and found this sample
url to sample code:
http://msdn.microsoft.com/en-us/library/3k3z0k7a(VS.71).aspx
first code snippet is as follows:
<quote>
The FindFile sample uses the following unmanaged function, shown with its
original function declaration:
a.. FindFirstFile exported from Kernel32.dll.
HANDLE FindFirstFile(LPCTSTR lpFileName, LPWIN32_FIND_DATA lpFindFileData);
<end quote>
it doesn't tell this abject beginner where that code goes.
If i start a new c# project(in express), say a windows form type
application, where does that definition belong?
do I create a class? or do i put it in the form.cs? if so, where in the
class or form code would that and subsequent code snippets from that sample
go?
that's one problem with being such a beginner, even when I find info in help
it sometimes assumes basic knowlege that i don't have yet...
like how to turn the computer on...<g> ....ok, i do know that much but not
much more....
thanks
mark'