dhageuk wrote:
> hi guys,
> 
> used the code provided by msn. however, when i try to hard code the 
> files/directory to look for. it generates an error. can you please 
> help me?
> 
> = = = =
> 
> #include <windows.h>
> #include <tchar.h>
> #include <stdio.h>
> 
> void _tmain()
> {
>    TCHAR *argv[]="";
> 
>    _tprintf (TEXT("Target file is %s\n"), argv[1]);
<snip>

For starters, that is incorrect code.  Perhaps you should focus on 
learning C/C++ first and THEN fiddle around with OS-specific stuff like 
raw API calls after that.  The code above is non-ANSI Standard.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to