activex events in a dll
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, i try to put a working code snip from an mfc .exe project into a .dll project. In the code an EVENTSINKMAP is linked to an activex control in my "old" mfc exe. The .dll should start working when an event occures from this activex control:
BEGIN_EVENTSINK_MAP(CSavepmjxApp, CWinApp) //{{AFX_EVENTSINK_MAP(CDsView) ON_EVENT(CSavepmjxApp, IDC_SCANCONTROL, 1 /* ScanReady */, OnScanReadyRealscan1, VTS_UNKNOWN) //}}AFX_EVENTSINK_MAP END_EVENTSINK_MAP()
The compiler gives an error because IDC_SCANCONTROL is unknown in my .dll project. I like to use this .dll later in VisualBasic where i have my activex control again. How can i make this work?? happy coding, -mark