Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with templates Pin
Abebe18-Aug-03 20:55
Abebe18-Aug-03 20:55 
GeneralAdded a new file to a Project. (Program won't compile afterwards.) Pin
WREY18-Aug-03 12:52
WREY18-Aug-03 12:52 
GeneralRe: Added a new file to a Project. (Program won't compile afterwards.) Pin
Iain Clarke, Warrior Programmer18-Aug-03 23:16
Iain Clarke, Warrior Programmer18-Aug-03 23:16 
GeneralRe: Added a new file to a Project. (Program won't compile afterwards.) Pin
WREY19-Aug-03 0:06
WREY19-Aug-03 0:06 
GeneralRe: Added a new file to a Project. (Program won't compile afterwards.) Pin
Iain Clarke, Warrior Programmer19-Aug-03 0:13
Iain Clarke, Warrior Programmer19-Aug-03 0:13 
GeneralRe: Added a new file to a Project. (Program won't compile afterwards.) Pin
WREY19-Aug-03 0:28
WREY19-Aug-03 0:28 
GeneralRe: Added a new file to a Project. (Program won't compile afterwards.) Pin
Norman Bates19-Aug-03 1:03
Norman Bates19-Aug-03 1:03 
GeneralRe: Added a new file to a Project. (Program won't compile afterwards.) Pin
WREY19-Aug-03 8:35
WREY19-Aug-03 8:35 
Thanks for replying.

I think some confusion is beginning to emerge between the use of the word "folder" and "directory" (and maybe I hold some blame for that).

I use the word "folder" to mean, "a place in a directory where one or more files are located."

"Directory," I use, to denote a path from the drive letter where a certain "folder" is located.

Some of the answers I get (well-intentioned as they are), are beginning to reflect this confusion, which if I can help clear things up, "The newly named file, resides in the same folder (in the same directory) as the ".dsp" file."

Unlike C++ where the programmer can do some rather clever things and the compiler will go along with his code, "Dev Studio" is not very clever. Simply substituting a file by removing the old one from the workspace and "adding in" a new one to the same workspace, is too complicated a task for it to understand and do.

What I simply did, was made some changes to a file, then renamed the file (no change of folder or directory done). Next, I went into the project workspace, deleted the old file and "added" the newly named file (which is residing in the same folder and directory as the old file) into the same workspace. Then I changed the "#include" statements in the program where references to the old file name were made, so that it would now refer to the new name, and did a "Rebuild all". That's it!!!!

The rest is already known about the compiler saying it cannot open the newly named file.

I've already spent too much time on this problem, and what I'll end up doing, is simply create a new project and add in ALL the files I'll need, and resolve this issue that way.

Dev Studio needs some overhauling and I don't believe MS has any intention of doing that. In their view, "It's not broken enough."

Frown | :(

William

Fortes in fide et opere!
GeneralRe: Added a new file to a Project. (Program won't compile afterwards.) Pin
David Crow19-Aug-03 9:04
David Crow19-Aug-03 9:04 
GeneralRe: Added a new file to a Project. (Program won't compile afterwards.) Pin
David Crow19-Aug-03 3:06
David Crow19-Aug-03 3:06 
GeneralRe: Added a new file to a Project. (Program won't compile afterwards.) Pin
WREY19-Aug-03 8:54
WREY19-Aug-03 8:54 
GeneralRe: Added a new file to a Project. (Program won't compile afterwards.) Pin
David Crow19-Aug-03 9:08
David Crow19-Aug-03 9:08 
GeneralRe: Added a new file to a Project. (Program won't compile afterwards.) Pin
WREY19-Aug-03 9:54
WREY19-Aug-03 9:54 
GeneralProblems Please help (and sorry for the size) Pin
Vassilis Papoulidis18-Aug-03 12:20
Vassilis Papoulidis18-Aug-03 12:20 
GeneralRe: Problems Please help (and sorry for the size) Pin
Roger Stewart18-Aug-03 17:10
professionalRoger Stewart18-Aug-03 17:10 
GeneralRe: Problems Please help (and sorry for the size) Pin
David Crow19-Aug-03 3:17
David Crow19-Aug-03 3:17 
GeneralRe: Problems Please help (and sorry for the size) Pin
Vassilis Papoulidis19-Aug-03 12:04
Vassilis Papoulidis19-Aug-03 12:04 
GeneralRe: Problems Please help (and sorry for the size) Pin
Vassilis Papoulidis19-Aug-03 12:18
Vassilis Papoulidis19-Aug-03 12:18 
GeneralCRect constructor-beginner question Pin
7stud18-Aug-03 10:43
7stud18-Aug-03 10:43 
GeneralRe: CRect constructor-beginner question Pin
David Crow18-Aug-03 10:47
David Crow18-Aug-03 10:47 
GeneralRe: CRect constructor-beginner question Pin
Neville Franks18-Aug-03 10:48
Neville Franks18-Aug-03 10:48 
GeneralRe: CRect constructor-beginner question Pin
7stud18-Aug-03 11:22
7stud18-Aug-03 11:22 
GeneralRe: CRect constructor-beginner question Pin
Neville Franks18-Aug-03 11:30
Neville Franks18-Aug-03 11:30 
GeneralRe: CRect constructor-beginner question Pin
Michael Dunn18-Aug-03 11:51
sitebuilderMichael Dunn18-Aug-03 11:51 
GeneralRe: CRect constructor-beginner question Pin
7stud19-Aug-03 18:01
7stud19-Aug-03 18:01 

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.