Click here to Skip to main content
15,906,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: static library resource dialogs not working in linking applications Pin
KASR120-Oct-09 17:53
KASR120-Oct-09 17:53 
GeneralRe: static library resource dialogs not working in linking applications Pin
Adam Roderick J20-Oct-09 17:56
Adam Roderick J20-Oct-09 17:56 
GeneralRe: static library resource dialogs not working in linking applications Pin
KASR120-Oct-09 18:09
KASR120-Oct-09 18:09 
GeneralRe: static library resource dialogs not working in linking applications Pin
Adam Roderick J20-Oct-09 18:46
Adam Roderick J20-Oct-09 18:46 
QuestionEye detection using openCV in microsoft visual C++ Pin
fahira19-Oct-09 22:29
fahira19-Oct-09 22:29 
AnswerRe: Eye detection using openCV in microsoft visual C++ Pin
Adam Roderick J19-Oct-09 23:54
Adam Roderick J19-Oct-09 23:54 
QuestionNeed help for CStdioFile.Read Pin
Nicholas Amh19-Oct-09 21:13
Nicholas Amh19-Oct-09 21:13 
AnswerRe: Need help for CStdioFile.Read Pin
Richard MacCutchan19-Oct-09 21:59
mveRichard MacCutchan19-Oct-09 21:59 
Nicholas Amh wrote:
Hi all, can comeone help me with this? I am having error with it. Thanks alot


Well you don't explain what your error is and I'm not an expert in MFC, but I can guess from the code above that you are fairly new to this. The line
while (fp2.Read(fp2_rdtxt, fp2_rdtxt.GetLength()) != EOF)

uses the GetLength() method on fp2_rdtxt, but you have not initialised the variable so it has no length. Hence you will not be able to read data into it. The statement
fp2_rdtxt.Format("%lf %lf %lf\n", &a, &b, &c);

will also not work in my view.
I suggest you spend some more time with the documentation and learn the fundamentals of these classes and their methods.
GeneralRe: Need help for CStdioFile.Read Pin
Nicholas Amh19-Oct-09 22:21
Nicholas Amh19-Oct-09 22:21 
GeneralRe: Need help for CStdioFile.Read Pin
Richard MacCutchan19-Oct-09 22:52
mveRichard MacCutchan19-Oct-09 22:52 
AnswerRe: Need help for CStdioFile.Read Pin
theCPkid19-Oct-09 22:28
theCPkid19-Oct-09 22:28 
GeneralRe: Need help for CStdioFile.Read Pin
Nicholas Amh19-Oct-09 23:11
Nicholas Amh19-Oct-09 23:11 
GeneralRe: Need help for CStdioFile.Read Pin
theCPkid19-Oct-09 23:11
theCPkid19-Oct-09 23:11 
GeneralRe: Need help for CStdioFile.Read Pin
Nicholas Amh19-Oct-09 23:29
Nicholas Amh19-Oct-09 23:29 
GeneralRe: Need help for CStdioFile.Read Pin
theCPkid19-Oct-09 23:42
theCPkid19-Oct-09 23:42 
Questioncoloring a button Pin
ratprita19-Oct-09 20:28
ratprita19-Oct-09 20:28 
AnswerRe: coloring a button Pin
theCPkid19-Oct-09 20:52
theCPkid19-Oct-09 20:52 
AnswerRe: coloring a button Pin
Iain Wiseman19-Oct-09 20:54
Iain Wiseman19-Oct-09 20:54 
AnswerRe: coloring a button Pin
Nishad S19-Oct-09 22:07
Nishad S19-Oct-09 22:07 
AnswerRe: coloring a button Pin
Naveen19-Oct-09 22:07
Naveen19-Oct-09 22:07 
GeneralRe: coloring a button Pin
carly3321-Oct-09 0:34
carly3321-Oct-09 0:34 
GeneralRe: coloring a button Pin
Naveen21-Oct-09 2:04
Naveen21-Oct-09 2:04 
QuestionProblem with giving Parameters for a method in class Diagram using Visio2003 Pin
Hari_1619-Oct-09 20:15
Hari_1619-Oct-09 20:15 
QuestionUTF-8 need help Pin
mohant$.net19-Oct-09 19:49
mohant$.net19-Oct-09 19:49 
AnswerRe: UTF-8 need help Pin
Iain Wiseman19-Oct-09 21:00
Iain Wiseman19-Oct-09 21:00 

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.