Re: I just cannot run the sample project downloaded from MSDN?
"pinkfog" <chjiangwh@gmail.com> wrote in message
news:1148007204.126554.215680@j55g2000cwa.googlegroups.com
hello all.
I am using VC++ 6.0. I downloaded the GUIDGEN project example from
MSDN.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample/html/_sample_mfc_GUIDGEN.asp
I unziped the file,in the project i just find
guidgen.suo
guidgdlg.cpp
guidgdlg.h
guidgen.cpp
guidgen.h
guidgen.rc
guidgen.sln
guidgen.vcproj
resource.h
stdafx.cpp
stdafx.h
,there is no *.mak file or *.dsw file ,so i am confused how should i
build the project? I tried newing a MFC dialoged based project ,and
replace the auto-generated files with the files downloaded ,but it
doesn't work .
Could any one kind to explain to me how to deal with it? TIA
---------------------------------pinkfog-------------------------------------------
The .sln and .vcproj files are for VC++ 7. Your approach of creating a MFC
dialog-based application and replacing the files should work. Do the
following.
1. From within VC++6, remove all files from the newly created project.
2. Delete from disk all files generated by the wizard except for the .dsw
and .dsp files.
3. Copy the files you have downloaded into the directory for the newly
created project and add those files to the newly created project within
VC++.
4. On the main menu go to Project->Settings. This brings up a dialog box. On
the left-hand pane, there is a drop down list box that probably says Win32
Debug. Change this to All Configurations. Keep this dialog box open for 5.
and 6. below.
5. Click on the Project name in the left pane below the drop down box
discussed in 4. Click the Link tab and select Input from the drop down list.
Then add rpcrt4.lib to the Object/library modules field.
6. In the pane containing the Project name discussed in 5., navigate your
way among the files to reach StdAfx.cpp. Click on this file. Then under the
C++ tab, select Precompiled Headers in the drop down list. Then choose
Create precompiled header file (rather than Use precompiled header file).
--
John Carson