Click here to Skip to main content
15,891,785 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [newbie] error C2065: 'b' : undeclared identifier Pin
jon-8013-Jun-09 21:19
professionaljon-8013-Jun-09 21:19 
GeneralRe: [newbie] error C2065: 'b' : undeclared identifier Pin
Stuart Dootson14-Jun-09 2:16
professionalStuart Dootson14-Jun-09 2:16 
Question__declspec(dllimport) Pin
_808613-Jun-09 1:50
_808613-Jun-09 1:50 
AnswerRe: __declspec(dllimport) Pin
Randor 13-Jun-09 5:27
professional Randor 13-Jun-09 5:27 
GeneralRe: __declspec(dllimport) Pin
_808613-Jun-09 21:47
_808613-Jun-09 21:47 
GeneralRe: __declspec(dllimport) Pin
_808614-Jun-09 4:46
_808614-Jun-09 4:46 
GeneralRe: __declspec(dllimport) Pin
Randor 14-Jun-09 5:20
professional Randor 14-Jun-09 5:20 
QuestionCalling DLL function that is not imported(MFC and WinMain) Pin
sawerr13-Jun-09 0:50
sawerr13-Jun-09 0:50 
Hi
We know that, WinMain is buried in the MFC Framework. OK but how can Windows call it?

I opened MFC project in VC++ and tried to find out how it imports the dll(Mfc90ud.dll) and functions in that dll. But i couldn't find it. I also disassembled the mfc90ud.dll but there is no function like WinMain in exported function list. Function names are just numbers.

So, I have 2 questions.

1-) How does VS knows that Mfc90ud.dll must be imported and Windows know that it must call a function in a dll that is imported by EXE?

2-) If i import a dll and although i do not use one of the imported function in that dll, OS can still call that function? Or OS can only call imported dll functions which are used by exe?? If the function doesn't import by exe, it is never be called?

Thanks...
AnswerRe: Calling DLL function that is not imported(MFC and WinMain) Pin
sgenie6813-Jun-09 1:13
sgenie6813-Jun-09 1:13 
AnswerRe: Calling DLL function that is not imported(MFC and WinMain) Pin
Rajesh R Subramanian13-Jun-09 2:26
professionalRajesh R Subramanian13-Jun-09 2:26 
GeneralRe: Calling DLL function that is not imported(MFC and WinMain) Pin
sawerr13-Jun-09 3:17
sawerr13-Jun-09 3:17 
GeneralRe: Calling DLL function that is not imported(MFC and WinMain) Pin
sgenie6813-Jun-09 22:22
sgenie6813-Jun-09 22:22 
QuestionHow to open a logical partition and read all of its file using windows function ReadFile() ? Pin
krish_kumar12-Jun-09 22:53
krish_kumar12-Jun-09 22:53 
QuestionRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
Randor 13-Jun-09 5:38
professional Randor 13-Jun-09 5:38 
AnswerRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
krish_kumar13-Jun-09 6:27
krish_kumar13-Jun-09 6:27 
GeneralRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
Stuart Dootson13-Jun-09 12:59
professionalStuart Dootson13-Jun-09 12:59 
GeneralRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
Randor 14-Jun-09 6:14
professional Randor 14-Jun-09 6:14 
GeneralRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
krish_kumar14-Jun-09 18:32
krish_kumar14-Jun-09 18:32 
GeneralRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
Randor 15-Jun-09 7:37
professional Randor 15-Jun-09 7:37 
GeneralRe: How to open a logical partition and read all of its file using windows function ReadFile() ? [modified] Pin
krish_kumar15-Jun-09 15:19
krish_kumar15-Jun-09 15:19 
GeneralRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
krish_kumar19-Jun-09 20:01
krish_kumar19-Jun-09 20:01 
Questionvirtual constructor Pin
siva45512-Jun-09 22:11
siva45512-Jun-09 22:11 
AnswerRe: virtual constructor Pin
Rajesh R Subramanian12-Jun-09 22:16
professionalRajesh R Subramanian12-Jun-09 22:16 
AnswerRe: virtual constructor Pin
Cedric Moonen12-Jun-09 23:09
Cedric Moonen12-Jun-09 23:09 
GeneralRe: virtual constructor Pin
Arun Singh K13-Jun-09 0:57
Arun Singh K13-Jun-09 0:57 

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.