Hello,
I'm using Windows Forms with C++. When I compile the application (C++ based). It compiles in a long time. But in C# it compiles more faster. And when I start the app. in debug it loads with it a lot of DLL that look strange and make me wait more than minute until I see the application running. Can I reduce them as I don't need them
Thanks,
Mustafa ELBanna

Why C++ Windows Forms applications start slowly
RichLando
Hello,
Thanks for replying, I saw that it loads DLL for the Yahoo messenger and the Adobe Acrobat Reader, although I don't use them entirely. And I mean if the visual studio uses default libraries I don't need, can I remove them to make the time it load is faster. I tried to remove some default references that I don't need (System::Data, System::XML for example) , Is good thing to do
Thanks,
Mustafa ELBanna
Dondata
The C# compiler indeed compiles much faster than the C++ compiler, but bear in mind that the C# compiler targets MSIL, which has to be translated to native during runtime, whereas the C++ compiler compiles directly to native (unless you choose Any CPU under the configuratin dropdown.)
As a general rule, if a DLL is loaded into memory, it's because it is being used by your application, either directly (your code directly calls into them) or indirectly (the dependency is deeper). I doubt your app depends on DLLs its not using, which you are suspecting.
When you press F5 to run an application, the debugger is going to load extra information for each DLL's pdb file. Can you give an example of one of the DLL's you think should not be loaded
Brian