Click here to Skip to main content
16,017,857 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Syntax Pin
toxcct31-May-07 3:38
toxcct31-May-07 3:38 
GeneralRe: Syntax Pin
Roger Stoltz31-May-07 3:40
Roger Stoltz31-May-07 3:40 
GeneralRe: Syntax Pin
John R. Shaw31-May-07 9:02
John R. Shaw31-May-07 9:02 
GeneralRe: Syntax Pin
Matthew Faithfull31-May-07 3:55
Matthew Faithfull31-May-07 3:55 
Questionpls help me-msi file Pin
saisp31-May-07 2:27
saisp31-May-07 2:27 
AnswerRe: pls help me-msi file Pin
Hamid_RT31-May-07 2:44
Hamid_RT31-May-07 2:44 
QuestionI can't believe I am having so many problems with file access Pin
ldsdbomber31-May-07 2:26
ldsdbomber31-May-07 2:26 
AnswerRe: I can't believe I am having so many problems with file access Pin
ldsdbomber31-May-07 2:28
ldsdbomber31-May-07 2:28 
just so you don't think I am not writing anything, here is what I've got so far, please do not laugh


void CTestFolderBrowseDlg::OnSaveentry()
{
// TODO: Add your control notification handler code here
int sel = m_Table.GetSelectionMark();

if(sel < 0)
return; // ERROR no selection

// Build Target File Name
if(!pathLoaded)
return; // ERROR no path info

CString energyText;
energyText = m_Table.GetItemText(sel, 0);
CString fileName(path);
fileName += '\\';
if(energyText.GetLength()<2) fileName += "0";
energyText += "MeV.dat";

fileName += energyText;


// Check if File Exists

fstream FileDataStream;
FileDataStream.open(fileName, ios::out | ios::ate); // note, the noreplace flag doesnt work
if(FileDataStream.is_open())
{
// file exists (I think without noreplace, it's always going to end up in here)
// Read Data
// Append Data
FileDataStream<
AnswerRe: I can't believe I am having so many problems with file access Pin
toxcct31-May-07 2:40
toxcct31-May-07 2:40 
AnswerRe: I can't believe I am having so many problems with file access Pin
David Crow31-May-07 4:02
David Crow31-May-07 4:02 
GeneralRe: I can't believe I am having so many problems with file access Pin
ldsdbomber31-May-07 6:01
ldsdbomber31-May-07 6:01 
GeneralRe: I can't believe I am having so many problems with file access Pin
David Crow31-May-07 6:10
David Crow31-May-07 6:10 
Questionpls help me-msi file Pin
saisp31-May-07 2:25
saisp31-May-07 2:25 
AnswerRe: pls help me-msi file Pin
toxcct31-May-07 2:37
toxcct31-May-07 2:37 
AnswerRe: pls help me-msi file Pin
Hamid_RT31-May-07 2:45
Hamid_RT31-May-07 2:45 
JokeRe: IDE Pin
CPallini31-May-07 2:10
mveCPallini31-May-07 2:10 
GeneralRe: IDE Pin
Hamid_RT31-May-07 2:47
Hamid_RT31-May-07 2:47 
GeneralRe: IDE Pin
Rajesh R Subramanian31-May-07 3:10
professionalRajesh R Subramanian31-May-07 3:10 
GeneralRe: IDE Pin
toxcct31-May-07 3:23
toxcct31-May-07 3:23 
QuestionIDE Pin
tom groezer31-May-07 2:07
tom groezer31-May-07 2:07 
AnswerRe: IDE Pin
toxcct31-May-07 2:14
toxcct31-May-07 2:14 
GeneralRe: IDE Pin
tom groezer31-May-07 2:31
tom groezer31-May-07 2:31 
GeneralRe: IDE Pin
toxcct31-May-07 2:34
toxcct31-May-07 2:34 
AnswerRe: IDE Pin
jhwurmbach31-May-07 2:42
jhwurmbach31-May-07 2:42 
QuestionTrackPopupMenu Pin
tom groezer31-May-07 1:45
tom groezer31-May-07 1:45 

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.