Click here to Skip to main content
15,913,101 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CAsyncSocket - Client receives some messages but not others Pin
Mark Salsbery6-Nov-06 12:33
Mark Salsbery6-Nov-06 12:33 
AnswerRe: CAsyncSocket - Client receives some messages but not others Pin
iserik6-Nov-06 18:06
iserik6-Nov-06 18:06 
QuestionActiveX Controls [modified] Pin
Stober6-Nov-06 11:21
Stober6-Nov-06 11:21 
QuestionMAPILogon with Groupwise Pin
yyf6-Nov-06 10:54
yyf6-Nov-06 10:54 
GeneralRe: MAPILogon with Groupwise Pin
yyf7-Nov-06 2:21
yyf7-Nov-06 2:21 
QuestionUse exisiting printing methods for Printers in Print Preview Pin
skywalkerking6-Nov-06 10:06
skywalkerking6-Nov-06 10:06 
AnswerRe: Use exisiting printing methods for Printers in Print Preview" Pin
skywalkerking6-Nov-06 10:26
skywalkerking6-Nov-06 10:26 
QuestionLinking DLL's Pin
joeller6-Nov-06 8:57
professionaljoeller6-Nov-06 8:57 
I am a long time VB and ASP developer, experienced in both 6.0 and .net. I have had considerable experience in designing COM dll's and .Net class libraries for use by other applications. I am now trying to modularize a complex Visual C++ application by building dll's that can be referenced by different calling applications. Because of the complexity of the code, the short turn aound time and the lack of .Net and COM experience by the other members of the team, this is being done by building a number of Win32 dll's that will then be "plugged into" the calling application.

Therefore, I am trying to implicitly link a dll to an executable project using Visual Studio .Net (2002) Visual C++ 7.0. According to Microsoft, the search path used by Windows with implicit linking is 1. the directory where the executable module for the current process is located, 2. the current Directory, 3. the Windows system directory, 4. the Windows directory, and 5. the directories listed in the Path environment variable.

The documentation for VS 2002 states the "show directories for Executable files" on the "VC++ Directories" property page, lists the directories that Visual Studio will search for executable files and that it corresponds to the PATH environment variable.

I used this property page to link successfully to the library files in the lib directory of the dll project and the header files in the include directory of that project. I used the same means to link to the dll files in the bin directory of that project and I keep getting the "This application has failed to start because yadadyada.dll was not found. Reinstalling the application may fix this problem." message. When I built this application on another machine with VS 2005, the project properties page under Configuration Properties\Debugging had an entry called "Evironment" whereby I could enter the relative path to the YadaYada\bin directory; (Set PATH="..\YadaYada\bin"). But I was not able to find any equivalent entry on the property pages in Visual Studio .Net (2002). I manually added the path to the dll to the machine's "PATH" environment variable but it made no difference. When I copied the dll to the project's folder however everything worked as designed.

In my opinion, it is not good practice to include dll's to third party applications directly in your project's directory, (although I know that .Net managed applications do that with referenced third party namespaces). I am also not comfortable with adding third party dll's directly to the system32 directory. I feel that the calling application should be able to refer to the dll in the third party application's own bin folder. I would appreciate some advice on how to make this happen in Visual C++ if possible.

Thank you in advance for your assistance.


E.R. Joell MCSD MCDBA
AnswerRe: Linking DLL's Pin
Mark Salsbery6-Nov-06 12:45
Mark Salsbery6-Nov-06 12:45 
GeneralRe: Linking DLL's Pin
joeller7-Nov-06 3:42
professionaljoeller7-Nov-06 3:42 
GeneralRe: Linking DLL's Pin
Mark Salsbery7-Nov-06 5:27
Mark Salsbery7-Nov-06 5:27 
GeneralRe: Linking DLL's Pin
joeller7-Nov-06 8:08
professionaljoeller7-Nov-06 8:08 
GeneralRe: Linking DLL's Pin
Mark Salsbery7-Nov-06 8:17
Mark Salsbery7-Nov-06 8:17 
AnswerRe: Linking DLL's Pin
Michael Dunn6-Nov-06 16:14
sitebuilderMichael Dunn6-Nov-06 16:14 
GeneralRe: Linking DLL's Pin
joeller7-Nov-06 4:21
professionaljoeller7-Nov-06 4:21 
GeneralRe: Linking DLL's Pin
Mark Salsbery7-Nov-06 6:47
Mark Salsbery7-Nov-06 6:47 
GeneralRe: Linking DLL's Pin
joeller7-Nov-06 9:11
professionaljoeller7-Nov-06 9:11 
GeneralRe: Linking DLL's Pin
Mark Salsbery7-Nov-06 9:33
Mark Salsbery7-Nov-06 9:33 
GeneralRe: Linking DLL's Pin
joeller7-Nov-06 10:24
professionaljoeller7-Nov-06 10:24 
GeneralRe: Linking DLL's Pin
Michael Dunn7-Nov-06 15:16
sitebuilderMichael Dunn7-Nov-06 15:16 
QuestionCListCtrl SetItemPosition Pin
skullfire6-Nov-06 8:23
skullfire6-Nov-06 8:23 
QuestionHow to save captured screen as jpg/jpeg file? Pin
edvintas6-Nov-06 8:02
edvintas6-Nov-06 8:02 
AnswerRe: How to save captured screen as jpg/jpeg file? Pin
Mark Salsbery6-Nov-06 8:12
Mark Salsbery6-Nov-06 8:12 
GeneralRe: How to save captured screen as jpg/jpeg file? Pin
edvintas6-Nov-06 9:03
edvintas6-Nov-06 9:03 
GeneralRe: How to save captured screen as jpg/jpeg file? Pin
Mark Salsbery6-Nov-06 10:42
Mark Salsbery6-Nov-06 10:42 

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.