mfc >> Add Class and Add Variable crash VS .NET 2003

by ZnJlZW1hbg » Thu, 27 Jan 2005 06:11:08 GMT

I have an MFC project that was migrated from MSVC++ 6.0 to Visual Studio .NET
2003.

The problem is that whenever I try to do anything that involves generating
C++ code for the resources then Visual Studio .NET crashes. For example, If
I open a dialog box resource, right click and select "Add Variable" -> Crash.
or "Add Class" -> Crash

The problem appears to occur because the project has been migrated from VC++
6.0. Since I can create a *new* MFC application using VS .NET 2003 and
create dialog resources, add classes and member variables etc. etc. with no
problems.

This effectively means that we must continue to use VC++ 6.0 for this
project and cannot migrate it to Visual Studio .NET 2003.



mfc >> RE: Add Class and Add Variable crash VS .NET 2003

by v-garych » Thu, 27 Jan 2005 14:06:31 GMT


Hi freeman,

It appears the VC7.1's "Class Wizard" function doesn't work for your
upgraded MFC project.

If so, before porting the VC6 MFC project to VS.NET 2003, you can try to
rename its .ncb file and .clw file, then let VS.NET generate the new ones
while upgrading the project...


Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

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




mfc >> Add Class and Add Variable crash VS .NET 2003

by Ian Semmel » Fri, 28 Jan 2005 02:05:05 GMT

I had a similar problem with one project.

Just code the variables in by hand. It's a lot quicker when you get the hang of
it becuase you can add multiple variables.




Similar Threads

1. vs.net 2003 crashes when I add the mfc class for an activex contro

When I add the MFC class for an activeX control, VS.NET 2003 tries to display 
a dialogbox and suddenly crashes.
I installed VS6.0 enterprise and VS.NET 2003 enterprise together in my system.
I heard that this is some kind of bug in VS.NET 2003. Is there any way to 
solve this  *serious" problem.

Thank you for any of your help.

chris

2. MFC Add Member Variable Wizard bug in VS.NET 2003

3. Bug in Visual Studio V6, .Net 2002 & 2003 Class View 'Add Member Variable'

Steps
1) Use New->Project to create a new MFC application. I called mine
Setup and made it dialog based. Accept all defaults.
2) Go to the CSetupDlg class header file (SetupDlg.h) and fine the
line 'enum { IDD = IDD_SETUP_DIALOG };'.
3) Either a) change the line to 'enum IDD { IDD = IDD_SETUP_DIALOG };'
(add 'IDD') or b) (.Net 2002,3 only) add any enum before that line
(e.g. 'enum {bar};').
4) Go to Class View and right-click. Select add member variable. A
script error will occur. This will happen on multiple systems.

IE Script Error (Vs .Net 2003)
Line 1117, Char 2, Error 'arr_ControlTypes' is null or not an object,
Code 0, URL file://C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\VCWizards\MemVariableWiz\HTML\1033\default.htm

Why should VS require this enum to be first and unnamed? If for some
wierd reason this can't be changed it should be documented and a
better error given, anyhow. Given how long this has been around I
think this is inexcusable.

4. Adding MFC class in VS.net 2003

5. Adding MFC ODBC Consumer class fails in VS .NET 2003

Hi all,
when I try to creat a new MFC ODBC class in VS .NET 2003, the MFC ODBC 
Consumer Wizard fails if the check box "Bind all columns" is selected with 
the following error:

"Error ocurred while converting the wizard's text to the code page of the 
existing text in the file" [followed by the filename of the generated header 
file]

If the "Bind all columns" check box is not selected, the class is created.

The database used is Oracle 9.2.
Oracle ODBC Driver
Win XP SP1
Swedish Regional Settings

I've been able to duplicate this errors on other machines as well.

Any input would be appreciated,
Erik Finnman

6. Adding Variable to CPageSetupDialog in .NET 2003

7. Adding control event handlers in VS .NET 2003

When designing a form you place some controls on the form.
In a Visual Studio C++ project I can right click on a control to insert an 
event handler.
The dialog for this lists all events for that particular control and also 
which events you already have a handler for.
How do I do the same thing in C#?

Thanks, Jan

8. a bug in TabControl.TabPages.add() in vs .net 2003 - CSharp/C#