HI,
was haben diese fehlermeldungen zu bedeuten:
1>------ Build started: Project: fc1, Configuration: Debug Win32 ------
1>Compiling...
1>fc1.cpp
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1> Creating library K:\Programmieren\c++\fc1\fc1\Win32\Debug/fc1.lib and object K:\Programmieren\c++\fc1\fc1\Win32\Debug/fc1.exp
1>fc1.obj : error LNK2001: unresolved external symbol "struct HINSTANCE__ * _hdllInstance" (?_hdllInstance@@3PAUHINSTANCE__@@A)
1>K:\Programmieren\c++\fc1\fc1\Win32\Debug/fcfc1.arx : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://k:\Programmieren\c++\fc1\fc1\fc1\Win32\Debug\BuildLog.htm"
1>fc1 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
hier ist der code:
//-----------------------------------------------------------------------------
//- fc1.cpp : Initialization functions
//-----------------------------------------------------------------------------
#include "StdAfx.h"
#include "resource.h"
#include <afxdllx.h>
//-----------------------------------------------------------------------------
//- Define the sole extension module object.
AC_IMPLEMENT_EXTENSION_MODULE(fc1DLL)
//- Please do not remove the 3 following lines. These are here to make .NET MFC Wizards
//- running properly. The object will not compile but is require by .NET to recognize
//- this project as being an MFC project
#ifdef NEVER
AFX_EXTENSION_MODULE fc1ExtDLL ={ NULL, NULL } ;
#endif
//-----------------------------------------------------------------------------
//- DLL Entry Point
extern "C"
BOOL WINAPI DllMain (HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) {
//- Remove this if you use lpReserved
UNREFERENCED_PARAMETER(lpReserved) ;
if ( dwReason == DLL_PROCESS_ATTACH ) {
_hdllInstance =hInstance ;
fc1DLL.AttachInstance (hInstance) ;
InitAcUiDLL () ;
} else if ( dwReason == DLL_PROCESS_DETACH ) {
fc1DLL.DetachInstance () ;
}
return (TRUE) ;
}
void fc1f()
{
acutPrintf(_T("HALLO !"));
}
void initApp()
{
acedRegCmds->addCommand(_T("fc1_group"), _T("fc1_global"),
_T("fc1_local"), ACRX_CMD_MODAL, fc1f);
}
void unloadApp()
{
acedRegCmds->removeGroup(_T("fc1_group"));
}
extern "C" AcRx::AppRetCode
acrxEntryPoint(AcRx::AppMsgCode msg, void* appId)
{
switch (msg) {
case AcRx::kInitAppMsg:
acrxDynamicLinker->unlockApplication(appId);
acrxDynamicLinker->registerAppMDIAware(appId);
initApp();
break;
case AcRx::kUnloadAppMsg:
unloadApp();
}
return AcRx::kRetOK;
}
------------------
MfG
Frank
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP