|
马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
x
以下程序中,为什么总是提示找不到ug的头文件(libufun.lib libugopenint.lib文件已加入到Projiect/Setting/link下),请版主和各路高手赐教!
#include "stdafx.h"
#include "www.h"
#include <uf.h>
#include <uf_exit.h>
#include <uf_ui.h>
#include <uf_styler.h>
#include <uf_part.h>
#include"MyDialog.h"
#include"Resource.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
BEGIN_MESSAGE_MAP(CWwwApp, CWinApp)
//{{AFX_MSG_MAP(CWwwApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
CWwwApp::CWwwApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CWwwApp object
CWwwApp theApp;
void DisplayDialog()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CMyDialog dlg;
dlg.DoModal();
}
extern "C" DllExport void ufsta( char *param, int *returnCode, int rlen )
{
int errorCode = UF_initialize();
DisplayDialog ();
if ( 0 == errorCode )
{
errorCode = UF_terminate();
}
}
extern "C" void ufusr_cleanup(void)
{
}
extern "C" int ufusr_ask_unload( void )
{
return( UF_UNLOAD_UG_TERMINATE );
} |
|