Click here to Skip to main content
15,908,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to change the resource such as companyname in the .exe file Pin
freemme18-Nov-05 17:08
freemme18-Nov-05 17:08 
QuestionRe: how to change the resource such as companyname in the .exe file Pin
David Crow21-Nov-05 3:08
David Crow21-Nov-05 3:08 
AnswerRe: how to change the resource such as companyname in the .exe file Pin
freemme22-Nov-05 20:43
freemme22-Nov-05 20:43 
Questionwinsock.h conflicting with winsock2.h Pin
newbie534517-Nov-05 20:02
newbie534517-Nov-05 20:02 
AnswerRe: winsock.h conflicting with winsock2.h Pin
cmk18-Nov-05 1:24
cmk18-Nov-05 1:24 
QuestionXML Serialization of CollectionBase Pin
(Steven Hicks)n+117-Nov-05 19:02
(Steven Hicks)n+117-Nov-05 19:02 
QuestionFILEOKSTRING Pin
ragavan17-Nov-05 18:49
ragavan17-Nov-05 18:49 
QuestionStatic linking Pin
serious-sam17-Nov-05 18:31
serious-sam17-Nov-05 18:31 
Hello all,

Could anyone explain how to link a library statically into an executable in Visual C++ .NET?

My problem is that I'm compiling against library (.lib) files, but I do not have the corresponding (.dll) files. The compilation works fine, but when I attempt to run the application, it falls over as it is not able to find the .dll. It is my understanding that if I statically link the required parts from the .lib files into the executable, it will have everything it needs at run-time and will not go off looking for the .dll. I've looked around the compiler and linker settings within Visual C++ and haven't been able to find anything to make me happy. Googling hasn't produced anything either. Could someone suggest a solution?

Cheers,
Penkov
AnswerRe: Static linking Pin
Mircea Puiu17-Nov-05 20:32
Mircea Puiu17-Nov-05 20:32 
GeneralRe: Static linking Pin
serious-sam17-Nov-05 20:55
serious-sam17-Nov-05 20:55 
GeneralRe: Static linking Pin
Mircea Puiu17-Nov-05 23:37
Mircea Puiu17-Nov-05 23:37 
AnswerRe: Static linking Pin
cmk18-Nov-05 1:31
cmk18-Nov-05 1:31 
GeneralRe: Static linking Pin
serious-sam20-Nov-05 11:37
serious-sam20-Nov-05 11:37 
GeneralRe: Static linking Pin
cmk20-Nov-05 12:43
cmk20-Nov-05 12:43 
GeneralRe: Static linking Pin
serious-sam20-Nov-05 12:48
serious-sam20-Nov-05 12:48 
QuestionNeed some suggestion Pin
LaHaHa17-Nov-05 16:22
LaHaHa17-Nov-05 16:22 
AnswerRe: Need some suggestion Pin
cmk18-Nov-05 1:43
cmk18-Nov-05 1:43 
GeneralRe: Need some suggestion Pin
LaHaHa18-Nov-05 11:43
LaHaHa18-Nov-05 11:43 
QuestionRead only attribute Pin
hint_5417-Nov-05 13:50
hint_5417-Nov-05 13:50 
AnswerRe: Read only attribute Pin
Shog917-Nov-05 14:20
sitebuilderShog917-Nov-05 14:20 
GeneralRe: Read only attribute Pin
hint_5418-Nov-05 9:15
hint_5418-Nov-05 9:15 
GeneralRe: Read only attribute Pin
Shog918-Nov-05 11:27
sitebuilderShog918-Nov-05 11:27 
GeneralRe: Read only attribute Pin
hint_5418-Nov-05 17:46
hint_5418-Nov-05 17:46 
QuestionDetails on printing from CEditView in an SDI app Pin
Mark F.17-Nov-05 13:13
Mark F.17-Nov-05 13:13 
AnswerRe: Details on printing from CEditView in an SDI app Pin
Cool Ju17-Nov-05 17:01
Cool Ju17-Nov-05 17:01 

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.