Hi Randy,
Linking errors mainly follow from wrong run time library. Please make sure you use "Debug Multithreaded DLL" for debug and "Multithreaded DLL" for release version.
Attached "my own my precious" DSP file.
Cheers, Anton.
# Microsoft Developer Studio Project File - Name="myembed" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101 CFG=myembed - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run !MESSAGE !MESSAGE NMAKE /f "myembed.mak". !MESSAGE !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "myembed.mak" CFG="myembed - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE "myembed - Win32 Release" (based on "Win32 (x86) Application") !MESSAGE "myembed - Win32 Debug" (based on "Win32 (x86) Application") !MESSAGE # Begin Project # PROP AllowPerConfigDependencies 0 # PROP Scc_ProjName "" # PROP Scc_LocalPath "" CPP=cl.exe MTL=midl.exe RSC=rc.exe !IF "$(CFG)" == "myembed - Win32 Release" # PROP BASE Use_MFC 6 # PROP BASE Use_Debug_Libraries 0 # PROP BASE Output_Dir "Release" # PROP BASE Intermediate_Dir "Release" # PROP BASE Target_Dir "" # PROP Use_MFC 6 # PROP Use_Debug_Libraries 0 # PROP Output_Dir "Release" # PROP Intermediate_Dir "Release" # PROP Target_Dir "" # ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c # ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Yu"stdafx.h" /FD /c # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL" # ADD RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 /nologo /subsystem:windows /machine:I386 # ADD LINK32 /nologo /subsystem:windows /machine:I386 !ELSEIF "$(CFG)" == "myembed - Win32 Debug" # PROP BASE Use_MFC 6 # PROP BASE Use_Debug_Libraries 1 # PROP BASE Output_Dir "Debug" # PROP BASE Intermediate_Dir "Debug" # PROP BASE Target_Dir "" # PROP Use_MFC 6 # PROP Use_Debug_Libraries 1 # PROP Output_Dir "Debug" # PROP Intermediate_Dir "Debug" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /GZ /c # ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "C:\mozilla\dist\include\xpcom" /I "C:\mozilla\dist\include\nspr" /I "C:\mozilla\dist\include\string" /I "C:\mozilla\dist\include\necko" /I "C:\mozilla\dist\include\webbrwsr" /I "C:\mozilla\dist\include\widget" /I "C:\mozilla\dist\include\docshell" /I "C:\mozilla\dist\include\uriloader" /I "C:\mozilla\dist\include\embed_base" /I "C:\mozilla\dist\include\webshell" /I "C:\mozilla\dist\include\webbrowserpersist" /I "C:\mozilla\dist\include\dom" /I "C:\mozilla\dist\include\shistory" /I "C:\mozilla\dist\include\pref" /I "C:\mozilla\dist\include\profile" /I "C:\mozilla\dist\include\imglib2" /I "C:\mozilla\dist\include\gfx" /I "C:\mozilla\dist\include\find" /I "C:\mozilla\dist\include\commandhandler" /I "C:\mozilla\dist\include\windowwatcher" /I ".\components" /I "C:\mozilla\dist\include\xpcom_obsolete" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /D "XP_WIN32" /D "XP_WIN" /YX"stdafx.h" /FD /GZ /c # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL" # ADD RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept # ADD LINK32 xpcom.lib embed_base_s.lib nspr4.lib /nologo /subsystem:windows /debug /machine:I386 /out:"C:\mozilla\dist\bin\myembed.exe" /pdbtype:sept /libpath:"C:\mozilla\dist\lib" !ENDIF # Begin Target # Name "myembed - Win32 Release" # Name "myembed - Win32 Debug" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File SOURCE=.\BrowserFrameGlue.cpp # End Source File # Begin Source File SOURCE=.\BrowserFrm.cpp # End Source File # Begin Source File SOURCE=.\BrowserImpl.cpp # End Source File # Begin Source File SOURCE=.\BrowserImpl.h # End Source File # Begin Source File SOURCE=.\BrowserImplCtxMenuLstnr.cpp # End Source File # Begin Source File SOURCE=.\BrowserImplWebPrgrsLstnr.cpp # End Source File # Begin Source File SOURCE=.\BrowserToolTip.cpp # End Source File # Begin Source File SOURCE=.\BrowserView.cpp # End Source File # Begin Source File SOURCE=.\BrowserView.h # End Source File # Begin Source File SOURCE=.\CCustomPromptDialog.cpp # End Source File # Begin Source File SOURCE=.\CFormatOptionTab.cpp # End Source File # Begin Source File SOURCE=.\CMarginHeaderFooter.cpp # End Source File # Begin Source File SOURCE=.\CPageSetupPropSheet.cpp # End Source File # Begin Source File SOURCE=.\Dialogs.cpp # End Source File # Begin Source File SOURCE=.\MfcEmbed.cpp # End Source File # Begin Source File SOURCE=.\MostRecentUrls.cpp # End Source File # Begin Source File SOURCE=.\MostRecentUrls.h # End Source File # Begin Source File SOURCE=.\myembed.rc # End Source File # Begin Source File SOURCE=.\Preferences.cpp # End Source File # Begin Source File SOURCE=.\ProfileMgr.cpp # End Source File # Begin Source File SOURCE=.\ProfileMgr.h # End Source File # Begin Source File SOURCE=.\ProfilesDlg.cpp # End Source File # Begin Source File SOURCE=.\ProfilesDlg.h # End Source File # Begin Source File SOURCE=.\StdAfx.cpp # End Source File # Begin Source File SOURCE=.\winEmbedFileLocProvider.cpp # End Source File # Begin Source File SOURCE=.\winEmbedFileLocProvider.h # End Source File # End Group # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" # Begin Source File SOURCE=.\BrowserFrm.h # End Source File # Begin Source File SOURCE=.\CCustomPromptDialog.h # End Source File # Begin Source File SOURCE=.\CFormatOptionTab.h # End Source File # Begin Source File SOURCE=.\CMarginHeaderFooter.h # End Source File # Begin Source File SOURCE=.\CPageSetupPropSheet.h # End Source File # Begin Source File SOURCE=.\MfcEmbed.h # End Source File # End Group # Begin Group "Resource Files" # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" # Begin Source File SOURCE=.\res\broken.ico # End Source File # Begin Source File SOURCE=.\BrowserToolTip.h # End Source File # Begin Source File SOURCE=.\Dialogs.h # End Source File # Begin Source File SOURCE=.\components\HelperAppService.h # End Source File # Begin Source File SOURCE=.\IBrowserFrameGlue.h # End Source File # Begin Source File SOURCE=.\res\mfcembed.ico # End Source File # Begin Source File SOURCE=.\res\myembed.ico # End Source File # Begin Source File SOURCE=.\res\myembed.rc2 # End Source File # Begin Source File SOURCE=.\res\myembedDoc.ico # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsAppDirectoryServiceDefs.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\gfx\nsColor.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsComObsolete.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\gfx\nsCoord.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nscore.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsDebug.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsDirectoryServiceDefs.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsError.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\widget\nsEvent.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\gfx\nsFont.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\commandhandler\nsICommandParams.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsIComponentRegistrar.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsIDirectoryService.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\dom\nsIDOMWindow.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsIEnumerator.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsIFile.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsILocalFile.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\widget\nsIMenuListener.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\widget\nsIMouseListener.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\gfx\nsIPrintSettings.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\profile\nsIProfile.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom_obsolete\nsIRegistry.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom_obsolete\nsIRegistryUtils.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsIServiceManager.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsISupports.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\webbrwsr\nsIWebBrowserChromeFocus.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\widget\nsIWidget.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\windowwatcher\nsIWindowWatcher.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\gfx\nsMargin.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\string\nsReadableUtils.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\string\nsString.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\xpcom\nsXPCOMGlue.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\string\nsXPIDLString.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\nspr\plstr.h # End Source File # Begin Source File SOURCE=.\Preferences.h # End Source File # Begin Source File SOURCE=.\components\PrintingPromptService.h # End Source File # Begin Source File SOURCE=.\components\PromptService.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\nspr\prthread.h # End Source File # Begin Source File SOURCE=..\..\..\dist\include\nspr\prtypes.h # End Source File # Begin Source File SOURCE=.\res\sinsecur.ico # End Source File # Begin Source File SOURCE=.\res\ssecur.ico # End Source File # Begin Source File SOURCE=.\StdAfx.h # End Source File # Begin Source File SOURCE=.\res\Toolbar.bmp # End Source File # End Group # Begin Source File SOURCE=.\ReadMe.txt # End Source File # End Target # End Project
