Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDocking windows WHY!! Pin
26-Nov-01 11:56
suss26-Nov-01 11:56 
Generalplaying sound in MFC Pin
WannaB Coder26-Nov-01 11:35
WannaB Coder26-Nov-01 11:35 
GeneralRe: playing sound in MFC Pin
Christian Graus26-Nov-01 13:41
protectorChristian Graus26-Nov-01 13:41 
GeneralRouting Commands to Controls on a CView Pin
26-Nov-01 11:29
suss26-Nov-01 11:29 
GeneralUpdating Different Areas of a Control Pin
Mark Lenz26-Nov-01 11:04
Mark Lenz26-Nov-01 11:04 
GeneralRe: Updating Different Areas of a Control Pin
Michael Dunn26-Nov-01 15:24
sitebuilderMichael Dunn26-Nov-01 15:24 
Generalproblems with dll Pin
Stanislav26-Nov-01 10:30
Stanislav26-Nov-01 10:30 
GeneralRe: problems with dll Pin
Joaquín M López Muñoz26-Nov-01 12:25
Joaquín M López Muñoz26-Nov-01 12:25 
Well you have quite a problem here...
If I'm not wrong, yo're trying to use an old 16-bit DLL with your 32-bit VC++ compiler. Unfortunately, this cannot be done directly. 16- and 32-bit are separate worlds inhabiting different memory spaces and they simply cannot be freely mixed.
I strongly suggest that you consider the possibility of getting the source code of that 16-bit DLL and try to recompile it with your 32-bit compiler (some modifications will surely be required). This is by far the easiest solution, if you can afford it. If for some reason this is not an option, keep reading.
To enable a 32-bit executable to call functions of a 16-bit DLL, you need an intermediate DLL that is able to speak both languages and make the translations necessary between them. This is what Microsoft call a thunk. They provide a thunk compiler and instructions on how to build 32-to-16, 16-to-32 and bidirectional thunks (on NT platforms, 32-to-16 is alas forbidden). A couple of URLs to start reading:I had to build one of these thunks in the past and it is no easy task, though not impossible either, and the docs are pretty explanatory. Good luck if you enter the thunk trail.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: problems with dll Pin
Stanislav27-Nov-01 11:23
Stanislav27-Nov-01 11:23 
GeneralRe: problems with dll Pin
Brad Bruce27-Nov-01 12:02
Brad Bruce27-Nov-01 12:02 
Generalexport and import DLL's Pin
26-Nov-01 9:40
suss26-Nov-01 9:40 
GeneralRe: export and import DLL's Pin
Joaquín M López Muñoz26-Nov-01 9:58
Joaquín M López Muñoz26-Nov-01 9:58 
GeneralRe: export and import DLL's Pin
mimi26-Nov-01 10:27
mimi26-Nov-01 10:27 
GeneralRe: export and import DLL's Pin
Joaquín M López Muñoz26-Nov-01 11:33
Joaquín M López Muñoz26-Nov-01 11:33 
Generalleft over IDC_ values in resource.h Pin
Jason Hihn26-Nov-01 7:54
Jason Hihn26-Nov-01 7:54 
GeneralRe: left over IDC_ values in resource.h Pin
Michael Dunn26-Nov-01 9:35
sitebuilderMichael Dunn26-Nov-01 9:35 
GeneralRe: left over IDC_ values in resource.h Pin
Sidney Chong26-Nov-01 15:20
Sidney Chong26-Nov-01 15:20 
GeneralAnti-alias font in WebBrowser control Pin
26-Nov-01 7:39
suss26-Nov-01 7:39 
Generalcommon var for C and C++ Pin
meirav26-Nov-01 6:57
meirav26-Nov-01 6:57 
GeneralRe: common var for C and C++ Pin
Joaquín M López Muñoz26-Nov-01 7:09
Joaquín M López Muñoz26-Nov-01 7:09 
GeneralRe: common var for C and C++ Pin
Nish Nishant26-Nov-01 7:11
sitebuilderNish Nishant26-Nov-01 7:11 
GeneralRadio Box Pin
mvworld26-Nov-01 5:51
mvworld26-Nov-01 5:51 
GeneralRe: Radio Box Pin
Nish Nishant26-Nov-01 6:33
sitebuilderNish Nishant26-Nov-01 6:33 
GeneralRe: Radio Box Pin
26-Nov-01 6:39
suss26-Nov-01 6:39 
GeneralRe: Radio Box Pin
26-Nov-01 7:32
suss26-Nov-01 7:32 

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.