VC 6.0 Class Wizard misbehaving. Help?

Hello -

Platform: Windows 98 Second Edition, Visual C++ 6.0.  The machine has 15 
GB of disk available and 512M of RAM.

I'm working on a project and decide one more CEdit is needed on the 
dialog.  So a standard edit dialog is placed and the identifier changed 
to IDC_TIME_DELAY.  Then Class Wizard is brought up to assign a variable.

While IDC_TIME_DELAY shows up in the Message Maps list, it does not show 
up in the Member Variables list.  Not at all.  I've tried deleting the 
..NCB file and restarting VC.. and that does not help.

A little research through the MSDN and there is a hint that setting 
files to read-only status will cause this behavior.

ATTRIB indicates all files are R/W.

Oh no.  If a member variable is deleted using Class Wizard, it can't be 
put back.  The identifier does not appear in the list.  The "Add 
Variable" button in the Member Variables list is greyed out.

I can't figure out how this happened.  Worse.. the workaround for this 
is going to be a terrible time cost (having to cut and paste between two 
VC windows, re-establishing and re-entering everything).

Help?  Please?  What would cause VC to suddenly decide that seemingly 
valid controls can't be assigned variables?  Is there a fix?  Is there 
something in the Studio that can check a project for consistancy and 
display problems?

Regards,

Mark

0
m.arkb (1)
10/19/2004 2:56:23 AM
vc.mfc 33608 articles. 0 followers. Follow

6 Replies
921 Views

Similar Articles

[PageSpeed] 3

Mark Becker wrote:
> Hello -
> 
> Platform: Windows 98 Second Edition, Visual C++ 6.0.  The machine has 15 
> GB of disk available and 512M of RAM.
> 
> I'm working on a project and decide one more CEdit is needed on the 
> dialog.  So a standard edit dialog is placed and the identifier changed 
> to IDC_TIME_DELAY.  Then Class Wizard is brought up to assign a variable.
> 
> While IDC_TIME_DELAY shows up in the Message Maps list, it does not show 
> up in the Member Variables list.  Not at all.  I've tried deleting the 
> .NCB file and restarting VC.. and that does not help.
> 
> A little research through the MSDN and there is a hint that setting 
> files to read-only status will cause this behavior.
> 
> ATTRIB indicates all files are R/W.
> 
> Oh no.  If a member variable is deleted using Class Wizard, it can't be 
> put back.  The identifier does not appear in the list.  The "Add 
> Variable" button in the Member Variables list is greyed out.
> 
> I can't figure out how this happened.  Worse.. the workaround for this 
> is going to be a terrible time cost (having to cut and paste between two 
> VC windows, re-establishing and re-entering everything).
> 
> Help?  Please?  What would cause VC to suddenly decide that seemingly 
> valid controls can't be assigned variables?  Is there a fix?  Is there 
> something in the Studio that can check a project for consistancy and 
> display problems?
> 
> Regards,
> 
> Mark
> 

Try closing VC, delete the project's .clw file, then open VC and display 
the wizard dialog.  It will rebuild the wizard data set.

Also examine resource.h and check for duplicate ID values within the 
same dialog.  You can hand-edit the ID values if necessary.

-- 
Scott McPhillips [VC++ MVP]

0
Scott
10/19/2004 5:26:30 AM
"Scott McPhillips [MVP]" wrote:
>> 
>> Mark Becker wrote:
>>
>> [ Weird problem with VC 6.0 losing variables assigned to dialogs ]
>
>
> Try closing VC, delete the project's .clw file, then open VC and display
> the wizard dialog.  It will rebuild the wizard data set.
>

It WORKED!  What a relief!  <whew>  Scott, THANK YOU.

>
> Also examine resource.h and check for duplicate ID values within the
> same dialog.  You can hand-edit the ID values if necessary.
> 

This might be obvious to others.. but I missed out on how the ID values
relate to ID's defined at the end of a resource.h file.

_APS_NEXT_RESOURCE_VALUE is related how to IDS_ and IDR_ ?
_APS_NEXT_COMMAND_VALUE appears to be associated with menubars?
_APS_NEXT_CONTROL_VALUE appears to be associated with IDC's?
_APS_NEXT_SYMED_VALUE   appears associated with IDS_ and IDR values.

