Click here to Skip to main content
15,889,651 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: strcpy giving exception Pin
Chris Losinger21-Feb-07 0:58
professionalChris Losinger21-Feb-07 0:58 
GeneralRe: strcpy giving exception Pin
sanjutvm23-Feb-07 3:29
sanjutvm23-Feb-07 3:29 
QuestionWorking with huge Floating Point Numbers Pin
Semion_N16-Feb-07 2:57
Semion_N16-Feb-07 2:57 
AnswerRe: Working with huge Floating Point Numbers Pin
Newbie0016-Feb-07 3:51
Newbie0016-Feb-07 3:51 
AnswerRe: Working with huge Floating Point Numbers Pin
Chris Losinger16-Feb-07 3:52
professionalChris Losinger16-Feb-07 3:52 
GeneralRe: Working with huge Floating Point Numbers Pin
Semion_N16-Feb-07 4:14
Semion_N16-Feb-07 4:14 
GeneralRe: Working with huge Floating Point Numbers Pin
Chris Losinger16-Feb-07 4:25
professionalChris Losinger16-Feb-07 4:25 
GeneralRe: Working with huge Floating Point Numbers Pin
Semion_N16-Feb-07 9:22
Semion_N16-Feb-07 9:22 
I have problems with the files.
I added the src folder to the project like that:
Tools->Options->Projects And Solutions->VC++ Directories-> and to included files and source files.
I'll show you here the most important code:


<br />
#include "stdafx.h"<br />
#include "num.h"<br />
#include "numDlg.h"<br />
#include "stdio.h"<br />
#include "xpre.h"<br />
<br />
<br />
BOOL CnumDlg::OnInitDialog()<br />
{<br />
	CDialog::OnInitDialog();<br />
        <br />
        CnumDlg::play();<br />
<br />
   <br />
	return TRUE;  // return TRUE  unless you set the focus to a control<br />
}<br />
<br />
<br />
void CnumDlg::play()<br />
{<br />
 struct xpr s;<br />
    int i,n;<br />
	<br />
    s=xZero;<br />
    do<br />
    {<br />
        scanf("%d",&n);<br />
        s=xZero;<br />
        for(i=0;i<=n;i++)<br />
            s=xadd(s,xpr2(xOne,i),0);<br />
        xprxpr(s,30);<br />
        putchar('\n');<br />
    }while (n>0);<br />
}<br />


I earased the most of the code-just the important there.
After I'm running the program I have the following Errors:

1>numDlg.obj : error LNK2019: unresolved external symbol _xprxpr referenced in function "public: void __thiscall CnumDlg::play(void)" (?play@CnumDlg@@QAEXXZ)<br />
1>numDlg.obj : error LNK2019: unresolved external symbol _xadd referenced in function "public: void __thiscall CnumDlg::play(void)" (?play@CnumDlg@@QAEXXZ)<br />
1>numDlg.obj : error LNK2019: unresolved external symbol _xpr2 referenced in function "public: void __thiscall CnumDlg::play(void)" (?play@CnumDlg@@QAEXXZ)<br />
1>numDlg.obj : error LNK2001: unresolved external symbol _xOne<br />
1>numDlg.obj : error LNK2001: unresolved external symbol _xZero<br />
1>C:\Documents and Settings\Semion Naidis\My Documents\Visual Studio 2005\Projects\num\Debug\num.exe : fatal error LNK1120: 5 unresolved externals


How can I fix that?

SnaidiS(Semion)

GeneralRe: Working with huge Floating Point Numbers Pin
Chris Losinger16-Feb-07 10:09
professionalChris Losinger16-Feb-07 10:09 
GeneralRe: Working with huge Floating Point Numbers Pin
Semion_N16-Feb-07 18:46
Semion_N16-Feb-07 18:46 
GeneralRe: Working with huge Floating Point Numbers Pin
Chris Losinger16-Feb-07 18:50
professionalChris Losinger16-Feb-07 18:50 
GeneralRe: Working with huge Floating Point Numbers Pin
Semion_N16-Feb-07 19:05
Semion_N16-Feb-07 19:05 
GeneralRe: Working with huge Floating Point Numbers Pin
Chris Losinger17-Feb-07 5:40
professionalChris Losinger17-Feb-07 5:40 
QuestionDeleteing Temp-Files Pin
e-DJ16-Feb-07 2:53
e-DJ16-Feb-07 2:53 
QuestionRe: Deleteing Temp-Files Pin
David Crow16-Feb-07 2:57
David Crow16-Feb-07 2:57 
AnswerRe: Deleteing Temp-Files Pin
e-DJ2-Mar-07 0:04
e-DJ2-Mar-07 0:04 
GeneralRe: Deleteing Temp-Files Pin
David Crow2-Mar-07 2:37
David Crow2-Mar-07 2:37 
QuestionPostMessage and Send Message Pin
AKSIVAKUMAR16-Feb-07 2:02
AKSIVAKUMAR16-Feb-07 2:02 
QuestionRe: PostMessage and Send Message Pin
David Crow16-Feb-07 2:44
David Crow16-Feb-07 2:44 
AnswerRe: PostMessage and Send Message Pin
AKSIVAKUMAR18-Feb-07 20:13
AKSIVAKUMAR18-Feb-07 20:13 
QuestionRe: PostMessage and Send Message Pin
David Crow19-Feb-07 3:03
David Crow19-Feb-07 3:03 
AnswerRe: PostMessage and Send Message Pin
AKSIVAKUMAR19-Feb-07 18:06
AKSIVAKUMAR19-Feb-07 18:06 
QuestionRe: PostMessage and Send Message Pin
David Crow20-Feb-07 2:32
David Crow20-Feb-07 2:32 
AnswerRe: PostMessage and Send Message Pin
Kharfax16-Feb-07 8:04
Kharfax16-Feb-07 8:04 
GeneralRe: PostMessage and Send Message Pin
AKSIVAKUMAR18-Feb-07 20:44
AKSIVAKUMAR18-Feb-07 20:44 

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.