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

C / C++ / MFC

 
GeneralRe: Low level operations to devices Pin
David Crow18-Apr-06 4:52
David Crow18-Apr-06 4:52 
GeneralRe: Low level operations to devices Pin
Marcello18-Apr-06 10:39
Marcello18-Apr-06 10:39 
GeneralRe: Low level operations to devices Pin
David Crow18-Apr-06 10:44
David Crow18-Apr-06 10:44 
GeneralRe: Low level operations to devices Pin
Marcello18-Apr-06 11:15
Marcello18-Apr-06 11:15 
Questionhow to change the color of title bar and its text , in dialog application Pin
Hannan Azam17-Apr-06 13:49
Hannan Azam17-Apr-06 13:49 
AnswerRe: how to change the color of title bar and its text , in dialog application Pin
includeh1017-Apr-06 16:21
includeh1017-Apr-06 16:21 
AnswerRe: how to change the color of title bar and its text , in dialog application Pin
Hamid_RT17-Apr-06 19:12
Hamid_RT17-Apr-06 19:12 
Questionweird error... please help Pin
picazo17-Apr-06 13:43
picazo17-Apr-06 13:43 
Hello,

I have a weird error that I hope someone can help me with:

I have a program (SDI), whose view is derived from CPropertyView, a property sheet view by Leo Moll. When I run the application in debug mode, I have no problems whatsoever. However, if I change to release mode, I get the following:

depView.obj : error LNK2001: unresolved external symbol "protected: int __thiscall CDepView::OnCreate(struct tagCREATESTRUCTA *)" (?OnCreate@CDepView@@IAEHPAUtagCREATESTRUCTA@@@Z)
Release/dep.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

dep.exe - 2 error(s), 0 warning(s)


In DepView.h, I have:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);

In DepView.cpp, I have
BEGIN_MESSAGE_MAP(CDepView, CPropertyView)
	ON_WM_CREATE()
	...
END_MESSAGE_MAP()

and
int CDepView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
     ...
     return 0;
}


If I remove either the declaration in the header file, or the implementation (and message map) in the source file, it compiles fine, but crashes when I close it (and of course doesnt initialize anything).

Does this sound familiar to anyone?

I have only seen this error when I forget to include the source file in the project, but I have checked that. What boggles my mind is that it works perfectly in debug mode.

Any help/comments would be greatly appreciated,
Thanks in advanced,

-----------------
Genaro
AnswerRe: weird error... please help Pin
Stephen Hewitt17-Apr-06 14:44
Stephen Hewitt17-Apr-06 14:44 
GeneralRe: weird error... please help Pin
picazo17-Apr-06 15:10
picazo17-Apr-06 15:10 
GeneralRe: weird error... please help Pin
Stephen Hewitt17-Apr-06 15:14
Stephen Hewitt17-Apr-06 15:14 
GeneralRe: weird error... please help Pin
David Crow18-Apr-06 3:10
David Crow18-Apr-06 3:10 
GeneralRe: weird error... please help - SOLVED Pin
picazo18-Apr-06 6:31
picazo18-Apr-06 6:31 
QuestionWhat is the best method? Pin
ALQallaf17-Apr-06 12:14
ALQallaf17-Apr-06 12:14 
Questionabout *sender Pin
sawerr17-Apr-06 12:01
sawerr17-Apr-06 12:01 
AnswerRe: about *sender Pin
Christian Graus17-Apr-06 14:11
protectorChristian Graus17-Apr-06 14:11 
QuestionHow to create transparent menu for Dialog? Pin
werter117-Apr-06 8:29
werter117-Apr-06 8:29 
AnswerRe: How to create transparent menu for Dialog? Pin
includeh1017-Apr-06 16:14
includeh1017-Apr-06 16:14 
Questionmyodbc mysql HELP! Pin
eusto17-Apr-06 7:59
eusto17-Apr-06 7:59 
AnswerRe: myodbc mysql HELP! Pin
Milton Karimbekallil17-Apr-06 11:43
Milton Karimbekallil17-Apr-06 11:43 
GeneralRe: myodbc mysql HELP! Pin
eusto17-Apr-06 20:35
eusto17-Apr-06 20:35 
GeneralRe: myodbc mysql HELP! Pin
eusto18-Apr-06 0:43
eusto18-Apr-06 0:43 
QuestionRe: Convert STL string -->TCHAR (final clairification) Pin
chasetoys17-Apr-06 7:59
chasetoys17-Apr-06 7:59 
AnswerRe: Convert STL string -->TCHAR (final clairification) Pin
Saurabh.Garg17-Apr-06 17:07
Saurabh.Garg17-Apr-06 17:07 
Question[RESOLVED]Socket function failed in dll called dynamically Pin
Fredericfr17-Apr-06 6:42
Fredericfr17-Apr-06 6:42 

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.