Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerA long standing favorite... Pin
jhwurmbach14-Nov-05 3:06
jhwurmbach14-Nov-05 3:06 
QuestionDraw arc algorithm Pin
gandalf198313-Nov-05 23:21
gandalf198313-Nov-05 23:21 
AnswerRe: Draw arc algorithm Pin
Rajesh R Subramanian13-Nov-05 23:30
professionalRajesh R Subramanian13-Nov-05 23:30 
Questioncaveats when exporting classes from a dll? Pin
WernerP13-Nov-05 22:48
WernerP13-Nov-05 22:48 
AnswerRe: caveats when exporting classes from a dll? Pin
Steen Krogsgaard14-Nov-05 2:24
Steen Krogsgaard14-Nov-05 2:24 
GeneralRe: caveats when exporting classes from a dll? Pin
WernerP14-Nov-05 5:59
WernerP14-Nov-05 5:59 
GeneralRe: caveats when exporting classes from a dll? Pin
Steen Krogsgaard14-Nov-05 23:23
Steen Krogsgaard14-Nov-05 23:23 
AnswerRe: caveats when exporting classes from a dll? Pin
cmk14-Nov-05 12:56
cmk14-Nov-05 12:56 
A dll has functions exported by ordinal, and (optionally) name.

When you create a dll you have 2 ways of exporting data/functions:

1. use an export file
Here you explicitly define the ordinal (and optionally hide the name) of the functions to be exported.
Because you control the ordinal you control any changes that occur between releases.
Usually when new functions are added you just assign them new (unused) ordinal values.
Class methods are exported using their mangled names, which makes this a tedious way of exporting class' by hand, usually you will have another program generate this file.

2. use __declspec(dllexport)
Here the compiler auto-generates the export table from all __declspec(dllexport) it finds.
You have no control over the ordinals assigned to data/functions.


I assume you are using __declspec(dllexport) statements.
What you are talking about is observing an effect and inferring a reason.
You can NOT assume your conclusions will hold for all cases - they won't.
To get the result you want you need to use an export file.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_export_functions_from_a_dll_by_ordinal_rather_than_by_name.asp[^]


...cmk

Save the whales - collect the whole set
GeneralRe: caveats when exporting classes from a dll? Pin
WernerP15-Nov-05 0:18
WernerP15-Nov-05 0:18 
GeneralRe: caveats when exporting classes from a dll? Pin
cmk15-Nov-05 0:47
cmk15-Nov-05 0:47 
QuestionWindow caption at center Pin
pc_dev13-Nov-05 22:44
pc_dev13-Nov-05 22:44 
AnswerRe: Window caption at center Pin
Roger Allen14-Nov-05 0:43
Roger Allen14-Nov-05 0:43 
GeneralRe: Window caption at center Pin
vikas amin14-Nov-05 1:28
vikas amin14-Nov-05 1:28 
AnswerRe: Window caption at center Pin
ThatsAlok14-Nov-05 1:12
ThatsAlok14-Nov-05 1:12 
AnswerRe: Window caption at center Pin
Arman S.14-Nov-05 1:12
Arman S.14-Nov-05 1:12 
QuestionDestination path ICopyHook Pin
ragavan13-Nov-05 22:17
ragavan13-Nov-05 22:17 
QuestionCButton SetFocus Pin
AORD13-Nov-05 21:00
AORD13-Nov-05 21:00 
AnswerRe: CButton SetFocus Pin
toxcct13-Nov-05 21:38
toxcct13-Nov-05 21:38 
GeneralRe: CButton SetFocus Pin
AORD14-Nov-05 18:23
AORD14-Nov-05 18:23 
GeneralRe: CButton SetFocus Pin
toxcct14-Nov-05 21:19
toxcct14-Nov-05 21:19 
AnswerRe: CButton SetFocus Pin
Rajesh R Subramanian13-Nov-05 23:20
professionalRajesh R Subramanian13-Nov-05 23:20 
GeneralRe: CButton SetFocus Pin
Mircea Puiu14-Nov-05 5:45
Mircea Puiu14-Nov-05 5:45 
AnswerRe: CButton SetFocus Pin
Mircea Puiu14-Nov-05 5:04
Mircea Puiu14-Nov-05 5:04 
Answer... and to see the difference ... Pin
Mircea Puiu14-Nov-05 5:43
Mircea Puiu14-Nov-05 5:43 
GeneralRe: ... and to see the difference ... Pin
Rajesh R Subramanian14-Nov-05 17:18
professionalRajesh R Subramanian14-Nov-05 17:18 

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.