15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Using 3d controls in a DLL

Branko Zurkovich -- BZURKOVICH@essa.com
Wednesday, March 06, 1996


Hi,

I've created an application using VC4 and I'm currently testing
it under Windows95. The problem I have is following:

The application is staticly linked and it works OK.
If I create a DLL (instead of a stand alone application) call the   
exported functions from another application (ArcView 2.1), the exported   
dialog boxes don't have 3D look and feel.

In InitInstance() I'm using:
#ifdef _AFXDLL
  Enable3dControls();     // Call this when using MFC in a shared DLL
#else
  Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

 to load the proper 3D dlls but Enable3dControlsStatic(); assesrts   
because
it won't work in a DLL..

I hope that this explains my problem and that someone has experienced
this before...

Thanks
Branko  



jroberts@sherpa.com
Thursday, April 04, 1996

     Did this question ever get anwsered?  As expected I have the similar 
     problem when displaying dialogs from within an OCX.


______________________________ Reply Separator _________________________________
Subject: Using 3d controls in a DLL
Author:  mfc-l@netcom.com at internet-mail
Date:    3/6/96 11:10 AM


Hi,
     
I've created an application using VC4 and I'm currently testing 
it under Windows95. The problem I have is following:
     
The application is staticly linked and it works OK.
If I create a DLL (instead of a stand alone application) call the   
exported functions from another application (ArcView 2.1), the exported   
dialog boxes don't have 3D look and feel.
     
In InitInstance() I'm using:
#ifdef _AFXDLL
  Enable3dControls();     // Call this when using MFC in a shared DLL
#else
  Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
     
 to load the proper 3D dlls but Enable3dControlsStatic(); assesrts   
because
it won't work in a DLL..
     
I hope that this explains my problem and that someone has experienced 
this before...
     
Thanks
Branko  





| Вернуться в корень Архива |