Click here to Skip to main content
15,888,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUnable to run an executable from command prompt in MFC Pin
Kiran Satish9-Oct-09 12:39
Kiran Satish9-Oct-09 12:39 
QuestionRe: Unable to run an executable from command prompt in MFC Pin
David Crow9-Oct-09 17:20
David Crow9-Oct-09 17:20 
AnswerRe: Unable to run an executable from command prompt in MFC Pin
Kiran Satish9-Oct-09 17:37
Kiran Satish9-Oct-09 17:37 
QuestionRe: Unable to run an executable from command prompt in MFC Pin
David Crow10-Oct-09 4:22
David Crow10-Oct-09 4:22 
QuestionConverting Jultion Date/Time to Normal Calender Date & Time Pin
dipuks9-Oct-09 11:50
dipuks9-Oct-09 11:50 
AnswerRe: Converting Jultion Date/Time to Normal Calender Date & Time Pin
David Crow9-Oct-09 17:16
David Crow9-Oct-09 17:16 
AnswerRe: Converting Jultion Date/Time to Normal Calender Date & Time Pin
Richard MacCutchan9-Oct-09 22:55
mveRichard MacCutchan9-Oct-09 22:55 
QuestionWant to know about storing the output of FindFirstFile() and FindNextFile() in an array Pin
WindowsVsLinux9-Oct-09 9:40
WindowsVsLinux9-Oct-09 9:40 
Hi,
I am writting a C++ program of FindFirstFile() and FindNextFile() function.I want to store the output from FindFirstFile() and FindNextFile() function in an array. So that i can send it using TCP Sockets.In send function it is necessary to have an array.So i want to store the output from FindFirstFile() and FindNextFile() in an array. I declare the array and use the FindFirstFIle() function as shown below

char firstfile[MAX+PATH];

firstdir=FindFileData.cFileName; //i have declare firstdir and otherdir as an array
otherdir=FindFileData.cFileName;

After all i compile the program in GCC compiler,I got the following error
ISO C++ forbids assignment of arrays
and if i complie the same program in Visual C++ compiler ,i got this error
left operand must be l-value|
but when i declear my array as firstdir[]="";
firstdir=FindFileData.cFileName; //i have declare firstdir as an array
i got following error
incompatible types in assignment of `CHAR[260]' to `char[1]'


so what is the error here? and can is it the right way to store the output in an array?
how to resolve this error?
AnswerRe: Want to know about storing the output of FindFirstFile() and FindNextFile() in an array Pin
includeh109-Oct-09 18:12
includeh109-Oct-09 18:12 
GeneralRe: Want to know about storing the output of FindFirstFile() and FindNextFile() in an array Pin
WindowsVsLinux9-Oct-09 19:55
WindowsVsLinux9-Oct-09 19:55 
GeneralRe: Want to know about storing the output of FindFirstFile() and FindNextFile() in an array Pin
Richard MacCutchan9-Oct-09 23:04
mveRichard MacCutchan9-Oct-09 23:04 
GeneralRe: Want to know about storing the output of FindFirstFile() and FindNextFile() in an array Pin
WindowsVsLinux9-Oct-09 23:49
WindowsVsLinux9-Oct-09 23:49 
GeneralRe: Want to know about storing the output of FindFirstFile() and FindNextFile() in an array Pin
Richard MacCutchan10-Oct-09 0:15
mveRichard MacCutchan10-Oct-09 0:15 
GeneralIs there any way to store the output of FindFirstFile() and FindNextFile() in an array Pin
WindowsVsLinux10-Oct-09 23:21
WindowsVsLinux10-Oct-09 23:21 
Questionturbo c codes.. need help Pin
Tabang9-Oct-09 7:05
Tabang9-Oct-09 7:05 
AnswerRe: turbo c codes.. need help Pin
Richard MacCutchan9-Oct-09 7:17
mveRichard MacCutchan9-Oct-09 7:17 
QuestionRe: turbo c codes.. need help Pin
David Crow9-Oct-09 7:32
David Crow9-Oct-09 7:32 
AnswerRe: turbo c codes.. need help Pin
Nemanja Trifunovic9-Oct-09 7:37
Nemanja Trifunovic9-Oct-09 7:37 
GeneralRe: turbo c codes.. need help Pin
David Crow9-Oct-09 7:45
David Crow9-Oct-09 7:45 
GeneralRe: turbo c codes.. need help Pin
CPallini9-Oct-09 8:27
mveCPallini9-Oct-09 8:27 
GeneralRe: turbo c codes.. need help Pin
Tabang9-Oct-09 19:07
Tabang9-Oct-09 19:07 
GeneralRe: turbo c codes.. need help Pin
Tabang9-Oct-09 19:04
Tabang9-Oct-09 19:04 
AnswerRe: turbo c codes.. need help Pin
Tabang9-Oct-09 12:59
Tabang9-Oct-09 12:59 
GeneralRe: turbo c codes.. need help Pin
theCPkid9-Oct-09 22:57
theCPkid9-Oct-09 22:57 
AnswerRe: turbo c codes.. need help Pin
CPallini9-Oct-09 12:18
mveCPallini9-Oct-09 12:18 

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.