Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How copy content of cells Pin
ThatsAlok30-Jun-09 23:09
ThatsAlok30-Jun-09 23:09 
GeneralRe: How copy content of cells Pin
Hamid_RT16-Apr-08 0:58
Hamid_RT16-Apr-08 0:58 
GeneralRe: How copy content of cells Pin
ThatsAlok30-Jun-09 23:09
ThatsAlok30-Jun-09 23:09 
GeneralRe: How copy content of cells Pin
David Crow16-Apr-08 3:09
David Crow16-Apr-08 3:09 
QuestionProblem while using IFilter for indexing Pin
Javed Akhtar Ansari15-Apr-08 23:06
Javed Akhtar Ansari15-Apr-08 23:06 
GeneralMigration of CORBA, Iona orbix 3.3 to Orbix 6.1 or 6.2 Pin
ptr_Electron15-Apr-08 22:58
ptr_Electron15-Apr-08 22:58 
QuestionOnLButtonDown process Pin
Llasus15-Apr-08 21:23
Llasus15-Apr-08 21:23 
QuestionRe: OnLButtonDown process Pin
CPallini15-Apr-08 21:54
mveCPallini15-Apr-08 21:54 
GeneralRe: OnLButtonDown process Pin
Llasus15-Apr-08 22:04
Llasus15-Apr-08 22:04 
GeneralRe: OnLButtonDown process Pin
CPallini15-Apr-08 22:28
mveCPallini15-Apr-08 22:28 
GeneralRe: OnLButtonDown process Pin
Llasus15-Apr-08 22:42
Llasus15-Apr-08 22:42 
QuestionRe: OnLButtonDown process Pin
David Crow16-Apr-08 3:25
David Crow16-Apr-08 3:25 
GeneralRe: OnLButtonDown process Pin
Llasus16-Apr-08 13:07
Llasus16-Apr-08 13:07 
GeneralRe: OnLButtonDown process Pin
Naveen15-Apr-08 21:54
Naveen15-Apr-08 21:54 
GeneralRe: OnLButtonDown process Pin
Llasus15-Apr-08 22:11
Llasus15-Apr-08 22:11 
GeneralRe: OnLButtonDown process Pin
Force Code15-Apr-08 23:45
Force Code15-Apr-08 23:45 
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 

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.