Click here to Skip to main content
15,889,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnLButtonDown process Pin
Force Code15-Apr-08 23:49
Force Code15-Apr-08 23:49 
GeneralRe: OnLButtonDown process Pin
Force Code16-Apr-08 0:31
Force Code16-Apr-08 0:31 
GeneralRe: OnLButtonDown process Pin
Hamid_RT16-Apr-08 0:50
Hamid_RT16-Apr-08 0:50 
GeneralRe: OnLButtonDown process Pin
Llasus16-Apr-08 13:16
Llasus16-Apr-08 13:16 
QuestionHow to check the admin/user previleges in Vista and XP Pin
Jiju_b15-Apr-08 21:22
Jiju_b15-Apr-08 21:22 
AnswerRe: How to check the admin/user previleges in Vista and XP Pin
Jijo.Raj15-Apr-08 22:40
Jijo.Raj15-Apr-08 22:40 
AnswerRe: How to check the admin/user previleges in Vista and XP Pin
Rajesh R Subramanian15-Apr-08 22:57
professionalRajesh R Subramanian15-Apr-08 22:57 
GeneralOpening of a file Pin
FPeeters15-Apr-08 20:40
FPeeters15-Apr-08 20:40 
I want check if a certain file is present at a certain location.
I am using the FileCreate function for this, but I have a problem in the creation of the filename parameter.

if I use the next line to create the filename everything works fine if the specified file is in the same directory as the source:
sprintf(FileName,"%s.txt",ProdBest[i]); //ProdBest is an array of strings containing the filename.

But I want a clear seperation between my Production files and the programm files, and store the Production files in a seperate directory (C:\ProdIn)
If I use the following line I always end up getting a INVALID_HANDLE_VALUE with GetLastError code = 2 (FILE_NOT_FOUND).
sprintf(FileName,"C:\ProdIn\%s.txt",ProdBest[i]);

So clearly I am making a mistake, but I don't know where or what

Can someone help me out?
GeneralRe: Opening of a file Pin
MANISH RASTOGI15-Apr-08 20:57
MANISH RASTOGI15-Apr-08 20:57 
GeneralRe: Opening of a file Pin
FPeeters15-Apr-08 20:59
FPeeters15-Apr-08 20:59 
GeneralRe: Opening of a file Pin
Hamid_RT16-Apr-08 0:48
Hamid_RT16-Apr-08 0:48 
Generalavoid resource duplication Pin
Max++15-Apr-08 20:18
Max++15-Apr-08 20:18 
GeneralRe: avoid resource duplication Pin
Cedric Moonen15-Apr-08 20:35
Cedric Moonen15-Apr-08 20:35 
GeneralRe: avoid resource duplication Pin
Max++15-Apr-08 21:26
Max++15-Apr-08 21:26 
GeneralRe: avoid resource duplication Pin
Cedric Moonen15-Apr-08 22:00
Cedric Moonen15-Apr-08 22:00 
JokeRe: avoid resource duplication Pin
Rajesh R Subramanian15-Apr-08 23:00
professionalRajesh R Subramanian15-Apr-08 23:00 
GeneralRe: avoid resource duplication Pin
Rajkumar R15-Apr-08 20:39
Rajkumar R15-Apr-08 20:39 
GeneralConnection of MS-Access 2007 to VC++2005 Pin
Le@rner15-Apr-08 19:57
Le@rner15-Apr-08 19:57 
GeneralRe: Connection of MS-Access 2007 to VC++2005 Pin
Hamid_RT16-Apr-08 0:44
Hamid_RT16-Apr-08 0:44 
GeneralRe: Connection of MS-Access 2007 to VC++2005 Pin
Le@rner16-Apr-08 0:53
Le@rner16-Apr-08 0:53 
GeneralRe: Connection of MS-Access 2007 to VC++2005 Pin
Hamid_RT16-Apr-08 1:02
Hamid_RT16-Apr-08 1:02 
GeneralRe: Connection of MS-Access 2007 to VC++2005 Pin
Le@rner16-Apr-08 1:08
Le@rner16-Apr-08 1:08 
GeneralRe: Connection of MS-Access 2007 to VC++2005 Pin
Le@rner16-Apr-08 1:14
Le@rner16-Apr-08 1:14 
GeneralRe: Connection of MS-Access 2007 to VC++2005 Pin
Hamid_RT16-Apr-08 2:39
Hamid_RT16-Apr-08 2:39 
GeneralRe: Connection of MS-Access 2007 to VC++2005 Pin
Le@rner16-Apr-08 2:51
Le@rner16-Apr-08 2:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.