Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to change font size of menu bar? Pin
Rajkumar R17-Feb-08 5:53
Rajkumar R17-Feb-08 5:53 
AnswerRe: How to change font size of menu bar? Pin
Hamid_RT18-Feb-08 7:26
Hamid_RT18-Feb-08 7:26 
Generaldllimport Pin
George_George17-Feb-08 0:39
George_George17-Feb-08 0:39 
GeneralRe: dllimport Pin
Rajkumar R17-Feb-08 1:01
Rajkumar R17-Feb-08 1:01 
GeneralRe: dllimport Pin
George_George17-Feb-08 2:01
George_George17-Feb-08 2:01 
GeneralRe: dllimport Pin
Rajkumar R17-Feb-08 2:10
Rajkumar R17-Feb-08 2:10 
GeneralRe: dllimport Pin
George_George17-Feb-08 13:40
George_George17-Feb-08 13:40 
GeneralRe: dllimport [modified] Pin
Rajkumar R17-Feb-08 18:10
Rajkumar R17-Feb-08 18:10 
George_George wrote:
I am not sure whether the address of the function is contained in import library file, which is input to the linker


IMHO, the link can clarify this,
anyway i extract the portion,

So now this code:

__declspec(dllimport) void func1(void);
void main(void)
{
func1();
}
generates this instruction:

call DWORD PTR __imp_func1
There is no thunk and no
jmp

Here
__imp_func1
is the address for
func1's slot in the import address table of the .EXE file. All the addresses are thus known to the linker. The loader only has to update the .EXE file's import address table at load time for everything to work correctly.

loader updated the IAT, and already __declspec(dllimport) generates code to point to the IAT slot....


George_George wrote:
What is the content/format of import library file?


start a new thread Smile | :) so that may get noticed by others

Iam not familiar with format, sorry i just care about concepts for similar context. Smile | :)

modified on Monday, February 18, 2008 9:54 AM

GeneralRe: dllimport Pin
George_George18-Feb-08 2:57
George_George18-Feb-08 2:57 
GeneralRe: dllimport Pin
Rajkumar R18-Feb-08 3:04
Rajkumar R18-Feb-08 3:04 
GeneralRe: dllimport Pin
George_George18-Feb-08 3:13
George_George18-Feb-08 3:13 
AnswerRe: dllimport Pin
Rajkumar R18-Feb-08 4:14
Rajkumar R18-Feb-08 4:14 
GeneralRe: dllimport Pin
George_George18-Feb-08 15:35
George_George18-Feb-08 15:35 
Generalarray of zero elements Pin
George_George16-Feb-08 23:24
George_George16-Feb-08 23:24 
GeneralRe: array of zero elements [modified] Pin
CPallini17-Feb-08 2:44
mveCPallini17-Feb-08 2:44 
GeneralRe: array of zero elements Pin
Rajkumar R17-Feb-08 3:22
Rajkumar R17-Feb-08 3:22 
GeneralRe: array of zero elements Pin
CPallini17-Feb-08 3:51
mveCPallini17-Feb-08 3:51 
JokeRe: array of zero elements Pin
Rajkumar R17-Feb-08 4:06
Rajkumar R17-Feb-08 4:06 
GeneralRe: array of zero elements Pin
George_George17-Feb-08 13:30
George_George17-Feb-08 13:30 
GeneralRe: array of zero elements Pin
Rajkumar R17-Feb-08 16:38
Rajkumar R17-Feb-08 16:38 
GeneralRe: array of zero elements Pin
George_George17-Feb-08 23:04
George_George17-Feb-08 23:04 
QuestionRe: array of zero elements Pin
Rajkumar R18-Feb-08 2:38
Rajkumar R18-Feb-08 2:38 
GeneralRe: array of zero elements Pin
George_George18-Feb-08 2:45
George_George18-Feb-08 2:45 
GeneralRe: array of zero elements Pin
Rajkumar R18-Feb-08 3:09
Rajkumar R18-Feb-08 3:09 
GeneralRe: array of zero elements Pin
George_George18-Feb-08 3:31
George_George18-Feb-08 3:31 

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.