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

C / C++ / MFC

 
GeneralRe: DLL Function call Pin
Gary R. Wheeler4-Feb-08 23:55
Gary R. Wheeler4-Feb-08 23:55 
GeneralRe: DLL Function call Pin
CPallini3-Feb-08 2:12
mveCPallini3-Feb-08 2:12 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 2:36
ginjikun3-Feb-08 2:36 
GeneralRe: DLL Function call Pin
CPallini3-Feb-08 2:44
mveCPallini3-Feb-08 2:44 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 3:10
ginjikun3-Feb-08 3:10 
GeneralRe: DLL Function call Pin
Iain Clarke, Warrior Programmer4-Feb-08 1:33
Iain Clarke, Warrior Programmer4-Feb-08 1:33 
Generallink with C runtime library Pin
George_George2-Feb-08 21:48
George_George2-Feb-08 21:48 
GeneralRe: link with C runtime library Pin
Gary R. Wheeler3-Feb-08 1:38
Gary R. Wheeler3-Feb-08 1:38 
George_George wrote:
1. How could I know if a project whether DLL or EXE or static lib is linked with C Runtime library?


It depends on the version of Visual Studio you are using. In general, right-click on the project, select Properties, and then look through the compiler and linker options. In all likelihood you are linking with the C runtime library.

George_George wrote:
2. Why we need C Runtime library in a C++ project? We need to call some legacy C functions like printf other than pure C++ functions std::cout?


The C/C++ libraries are pretty intertwined. "std::cout" isn't a 'pure C++ function' which is provided by the compiler; it's a function in the C++ library. The C++ library has the same DllMain restraints.

George_George wrote:
3. If we use default entry point in DLL (DllMain), does it mean C Runtime Library is dynamically linked?


No. The two don't have anything to do with each other. The C runtime library is dynamically linked when you link with the import library for it's DLL. It is statically linked when you link with the object library directly. Which you do is selected by compiler and linker options.

Software Zen: delete this;
Fold With Us![^]

GeneralRe: link with C runtime library Pin
George_George3-Feb-08 14:18
George_George3-Feb-08 14:18 
GeneralRe: link with C runtime library Pin
Iain Clarke, Warrior Programmer4-Feb-08 1:42
Iain Clarke, Warrior Programmer4-Feb-08 1:42 
GeneralRe: link with C runtime library Pin
George_George4-Feb-08 1:47
George_George4-Feb-08 1:47 
GeneralRe: link with C runtime library Pin
Iain Clarke, Warrior Programmer4-Feb-08 1:52
Iain Clarke, Warrior Programmer4-Feb-08 1:52 
GeneralRe: link with C runtime library Pin
George_George4-Feb-08 1:55
George_George4-Feb-08 1:55 
GeneralRe: link with C runtime library Pin
Gary R. Wheeler5-Feb-08 0:01
Gary R. Wheeler5-Feb-08 0:01 
GeneralRe: link with C runtime library Pin
Iain Clarke, Warrior Programmer5-Feb-08 0:35
Iain Clarke, Warrior Programmer5-Feb-08 0:35 
Questionhow to copy a file from one location to paste anothe location Pin
VC_RYK2-Feb-08 21:34
VC_RYK2-Feb-08 21:34 
AnswerRe: how to copy a file from one location to paste anothe location Pin
Gary R. Wheeler3-Feb-08 0:40
Gary R. Wheeler3-Feb-08 0:40 
QuestionHow to convert pointers? Pin
Andrei Keino2-Feb-08 21:00
Andrei Keino2-Feb-08 21:00 
AnswerRe: How to convert pointers? Pin
Nitheesh George3-Feb-08 21:21
Nitheesh George3-Feb-08 21:21 
Generalscale in perfmon tool Pin
George_George2-Feb-08 20:56
George_George2-Feb-08 20:56 
QuestionRe: scale in perfmon tool Pin
Maximilien3-Feb-08 3:15
Maximilien3-Feb-08 3:15 
GeneralRe: scale in perfmon tool Pin
George_George3-Feb-08 13:52
George_George3-Feb-08 13:52 
Generalsocket select problem Pin
hanlei00000000092-Feb-08 20:12
hanlei00000000092-Feb-08 20:12 
GeneralRe: socket select problem Pin
Mark Salsbery3-Feb-08 7:53
Mark Salsbery3-Feb-08 7:53 
GeneralAccessinng the Registry of a Remote Computer Pin
Bram van Kampen2-Feb-08 17:53
Bram van Kampen2-Feb-08 17:53 

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.