]> git.saurik.com Git - wxWidgets.git/commitdiff
Add a very simple example of a Win32 application using wx DLL.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 7 Dec 2009 16:27:23 +0000 (16:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 7 Dec 2009 16:27:23 +0000 (16:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dll/Makefile.in
samples/dll/dll.bkl
samples/dll/dll_sdk_exe.dsp [new file with mode: 0644]
samples/dll/dll_vc7_sdk_exe.vcproj [new file with mode: 0644]
samples/dll/dll_vc8_sdk_exe.vcproj [new file with mode: 0644]
samples/dll/dll_vc9_sdk_exe.vcproj [new file with mode: 0644]
samples/dll/makefile.bcc
samples/dll/makefile.gcc
samples/dll/makefile.vc
samples/dll/makefile.wat
samples/dll/sdk_exe.cpp [new file with mode: 0644]

index e81bca99b9230d9fec75fe57e3216141ed74ca43..a6427fd2110253a7809265a5890dbcbbde936f82 100644 (file)
@@ -62,6 +62,9 @@ WX_EXE_OBJECTS =  \
        $(__wx_exe___win32rc) \
        $(__wx_exe_os2_lib_res) \
        wx_exe_wx_exe.o
+SDK_EXE_CXXFLAGS =          $(CPPFLAGS) $(CXXFLAGS)
+SDK_EXE_OBJECTS =  \
+       sdk_exe_sdk_exe.o
 
 ### Conditionally set variables: ###
 
@@ -115,6 +118,13 @@ COND_PLATFORM_OS2_1___wx_exe___os2_emxbindcmd = $(NM) wx_exe$(EXEEXT) | if grep
 @COND_TOOLKIT_OSX_IPHONE@      = $(__wx_exe_app_Contents_PkgInfo___depname)
 @COND_TOOLKIT_COCOA@____wx_exe_BUNDLE_TGT_REF_DEP = \
 @COND_TOOLKIT_COCOA@   $(__wx_exe_app_Contents_PkgInfo___depname)
+@COND_PLATFORM_WIN32_1@__sdk_exe___depname = sdk_exe$(EXEEXT)
+@COND_PLATFORM_MAC_0@__sdk_exe___mac_setfilecmd = @true
+@COND_PLATFORM_MAC_1@__sdk_exe___mac_setfilecmd = \
+@COND_PLATFORM_MAC_1@  $(SETFILE) -t APPL sdk_exe$(EXEEXT)
+COND_PLATFORM_OS2_1___sdk_exe___os2_emxbindcmd = $(NM) sdk_exe$(EXEEXT) | if \
+       grep -q pmwin.763 ; then emxbind -ep sdk_exe$(EXEEXT) ; fi
+@COND_PLATFORM_OS2_1@__sdk_exe___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___sdk_exe___os2_emxbindcmd)
 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
 @COND_DEBUG_FLAG_0@__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
@@ -149,7 +159,7 @@ COND_wxUSE_REGEX_builtin___LIB_REGEX_p = \
 
 ### Targets: ###
 
-all: $(__my_dll___depname) $(__wx_exe___depname) $(__wx_exe_bundle___depname)
+all: $(__my_dll___depname) $(__wx_exe___depname) $(__wx_exe_bundle___depname) $(__sdk_exe___depname)
 
 install: 
 
@@ -164,6 +174,7 @@ clean:
        rm -f $(LIBPREFIX)my_dll.$(DLLIMP_SUFFIX)
        rm -f wx_exe$(EXEEXT)
        rm -rf wx_exe.app
+       rm -f sdk_exe$(EXEEXT)
 
 distclean: clean
        rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
@@ -199,6 +210,12 @@ distclean: clean
 
 @COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0@wx_exe_bundle: $(____wx_exe_BUNDLE_TGT_REF_DEP)
 
+@COND_PLATFORM_WIN32_1@sdk_exe$(EXEEXT): $(SDK_EXE_OBJECTS) $(__my_dll___depname)
+@COND_PLATFORM_WIN32_1@        $(CXX) -o $@ $(SDK_EXE_OBJECTS) -L.    $(LDFLAGS_GUI) $(LDFLAGS)  -lmy_dll $(LIBS)
+@COND_PLATFORM_WIN32_1@
+@COND_PLATFORM_WIN32_1@        $(__sdk_exe___mac_setfilecmd)
+@COND_PLATFORM_WIN32_1@        $(__sdk_exe___os2_emxbindcmd)
+
 my_dll_my_dll.o: $(srcdir)/my_dll.cpp
        $(CXXC) -c -o $@ $(MY_DLL_CXXFLAGS) $(srcdir)/my_dll.cpp
 
@@ -208,6 +225,9 @@ wx_exe_sample_rc.o: $(srcdir)/../../samples/sample.rc
 wx_exe_wx_exe.o: $(srcdir)/wx_exe.cpp
        $(CXXC) -c -o $@ $(WX_EXE_CXXFLAGS) $(srcdir)/wx_exe.cpp
 
+sdk_exe_sdk_exe.o: $(srcdir)/sdk_exe.cpp
+       $(CXXC) -c -o $@ $(SDK_EXE_CXXFLAGS) $(srcdir)/sdk_exe.cpp
+
 
 # Include dependency info, if present:
 @IF_GNU_MAKE@-include ./.deps/*.d
index 8c7c3e5ad5d8fe0a8ec70bf04f44387bbfa02735..ef8b2996a2f5d6930ab8726e7776b2ee1c719c99 100644 (file)
         <library>my_dll</library>
     </exe>
 
+    <exe id="sdk_exe" template="common_settings"
+         cond="PLATFORM_WIN32=='1'">
+         <app-type>gui</app-type>
+         <sources>sdk_exe.cpp</sources>
+        <library>my_dll</library>
+    </exe>
 </makefile>
diff --git a/samples/dll/dll_sdk_exe.dsp b/samples/dll/dll_sdk_exe.dsp
new file mode 100644 (file)
index 0000000..1a44f55
--- /dev/null
@@ -0,0 +1,260 @@
+# Microsoft Developer Studio Project File - Name="dll_sdk_exe" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Application" 0x0101
+
+CFG=sdk_exe - 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 "dll_sdk_exe.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 "dll_sdk_exe.mak" CFG="sdk_exe - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "sdk_exe - Win32 DLL Universal Release" (based on "Win32 (x86) Application")
+!MESSAGE "sdk_exe - Win32 DLL Universal Debug" (based on "Win32 (x86) Application")
+!MESSAGE "sdk_exe - Win32 DLL Release" (based on "Win32 (x86) Application")
+!MESSAGE "sdk_exe - Win32 DLL Debug" (based on "Win32 (x86) Application")
+!MESSAGE "sdk_exe - Win32 Universal Release" (based on "Win32 (x86) Application")
+!MESSAGE "sdk_exe - Win32 Universal Debug" (based on "Win32 (x86) Application")
+!MESSAGE "sdk_exe - Win32 Release" (based on "Win32 (x86) Application")
+!MESSAGE "sdk_exe - 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)" == "sdk_exe - Win32 DLL Universal Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "vc_mswunivudll"
+# PROP BASE Intermediate_Dir "vc_mswunivudll\sdk_exe"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "vc_mswunivudll"
+# PROP Intermediate_Dir "vc_mswunivudll\sdk_exe"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /FD /MD /W1 /Zi /Fdvc_mswunivudll\sdk_exe.pdb /opt:ref /opt:icf /O2 /GR /EHsc /D "WIN32" /D "_WINDOWS" /c
+# ADD CPP /nologo /FD /MD /W1 /Zi /Fdvc_mswunivudll\sdk_exe.pdb /opt:ref /opt:icf /O2 /GR /EHsc /D "WIN32" /D "_WINDOWS" /c
+# ADD BASE MTL /nologo /D "WIN32" /D "_WINDOWS" /mktyplib203 /win32
+# ADD MTL /nologo /D "WIN32" /D "_WINDOWS" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d _WINDOWS
+# ADD RSC /l 0x409 /d _WINDOWS
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 vc_mswunivudll\my_dll.lib /nologo /machine:i386 /out:"vc_mswunivudll\sdk_exe.exe" /debug /pdb:"vc_mswunivudll\sdk_exe.pdb" /subsystem:windows
+# ADD LINK32 vc_mswunivudll\my_dll.lib /nologo /machine:i386 /out:"vc_mswunivudll\sdk_exe.exe" /debug /pdb:"vc_mswunivudll\sdk_exe.pdb" /subsystem:windows
+
+!ELSEIF  "$(CFG)" == "sdk_exe - Win32 DLL Universal Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "vc_mswunivuddll"
+# PROP BASE Intermediate_Dir "vc_mswunivuddll\sdk_exe"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "vc_mswunivuddll"
+# PROP Intermediate_Dir "vc_mswunivuddll\sdk_exe"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /FD /MDd /W1 /Zi /Fdvc_mswunivuddll\sdk_exe.pdb /Od /Gm /GR /EHsc /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /c
+# ADD CPP /nologo /FD /MDd /W1 /Zi /Fdvc_mswunivuddll\sdk_exe.pdb /Od /Gm /GR /EHsc /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /c
+# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /mktyplib203 /win32
+# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d "_DEBUG" /d _WINDOWS
+# ADD RSC /l 0x409 /d "_DEBUG" /d _WINDOWS
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 vc_mswunivuddll\my_dll.lib /nologo /machine:i386 /out:"vc_mswunivuddll\sdk_exe.exe" /debug /pdb:"vc_mswunivuddll\sdk_exe.pdb" /subsystem:windows
+# ADD LINK32 vc_mswunivuddll\my_dll.lib /nologo /machine:i386 /out:"vc_mswunivuddll\sdk_exe.exe" /debug /pdb:"vc_mswunivuddll\sdk_exe.pdb" /subsystem:windows
+
+!ELSEIF  "$(CFG)" == "sdk_exe - Win32 DLL Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "vc_mswudll"
+# PROP BASE Intermediate_Dir "vc_mswudll\sdk_exe"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "vc_mswudll"
+# PROP Intermediate_Dir "vc_mswudll\sdk_exe"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /FD /MD /W1 /Zi /Fdvc_mswudll\sdk_exe.pdb /opt:ref /opt:icf /O2 /GR /EHsc /D "WIN32" /D "_WINDOWS" /c
+# ADD CPP /nologo /FD /MD /W1 /Zi /Fdvc_mswudll\sdk_exe.pdb /opt:ref /opt:icf /O2 /GR /EHsc /D "WIN32" /D "_WINDOWS" /c
+# ADD BASE MTL /nologo /D "WIN32" /D "_WINDOWS" /mktyplib203 /win32
+# ADD MTL /nologo /D "WIN32" /D "_WINDOWS" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d _WINDOWS
+# ADD RSC /l 0x409 /d _WINDOWS
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 vc_mswudll\my_dll.lib /nologo /machine:i386 /out:"vc_mswudll\sdk_exe.exe" /debug /pdb:"vc_mswudll\sdk_exe.pdb" /subsystem:windows
+# ADD LINK32 vc_mswudll\my_dll.lib /nologo /machine:i386 /out:"vc_mswudll\sdk_exe.exe" /debug /pdb:"vc_mswudll\sdk_exe.pdb" /subsystem:windows
+
+!ELSEIF  "$(CFG)" == "sdk_exe - Win32 DLL Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "vc_mswuddll"
+# PROP BASE Intermediate_Dir "vc_mswuddll\sdk_exe"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "vc_mswuddll"
+# PROP Intermediate_Dir "vc_mswuddll\sdk_exe"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /FD /MDd /W1 /Zi /Fdvc_mswuddll\sdk_exe.pdb /Od /Gm /GR /EHsc /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /c
+# ADD CPP /nologo /FD /MDd /W1 /Zi /Fdvc_mswuddll\sdk_exe.pdb /Od /Gm /GR /EHsc /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /c
+# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /mktyplib203 /win32
+# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d "_DEBUG" /d _WINDOWS
+# ADD RSC /l 0x409 /d "_DEBUG" /d _WINDOWS
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 vc_mswuddll\my_dll.lib /nologo /machine:i386 /out:"vc_mswuddll\sdk_exe.exe" /debug /pdb:"vc_mswuddll\sdk_exe.pdb" /subsystem:windows
+# ADD LINK32 vc_mswuddll\my_dll.lib /nologo /machine:i386 /out:"vc_mswuddll\sdk_exe.exe" /debug /pdb:"vc_mswuddll\sdk_exe.pdb" /subsystem:windows
+
+!ELSEIF  "$(CFG)" == "sdk_exe - Win32 Universal Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "vc_mswunivu"
+# PROP BASE Intermediate_Dir "vc_mswunivu\sdk_exe"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "vc_mswunivu"
+# PROP Intermediate_Dir "vc_mswunivu\sdk_exe"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /FD /MD /W1 /Zi /Fdvc_mswunivu\sdk_exe.pdb /opt:ref /opt:icf /O2 /GR /EHsc /D "WIN32" /D "_WINDOWS" /c
+# ADD CPP /nologo /FD /MD /W1 /Zi /Fdvc_mswunivu\sdk_exe.pdb /opt:ref /opt:icf /O2 /GR /EHsc /D "WIN32" /D "_WINDOWS" /c
+# ADD BASE MTL /nologo /D "WIN32" /D "_WINDOWS" /mktyplib203 /win32
+# ADD MTL /nologo /D "WIN32" /D "_WINDOWS" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d _WINDOWS
+# ADD RSC /l 0x409 /d _WINDOWS
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 vc_mswunivu\my_dll.lib /nologo /machine:i386 /out:"vc_mswunivu\sdk_exe.exe" /debug /pdb:"vc_mswunivu\sdk_exe.pdb" /subsystem:windows
+# ADD LINK32 vc_mswunivu\my_dll.lib /nologo /machine:i386 /out:"vc_mswunivu\sdk_exe.exe" /debug /pdb:"vc_mswunivu\sdk_exe.pdb" /subsystem:windows
+
+!ELSEIF  "$(CFG)" == "sdk_exe - Win32 Universal Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "vc_mswunivud"
+# PROP BASE Intermediate_Dir "vc_mswunivud\sdk_exe"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "vc_mswunivud"
+# PROP Intermediate_Dir "vc_mswunivud\sdk_exe"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /FD /MDd /W1 /Zi /Fdvc_mswunivud\sdk_exe.pdb /Od /Gm /GR /EHsc /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /c
+# ADD CPP /nologo /FD /MDd /W1 /Zi /Fdvc_mswunivud\sdk_exe.pdb /Od /Gm /GR /EHsc /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /c
+# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /mktyplib203 /win32
+# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d "_DEBUG" /d _WINDOWS
+# ADD RSC /l 0x409 /d "_DEBUG" /d _WINDOWS
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 vc_mswunivud\my_dll.lib /nologo /machine:i386 /out:"vc_mswunivud\sdk_exe.exe" /debug /pdb:"vc_mswunivud\sdk_exe.pdb" /subsystem:windows
+# ADD LINK32 vc_mswunivud\my_dll.lib /nologo /machine:i386 /out:"vc_mswunivud\sdk_exe.exe" /debug /pdb:"vc_mswunivud\sdk_exe.pdb" /subsystem:windows
+
+!ELSEIF  "$(CFG)" == "sdk_exe - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "vc_mswu"
+# PROP BASE Intermediate_Dir "vc_mswu\sdk_exe"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "vc_mswu"
+# PROP Intermediate_Dir "vc_mswu\sdk_exe"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /FD /MD /W1 /Zi /Fdvc_mswu\sdk_exe.pdb /opt:ref /opt:icf /O2 /GR /EHsc /D "WIN32" /D "_WINDOWS" /c
+# ADD CPP /nologo /FD /MD /W1 /Zi /Fdvc_mswu\sdk_exe.pdb /opt:ref /opt:icf /O2 /GR /EHsc /D "WIN32" /D "_WINDOWS" /c
+# ADD BASE MTL /nologo /D "WIN32" /D "_WINDOWS" /mktyplib203 /win32
+# ADD MTL /nologo /D "WIN32" /D "_WINDOWS" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d _WINDOWS
+# ADD RSC /l 0x409 /d _WINDOWS
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 vc_mswu\my_dll.lib /nologo /machine:i386 /out:"vc_mswu\sdk_exe.exe" /debug /pdb:"vc_mswu\sdk_exe.pdb" /subsystem:windows
+# ADD LINK32 vc_mswu\my_dll.lib /nologo /machine:i386 /out:"vc_mswu\sdk_exe.exe" /debug /pdb:"vc_mswu\sdk_exe.pdb" /subsystem:windows
+
+!ELSEIF  "$(CFG)" == "sdk_exe - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "vc_mswud"
+# PROP BASE Intermediate_Dir "vc_mswud\sdk_exe"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "vc_mswud"
+# PROP Intermediate_Dir "vc_mswud\sdk_exe"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /FD /MDd /W1 /Zi /Fdvc_mswud\sdk_exe.pdb /Od /Gm /GR /EHsc /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /c
+# ADD CPP /nologo /FD /MDd /W1 /Zi /Fdvc_mswud\sdk_exe.pdb /Od /Gm /GR /EHsc /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /c
+# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /mktyplib203 /win32
+# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d "_DEBUG" /d _WINDOWS
+# ADD RSC /l 0x409 /d "_DEBUG" /d _WINDOWS
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 vc_mswud\my_dll.lib /nologo /machine:i386 /out:"vc_mswud\sdk_exe.exe" /debug /pdb:"vc_mswud\sdk_exe.pdb" /subsystem:windows
+# ADD LINK32 vc_mswud\my_dll.lib /nologo /machine:i386 /out:"vc_mswud\sdk_exe.exe" /debug /pdb:"vc_mswud\sdk_exe.pdb" /subsystem:windows
+
+!ENDIF
+
+# Begin Target
+
+# Name "sdk_exe - Win32 DLL Universal Release"
+# Name "sdk_exe - Win32 DLL Universal Debug"
+# Name "sdk_exe - Win32 DLL Release"
+# Name "sdk_exe - Win32 DLL Debug"
+# Name "sdk_exe - Win32 Universal Release"
+# Name "sdk_exe - Win32 Universal Debug"
+# Name "sdk_exe - Win32 Release"
+# Name "sdk_exe - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter ""
+# Begin Source File
+
+SOURCE=.\sdk_exe.cpp
+# End Source File
+# End Group
+# End Target
+# End Project
+
diff --git a/samples/dll/dll_vc7_sdk_exe.vcproj b/samples/dll/dll_vc7_sdk_exe.vcproj
new file mode 100644 (file)
index 0000000..f895d4f
--- /dev/null
@@ -0,0 +1,545 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<!--
+
+  This project was generated by
+  Bakefile 0.2.8 (http://www.bakefile.org)
+  Do not modify, all changes will be overwritten!
+
+-->
+<VisualStudioProject
+       ProjectType="Visual C++"
+       Version="7.10"
+       Name="sdk_exe"
+       ProjectGUID="{9F5C91C5-9982-53C5-B7D1-FBADA02791EC}">
+       <Platforms>
+               <Platform
+                       Name="Win32"/>
+       </Platforms>
+       <Configurations>
+               <Configuration
+                       Name="Debug|Win32"
+                       OutputDirectory="vc_mswud"
+                       IntermediateDirectory="vc_mswud\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="FALSE">
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               MinimalRebuild="TRUE"
+                               ExceptionHandling="TRUE"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="TRUE"
+                               RuntimeTypeInfo="TRUE"
+                               ObjectFile="vc_mswud\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswud\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="TRUE"
+                               Detect64BitPortabilityProblems="TRUE"
+                               DebugInformationFormat="3"/>
+                       <Tool
+                               Name="VCCustomBuildTool"/>
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswud\my_dll.lib"
+                               OutputFile="vc_mswud\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="TRUE"
+                               AdditionalLibraryDirectories=""
+                               GenerateDebugInformation="TRUE"
+                               ProgramDatabaseFile="vc_mswud\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"/>
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCPostBuildEventTool"/>
+                       <Tool
+                               Name="VCPreBuildEventTool"/>
+                       <Tool
+                               Name="VCPreLinkEventTool"/>
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"/>
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"/>
+                       <Tool
+                               Name="VCWebDeploymentTool"/>
+                       <Tool
+                               Name="VCManagedWrapperGeneratorTool"/>
+                       <Tool
+                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+               </Configuration>
+               <Configuration
+                       Name="Release|Win32"
+                       OutputDirectory="vc_mswu"
+                       IntermediateDirectory="vc_mswu\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="FALSE">
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="TRUE"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="TRUE"
+                               ObjectFile="vc_mswu\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswu\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="TRUE"
+                               Detect64BitPortabilityProblems="TRUE"
+                               DebugInformationFormat="3"/>
+                       <Tool
+                               Name="VCCustomBuildTool"/>
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswu\my_dll.lib"
+                               OutputFile="vc_mswu\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="TRUE"
+                               AdditionalLibraryDirectories=""
+                               GenerateDebugInformation="TRUE"
+                               ProgramDatabaseFile="vc_mswu\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"/>
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCPostBuildEventTool"/>
+                       <Tool
+                               Name="VCPreBuildEventTool"/>
+                       <Tool
+                               Name="VCPreLinkEventTool"/>
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"/>
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"/>
+                       <Tool
+                               Name="VCWebDeploymentTool"/>
+                       <Tool
+                               Name="VCManagedWrapperGeneratorTool"/>
+                       <Tool
+                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+               </Configuration>
+               <Configuration
+                       Name="Universal Debug|Win32"
+                       OutputDirectory="vc_mswunivud"
+                       IntermediateDirectory="vc_mswunivud\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="FALSE">
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               MinimalRebuild="TRUE"
+                               ExceptionHandling="TRUE"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="TRUE"
+                               RuntimeTypeInfo="TRUE"
+                               ObjectFile="vc_mswunivud\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivud\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="TRUE"
+                               Detect64BitPortabilityProblems="TRUE"
+                               DebugInformationFormat="3"/>
+                       <Tool
+                               Name="VCCustomBuildTool"/>
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivud\my_dll.lib"
+                               OutputFile="vc_mswunivud\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="TRUE"
+                               AdditionalLibraryDirectories=""
+                               GenerateDebugInformation="TRUE"
+                               ProgramDatabaseFile="vc_mswunivud\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"/>
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCPostBuildEventTool"/>
+                       <Tool
+                               Name="VCPreBuildEventTool"/>
+                       <Tool
+                               Name="VCPreLinkEventTool"/>
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"/>
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"/>
+                       <Tool
+                               Name="VCWebDeploymentTool"/>
+                       <Tool
+                               Name="VCManagedWrapperGeneratorTool"/>
+                       <Tool
+                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+               </Configuration>
+               <Configuration
+                       Name="Universal Release|Win32"
+                       OutputDirectory="vc_mswunivu"
+                       IntermediateDirectory="vc_mswunivu\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="FALSE">
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="TRUE"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="TRUE"
+                               ObjectFile="vc_mswunivu\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivu\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="TRUE"
+                               Detect64BitPortabilityProblems="TRUE"
+                               DebugInformationFormat="3"/>
+                       <Tool
+                               Name="VCCustomBuildTool"/>
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivu\my_dll.lib"
+                               OutputFile="vc_mswunivu\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="TRUE"
+                               AdditionalLibraryDirectories=""
+                               GenerateDebugInformation="TRUE"
+                               ProgramDatabaseFile="vc_mswunivu\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"/>
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCPostBuildEventTool"/>
+                       <Tool
+                               Name="VCPreBuildEventTool"/>
+                       <Tool
+                               Name="VCPreLinkEventTool"/>
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"/>
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"/>
+                       <Tool
+                               Name="VCWebDeploymentTool"/>
+                       <Tool
+                               Name="VCManagedWrapperGeneratorTool"/>
+                       <Tool
+                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+               </Configuration>
+               <Configuration
+                       Name="DLL Debug|Win32"
+                       OutputDirectory="vc_mswuddll"
+                       IntermediateDirectory="vc_mswuddll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="FALSE">
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               MinimalRebuild="TRUE"
+                               ExceptionHandling="TRUE"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="TRUE"
+                               RuntimeTypeInfo="TRUE"
+                               ObjectFile="vc_mswuddll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswuddll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="TRUE"
+                               Detect64BitPortabilityProblems="TRUE"
+                               DebugInformationFormat="3"/>
+                       <Tool
+                               Name="VCCustomBuildTool"/>
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswuddll\my_dll.lib"
+                               OutputFile="vc_mswuddll\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="TRUE"
+                               AdditionalLibraryDirectories=""
+                               GenerateDebugInformation="TRUE"
+                               ProgramDatabaseFile="vc_mswuddll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"/>
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCPostBuildEventTool"/>
+                       <Tool
+                               Name="VCPreBuildEventTool"/>
+                       <Tool
+                               Name="VCPreLinkEventTool"/>
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"/>
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"/>
+                       <Tool
+                               Name="VCWebDeploymentTool"/>
+                       <Tool
+                               Name="VCManagedWrapperGeneratorTool"/>
+                       <Tool
+                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+               </Configuration>
+               <Configuration
+                       Name="DLL Release|Win32"
+                       OutputDirectory="vc_mswudll"
+                       IntermediateDirectory="vc_mswudll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="FALSE">
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="TRUE"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="TRUE"
+                               ObjectFile="vc_mswudll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswudll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="TRUE"
+                               Detect64BitPortabilityProblems="TRUE"
+                               DebugInformationFormat="3"/>
+                       <Tool
+                               Name="VCCustomBuildTool"/>
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswudll\my_dll.lib"
+                               OutputFile="vc_mswudll\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="TRUE"
+                               AdditionalLibraryDirectories=""
+                               GenerateDebugInformation="TRUE"
+                               ProgramDatabaseFile="vc_mswudll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"/>
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCPostBuildEventTool"/>
+                       <Tool
+                               Name="VCPreBuildEventTool"/>
+                       <Tool
+                               Name="VCPreLinkEventTool"/>
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"/>
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"/>
+                       <Tool
+                               Name="VCWebDeploymentTool"/>
+                       <Tool
+                               Name="VCManagedWrapperGeneratorTool"/>
+                       <Tool
+                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+               </Configuration>
+               <Configuration
+                       Name="DLL Universal Debug|Win32"
+                       OutputDirectory="vc_mswunivuddll"
+                       IntermediateDirectory="vc_mswunivuddll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="FALSE">
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               MinimalRebuild="TRUE"
+                               ExceptionHandling="TRUE"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="TRUE"
+                               RuntimeTypeInfo="TRUE"
+                               ObjectFile="vc_mswunivuddll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivuddll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="TRUE"
+                               Detect64BitPortabilityProblems="TRUE"
+                               DebugInformationFormat="3"/>
+                       <Tool
+                               Name="VCCustomBuildTool"/>
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivuddll\my_dll.lib"
+                               OutputFile="vc_mswunivuddll\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="TRUE"
+                               AdditionalLibraryDirectories=""
+                               GenerateDebugInformation="TRUE"
+                               ProgramDatabaseFile="vc_mswunivuddll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"/>
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCPostBuildEventTool"/>
+                       <Tool
+                               Name="VCPreBuildEventTool"/>
+                       <Tool
+                               Name="VCPreLinkEventTool"/>
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"/>
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"/>
+                       <Tool
+                               Name="VCWebDeploymentTool"/>
+                       <Tool
+                               Name="VCManagedWrapperGeneratorTool"/>
+                       <Tool
+                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+               </Configuration>
+               <Configuration
+                       Name="DLL Universal Release|Win32"
+                       OutputDirectory="vc_mswunivudll"
+                       IntermediateDirectory="vc_mswunivudll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="FALSE">
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="TRUE"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="TRUE"
+                               ObjectFile="vc_mswunivudll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivudll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="TRUE"
+                               Detect64BitPortabilityProblems="TRUE"
+                               DebugInformationFormat="3"/>
+                       <Tool
+                               Name="VCCustomBuildTool"/>
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivudll\my_dll.lib"
+                               OutputFile="vc_mswunivudll\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="TRUE"
+                               AdditionalLibraryDirectories=""
+                               GenerateDebugInformation="TRUE"
+                               ProgramDatabaseFile="vc_mswunivudll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"/>
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCPostBuildEventTool"/>
+                       <Tool
+                               Name="VCPreBuildEventTool"/>
+                       <Tool
+                               Name="VCPreLinkEventTool"/>
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""/>
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"/>
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"/>
+                       <Tool
+                               Name="VCWebDeploymentTool"/>
+                       <Tool
+                               Name="VCManagedWrapperGeneratorTool"/>
+                       <Tool
+                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+               </Configuration>
+       </Configurations>
+       <References>
+
+       </References>
+       <Files>
+               <Filter
+                       Name="Source Files"
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
+                       <File
+                               RelativePath=".\sdk_exe.cpp">
+                       </File>
+               </Filter>
+       </Files>
+       <Globals>
+
+       </Globals>
+</VisualStudioProject>
+
diff --git a/samples/dll/dll_vc8_sdk_exe.vcproj b/samples/dll/dll_vc8_sdk_exe.vcproj
new file mode 100644 (file)
index 0000000..9ef9644
--- /dev/null
@@ -0,0 +1,808 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<!--
+
+  This project was generated by
+  Bakefile 0.2.8 (http://www.bakefile.org)
+  Do not modify, all changes will be overwritten!
+
+-->
+<VisualStudioProject
+       ProjectType="Visual C++"
+       Version="8.00"
+       Name="sdk_exe"
+       ProjectGUID="{86629D2C-CF65-52BD-9329-D573949DBE93}"
+       >
+       <Platforms>
+               <Platform
+                       Name="Win32"
+               />
+       </Platforms>
+       <ToolFiles>
+
+       </ToolFiles>
+       <Configurations>
+               <Configuration
+                       Name="Debug|Win32"
+                       OutputDirectory="vc_mswud"
+                       IntermediateDirectory="vc_mswud\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               MinimalRebuild="true"
+                               ExceptionHandling="1"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="true"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswud\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswud\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               Detect64BitPortabilityProblems="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswud\my_dll.lib"
+                               OutputFile="vc_mswud\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswud\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswud\dll_vc8_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCWebDeploymentTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Release|Win32"
+                       OutputDirectory="vc_mswu"
+                       IntermediateDirectory="vc_mswu\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="1"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswu\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswu\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               Detect64BitPortabilityProblems="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswu\my_dll.lib"
+                               OutputFile="vc_mswu\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswu\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswu\dll_vc8_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCWebDeploymentTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Universal Debug|Win32"
+                       OutputDirectory="vc_mswunivud"
+                       IntermediateDirectory="vc_mswunivud\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               MinimalRebuild="true"
+                               ExceptionHandling="1"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="true"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswunivud\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivud\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               Detect64BitPortabilityProblems="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivud\my_dll.lib"
+                               OutputFile="vc_mswunivud\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswunivud\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswunivud\dll_vc8_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCWebDeploymentTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Universal Release|Win32"
+                       OutputDirectory="vc_mswunivu"
+                       IntermediateDirectory="vc_mswunivu\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="1"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswunivu\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivu\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               Detect64BitPortabilityProblems="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivu\my_dll.lib"
+                               OutputFile="vc_mswunivu\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswunivu\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswunivu\dll_vc8_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCWebDeploymentTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="DLL Debug|Win32"
+                       OutputDirectory="vc_mswuddll"
+                       IntermediateDirectory="vc_mswuddll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               MinimalRebuild="true"
+                               ExceptionHandling="1"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="true"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswuddll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswuddll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               Detect64BitPortabilityProblems="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswuddll\my_dll.lib"
+                               OutputFile="vc_mswuddll\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswuddll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswuddll\dll_vc8_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCWebDeploymentTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="DLL Release|Win32"
+                       OutputDirectory="vc_mswudll"
+                       IntermediateDirectory="vc_mswudll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="1"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswudll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswudll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               Detect64BitPortabilityProblems="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswudll\my_dll.lib"
+                               OutputFile="vc_mswudll\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswudll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswudll\dll_vc8_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCWebDeploymentTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="DLL Universal Debug|Win32"
+                       OutputDirectory="vc_mswunivuddll"
+                       IntermediateDirectory="vc_mswunivuddll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               MinimalRebuild="true"
+                               ExceptionHandling="1"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="true"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswunivuddll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivuddll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               Detect64BitPortabilityProblems="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivuddll\my_dll.lib"
+                               OutputFile="vc_mswunivuddll\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswunivuddll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswunivuddll\dll_vc8_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCWebDeploymentTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="DLL Universal Release|Win32"
+                       OutputDirectory="vc_mswunivudll"
+                       IntermediateDirectory="vc_mswunivudll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="1"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswunivudll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivudll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               Detect64BitPortabilityProblems="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivudll\my_dll.lib"
+                               OutputFile="vc_mswunivudll\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswunivudll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswunivudll\dll_vc8_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCWebDeploymentTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+       </Configurations>
+       <References>
+
+       </References>
+       <Files>
+               <Filter
+                       Name="Source Files"
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+                       >
+                       <File
+                               RelativePath=".\sdk_exe.cpp"
+                               >
+                       </File>
+               </Filter>
+       </Files>
+       <Globals>
+
+       </Globals>
+</VisualStudioProject>
+
diff --git a/samples/dll/dll_vc9_sdk_exe.vcproj b/samples/dll/dll_vc9_sdk_exe.vcproj
new file mode 100644 (file)
index 0000000..3b34b55
--- /dev/null
@@ -0,0 +1,780 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<!--
+
+  This project was generated by
+  Bakefile 0.2.8 (http://www.bakefile.org)
+  Do not modify, all changes will be overwritten!
+
+-->
+<VisualStudioProject
+       ProjectType="Visual C++"
+       Version="9.00"
+       Name="sdk_exe"
+       ProjectGUID="{8D752958-F793-5291-94FF-884F1999D773}"
+       >
+       <Platforms>
+               <Platform
+                       Name="Win32"
+               />
+       </Platforms>
+       <ToolFiles>
+
+       </ToolFiles>
+       <Configurations>
+               <Configuration
+                       Name="Debug|Win32"
+                       OutputDirectory="vc_mswud"
+                       IntermediateDirectory="vc_mswud\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               AdditionalOptions="/MP"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               ExceptionHandling="1"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="true"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswud\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswud\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswud\my_dll.lib"
+                               OutputFile="vc_mswud\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswud\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswud\dll_vc9_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Release|Win32"
+                       OutputDirectory="vc_mswu"
+                       IntermediateDirectory="vc_mswu\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               AdditionalOptions="/MP"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="1"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswu\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswu\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswu\my_dll.lib"
+                               OutputFile="vc_mswu\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswu\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswu\dll_vc9_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Universal Debug|Win32"
+                       OutputDirectory="vc_mswunivud"
+                       IntermediateDirectory="vc_mswunivud\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               AdditionalOptions="/MP"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               ExceptionHandling="1"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="true"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswunivud\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivud\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivud\my_dll.lib"
+                               OutputFile="vc_mswunivud\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswunivud\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswunivud\dll_vc9_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Universal Release|Win32"
+                       OutputDirectory="vc_mswunivu"
+                       IntermediateDirectory="vc_mswunivu\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               AdditionalOptions="/MP"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="1"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswunivu\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivu\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivu\my_dll.lib"
+                               OutputFile="vc_mswunivu\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswunivu\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswunivu\dll_vc9_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="DLL Debug|Win32"
+                       OutputDirectory="vc_mswuddll"
+                       IntermediateDirectory="vc_mswuddll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               AdditionalOptions="/MP"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               ExceptionHandling="1"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="true"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswuddll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswuddll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswuddll\my_dll.lib"
+                               OutputFile="vc_mswuddll\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswuddll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswuddll\dll_vc9_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="DLL Release|Win32"
+                       OutputDirectory="vc_mswudll"
+                       IntermediateDirectory="vc_mswudll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               AdditionalOptions="/MP"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="1"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswudll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswudll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswudll\my_dll.lib"
+                               OutputFile="vc_mswudll\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswudll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswudll\dll_vc9_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="DLL Universal Debug|Win32"
+                       OutputDirectory="vc_mswunivuddll"
+                       IntermediateDirectory="vc_mswunivuddll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               AdditionalOptions="/MP"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
+                               ExceptionHandling="1"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               BufferSecurityCheck="true"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswunivuddll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivuddll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_DEBUG;_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivuddll\my_dll.lib"
+                               OutputFile="vc_mswunivuddll\sdk_exe.exe"
+                               LinkIncremental="2"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswunivuddll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswunivuddll\dll_vc9_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="DLL Universal Release|Win32"
+                       OutputDirectory="vc_mswunivudll"
+                       IntermediateDirectory="vc_mswunivudll\sdk_exe"
+                       ConfigurationType="1"
+                       UseOfMFC="0"
+                       ATLMinimizesCRunTimeLibraryUsage="false"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               AdditionalOptions="/MP"
+                               Optimization="2"
+                               AdditionalIncludeDirectories=""
+                               PreprocessorDefinitions="WIN32;_WINDOWS"
+                               ExceptionHandling="1"
+                               RuntimeLibrary="2"
+                               RuntimeTypeInfo="true"
+                               ObjectFile="vc_mswunivudll\sdk_exe\"
+                               ProgramDataBaseFileName="vc_mswunivudll\sdk_exe.pdb"
+                               WarningLevel="3"
+                               SuppressStartupBanner="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                               PreprocessorDefinitions="_WINDOWS"
+                               Culture="1033"
+                               AdditionalIncludeDirectories=""
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalOptions=""
+                               AdditionalDependencies="vc_mswunivudll\my_dll.lib"
+                               OutputFile="vc_mswunivudll\sdk_exe.exe"
+                               LinkIncremental="1"
+                               SuppressStartupBanner="true"
+                               AdditionalLibraryDirectories=""
+                               GenerateManifest="true"
+                               GenerateDebugInformation="true"
+                               ProgramDatabaseFile="vc_mswunivudll\sdk_exe.pdb"
+                               SubSystem="2"
+                               TargetMachine="1"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                               OutputFile="vc_mswunivudll\dll_vc9_sdk_exe.bsc"
+                               SuppressStartupBanner="true"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+       </Configurations>
+       <References>
+
+       </References>
+       <Files>
+               <Filter
+                       Name="Source Files"
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+                       >
+                       <File
+                               RelativePath=".\sdk_exe.cpp"
+                               >
+                       </File>
+               </Filter>
+       </Files>
+       <Globals>
+
+       </Globals>
+</VisualStudioProject>
+
index 61882c82995755e8bbe0f352ac53ac9ee1d4e31a..8b06a070ebacfefaa830efb3332a6408d36e1381 100644 (file)
@@ -29,7 +29,7 @@ LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
 SETUPHDIR = \\r
        $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
 MY_DLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
-       $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
+       $(__OPTIMIZEFLAG) $(__THREADSFLAG_1) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
        $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
        $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
        $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
@@ -38,7 +38,7 @@ MY_DLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
 MY_DLL_OBJECTS =  \\r
        $(OBJS)\my_dll_my_dll.obj\r
 WX_EXE_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
-       $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
+       $(__OPTIMIZEFLAG) $(__THREADSFLAG_1) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
        $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
        $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
        $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
@@ -46,6 +46,10 @@ WX_EXE_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
        -DNOPCH $(CPPFLAGS) $(CXXFLAGS)\r
 WX_EXE_OBJECTS =  \\r
        $(OBJS)\wx_exe_wx_exe.obj\r
+SDK_EXE_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
+       $(__OPTIMIZEFLAG) $(__THREADSFLAG_1) $(CPPFLAGS) $(CXXFLAGS)
+SDK_EXE_OBJECTS =  \
+       $(OBJS)\sdk_exe_sdk_exe.obj
 \r
 ### Conditionally set variables: ###\r
 \r
@@ -115,36 +119,6 @@ ____CAIRO_INCLUDEDIR_FILENAMES_3_p = -i$(CAIRO_ROOT)\include\cairo
 !if "$(SHARED)" == "1"\r
 __DLLFLAG_p_3 = -dWXUSINGDLL\r
 !endif\r
-!if "$(BUILD)" == "debug"\r
-__OPTIMIZEFLAG = -Od\r
-!endif\r
-!if "$(BUILD)" == "release"\r
-__OPTIMIZEFLAG = -O2\r
-!endif\r
-!if "$(USE_THREADS)" == "0"\r
-__THREADSFLAG = \r
-!endif\r
-!if "$(USE_THREADS)" == "1"\r
-__THREADSFLAG = mt\r
-!endif\r
-!if "$(USE_THREADS)" == "0"\r
-__THREADSFLAG_0 = \r
-!endif\r
-!if "$(USE_THREADS)" == "1"\r
-__THREADSFLAG_0 = -tWM\r
-!endif\r
-!if "$(RUNTIME_LIBS)" == "dynamic"\r
-__RUNTIME_LIBS = -tWR\r
-!endif\r
-!if "$(RUNTIME_LIBS)" == "static"\r
-__RUNTIME_LIBS = \r
-!endif\r
-!if "$(RUNTIME_LIBS)" == "dynamic"\r
-__RUNTIME_LIBS_0 = i\r
-!endif\r
-!if "$(RUNTIME_LIBS)" == "static"\r
-__RUNTIME_LIBS_0 = \r
-!endif\r
 !if "$(WXUNIV)" == "1"\r
 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
 !endif\r
@@ -211,6 +185,36 @@ __CAIRO_LIB_p = cairo.lib
 !if "$(USE_CAIRO)" == "1"\r
 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
 !endif\r
+!if "$(BUILD)" == "debug"
+__OPTIMIZEFLAG = -Od
+!endif
+!if "$(BUILD)" == "release"
+__OPTIMIZEFLAG = -O2
+!endif
+!if "$(USE_THREADS)" == "0"
+__THREADSFLAG =
+!endif
+!if "$(USE_THREADS)" == "1"
+__THREADSFLAG = mt
+!endif
+!if "$(USE_THREADS)" == "0"
+__THREADSFLAG_1 =
+!endif
+!if "$(USE_THREADS)" == "1"
+__THREADSFLAG_1 = -tWM
+!endif
+!if "$(RUNTIME_LIBS)" == "dynamic"
+__RUNTIME_LIBS = -tWR
+!endif
+!if "$(RUNTIME_LIBS)" == "static"
+__RUNTIME_LIBS =
+!endif
+!if "$(RUNTIME_LIBS)" == "dynamic"
+__RUNTIME_LIBS_1 = i
+!endif
+!if "$(RUNTIME_LIBS)" == "static"
+__RUNTIME_LIBS_1 =
+!endif
 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
 __DEBUGINFO = -v\r
 !endif\r
@@ -231,7 +235,7 @@ $(OBJS):
 \r
 ### Targets: ###\r
 \r
-all: $(OBJS)\my_dll.dll $(__wx_exe___depname)\r
+all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
 \r
 clean: \r
        -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
@@ -250,20 +254,31 @@ clean:
        -if exist $(OBJS)\wx_exe.ild del $(OBJS)\wx_exe.ild\r
        -if exist $(OBJS)\wx_exe.ilf del $(OBJS)\wx_exe.ilf\r
        -if exist $(OBJS)\wx_exe.ils del $(OBJS)\wx_exe.ils\r
+       -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
+       -if exist $(OBJS)\sdk_exe.tds del $(OBJS)\sdk_exe.tds
+       -if exist $(OBJS)\sdk_exe.ilc del $(OBJS)\sdk_exe.ilc
+       -if exist $(OBJS)\sdk_exe.ild del $(OBJS)\sdk_exe.ild
+       -if exist $(OBJS)\sdk_exe.ilf del $(OBJS)\sdk_exe.ilf
+       -if exist $(OBJS)\sdk_exe.ils del $(OBJS)\sdk_exe.ils
 \r
 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)\r
        ilink32 -Tpd -q  -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO)  -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
-       c0d32.obj $(MY_DLL_OBJECTS),$@,, $(__WXLIB_CORE_p)  $(__WXLIB_BASE_p)  $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p)  wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,,\r
+       c0d32.obj $(MY_DLL_OBJECTS),$@,, $(__WXLIB_CORE_p)  $(__WXLIB_BASE_p)  $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p)  wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,
 |\r
        implib -f $(OBJS)\my_dll $@\r
 \r
 !if "$(SHARED)" == "0"\r
 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS)  $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll\r
        ilink32 -Tpe -q  -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO)  -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
-       c0w32.obj $(WX_EXE_OBJECTS),$@,, $(__WXLIB_CORE_p)  $(__WXLIB_BASE_p)  $(OBJS)\my_dll.lib $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p)  wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\wx_exe_sample.res\r
+       c0w32.obj $(WX_EXE_OBJECTS),$@,, $(__WXLIB_CORE_p)  $(__WXLIB_BASE_p)  $(OBJS)\my_dll.lib $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p)  wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,, $(OBJS)\wx_exe_sample.res
 |\r
 !endif\r
 \r
+$(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
+       ilink32 -Tpe -q  -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO)  -aa $(LDFLAGS) @&&|
+       c0w32.obj $(SDK_EXE_OBJECTS),$@,, $(OBJS)\my_dll.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,
+|
+
 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp\r
        $(CXX) -q -c -P -o$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp\r
 \r
@@ -273,3 +288,6 @@ $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc
 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp\r
        $(CXX) -q -c -P -o$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp\r
 \r
+$(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
+       $(CXX) -q -c -P -o$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp
+
index d48e2e38f70423d22d69a318f9a9cc694df1f718..a94211cc8108817083ffd265f8ae472be482df94 100644 (file)
@@ -39,6 +39,11 @@ WX_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS)
 WX_EXE_OBJECTS =  \\r
        $(OBJS)\wx_exe_sample_rc.o \\r
        $(OBJS)\wx_exe_wx_exe.o\r
+SDK_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
+       $(GCCFLAGS) -DHAVE_W32API_H $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
+       $(CXXFLAGS)
+SDK_EXE_OBJECTS =  \
+       $(OBJS)\sdk_exe_sdk_exe.o
 \r
 ### Conditionally set variables: ###\r
 \r
@@ -111,24 +116,6 @@ endif
 ifeq ($(SHARED),1)\r
 __DLLFLAG_p_3 = --define WXUSINGDLL\r
 endif\r
-ifeq ($(BUILD),debug)\r
-__OPTIMIZEFLAG = -O0\r
-endif\r
-ifeq ($(BUILD),release)\r
-__OPTIMIZEFLAG = -O2\r
-endif\r
-ifeq ($(USE_RTTI),0)\r
-__RTTIFLAG = -fno-rtti\r
-endif\r
-ifeq ($(USE_RTTI),1)\r
-__RTTIFLAG = \r
-endif\r
-ifeq ($(USE_EXCEPTIONS),0)\r
-__EXCEPTIONSFLAG = -fno-exceptions\r
-endif\r
-ifeq ($(USE_EXCEPTIONS),1)\r
-__EXCEPTIONSFLAG = \r
-endif\r
 ifeq ($(WXUNIV),1)\r
 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
 endif\r
@@ -196,6 +183,24 @@ ifeq ($(USE_CAIRO),1)
 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
 endif\r
 ifeq ($(BUILD),debug)\r
+__OPTIMIZEFLAG = -O0
+endif
+ifeq ($(BUILD),release)
+__OPTIMIZEFLAG = -O2
+endif
+ifeq ($(USE_RTTI),0)
+__RTTIFLAG = -fno-rtti
+endif
+ifeq ($(USE_RTTI),1)
+__RTTIFLAG =
+endif
+ifeq ($(USE_EXCEPTIONS),0)
+__EXCEPTIONSFLAG = -fno-exceptions
+endif
+ifeq ($(USE_EXCEPTIONS),1)
+__EXCEPTIONSFLAG =
+endif
+ifeq ($(BUILD),debug)
 ifeq ($(DEBUG_INFO),default)\r
 __DEBUGINFO = -g\r
 endif\r
@@ -225,7 +230,7 @@ $(OBJS):
 \r
 ### Targets: ###\r
 \r
-all: $(OBJS)\my_dll.dll $(__wx_exe___depname)\r
+all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
 \r
 clean: \r
        -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
@@ -233,6 +238,7 @@ clean:
        -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll\r
        -if exist $(OBJS)\libmy_dll.a del $(OBJS)\libmy_dll.a\r
        -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe\r
+       -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
 \r
 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)\r
        $(CXX) $(LINK_DLL_FLAGS) -fPIC -o $@ $(MY_DLL_OBJECTS)  -Wl,--out-implib=$(OBJS)\libmy_dll.a $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)  $(__WXLIB_CORE_p)  $(__WXLIB_BASE_p)  $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p)  -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
@@ -242,6 +248,9 @@ $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample_rc.o $(OBJS)\my_dll.
        $(CXX) -o $@ $(WX_EXE_OBJECTS)  $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)  $(__WXLIB_CORE_p)  $(__WXLIB_BASE_p)  $(OBJS)\libmy_dll.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p)  -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
 endif\r
 \r
+$(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
+       $(CXX) -o $@ $(SDK_EXE_OBJECTS)  $(__DEBUGINFO) $(__THREADSFLAG) -Wl,--subsystem,windows -mwindows $(LDFLAGS)  $(OBJS)\libmy_dll.a
+
 $(OBJS)\my_dll_my_dll.o: ./my_dll.cpp\r
        $(CXX) -c -o $@ $(MY_DLL_CXXFLAGS) $(CPPDEPS) $<\r
 \r
@@ -251,6 +260,9 @@ $(OBJS)\wx_exe_sample_rc.o: ./../../samples/sample.rc
 $(OBJS)\wx_exe_wx_exe.o: ./wx_exe.cpp\r
        $(CXX) -c -o $@ $(WX_EXE_CXXFLAGS) $(CPPDEPS) $<\r
 \r
+$(OBJS)\sdk_exe_sdk_exe.o: ./sdk_exe.cpp
+       $(CXX) -c -o $@ $(SDK_EXE_CXXFLAGS) $(CPPDEPS) $<
+
 .PHONY: all clean\r
 \r
 \r
index f9f109b622e92591445033ccfc3b3206a2320f58..6488f66f0da69f1aa4c8b6526bf9ebcd26c8b873 100644 (file)
@@ -21,7 +21,7 @@ LIBDIRNAME = \
 SETUPHDIR = \\r
        $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
 MY_DLL_CXXFLAGS = /M$(__RUNTIME_LIBS_11)$(__DEBUGRUNTIME) /DWIN32 \\r
-       $(__DEBUGINFO_1) /Fd$(OBJS)\my_dll.pdb $(____DEBUGRUNTIME) \\r
+       $(__DEBUGINFO_0) /Fd$(OBJS)\my_dll.pdb $(____DEBUGRUNTIME) \
        $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
        $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
        $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
@@ -31,7 +31,7 @@ MY_DLL_CXXFLAGS = /M$(__RUNTIME_LIBS_11)$(__DEBUGRUNTIME) /DWIN32 \
 MY_DLL_OBJECTS =  \\r
        $(OBJS)\my_dll_my_dll.obj\r
 WX_EXE_CXXFLAGS = /M$(__RUNTIME_LIBS_25)$(__DEBUGRUNTIME) /DWIN32 \\r
-       $(__DEBUGINFO_1) /Fd$(OBJS)\wx_exe.pdb $(____DEBUGRUNTIME) \\r
+       $(__DEBUGINFO_0) /Fd$(OBJS)\wx_exe.pdb $(____DEBUGRUNTIME) \
        $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
        $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
        $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
@@ -43,6 +43,12 @@ WX_EXE_OBJECTS =  \
        $(OBJS)\wx_exe_wx_exe.obj\r
 WX_EXE_RESOURCES =  \\r
        $(OBJS)\wx_exe_sample.res\r
+SDK_EXE_CXXFLAGS = /M$(__RUNTIME_LIBS_41)$(__DEBUGRUNTIME) /DWIN32 \
+       $(__DEBUGINFO_0) /Fd$(OBJS)\sdk_exe.pdb $(____DEBUGRUNTIME) \
+       $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D_WINDOWS $(__RTTIFLAG) \
+       $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
+SDK_EXE_OBJECTS =  \
+       $(OBJS)\sdk_exe_sdk_exe.obj
 \r
 ### Conditionally set variables: ###\r
 \r
@@ -104,7 +110,7 @@ EXTRALIBS_FOR_BASE =
 EXTRALIBS_FOR_BASE =  \r
 !endif\r
 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
-__DEBUGINFO_3 = $(__DEBUGRUNTIME_0)\r
+__DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
 !endif\r
 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
 __DEBUGINFO_3 = \r
@@ -113,7 +119,7 @@ __DEBUGINFO_3 =
 __DEBUGINFO_3 = \r
 !endif\r
 !if "$(DEBUG_INFO)" == "1"\r
-__DEBUGINFO_3 = $(__DEBUGRUNTIME_0)\r
+__DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
 !endif\r
 !if "$(RUNTIME_LIBS)" == "dynamic"\r
 __RUNTIME_LIBS_11 = D\r
@@ -125,7 +131,7 @@ __RUNTIME_LIBS_11 = $(__THREADSFLAG)
 __wx_exe___depname = $(OBJS)\wx_exe.exe\r
 !endif\r
 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
-__DEBUGINFO_17 = $(__DEBUGRUNTIME_0)\r
+__DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
 !endif\r
 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
 __DEBUGINFO_17 = \r
@@ -134,7 +140,7 @@ __DEBUGINFO_17 =
 __DEBUGINFO_17 = \r
 !endif\r
 !if "$(DEBUG_INFO)" == "1"\r
-__DEBUGINFO_17 = $(__DEBUGRUNTIME_0)\r
+__DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
 !endif\r
 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
 ____DEBUGRUNTIME_18_p_1 = /d _DEBUG\r
@@ -194,16 +200,100 @@ ____CAIRO_INCLUDEDIR_FILENAMES_3_p = /i $(CAIRO_ROOT)\include\cairo
 __DLLFLAG_p_3 = /d WXUSINGDLL\r
 !endif\r
 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
-__DEBUGINFO_1 = /Zi\r
+__DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
 !endif\r
 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
-__DEBUGINFO_1 = \r
+__DEBUGINFO_33 =
 !endif\r
 !if "$(DEBUG_INFO)" == "0"\r
-__DEBUGINFO_1 = \r
+__DEBUGINFO_33 =
 !endif\r
 !if "$(DEBUG_INFO)" == "1"\r
-__DEBUGINFO_1 = /Zi\r
+__DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
+!endif
+!if "$(RUNTIME_LIBS)" == "dynamic"
+__RUNTIME_LIBS_41 = D
+!endif
+!if "$(RUNTIME_LIBS)" == "static"
+__RUNTIME_LIBS_41 = $(__THREADSFLAG)
+!endif
+!if "$(WXUNIV)" == "1"
+__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
+!endif
+!if "$(DEBUG_FLAG)" == "0"
+__DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
+!endif
+!if "$(USE_EXCEPTIONS)" == "0"
+__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
+!endif
+!if "$(USE_RTTI)" == "0"
+__RTTI_DEFINE_p = /DwxNO_RTTI
+!endif
+!if "$(USE_THREADS)" == "0"
+__THREAD_DEFINE_p = /DwxNO_THREADS
+!endif
+!if "$(UNICODE)" == "0"
+__UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
+!endif
+!if "$(UNICODE)" == "1"
+__UNICODE_DEFINE_p = /D_UNICODE
+!endif
+!if "$(MSLU)" == "1"
+__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
+!endif
+!if "$(USE_GDIPLUS)" == "1"
+__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
+!endif
+!if "$(USE_CAIRO)" == "1"
+____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo
+!endif
+!if "$(SHARED)" == "1"
+__DLLFLAG_p = /DWXUSINGDLL
+!endif
+!if "$(MONOLITHIC)" == "0"
+__WXLIB_CORE_p = \
+       wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
+!endif
+!if "$(MONOLITHIC)" == "0"
+__WXLIB_BASE_p = \
+       wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
+!endif
+!if "$(MONOLITHIC)" == "1"
+__WXLIB_MONO_p = \
+       wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
+!endif
+!if "$(USE_GUI)" == "1"
+__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
+!endif
+!if "$(USE_GUI)" == "1"
+__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
+!endif
+!if "$(USE_GUI)" == "1"
+__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
+!endif
+!if "$(MSLU)" == "1"
+__UNICOWS_LIB_p = unicows.lib
+!endif
+!if "$(USE_GDIPLUS)" == "1"
+__GDIPLUS_LIB_p = gdiplus.lib
+!endif
+!if "$(USE_CAIRO)" == "1"
+__CAIRO_LIB_p = cairo.lib
+!endif
+!if "$(USE_CAIRO)" == "1"
+____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib
+!endif
+!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
+__DEBUGINFO_0 = /Zi
+!endif
+!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
+__DEBUGINFO_0 =
+!endif
+!if "$(DEBUG_INFO)" == "0"
+__DEBUGINFO_0 =
+!endif
+!if "$(DEBUG_INFO)" == "1"
+__DEBUGINFO_0 = /Zi
 !endif\r
 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
 __DEBUGINFO = /DEBUG\r
@@ -242,16 +332,16 @@ __DEBUGRUNTIME =
 __DEBUGRUNTIME = d\r
 !endif\r
 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
-__DEBUGRUNTIME_0 = \r
+__DEBUGRUNTIME_1 =
 !endif\r
 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
-__DEBUGRUNTIME_0 = /opt:ref /opt:icf\r
+__DEBUGRUNTIME_1 = /opt:ref /opt:icf
 !endif\r
 !if "$(DEBUG_RUNTIME_LIBS)" == "0"\r
-__DEBUGRUNTIME_0 = /opt:ref /opt:icf\r
+__DEBUGRUNTIME_1 = /opt:ref /opt:icf
 !endif\r
 !if "$(DEBUG_RUNTIME_LIBS)" == "1"\r
-__DEBUGRUNTIME_0 = \r
+__DEBUGRUNTIME_1 =
 !endif\r
 !if "$(BUILD)" == "debug"\r
 __OPTIMIZEFLAG = /Od\r
@@ -283,72 +373,6 @@ __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"\r
 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__\r
 !endif\r
-!if "$(WXUNIV)" == "1"\r
-__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__\r
-!endif\r
-!if "$(DEBUG_FLAG)" == "0"\r
-__DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0\r
-!endif\r
-!if "$(USE_EXCEPTIONS)" == "0"\r
-__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS\r
-!endif\r
-!if "$(USE_RTTI)" == "0"\r
-__RTTI_DEFINE_p = /DwxNO_RTTI\r
-!endif\r
-!if "$(USE_THREADS)" == "0"\r
-__THREAD_DEFINE_p = /DwxNO_THREADS\r
-!endif\r
-!if "$(UNICODE)" == "0"\r
-__UNICODE_DEFINE_p = /DwxUSE_UNICODE=0\r
-!endif\r
-!if "$(UNICODE)" == "1"\r
-__UNICODE_DEFINE_p = /D_UNICODE\r
-!endif\r
-!if "$(MSLU)" == "1"\r
-__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1\r
-!endif\r
-!if "$(USE_GDIPLUS)" == "1"\r
-__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1\r
-!endif\r
-!if "$(USE_CAIRO)" == "1"\r
-____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo\r
-!endif\r
-!if "$(SHARED)" == "1"\r
-__DLLFLAG_p = /DWXUSINGDLL\r
-!endif\r
-!if "$(MONOLITHIC)" == "0"\r
-__WXLIB_CORE_p = \\r
-       wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r
-!endif\r
-!if "$(MONOLITHIC)" == "0"\r
-__WXLIB_BASE_p = \\r
-       wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
-!endif\r
-!if "$(MONOLITHIC)" == "1"\r
-__WXLIB_MONO_p = \\r
-       wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
-!endif\r
-!if "$(USE_GUI)" == "1"\r
-__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
-!endif\r
-!if "$(USE_GUI)" == "1"\r
-__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
-!endif\r
-!if "$(USE_GUI)" == "1"\r
-__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
-!endif\r
-!if "$(MSLU)" == "1"\r
-__UNICOWS_LIB_p = unicows.lib\r
-!endif\r
-!if "$(USE_GDIPLUS)" == "1"\r
-__GDIPLUS_LIB_p = gdiplus.lib\r
-!endif\r
-!if "$(USE_CAIRO)" == "1"\r
-__CAIRO_LIB_p = cairo.lib\r
-!endif\r
-!if "$(USE_CAIRO)" == "1"\r
-____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib\r
-!endif\r
 \r
 \r
 all: $(OBJS)\r
@@ -357,7 +381,7 @@ $(OBJS):
 \r
 ### Targets: ###\r
 \r
-all: $(OBJS)\my_dll.dll $(__wx_exe___depname)\r
+all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
 \r
 clean: \r
        -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
@@ -370,6 +394,9 @@ clean:
        -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe\r
        -if exist $(OBJS)\wx_exe.ilk del $(OBJS)\wx_exe.ilk\r
        -if exist $(OBJS)\wx_exe.pdb del $(OBJS)\wx_exe.pdb\r
+       -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
+       -if exist $(OBJS)\sdk_exe.ilk del $(OBJS)\sdk_exe.ilk
+       -if exist $(OBJS)\sdk_exe.pdb del $(OBJS)\sdk_exe.pdb
 \r
 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)\r
        link /DLL /NOLOGO /OUT:$@  $(__DEBUGINFO) /pdb:"$(OBJS)\my_dll.pdb" $(__DEBUGINFO_3)  $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<\r
@@ -383,6 +410,11 @@ $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.d
 <<\r
 !endif\r
 \r
+$(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
+       link /NOLOGO /OUT:$@  $(__DEBUGINFO) /pdb:"$(OBJS)\sdk_exe.pdb" $(__DEBUGINFO_33)  $(LINK_TARGET_CPU) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
+       $(SDK_EXE_OBJECTS)   $(OBJS)\my_dll.lib
+<<
+
 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp\r
        $(CXX) /c /nologo /TP /Fo$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp\r
 \r
@@ -392,3 +424,6 @@ $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc
 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp\r
        $(CXX) /c /nologo /TP /Fo$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp\r
 \r
+$(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
+       $(CXX) /c /nologo /TP /Fo$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp
+
index 4becc28d7adf21d15a53b1e30104d689bfce8e8a..ff1f84fc107bebb526b135016a964338f5d6a6f0 100644 (file)
@@ -72,22 +72,61 @@ __wx_exe___depname =
 !ifeq SHARED 0\r
 __wx_exe___depname = $(OBJS)\wx_exe.exe\r
 !endif\r
-__DEBUGINFO_1 =\r
+__WXLIB_CORE_p =
+!ifeq MONOLITHIC 0
+__WXLIB_CORE_p = &
+       wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
+!endif
+__WXLIB_BASE_p =
+!ifeq MONOLITHIC 0
+__WXLIB_BASE_p = &
+       wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
+!endif
+__WXLIB_MONO_p =
+!ifeq MONOLITHIC 1
+__WXLIB_MONO_p = &
+       wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
+!endif
+__LIB_TIFF_p =
+!ifeq USE_GUI 1
+__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
+!endif
+__LIB_JPEG_p =
+!ifeq USE_GUI 1
+__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
+!endif
+__LIB_PNG_p =
+!ifeq USE_GUI 1
+__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
+!endif
+__GDIPLUS_LIB_p =
+!ifeq USE_GDIPLUS 1
+__GDIPLUS_LIB_p = gdiplus.lib
+!endif
+__CAIRO_LIB_p =
+!ifeq USE_CAIRO 1
+__CAIRO_LIB_p = cairo.lib
+!endif
+____CAIRO_LIBDIR_FILENAMES =
+!ifeq USE_CAIRO 1
+____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
+!endif
+__DEBUGINFO_0 =
 !ifeq BUILD debug\r
 !ifeq DEBUG_INFO default\r
-__DEBUGINFO_1 = -d2\r
+__DEBUGINFO_0 = -d2
 !endif\r
 !endif\r
 !ifeq BUILD release\r
 !ifeq DEBUG_INFO default\r
-__DEBUGINFO_1 = -d0\r
+__DEBUGINFO_0 = -d0
 !endif\r
 !endif\r
 !ifeq DEBUG_INFO 0\r
-__DEBUGINFO_1 = -d0\r
+__DEBUGINFO_0 = -d0
 !endif\r
 !ifeq DEBUG_INFO 1\r
-__DEBUGINFO_1 = -d2\r
+__DEBUGINFO_0 = -d2
 !endif\r
 __DEBUGINFO =\r
 !ifeq BUILD debug\r
@@ -141,45 +180,6 @@ __EXCEPTIONSFLAG =
 !ifeq USE_EXCEPTIONS 1\r
 __EXCEPTIONSFLAG = -xs\r
 !endif\r
-__WXLIB_CORE_p =\r
-!ifeq MONOLITHIC 0\r
-__WXLIB_CORE_p = &\r
-       wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r
-!endif\r
-__WXLIB_BASE_p =\r
-!ifeq MONOLITHIC 0\r
-__WXLIB_BASE_p = &\r
-       wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
-!endif\r
-__WXLIB_MONO_p =\r
-!ifeq MONOLITHIC 1\r
-__WXLIB_MONO_p = &\r
-       wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
-!endif\r
-__LIB_TIFF_p =\r
-!ifeq USE_GUI 1\r
-__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
-!endif\r
-__LIB_JPEG_p =\r
-!ifeq USE_GUI 1\r
-__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
-!endif\r
-__LIB_PNG_p =\r
-!ifeq USE_GUI 1\r
-__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
-!endif\r
-__GDIPLUS_LIB_p =\r
-!ifeq USE_GDIPLUS 1\r
-__GDIPLUS_LIB_p = gdiplus.lib\r
-!endif\r
-__CAIRO_LIB_p =\r
-!ifeq USE_CAIRO 1\r
-__CAIRO_LIB_p = cairo.lib\r
-!endif\r
-____CAIRO_LIBDIR_FILENAMES =\r
-!ifeq USE_CAIRO 1\r
-____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib\r
-!endif\r
 __WXUNIV_DEFINE_p =\r
 !ifeq WXUNIV 1\r
 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r
@@ -229,7 +229,7 @@ OBJS = &
 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r
 SETUPHDIR = &\r
        $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
-MY_DLL_CXXFLAGS = -bd $(__DEBUGINFO_1) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
+MY_DLL_CXXFLAGS = -bd $(__DEBUGINFO_0) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
        $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
        $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &\r
        $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &\r
@@ -238,7 +238,7 @@ MY_DLL_CXXFLAGS = -bd $(__DEBUGINFO_1) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
        $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
 MY_DLL_OBJECTS =  &\r
        $(OBJS)\my_dll_my_dll.obj\r
-WX_EXE_CXXFLAGS = $(__DEBUGINFO_1) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
+WX_EXE_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
        $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
        $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &\r
        $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &\r
@@ -247,6 +247,10 @@ WX_EXE_CXXFLAGS = $(__DEBUGINFO_1) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
        $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
 WX_EXE_OBJECTS =  &\r
        $(OBJS)\wx_exe_wx_exe.obj\r
+SDK_EXE_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
+       $(__RUNTIME_LIBS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
+SDK_EXE_OBJECTS =  &
+       $(OBJS)\sdk_exe_sdk_exe.obj
 \r
 \r
 all : $(OBJS)\r
@@ -255,7 +259,7 @@ $(OBJS) :
 \r
 ### Targets: ###\r
 \r
-all : .SYMBOLIC $(OBJS)\my_dll.dll $(__wx_exe___depname)\r
+all : .SYMBOLIC $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
 \r
 clean : .SYMBOLIC \r
        -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
@@ -266,6 +270,7 @@ clean : .SYMBOLIC
        -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll\r
        -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib\r
        -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe\r
+       -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
 \r
 $(OBJS)\my_dll.dll :  $(MY_DLL_OBJECTS)\r
        @%create $(OBJS)\my_dll.lbc\r
@@ -294,6 +299,18 @@ $(OBJS)\wx_exe.exe :  $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll
        wlink @$(OBJS)\wx_exe.lbc\r
 !endif\r
 \r
+$(OBJS)\sdk_exe.exe :  $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
+       @%create $(OBJS)\sdk_exe.lbc
+       @%append $(OBJS)\sdk_exe.lbc option quiet
+       @%append $(OBJS)\sdk_exe.lbc name $^@
+       @%append $(OBJS)\sdk_exe.lbc option caseexact
+       @%append $(OBJS)\sdk_exe.lbc  $(__DEBUGINFO)  system nt_win ref '_WinMain@16' $(LDFLAGS)
+       @for %i in ($(SDK_EXE_OBJECTS)) do @%append $(OBJS)\sdk_exe.lbc file %i
+       @for %i in ( $(OBJS)\my_dll.lib) do @%append $(OBJS)\sdk_exe.lbc library %i
+       @%append $(OBJS)\sdk_exe.lbc
+       @for %i in () do @%append $(OBJS)\sdk_exe.lbc option stack=%i
+       wlink @$(OBJS)\sdk_exe.lbc
+
 $(OBJS)\my_dll_my_dll.obj :  .AUTODEPEND .\my_dll.cpp\r
        $(CXX) -bt=nt -zq -fo=$^@ $(MY_DLL_CXXFLAGS) $<\r
 \r
@@ -303,3 +320,6 @@ $(OBJS)\wx_exe_sample.res :  .AUTODEPEND .\..\..\samples\sample.rc
 $(OBJS)\wx_exe_wx_exe.obj :  .AUTODEPEND .\wx_exe.cpp\r
        $(CXX) -bt=nt -zq -fo=$^@ $(WX_EXE_CXXFLAGS) $<\r
 \r
+$(OBJS)\sdk_exe_sdk_exe.obj :  .AUTODEPEND .\sdk_exe.cpp
+       $(CXX) -bt=nt -zq -fo=$^@ $(SDK_EXE_CXXFLAGS) $<
+
diff --git a/samples/dll/sdk_exe.cpp b/samples/dll/sdk_exe.cpp
new file mode 100644 (file)
index 0000000..8c73ea3
--- /dev/null
@@ -0,0 +1,170 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        samples/dll/my_exe.cpp
+// Purpose:     Sample showing how to use wx DLL from a Win32 application
+// Author:      Vadim Zeitlin
+// Created:     2009-12-07
+// RCS-ID:      $Id$
+// Copyright:   (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
+// Licence:     wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+/*
+    This program is intentionally as simple as possible and shouldn't be seen
+    as an example of how to write a proper Win32 application (why should you
+    want to do this anyhow when you have wxWidgets). It's just a test bed for
+    the wx DLL which it uses.
+ */
+
+// ============================================================================
+// declarations
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// headers
+// ----------------------------------------------------------------------------
+
+#include <windows.h>
+#include <windowsx.h>
+
+#include <stdio.h>
+#include <tchar.h>
+
+#include "my_dll.h"
+
+namespace
+{
+
+// ----------------------------------------------------------------------------
+// constants
+// ----------------------------------------------------------------------------
+
+const TCHAR *MAIN_WIN_CLASS_NAME = _TEXT("my_exe_main_win_class");
+
+const int IDB_RUN_GUI_FROM_DLL = 100;
+
+// ----------------------------------------------------------------------------
+// globals
+// ----------------------------------------------------------------------------
+
+HINSTANCE g_hInstance;
+HWND g_hwndMain;
+
+// ============================================================================
+// implementation
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// callbacks
+// ----------------------------------------------------------------------------
+
+void
+OnCommand(HWND /* hwnd */, int id, HWND /* hwndCtl */, UINT /* codeNotify */)
+{
+    if ( id == IDB_RUN_GUI_FROM_DLL )
+    {
+        run_wx_gui_from_dll("child instance");
+    }
+}
+
+void OnDestroy(HWND hwnd)
+{
+    wx_dll_cleanup();
+
+    PostQuitMessage(0);
+}
+
+LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
+{
+    switch ( msg )
+    {
+        HANDLE_MSG(hwnd, WM_COMMAND, OnCommand);
+        HANDLE_MSG(hwnd, WM_DESTROY, OnDestroy);
+
+        default:
+            return DefWindowProc(hwnd, msg, wParam, lParam);
+    }
+
+    return 0;
+}
+
+// ----------------------------------------------------------------------------
+// initialization functions
+// ----------------------------------------------------------------------------
+
+bool RegisterMainClass()
+{
+    WNDCLASS wc;
+    ZeroMemory(&wc, sizeof(wc));
+    wc.style         = CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
+    wc.lpfnWndProc   = MainWndProc;
+    wc.hInstance     = g_hInstance;
+    wc.hIcon         = LoadIcon(NULL, IDI_APPLICATION);
+    wc.hCursor       = LoadCursor(NULL, IDC_ARROW);
+    wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
+    wc.lpszClassName = MAIN_WIN_CLASS_NAME;
+
+    return RegisterClass(&wc) != 0;
+}
+
+bool CreateMainWindow()
+{
+    g_hwndMain = CreateWindow
+                 (
+                    MAIN_WIN_CLASS_NAME,
+                    _TEXT("Main Win32 app"),
+                    WS_OVERLAPPEDWINDOW,
+                    CW_USEDEFAULT, CW_USEDEFAULT,
+                    400, 300,
+                    NULL, NULL, g_hInstance, NULL
+                 );
+    if ( !g_hwndMain )
+        return false;
+
+    CreateWindow
+    (
+        _TEXT("static"),
+        _TEXT("Main Win32 application"),
+        WS_CHILD | WS_VISIBLE,
+        10, 10, 200, 30,
+        g_hwndMain, (HMENU)-1, g_hInstance, NULL
+    );
+
+    CreateWindow
+    (
+        _TEXT("button"),
+        _TEXT("Run GUI from DLL"),
+        WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON,
+        200, 200, 150, 35,
+        g_hwndMain, (HMENU)IDB_RUN_GUI_FROM_DLL, g_hInstance, NULL
+    );
+
+    return true;
+}
+
+} // anonymous namespace
+
+// ----------------------------------------------------------------------------
+// entry point
+// ----------------------------------------------------------------------------
+
+int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int nCmdShow)
+{
+    g_hInstance = hInstance;
+
+    if ( !RegisterMainClass() )
+        return 1;
+
+    if ( !CreateMainWindow() )
+        return 2;
+
+    ShowWindow(g_hwndMain, nCmdShow);
+
+    MSG msg;
+    while ( GetMessage(&msg, NULL, 0, 0) )
+    {
+        TranslateMessage(&msg);
+        DispatchMessage(&msg);
+    }
+
+    return 0;
+}