mfc >> MFC add class dialog in VC++ 2003 (7.1)

by Lynn McGuire » Tue, 02 Dec 2003 01:43:55 GMT

Does the MFC add class dialog work in VC++ 2003 (7.1) ?

I cannot get it to add the class for the new dialog that I just defined.

This is very disturbing as it makes me wonder if we should consider
rolling back to VC++ 6 (even with the awful tempplate support)
since support for MFC appears to be almost non-existant.

Thanks,
Lynn McGuire




mfc >> MFC add class dialog in VC++ 2003 (7.1)

by Jonathan Wood » Tue, 02 Dec 2003 03:20:22 GMT


You might try providing a little more detail as to what exactly happens when
you try to add a dialog class.

Yes, it works. I've used it. However, I've found the Visual Studio .NET 2003
IDE to be somewhat buggy and unreliable.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com







mfc >> MFC add class dialog in VC++ 2003 (7.1)

by Lynn McGuire » Tue, 02 Dec 2003 04:52:15 GMT

> You might try providing a little more detail as to what exactly happens when

I created a dialog template and then double clicked on it and got the
MFC dialog class creation dialog. I put in my names and clicked
OK. The dialog went away without any error messages. However,
I am not getting creation of the new class cpp and .h files ! ! !

I have a large project, well over 500 classes and 200,000 lines of
code. Automatic creation of the new dialog shells would have been
nice !

Thanks,
Lynn




MFC add class dialog in VC++ 2003 (7.1)

by Jonathan Wood » Tue, 02 Dec 2003 05:27:36 GMT

Lynn,


Given that, it's hard to say what is happening.

Again, it seems to work for me. Although I'd probably right click over
double clicking just so you know what is happening step by step. Also, the
default seems to be to derive dialog classes from CHtmlDialog so you may
want to change that. Other than that, just double check your names and the
file it should be stored in to confirm that file is really not being
created. Although I've had lots of problems with the Visual Studio .NET 2003
IDE, I've had no trouble adding dialog box classes.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com




MFC add class dialog in VC++ 2003 (7.1)

by Lynn McGuire » Tue, 02 Dec 2003 06:09:42 GMT

> Again, it seems to work for me. Although I'd probably right click over

I tried it about 5 times before I gave up and hand coded it myself.

Thanks,
Lynn




MFC add class dialog in VC++ 2003 (7.1)

by Bob Moore » Tue, 02 Dec 2003 08:14:17 GMT





The Add Variable dialog is even worse. Support for MFC work in the
VS.Net family IDE has been made all-but-unusable, to the extent that
we've gone back to VC6 already.

It's nice when you go back to VC6 - it's like suddenly having a much
faster machine :-)

--
Bob Moore [WinSDK MVP]
http://www.mooremvp.freeserve.co.uk/
(this is a non-commercial site and does not accept advertising)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Do not reply via email unless specifically requested to do so.
Unsolicited email is NOT welcome and will go unanswered.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


MFC add class dialog in VC++ 2003 (7.1)

by eddoonline » Tue, 02 Dec 2003 13:22:43 GMT

Hi Lynn,

Concerning problems with the wizards, please don't hesitate to contact
Microsoft Support directly with any bugs you might have found. I haven't
heard of this particular problem before, but I no longer work on the VC++
support team. The wizards did get a major overhaul with VS .Net. This was
in line with a number of feature requests concerning extensibility and
uniformity between the various language products, and they are a complete
rewrite from the originals, so I guess some changes are expected. But your
particular problem sounds like a bug.

A couple of suggestions. Close the project and delete the project's .NCB
file. Also, if you have any antivirus software, you might want to
temporarily disable it, or configure it to ignore .H, .CPP, .NCB, .IDL, and
other such source files. Then try again. If the problem persists and the
wizard does works with a smaller project, I'd be pretty confident that
you're dealing with a bug here.

And to hopefully alleviate some fears concerning MFC, I can confirm that
the VC++ team is still actively working on MFC and rumors of it's demise
are just that.

P.S. Contact info for VC++ Support can be found at the following link:
http://support.microsoft.com/default.aspx?pr=cntactms&style=home

Sincerely,
Ed Dore [MSFT]

This post is "AS IS" with no warranties, and confers no rights.




MFC add class dialog in VC++ 2003 (7.1)

by satan » Tue, 02 Dec 2003 14:40:18 GMT






It also gives you the felling that you know a bit about programming as well.





MFC add class dialog in VC++ 2003 (7.1)

by panagiotis » Tue, 02 Dec 2003 18:15:41 GMT

I think it's a problem with the where the "stdafx.h" file is. Retry
regrouping your project in a common directory. Search also about "source
directories" in the news group, had this problem sometime ago and the
regroupement solved the wizard generation problem...
Hope this helps,
panagiotis

--------------------------------------




Similar Threads

1. MFC add class dialog in VC++ 2003 (7.1) - VC MFC

2. Does "VC++ 7.1" mean "VC++ 2003"?

I am trying to get the terminology. I noticed some mention "7.1". Is that 
VC++ 2003? Thanks in advance. 

3. IEnumUnknown->Next method causes a crash in MFC 7.1 (VS .net 2003)

4. Linking times with VC 7.1 (.NET 2003)

Dear MS VS .NET 2003 users,

so far I used MS VS 6.0 SP5 for a rather large C++ project. Now I want
to migrate to MS VS .NET 2003. First tests however showed that
compilation and most notably linking is significantly slower with the
new software. Linking a release build took about 15 seconds with 6.0
and now takes about 60+ seconds (already using /OPT:NOREF /OPT:NOICF).
For debug versions, it took about 3-4 minutes with 6.0 compared to 10
minutes with .NET 2003. Are there any settings that can bring the
linking times down to the old level ?

Thanks a lot for any hint in advance,
Markus Neff

5. VC++ 7.1 (2003) Remote Debugging Speed

6. VC++ 7.1 (.net 2003) compiler code optimization bug ?

Hi,

It would appear that the minimise space optimization in the VC++ 7.1 compiler can get carried away (The VC++ 6.0 compiler worked fine). 
I've got some code which looks a bit like this...

class CTypeInfo
{
private:
   static CTypeInfo*	 s_pList;
   CTypeInfo * m_pNext;
public:
   const int m_val;
   const int m_type;

   CTypeInfo(int val, int type);
};

CTypeInfo* CTypeInfo::s_pList = NULL;

CTypeInfo::CTypeInfo(int val, int type)
: m_val(val),
 m_type(type),
 m_pNext(s_pList)
{
   s_pList = this;
}

CTypeInfo a(10, 20);

It will inline the call to the constructor, ie almost totally remove it, but can sometimes forget to put in the code to update the s_pList variable. 


Tim Brown

7. Problem running MFC application comipled with vc++ 7.1 ver

8. Adding MFC class in VS.net 2003

Hi all.

I have converted one of my projects from VS6.0 to VS2003. Now I want to add
a new (MFC) class, but when I try to, I get the error:

"MFC classes can only be added to MFC projects"

I have other project where it is possible to add MFC classes, but not this
one.
Has anybody seen this, or know what the problem might be.

Of course, my project *is* an MFC project.

-- 
Cheers
Bjarne Nielsen