Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Problems with project from VS2003 in VS2005 Pin
prasad_som1-Mar-07 3:40
prasad_som1-Mar-07 3:40 
QuestionRe: Problems with project from VS2003 in VS2005 Pin
Asdef Jaker1-Mar-07 4:27
Asdef Jaker1-Mar-07 4:27 
QuestionRe: Problems with project from VS2003 in VS2005 Pin
prasad_som1-Mar-07 5:34
prasad_som1-Mar-07 5:34 
AnswerRe: Problems with project from VS2003 in VS2005 Pin
Chris Losinger1-Mar-07 5:29
professionalChris Losinger1-Mar-07 5:29 
AnswerRe: Problems with project from VS2003 in VS2005 Pin
Michael Dunn1-Mar-07 5:54
sitebuilderMichael Dunn1-Mar-07 5:54 
GeneralRe: Problems with project from VS2003 in VS2005 Pin
James R. Twine1-Mar-07 6:30
James R. Twine1-Mar-07 6:30 
GeneralRe: Problems with project from VS2003 in VS2005 Pin
Michael Dunn1-Mar-07 10:06
sitebuilderMichael Dunn1-Mar-07 10:06 
AnswerRe: Problems with project from VS2003 in VS2005 Pin
James R. Twine1-Mar-07 6:24
James R. Twine1-Mar-07 6:24 
   Is this function being called exist in a LIB or a DLL?

   On older versions of VC++, a reference was really a pointer behind the scenes (it might still be), which is why you could pass pointer to something to a function that expected reference to something, like calling an extern "C" C++ function that took a reference from straight C code (there is no reference type in C).  This kind of thing works in VC++ 6.0 (IIRC).

   You just might be seeing more strict type checking that let you get away with other stuff (see below).

   Actually, the type expected for the secondPart parameter is const char *, so you should declare that variable as:
const char *secondPart = NULL;  // Note - Always Initialize!
   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

GeneralRe: Problems with project from VS2003 in VS2005 Pin
Asdef Jaker1-Mar-07 6:47
Asdef Jaker1-Mar-07 6:47 
GeneralRe: Problems with project from VS2003 in VS2005 Pin
James R. Twine1-Mar-07 7:05
James R. Twine1-Mar-07 7:05 
QuestionRe: Problems with project from VS2003 in VS2005 Pin
Asdef Jaker1-Mar-07 7:19
Asdef Jaker1-Mar-07 7:19 
AnswerRe: Problems with project from VS2003 in VS2005 Pin
James R. Twine1-Mar-07 8:46
James R. Twine1-Mar-07 8:46 
Questionstd::string Pin
LCI1-Mar-07 3:20
LCI1-Mar-07 3:20 
AnswerRe: std::string Pin
toxcct1-Mar-07 3:27
toxcct1-Mar-07 3:27 
GeneralRe: std::string Pin
LCI1-Mar-07 3:34
LCI1-Mar-07 3:34 
GeneralRe: std::string Pin
toxcct1-Mar-07 3:36
toxcct1-Mar-07 3:36 
GeneralRe: std::string Pin
David Crow1-Mar-07 3:39
David Crow1-Mar-07 3:39 
GeneralRe: std::string Pin
LCI1-Mar-07 3:42
LCI1-Mar-07 3:42 
GeneralRe: std::string Pin
David Crow1-Mar-07 3:51
David Crow1-Mar-07 3:51 
JokeRe: std::string Pin
toxcct1-Mar-07 3:58
toxcct1-Mar-07 3:58 
GeneralRe: std::string [updated] Pin
James R. Twine1-Mar-07 6:18
James R. Twine1-Mar-07 6:18 
GeneralRe: std::string Pin
David Crow1-Mar-07 8:17
David Crow1-Mar-07 8:17 
GeneralRe: std::string Pin
Nemanja Trifunovic1-Mar-07 8:45
Nemanja Trifunovic1-Mar-07 8:45 
GeneralRe: std::string Pin
LCI1-Mar-07 3:36
LCI1-Mar-07 3:36 
GeneralRe: std::string Pin
David Crow1-Mar-07 3:37
David Crow1-Mar-07 3:37 

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.