Click here to Skip to main content
15,868,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmonthview control driving me mad Pin
benjymous14-May-02 5:08
benjymous14-May-02 5:08 
Generalan interesting design prob...no...situation Pin
14-May-02 4:52
suss14-May-02 4:52 
GeneralRe: an interesting design prob...no...situation Pin
Joaquín M López Muñoz14-May-02 5:00
Joaquín M López Muñoz14-May-02 5:00 
QuestionMFC class sets ownerdraw style? Pin
14-May-02 4:50
suss14-May-02 4:50 
AnswerRe: MFC class sets ownerdraw style? Pin
14-May-02 6:17
suss14-May-02 6:17 
GeneralRe: MFC class sets ownerdraw style? Pin
Joel Lucsy14-May-02 8:05
Joel Lucsy14-May-02 8:05 
GeneralRe: MFC class sets ownerdraw style? Pin
14-May-02 21:07
suss14-May-02 21:07 
GeneralThunk - That's the sound of my head on the desk.... Pin
Kevin Gutteridge14-May-02 4:47
Kevin Gutteridge14-May-02 4:47 
Hi All, Can anyone help with this? I'm now totally confused by conflicting articles....

I have a 16Bit DLL that I need to call from a VC++ 6.0 32Bit application. The DLL cannot be recompiled (and it will have a short life anyway).

The 32Bit application needs to run on Windows 9x / NT / 2000 /XP. My understanding is that I need to use the Generic Thunk for this - Is this correct? Is so how? I can find lots of examples of 16Bit calling 32Bit but not the other way around (and would'nt that be the more popular thing to do?) - Or is it so obvious that I am missing the point!

The functions in the 16Bit DLL have been declared as below:

int FAR PASCAL __export files_pack( char *, char *, unsigned, unsigned *, long );
int FAR PASCAL __export files_unpack( char *, char * );
int FAR PASCAL __export split_pack( char *, char *, unsigned *, long );

Does it make any difference because they use the PASCAL calling convention?

HELP PLEASE BEFORE I EXPLODE!

Regards
Kevin.






GeneralRe: Thunk - That's the sound of my head on the desk.... Pin
Joao Vaz14-May-02 6:00
Joao Vaz14-May-02 6:00 
GeneralRe: Thunk - That's the sound of my head on the desk.... Pin
Kevin Gutteridge14-May-02 6:11
Kevin Gutteridge14-May-02 6:11 
GeneralRe: Thunk - That's the sound of my head on the desk.... Pin
Joao Vaz14-May-02 6:28
Joao Vaz14-May-02 6:28 
GeneralRe: Thunk - Funky code due to Pascal convention Pin
Joao Vaz14-May-02 6:43
Joao Vaz14-May-02 6:43 
GeneralRe: Thunk - Funky code due to Pascal convention Pin
Kevin Gutteridge14-May-02 6:56
Kevin Gutteridge14-May-02 6:56 
GeneralRe: Thunk - Funky code due to Pascal convention Pin
Kevin Gutteridge17-May-02 6:20
Kevin Gutteridge17-May-02 6:20 
GeneralRe: Thunk - Funky code due to Pascal convention Pin
Joao Vaz17-May-02 6:50
Joao Vaz17-May-02 6:50 
GeneralRe: Thunk - assembly code to call stdcall code Pin
Joao Vaz17-May-02 7:03
Joao Vaz17-May-02 7:03 
GeneralCListView MDI Pin
14-May-02 4:36
suss14-May-02 4:36 
GeneralRe: CListView MDI Pin
14-May-02 4:58
suss14-May-02 4:58 
Generalascii internals Pin
14-May-02 4:28
suss14-May-02 4:28 
GeneralRe: ascii internals Pin
Joaquín M López Muñoz14-May-02 5:42
Joaquín M López Muñoz14-May-02 5:42 
GeneralCPropertySheet Questons Pin
moobob14-May-02 4:22
moobob14-May-02 4:22 
GeneralRe: CPropertySheet Questons Pin
Joaquín M López Muñoz14-May-02 4:27
Joaquín M López Muñoz14-May-02 4:27 
GeneralRe: CPropertySheet Questons Pin
moobob14-May-02 4:38
moobob14-May-02 4:38 
GeneralRe: CPropertySheet Questons Pin
Joaquín M López Muñoz14-May-02 4:54
Joaquín M López Muñoz14-May-02 4:54 
GeneralRe: CPropertySheet Questons Pin
James R. Twine14-May-02 5:04
James R. Twine14-May-02 5:04 

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.