Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDrawing To DCs with Win32 (Not MFC) Pin
James Bird18-Jul-01 21:28
James Bird18-Jul-01 21:28 
GeneralRe: Drawing To DCs with Win32 (Not MFC) Pin
Tomasz Sowinski18-Jul-01 23:46
Tomasz Sowinski18-Jul-01 23:46 
GeneralRe: Drawing To DCs with Win32 (Not MFC) Pin
19-Jul-01 4:14
suss19-Jul-01 4:14 
GeneralRe: Drawing To DCs with Win32 (Not MFC) Pin
Tomasz Sowinski19-Jul-01 4:36
Tomasz Sowinski19-Jul-01 4:36 
GeneralUsing of two table in one CDaoRecordset object ... Pin
Hadi Rezaee18-Jul-01 20:57
Hadi Rezaee18-Jul-01 20:57 
GeneralRe: Using of two table in one CDaoRecordset object ... Pin
19-Jul-01 1:17
suss19-Jul-01 1:17 
GeneralRe: Using of two table in one CDaoRecordset object ... Pin
Hadi Rezaee21-Jul-01 18:49
Hadi Rezaee21-Jul-01 18:49 
GeneralResource problem in an MFC extention DLL Pin
D.D. de Kerf18-Jul-01 20:38
D.D. de Kerf18-Jul-01 20:38 
Hi,

I'm having a rather weird problem here and I thought that maybe, if I described it, it would ring some bells with the experts. I haven't a clue!

Anyway, here's the situation:
We have an in-house developed database-access layer with all kinds of specific goodies in it and for reasons of deployment and ease of upgrade, we isolated it in an MFC extention DLL.
This all worked fine for a couple of months. I can integrate it easily in existing programs and everything works fine... that is, as long as I integrate it in an exe!
The database-access layer in the DLL has a feature which displays a tray-icon. You can see what the layer is doing by looking at the tray-icon's color or by calling a dialog, hidden in the tray-icon's context menu. Of course the dialog and tray-icons are all located in the resource of the extention dll...

As long as I integrate the extention dll in a stand-alone application (.exe), everything works fine, tray-icon included. But when I integrate the dll in an activeX-component (complete with clsid and interface) the tray-icon's icon cannot be loaded from the resource! In release build this results in a tray-icon without an icon (just an empty space) which isn't THAT bad, but when I try to bring up the dialog it fails completely (which you might expect). In debug build I get all sorts of assert-failures saying that the icon HANDLE is invalid...


So how come everything works fine in a stand-alone application and it fails in an ActiveX component? Confused | :confused:

Structured programming vs. chaotic mind boggling
GeneralRe: Resource problem in an MFC extention DLL Pin
18-Jul-01 23:36
suss18-Jul-01 23:36 
GeneralRe: Resource problem in an MFC extention DLL Pin
Tomasz Sowinski18-Jul-01 23:52
Tomasz Sowinski18-Jul-01 23:52 
GeneralURGENT ...accessing process's resources Pin
Amit Dey18-Jul-01 19:16
Amit Dey18-Jul-01 19:16 
GeneralRe: URGENT ...accessing process's resources Pin
Gennady Oster18-Jul-01 19:35
Gennady Oster18-Jul-01 19:35 
GeneralInstallation Pin
Farah Mansor18-Jul-01 17:56
Farah Mansor18-Jul-01 17:56 
GeneralRe: Installation Pin
18-Jul-01 18:31
suss18-Jul-01 18:31 
GeneralDLLs Pin
Matt Newman18-Jul-01 16:52
Matt Newman18-Jul-01 16:52 
GeneralRe: DLLs Pin
Matt Newman18-Jul-01 16:57
Matt Newman18-Jul-01 16:57 
GeneralRe: DLLs Pin
18-Jul-01 17:11
suss18-Jul-01 17:11 
Generalinstallation package Pin
DanYELL18-Jul-01 16:34
DanYELL18-Jul-01 16:34 
GeneralRe: installation package Pin
Christian Graus18-Jul-01 16:59
protectorChristian Graus18-Jul-01 16:59 
GeneralRe: installation package Pin
18-Jul-01 17:07
suss18-Jul-01 17:07 
GeneralRe: installation package Pin
Jim A. Johnson18-Jul-01 17:50
Jim A. Johnson18-Jul-01 17:50 
GeneralRe: installation package Pin
19-Jul-01 3:26
suss19-Jul-01 3:26 
GeneralRe: installation package Pin
18-Jul-01 18:25
suss18-Jul-01 18:25 
GeneralRe: installation package Pin
19-Jul-01 3:33
suss19-Jul-01 3:33 
GeneralRe: installation package Pin
Jim A. Johnson18-Jul-01 17:50
Jim A. Johnson18-Jul-01 17:50 

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.