Click here to Skip to main content
15,881,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing data to running thread Pin
csrss3-Jul-11 9:03
csrss3-Jul-11 9:03 
AnswerRe: Passing data to running thread Pin
LiangGuangLin3-Jul-11 18:01
LiangGuangLin3-Jul-11 18:01 
QuestionNMAKE Error Pin
SNI2-Jul-11 5:10
SNI2-Jul-11 5:10 
AnswerRe: NMAKE Error Pin
Richard MacCutchan2-Jul-11 6:43
mveRichard MacCutchan2-Jul-11 6:43 
QuestionRe: NMAKE Error Pin
David Crow2-Jul-11 16:53
David Crow2-Jul-11 16:53 
AnswerRe: NMAKE Error Pin
SNI3-Jul-11 5:41
SNI3-Jul-11 5:41 
AnswerRe: NMAKE Error Pin
User 74293383-Jul-11 5:47
professionalUser 74293383-Jul-11 5:47 
GeneralRe: NMAKE Error [modified] Pin
SNI11-Jul-11 1:49
SNI11-Jul-11 1:49 
I tried to identify what is the problem for giving this kind of error and I found that one of function declared object of dialog class as follows
Dlg_Details *pDet = NULL;
and then it creates instance
pDet = new Details_Dlg();
and here it is giving following err
"error LNK2001: unresolved external symbol "public: __thiscall Dlg_Details::Dlg_Details(class CWnd *)"
(??0Dlg_Details@@QAE@PAVCWnd@@@Z)
.\Release\myapp.exe : fatal error LNK1120: 1 unresolved externals"

when i commented out above line of code (creating instance using new) then appln compiles and link properly.

I tried to go to the detail and found that the constructor of above class is declare as
"Dlg_Details(CWnd* pParent = NULL)" in header file and its implementation as in .cpp file is as follows.
"CDlg_Card_Details::CDlg_Card_Details(CWnd* pParent /*=NULL*/)
: CDialog(Dlg_Details::IDD, pParent)
{
//{{AFX_DATA_INIT(Dlg_Details)
....
....
variables are initialized
}

and I tried to changing its declaration in header file as
Dlg_Details(CWnd* pParent)
but still the problem persist. Can you suggest where this code going wrong during linking.

Regds
SNI


Regds
SNI
SNI
modified on Tuesday, July 12, 2011 8:20 AM

GeneralRe: NMAKE Error Pin
David Crow5-Jul-11 2:55
David Crow5-Jul-11 2:55 
Questionconverting chinese .rc file to english .rc file Pin
Sakhalean2-Jul-11 3:44
Sakhalean2-Jul-11 3:44 
AnswerRe: converting chinese .rc file to english .rc file Pin
«_Superman_»2-Jul-11 10:24
professional«_Superman_»2-Jul-11 10:24 
GeneralRe: converting chinese .rc file to english .rc file Pin
Albert Holguin3-Jul-11 7:29
professionalAlbert Holguin3-Jul-11 7:29 
AnswerRe: converting chinese .rc file to english .rc file Pin
Dr.Walt Fair, PE2-Jul-11 19:17
professionalDr.Walt Fair, PE2-Jul-11 19:17 
QuestionIs this possible String Encryptin result contains only alphanumric value using Base64. Pin
Le@rner2-Jul-11 2:05
Le@rner2-Jul-11 2:05 
AnswerRe: Is this possible String Encryptin result contains only alphanumric value using Base64. Pin
Philippe Mori2-Jul-11 12:30
Philippe Mori2-Jul-11 12:30 
AnswerRe: Is this possible String Encryptin result contains only alphanumric value using Base64. Pin
Dr.Walt Fair, PE2-Jul-11 18:37
professionalDr.Walt Fair, PE2-Jul-11 18:37 
AnswerRe: Is this possible String Encryptin result contains only alphanumric value using Base64. Pin
Randor 4-Jul-11 3:34
professional Randor 4-Jul-11 3:34 
AnswerRe: Is this possible String Encryptin result contains only alphanumric value using Base64. Pin
jschell4-Jul-11 6:53
jschell4-Jul-11 6:53 
QuestionRandom string generation not working fine? [modified] Pin
Le@rner1-Jul-11 23:40
Le@rner1-Jul-11 23:40 
AnswerRe: Random string generation not working fine? Pin
Richard MacCutchan2-Jul-11 0:47
mveRichard MacCutchan2-Jul-11 0:47 
GeneralRe: Random string generation not working fine? Pin
Le@rner2-Jul-11 1:23
Le@rner2-Jul-11 1:23 
GeneralRe: Random string generation not working fine? Pin
Richard MacCutchan2-Jul-11 2:35
mveRichard MacCutchan2-Jul-11 2:35 
GeneralRe: Random string generation not working fine? Pin
Le@rner3-Jul-11 20:57
Le@rner3-Jul-11 20:57 
Questiontrying to solve exam question and getting unreasonable length code, can it be shorter? Pin
atikot1-Jul-11 9:31
atikot1-Jul-11 9:31 
AnswerRe: trying to solve exam question and getting unreasonable length code, can it be shorter? Pin
User 74293381-Jul-11 10:47
professionalUser 74293381-Jul-11 10:47 

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.