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

C / C++ / MFC

 
AnswerRe: Dos printing from Win Xp Pin
basementman15-May-06 5:08
basementman15-May-06 5:08 
QuestionUpdate Views Pin
masnu15-May-06 3:06
masnu15-May-06 3:06 
AnswerRe: Update Views Pin
Cedric Moonen15-May-06 3:09
Cedric Moonen15-May-06 3:09 
GeneralRe: Update Views Pin
masnu15-May-06 3:48
masnu15-May-06 3:48 
Questionneeded dll's on other computers Pin
Grimes15-May-06 2:45
Grimes15-May-06 2:45 
AnswerRe: needed dll's on other computers Pin
Cedric Moonen15-May-06 3:00
Cedric Moonen15-May-06 3:00 
AnswerRe: needed dll's on other computers Pin
Eytukan15-May-06 3:25
Eytukan15-May-06 3:25 
AnswerRe: needed dll's on other computers Pin
-Dy15-May-06 5:15
-Dy15-May-06 5:15 
Grimes wrote:
"msvcp60.dll" "MSVCP60D.dll"


As others have said, this is part of the c runtime, you need them.

Grimes wrote:
is there a way to compile it so it wouldn't need anyother files except the exe?


Yes, this is called 'statically linking'. What you're doing now is 'dynamically linking', that's why you need these Dynamic Link Libraries (.dll's). When you statically link, you're basically inserting the contents of the library into your .exe file. Your file will be bigger, but it won't need the DLL's. To statically link to the CRT in VC6:


  1. Select Project, Settings (or press Alt+F7)
  2. Select the C++ tab
  3. In the 'category' combo, select 'Code generation'
  4. In the 'use run-time library' combo, select any of the items that don't end with DLL.
  5. Say okay, save and build.


If you look at the exe file produced in depends.exe you will notice that the CRT libraries are not required. You will still see other dependencies, like kernal32.dll etc. - these are part of the Windows OS - they will be on your target machine.

Which run time option should you select from that last combo? For debug builds, select 'Debug multithreaded', for release builds select 'Multithreaded'. I suggest this as your working on a game - so I'm guessing your using threads.

Are you using MFC? If you are, then you must statically link to MFC if your going to statically link to the C runtime. To do this, bring up the Project settings dialog again, and on the general tab, select 'Use MFC in a static library' from the MFC combo.

Hope this helps. BTW: I'd recommend dynamic linking, it means you don't need to do any of the above - just distribute the required libraries with your EXE.



- Dy
GeneralRe: needed dll's on other computers Pin
Grimes15-May-06 9:39
Grimes15-May-06 9:39 
QuestionRemote Connection Pin
Anu_Bala15-May-06 2:31
Anu_Bala15-May-06 2:31 
AnswerRe: Remote Connection Pin
NiceNaidu15-May-06 19:26
NiceNaidu15-May-06 19:26 
GeneralRe: Remote Connection Pin
Anu_Bala15-May-06 22:57
Anu_Bala15-May-06 22:57 
Question[Message Deleted] Pin
ddmcr15-May-06 2:13
ddmcr15-May-06 2:13 
AnswerRe: Command line parameters [modified] Pin
Leo Davidson15-May-06 2:31
Leo Davidson15-May-06 2:31 
QuestionWin32 DLL project randomly crashes after moving to VS2005 Pin
Leo Davidson15-May-06 2:12
Leo Davidson15-May-06 2:12 
AnswerRe: Win32 DLL project randomly crashes after moving to VS2005 Pin
Stephen Hewitt15-May-06 16:17
Stephen Hewitt15-May-06 16:17 
GeneralRe: Win32 DLL project randomly crashes after moving to VS2005 Pin
Leo Davidson16-May-06 1:26
Leo Davidson16-May-06 1:26 
QuestionHow to create Windows service for listening on a socket Pin
zahid_ash15-May-06 1:52
zahid_ash15-May-06 1:52 
AnswerRe: How to create Windows service for listening on a socket Pin
led mike15-May-06 5:32
led mike15-May-06 5:32 
GeneralRe: How to create Windows service for listening on a socket Pin
zahid_ash15-May-06 19:20
zahid_ash15-May-06 19:20 
GeneralRe: How to create Windows service for listening on a socket Pin
led mike15-May-06 19:57
led mike15-May-06 19:57 
QuestionGetting Scroll information Pin
Sarath C15-May-06 1:44
Sarath C15-May-06 1:44 
AnswerRe: Getting Scroll information Pin
Russell'15-May-06 2:16
Russell'15-May-06 2:16 
AnswerRe: Getting Scroll information Pin
Naveen15-May-06 2:30
Naveen15-May-06 2:30 
GeneralRe: Getting Scroll information Pin
Sarath C15-May-06 2:40
Sarath C15-May-06 2:40 

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.