15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Custom App Wizard

Venkateswara Sunkara -- Venkateswara_Sunkara@countrywide.com
Thursday, May 30, 1996

VC++ 4.1/ NT 3.51

I am trying to create a custom app wizard with custom steps. Depending on the 
user's ( user of this custom app wizard) inputs I need to insert a certain file 
into the generated project make file. One alternative I have is to physically 
create the file using a template resource in NewProj.INF file. But I don't wanr 
to create a new file but just want to refer to an existing file in some other 
project directory, just the way Insert->Files into Project (in Developer Studio 
)includes files into the current project. Is there a way to do it?

Secondly how to generate a guid each time the user creates a new work space 
using the custom app wizard.

Thanks in advance,
Venkat



Richard Grimes -- grimes@parallax.co.uk
Friday, November 29, 1996

Environment: NT 4.0,VC++ 4.1

(NB the App Wizard has to be written in MFC 4.1, but is run in VC++ 4.2)

I have written a custom App Wizard which, amongst a collection of other 
files, it  writes a make (.MAK) file for the project, I do this since I
want to give the Wizard user the choice of producing a DLL or an EXE
(and also I want to include some libraries I have written - although I
could do that with prgmas as MFC does). 

The prooblem is that when my custom App Wiz is run the VC++ environment
creates a make file in preference to mine. I can create a make file with
a different name, but I cannot find out how to make VC++ open my make
file and not the default one.

I know that this is possible since the ATL AppWizard allows you to
create a in-proc (DLL) or out-of-proc (EXE) server and hence generates
its own make file. When the ATL AppWiz has finished the generated make
file is opened. (I have loaded the ATL wizard & looked at its resources,
but there is no clue as to how it manages this).

I have tried putting in code to delete the VC++ generated make file and
rename my own one, but I cannot find an appropriate place where VC++ no
longehas a lock on it.

So how do I repeat the behaviour of the ATL AppWizard?

Richard

grimes@parallax.co.uk




| Вернуться в корень Архива |