Computing.Net > Forums > Programming > yet another vc++ problem

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

yet another vc++ problem

Reply to Message Icon

Original Message
Name: Gauthier
Date: October 15, 2002 at 00:30:36 Pacific
Subject: yet another vc++ problem
OS: win98
CPU/Ram: 500MHz, 128MB
Comment:

Sorry about filling in that forum like that!

We are two students working on a project. We use Visual c++.
Of course, we divided the work in two parts, which we are now trying to merge.
We thought that including one's files in the other's project, and copying the dialogs would have been enough.

Indeed, it IS enough for the compiler, and it executes as expected. BUT (because there is a "but"), the lately added dialogs are not associated to any class, for the editor.

When we open the class wizzard from one of the new dialog, it asks us to add a class for it, since it "is a new resource". We would like to be able to associate it with the classes we imported, but they are not in the list (even though they are in the classview).

Does someone know how to import - in a clean way - classes and dialogs from one project to another? Does one know if a clean way does exist?
I would be surprised if it doesnt!

Thanks for your help!

Gauthier


Report Offensive Message For Removal


Response Number 1
Name: Gauthier
Date: October 15, 2002 at 03:40:48 Pacific
Reply: (edit)

hurray!

A nice guy in the office helped us.
Vc++ keeps track of the classes included in the project in a separated file. Even if the classes are showing in the ClassView (after the files have been included in the project), this separate file is not update!

Its name is .clw

If you have a problem such as ours, you should erase (or rename) this above file, and then try to open the class wizzard.

Vc++ will then tell you that information is missing, and ask you to select source files to recreate this information. Select the files containing your classes, and the information will be updated!

It doesnt look really professionnal, but that's the only way I found. I guess this .clw file should be updated when you choose to include files in project.
It unfortunately was not.

I hope the hours I spent on that will some time be useful for someone else!

Cheers,

Gauthier


Report Offensive Follow Up For Removal

Response Number 2
Name: Jeff Graver
Date: October 15, 2002 at 07:58:18 Pacific
Reply: (edit)

Now THAT'S an education.

Regretabbly, programmer's spend an awful lot of time doing just what you got stuck doing here. Something is broke for no good reason and you have to figure out what obscure procedure the original programmer left in place to fix it.

Thanks for posting the fix here. Someone is bound to need it someday.

Jeff


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software