Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDLL function by ordinal v.s. by name Pin
George_George6-Feb-08 20:34
George_George6-Feb-08 20:34 
GeneralRe: DLL function by ordinal v.s. by name Pin
CPallini6-Feb-08 21:04
mveCPallini6-Feb-08 21:04 
GeneralRe: DLL function by ordinal v.s. by name Pin
George_George7-Feb-08 3:30
George_George7-Feb-08 3:30 
GeneralRe: DLL function by ordinal v.s. by name Pin
CPallini7-Feb-08 3:58
mveCPallini7-Feb-08 3:58 
GeneralRe: DLL function by ordinal v.s. by name Pin
George_George7-Feb-08 4:10
George_George7-Feb-08 4:10 
GeneralRe: DLL function by ordinal v.s. by name Pin
jhwurmbach7-Feb-08 4:49
jhwurmbach7-Feb-08 4:49 
GeneralRe: DLL function by ordinal v.s. by name Pin
George_George7-Feb-08 20:37
George_George7-Feb-08 20:37 
GeneralRe: DLL function by ordinal v.s. by name Pin
Rajkumar R8-Feb-08 5:12
Rajkumar R8-Feb-08 5:12 
in implicit linking, linker generates export library, then it will do in the optimised possible way right? why do you think implicit linking is not using ordinal, it gives a stub which internally uses ordinal values to link. That is why normally if you rebuild DLL, u need to rebuild the application too, if it looks up using name rebuilding is not needed.


George_George wrote:
if we use implicit linking, there is no way to use by ordinal.


DEF files if you need to set ordinals explicitly

see this quote

"Implicit linking looks up based on the ordinal, so ideally a function's ordinal should always stay the same. Unless you specify your own ordinals the linker may generate different ordinals each time you build your application. This in turn means that Applications which have already been built to use your DLL may cease to link correctly."

from
DLL linking[^]

u may get more info if u searched on web.
GeneralRe: DLL function by ordinal v.s. by name Pin
George_George8-Feb-08 22:15
George_George8-Feb-08 22:15 
GeneralRe: DLL function by ordinal v.s. by name Pin
Rajkumar R8-Feb-08 23:21
Rajkumar R8-Feb-08 23:21 
GeneralRe: DLL function by ordinal v.s. by name Pin
George_George9-Feb-08 21:01
George_George9-Feb-08 21:01 
GeneralRe: DLL function by ordinal v.s. by name Pin
Rajkumar R10-Feb-08 22:47
Rajkumar R10-Feb-08 22:47 
GeneralRe: DLL function by ordinal v.s. by name Pin
George_George11-Feb-08 22:00
George_George11-Feb-08 22:00 
GeneralRe: DLL function by ordinal v.s. by name [modified] Pin
Rajkumar R11-Feb-08 22:17
Rajkumar R11-Feb-08 22:17 
GeneralRe: DLL function by ordinal v.s. by name Pin
George_George12-Feb-08 0:12
George_George12-Feb-08 0:12 
GeneralRe: DLL function by ordinal v.s. by name Pin
Rajkumar R12-Feb-08 5:07
Rajkumar R12-Feb-08 5:07 
GeneralRe: DLL function by ordinal v.s. by name Pin
George_George12-Feb-08 16:40
George_George12-Feb-08 16:40 
GeneralRe: DLL function by ordinal v.s. by name Pin
Rajkumar R8-Feb-08 6:32
Rajkumar R8-Feb-08 6:32 
GeneralRe: DLL function by ordinal v.s. by name Pin
George_George8-Feb-08 22:13
George_George8-Feb-08 22:13 
GeneralRe: DLL function by ordinal v.s. by name Pin
Stephen Hewitt7-Feb-08 12:39
Stephen Hewitt7-Feb-08 12:39 
GeneralRe: DLL function by ordinal v.s. by name Pin
George_George7-Feb-08 20:38
George_George7-Feb-08 20:38 
GeneralCOM CreateInstance method Pin
George_George6-Feb-08 19:19
George_George6-Feb-08 19:19 
QuestionRe: COM CreateInstance method Pin
CPallini6-Feb-08 20:54
mveCPallini6-Feb-08 20:54 
GeneralRe: COM CreateInstance method Pin
George_George7-Feb-08 3:25
George_George7-Feb-08 3:25 
QuestionRe: COM CreateInstance method Pin
CPallini7-Feb-08 3:52
mveCPallini7-Feb-08 3:52 

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.