Scott, again.. thank you.

Regards,

Mark
0
mbecker (2)
10/19/2004 11:27:20 PM
And you can always add a member variable "by hand"; it is a bit clumsy but cut-and-paste
works wonders.
				joe

On Tue, 19 Oct 2004 00:26:30 -0500, "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
wrote:

>Mark Becker wrote:
>> Hello -
>> 
>> Platform: Windows 98 Second Edition, Visual C++ 6.0.  The machine has 15 
>> GB of disk available and 512M of RAM.
>> 
>> I'm working on a project and decide one more CEdit is needed on the 
>> dialog.  So a standard edit dialog is placed and the identifier changed 
>> to IDC_TIME_DELAY.  Then Class Wizard is brought up to assign a variable.
>> 
>> While IDC_TIME_DELAY shows up in the Message Maps list, it does not show 
>> up in the Member Variables list.  Not at all.  I've tried deleting the 
>> .NCB file and restarting VC.. and that does not help.
>> 
>> A little research through the MSDN and there is a hint that setting 
>> files to read-only status will cause this behavior.
>> 
>> ATTRIB indicates all files are R/W.
>> 
>> Oh no.  If a member variable is deleted using Class Wizard, it can't be 
>> put back.  The identifier does not appear in the list.  The "Add 
>> Variable" button in the Member Variables list is greyed out.
>> 
>> I can't figure out how this happened.  Worse.. the workaround for this 
>> is going to be a terrible time cost (having to cut and paste between two 
>> VC windows, re-establishing and re-entering everything).
>> 
>> Help?  Please?  What would cause VC to suddenly decide that seemingly 
>> valid controls can't be assigned variables?  Is there a fix?  Is there 
>> something in the Studio that can check a project for consistancy and 
>> display problems?
>> 
>> Regards,
>> 
>> Mark
>> 
>
>Try closing VC, delete the project's .clw file, then open VC and display 
>the wizard dialog.  It will rebuild the wizard data set.
>
>Also examine resource.h and check for duplicate ID values within the 
>same dialog.  You can hand-edit the ID values if necessary.

Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
0
newcomer (15973)
10/19/2004 11:58:49 PM
Mark Becker wrote:
> This might be obvious to others.. but I missed out on how the ID values
> relate to ID's defined at the end of a resource.h file.
> 
> _APS_NEXT_RESOURCE_VALUE is related how to IDS_ and IDR_ ?
> _APS_NEXT_COMMAND_VALUE appears to be associated with menubars?
> _APS_NEXT_CONTROL_VALUE appears to be associated with IDC's?
> _APS_NEXT_SYMED_VALUE   appears associated with IDS_ and IDR values.
> 
> Scott, again.. thank you.
> 
> Regards,
> 
> Mark


Glad the fix worked well out for you, Mark.

When you add controls, menu commands, etc. VC assigns a value to the new 
item's ID.  That stuff at the end of resource.h is just VC's private 
little storage for what value to use next for the various types of IDs 
that it creates.

-- 
Scott McPhillips [VC++ MVP]

0
Scott
10/20/2004 2:24:57 AM
"Joseph M. Newcomer" wrote:
> 
> And you can always add a member variable "by hand"; it is a bit
> clumsy but cut-and-paste works wonders.
>

I did this a couple of times when the problem started to manifest
itself.  Bothered me some when ClassWizard started deleting manually
inserted variables.. started wondering when it was going to start eating
code.

Has anyone seen something that might be a 'consistancy' checker for
projects in VC?  The aftermath of all this has been VC hiccuping on some
declarations.

Regards,

Mark
0
mbecker (2)
10/22/2004 4:26:23 PM
On Fri, 22 Oct 2004 12:26:23 -0400, Mark Becker <mbecker@rmdinc.com> wrote:

>"Joseph M. Newcomer" wrote:
>> 
>> And you can always add a member variable "by hand"; it is a bit
>> clumsy but cut-and-paste works wonders.
>>
>
>I did this a couple of times when the problem started to manifest
>itself.  Bothered me some when ClassWizard started deleting manually
>inserted variables.. started wondering when it was going to start eating
>code.
>
>Has anyone seen something that might be a 'consistancy' checker for
>projects in VC?  The aftermath of all this has been VC hiccuping on some
>declarations.
>
>Regards,
>
>Mark

