编程论坛's Archiver

飞人 发表于 2006-4-21 22:07

[求助]运行时目标文件出现错误

<P>     我运行程序时,单独运行各个应用文件时是正确的,可是我整个工程时总出现以下错误提示:<BR>    Circle.obj : error LNK2001: unresolved external symbol "public: __thiscall CAboutDlg::CAboutDlg(void)" (<a href="mailto:??0CAboutDlg@@QAE@XZ" target="_blank" >??0CAboutDlg@@QAE@XZ</A>)<BR>Debug/Circle.scr : fatal error LNK1120: 1 unresolved externals<BR>Error executing link.exe.<BR>    我把工程文件扩展名exe.改为.scr <BR>    这什么原因呢?请帮忙哦 !谢谢了<BR></P>

十一月天 发表于 2006-4-23 10:10

设置起始页了吗

飞人 发表于 2006-4-25 14:50

   没有设置,这个问题可能是虚函数所引起的,现在运行正确,可是我打开Circle.scr 文件的时候,总说找不到相配的文件,这些文件都是(*.dll),大约有十几个,是不是我的系统文件(的特别是*.dll文件)有误呢?  <BR>    <BR>    还有一个问题是怎么进行应用程序打包?是不是还要用特别的软件,我用VC6.0,可是找不到啊。帮忙好吗?<BR>    谢谢楼上了!

飞人 发表于 2006-4-25 16:08

<P>   我打开调试信息,说是工程向导应用程序错误(即:Circle.scr Application) 而且包括这个文件的错误:<BR>   C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\a2d3_appcompat.txt<BR>       还有下面这个程序说明什么?它会影响到应用程序的运行吗?调试指针指向所带下划线的那行.<BR>   <BR>#include "stdafx.h"</P>
<P>#ifdef AFX_CORE1_SEG<BR>#pragma code_seg(AFX_CORE1_SEG)<BR>#endif</P>
<P>/////////////////////////////////////////////////////////////////////////////<BR>// Standard WinMain implementation<BR>//  Can be replaced as long as 'AfxWinInit' is called first</P>
<P>int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,<BR> LPTSTR lpCmdLine, int nCmdShow)<BR>{<BR> ASSERT(hPrevInstance == NULL);</P>
<P> int nReturnCode = -1;<BR> CWinThread* pThread = AfxGetThread();<BR> CWinApp* pApp = AfxGetApp();</P>
<P> // AFX internal initialization<BR> if (!AfxWinInit(hInstance, hPrevInstance, lpCmdLine, nCmdShow))<BR>  goto InitFailure;</P>
<P> // App global initializations (rare)<BR> if (pApp != NULL &amp;&amp; !pApp-&gt;InitApplication())<BR>  goto InitFailure;</P>
<P> // Perform specific initializations<BR><STRONG><U> if (!pThread-&gt;InitInstance())<BR></U></STRONG> {<BR>  if (pThread-&gt;m_pMainWnd != NULL)<BR>  {<BR>   TRACE0("Warning: Destroying non-NULL m_pMainWnd\n");<BR>   pThread-&gt;m_pMainWnd-&gt;DestroyWindow();<BR>  }<BR>  nReturnCode = pThread-&gt;ExitInstance();<BR>  goto InitFailure;<BR> }<BR> nReturnCode = pThread-&gt;Run();</P>
<P>InitFailure:<BR>#ifdef _DEBUG<BR> // Check for missing AfxLockTempMap calls<BR> if (AfxGetModuleThreadState()-&gt;m_nTempMapLock != 0)<BR> {<BR>  TRACE1("Warning: Temp map lock count non-zero (%ld).\n",<BR>   AfxGetModuleThreadState()-&gt;m_nTempMapLock);<BR> }<BR> AfxLockTempMaps();<BR> AfxUnlockTempMaps(-1);<BR>#endif</P>
<P> AfxWinTerm();<BR> return nReturnCode;<BR>}<BR><BR>   这个程序是系统自动产生的吗?怎么进行修改才能正确运行应用程序呢?<BR>   刚学的VC,不太了解这些,<STRONG>很希望您们帮忙,在下感激不尽!</STRONG></P>

十一月天 发表于 2006-4-26 08:47

[em09]VC6.0啊,你应该到VC板啊,这里是VC.NET,没多少人来的,那里有高手,他们能帮你[em01]

飞人 发表于 2006-4-28 08:52

<P>  我学的是VC.NET  但一直找不到相应的软件,可以告诉我哪里有这个软件能下载吗?谢谢了 <BR>   刚上机的,所以有很多问题很难处理哦!<BR>     还有VC.NET和VC6.0差别真很大吗?怎么总觉得运行环境是差不多的啊,</P>

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.