When You add something manually, make sure to do ot outside the comment lines

//{{AFX_...

//}}AFX_ ...

which are tags for ClassWizard. Anything between these two commentlines belongs to ClassWizard,

/Ruben



0
ruben4008 (24)
10/22/2004 7:33:58 PM
Reply:

Similar Artilces:

SKU119.CAB for Publisher 2002 Help
I have msiplaced my installation CD...I have my product ID and Version number close by....but, can't access my publisher files for some reason. Says I don't have access because the program is not intalled for current user. I am the only user on this computer. And somehow....I just can't get in now. Can someone help me find it...email the file to me...or something? Ric S EventDyn@aol.com Thank you Have you tried to do a repair? -- JoAnn Paules MVP Microsoft [Publisher] "EventDyn" <EventDyn@discussions.microsoft.com> wrote in message news:6545BA3A-185D...

HELP
help need to use statement expense in excel ...

SQL 2000 Reporting Services Error for CRM 3.0
Hi Guys, I have encountered the following Reporting Servies error whenever we attempt to generate CRM reports from CRM outlook and web clients. Only the administrator groups can run the reports. Note that we have upgraded CRM 1.2 to CRM 3.0. I have tried all my level best to grant the required permissions on the report folders. But still the error is there. Thank you in advance for your help. With kind regards, Gech Reporting Services Error ________________________________________ • An internal error occurred on the report server. See the error log for more details. (rsInternalError...

CISCO and MSExchange help needed
We need help with troubleshooting and resolving complex problems to ensure quality transmission service on the network; manage and maintaining and user accounts, maintaining and updating our system security plans on all platforms if anyone feels they can help us. We have sufficient budgets to pay for the right person. Thanks John. -- John D Allen. CEO & President. Leveridge Systems INC. ...

IF STATEMENT HELP NEEDED!!!
I'm trying to create a spread sheet and don't know this program AT ALL! I'm a designer and math and art just don't mix... So, here are the equations... In cell X6 I enter: If C6>D6 then (C6-D6)*5 or If C6<D6 then (D6-C6)*10 But, if cell D6 is yellow --- Put 20 in cell X6 So, I need some sort of identifier in the equation saying whether the cell is yellow or not. I'm sure excel doesn't recognize "yellow" but there must be another way. I can put a letter with a number in that cell if necessary. I'm not sure this is making sence, but if anyon...

Need Help with log on
I have frontpage and have always edited my site using it, my computer crashed, we got a new one and installed frontpage again. In the past when I would go to edit my site a box would come up asking for my user name and password so I could connect to the host server (I think thas what it is called) Anyway now no box comes up at all and I do not seem to beable to edit anything. I have asked my web host and they can not help me. The site is up and working but I can not make changes. Sorry I do not understand much of the tech stuff. I had a lady who did this for me but she is no lon...

Help with 'Auto_Open' please...
SubThe first time I open my excel workbook, a macro automatically runs. Part of this macro eventually calls for the deleting of 'Sheet1' in the workbook. When the macro is finished running, I save the file. The second time I open the workbook, I want it to check to see if it contains a 'Sheet1'. If it does, 'Exit Sub', else do something else... I've pasted my VBA code below. Do you see anything wrong with it? Many thanks, Craig ---------------------------------- Private Sub Auto_Open() calcmod = Application.Calculation With Application ...

Custom formatting #6
Does anyone know of a custom format I could use where the result of the formula; =AV31/AS31-1 returns #DIV/O! Thanks Pat Hi not possible with a custom format. Either use =IF(AS31=0,"",AV31/AS31-1) or use conditional formating and checking for =ISERROR(cell_reference) and assigning a white font "Pat" wrote: > Does anyone know of a custom format I could use where the result of the > formula; > > =AV31/AS31-1 > > returns #DIV/O! > > Thanks > Pat > > > ...

4.0 Exchange Router Config Settings
I wanted to get feedback on how most people are configuring the the exchange router for 4.0. There is an option to have a forwarding mailbox but we are currently not using that. Wasn't sure if that is what most people are using. Thanks! you can these screencast to understand the email integration of MSCRM 4.0 http://video.mikelu.org/emailrouterfwd/emailrouterfwd.html http://video.mikelu.org/emailrouterpop3/emailrouterpop3.html http://video.mikelu.org/emailrouterexchange/emailrouterexchange.html enjoy viewing... "MDV1457" <MDV1457@discussions.microsoft.com> wro...

Excel 2003 question about help menu
I use Excel 2003 OFF-LINE. I find myself extremely limited and frustrated with the "menu approach" that it uses as well as the set number of items it will display as the result of a keyword search. The main problem for me ATM is that I know that the functions are categorized into say eight categories, e.g., text, but I don't always remember all of them. In the past, a search in Help would return a list of those categories from which I could quickly and easily navigate around to doublecheck my understanding. Search results in Excel 2003 are erratic, and trying to find the list...

GP 8.0 drop-shipments and costs
Hello: Is it true that Great Plains 8.0 has some issues with drop-shipments and costs in SOP? childofthe1980s I am not aware of anything different between GP 8.0 and 9.0 with respect to drop-shipments and costs in SOP. Are you seeing something specific that is not working as expected in GP 8.0? -- Victoria Yudin Dynamics GP MVP Flexible Solutions - home of GP Reports http://www.flex-solutions.com/gpreports.html "childofthe1980s" <childofthe1980s@discussions.microsoft.com> wrote in message news:16A95D7F-0943-41FF-AC87-8F51D59CE5E4@microsoft.com... > Hello: > &...

Error in open() function in CDaoDatabase class of MFC-> Unhandled exception in myProject.exe:0xc0000005:Access violation.
Hi! I m working on a database project in which i use CDaoDatabase class of MFC to create the connection with a Access .mdb file by using its open() function. and then use CDaoQueryDef class to save the query in the database. It works well when I run my program first time for a database but if I select the another or same Access .mdb file it give error in its open funcation. the error msg is somthing like this-> Unhandled exception in myProject.exe:0xc0000005:Access violation. Pls help me to solve this problem as early as possible. Are you using the try/catch(CDaoException* e) blocks? If...

IE 6 won't install...
downloaded IE 6 w/outlook express...it gets to 83% installed then I get a message " software doesn't pass logo test for XP ? and won't install? Wrong group .... microsoft.public.windows.inetexploer.ie6_outlookexpress or microsoft.public.windows.inetexploer.ie6.setup or microsoft.public.windows.inetexploer.ie6.browser William "westy" <westy523@comcast.net> wrote in message news:0b5601c368e9$f01c48c0$a001280a@phx.gbl... > downloaded IE 6 w/outlook express...it gets to 83% > installed then I get a message " software doesn't pass > logo test f...

teredo tunneling psuedo-interface code 10??? affecting my usb now i cant download music onto my ipod help!!
so i just got an ipod and when i pluged it in it said that and ipod was detected but could not be......( i forgot the rest) please unplug and try agian and it dosent work . so then i downloaded tune up utilities and it said i had 3 errors ,2 of wich really dont matter, but then i looked at the 3rd one and it said i had a code 10 on my teredo tunneling psuedo interface and it could not start. please help me!!!!! -- etfboy450 ------------------------------------------------------------------------ etfboy450's Profile: http://forums.techarena.in/members/169455.htm View this t...

trust help.
Hi all, We are going to create a two-way forest with CompanyB. The companyB has same internal and external public naming b.com. I just create the conditional forwarder for b.com to use their internal DNS server IPs. Now, when I ping b.com, it still routes to the external IP. Is this supposed to be? If I do nslookup b.com and it returns all their internal DNS IPs. Can I build a two-way forest trust or any additiona steps I need to configure? Thank you. If you are getting a different address when pinging and using NSLOOKUP on the same computer it is probably just the ...

Coexistenz CRM 3.0 and SPS 2003
.... any issues? We installed CRM 3.0 on a server with SPS 2003 and WSS. The Enterprise Admin, who installed CRM, can not logon even he is prompted for. Regards, Thomas Hi Thomas, SPS?? do you mean SBS as in Small Business Server? Are you having issues logging into the CRM application? From your post it seems as though he is being prompted for a Username and password, what happens after this point? Regards, Nathan "Thomas K.H. Bittner" wrote: > .... any issues? We installed CRM 3.0 on a server with SPS 2003 and WSS. The > Enterprise Admin, who installed CRM, can no...

Network Adapter Name help.
Is there a way to get the Network name "Local Area Connection" beside reading it from registry? ...

Vlookup Table Help
Revisiting an eariler issue. I have an excel document that looks like what I've shown below, in Sheet 1 Column A Column B Column C Column D 1 Origin Airport Destination Airport City Name Airline 2 ABE 3 ABQ 4 ACE 5 ABI I am trying to create a Vlookup table that will decode the origin airport code in Col A and display the decoded code with the city name in Column D. In Sheet 2, my table array I have created looks like this. Column A Column B 1 Airport Codes City Code 2 ABE Abilene, TX, USA Municipal 3 ABQ Albuquerque, NM, USA Albuquerque International ...

Can not receive Email.. Need Help
Hi all, Earlier this morning, my exchange server 2007 (hosted on SBS 2008) just stopped receiving external e-mail. We can send interoffice e-mails and we can send out e-mails to other locations fine, but we are unable to receive any e-mail. All internet connections are normal as well, and the port 25 is open on the firewall. The error from when we try to send an e-mail to the server is this: “This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed.” Earlier today I installed the anti-spam update from MS “Microsoft excha...

government can help you
http://government-assistances.blogspot.com/ ...

Help to modify a formula
This is my formula I need help with, in cell I10 this is entered =IF((I7-I6)*24>4,(I7-I6)*24-0.5,(I7-I6)*24) Problem is when cell I6 & I7 are blank cell I10 shows #value I need it to be blank or 0 any ideas? thanks all. Bob Bob, You should be getting zero when I6 and I7 are empty. It sounds as if there's a space or something like that in the cell. Some folks do that to clear a cell. -- Regards from Virginia Beach, Earl Kiosterud www.smokeyl.com ----------------------------------------------------------------------- "Bob Bob" <NOeMAILl@mail.com> wrote in me...

Help on Label Designer
I need help to design the label on label designer I know how to design label like Reg Price 4.99 Sale Price 3.99 But I need to ad on bottom of label You save $1. How I do it. -- Thank You Harjit SherGill You could sacrafice an unused field like MSRP and run a SQL statement to set the field like: update item set msrp=price-saleprice the that amout would be available to the label to display however you format it. "Gill" wrote: > > I need help to design the label on label designer > I know how to design label like Reg Price 4.99 Sale Price 3.99 But I need > to a...

Looking for Manpower Templete Help
I am interested in creating a stacked line chart that will display my >manpower overtime. I would like it to look just like a stock price >chart. X will be the dates per day and Y will be the number of >personnel available. Information that will be available will be Name >for the legend and the inclusive dates of their duty. This will need to >run the fiscal year from 01 Oct 04 to 30 Sep 05. Below an example of the data that need to be in the spread sheet. Thanks. Name Start Date End Date Person 1 12/1/2004 5/31/2005 2 10/1/2004 12/31/2004 3 12/1/2004 9/30/200...

Help! Someone is sending Spam through our email server
We are only a small company so not sure how to handle this. Someone is sending spam from our Exchange 2000 server. Hundreds of people are getting Spam from our email address! How do we stop this from happening? Please help! Thanks Hello, If someone complains that they are getting a lot of messags where sender's domain name matches your domain then you cannot do a lot to stop this. Anyone can send messages forging your email address. One solution for this is to use an SPF record. Refer to http://spf.pobox.com However, if they say that your SMTP server is sending spam (meaning messag...

Please help!!! Information Store and System Attendant does not start
Hello Everyone, I have a couple of questions. Friday my exchange 2k box crashed on the windows side. I have put the exchange hard drives in a new pc. I repaired the drive by running the windows repair and bascially had to almost install windows again. However, it comes back up at win2k sp3. I reran the exchange sp3 patch on the server. All my drives look good. However, the information store and exchange system attendant will not start. I was wondering if anyone can give me advice on why this is happening? Also on a side note I can not remote desktop into this pc which is weird? I can ping...