error C2143 #2

I'm getting these error messages when I try to build. I haven't edited the 
header file and don't see anything wrong. Does anyone know what is going on 
here? I get the error in both places where there is a #include 
"errorDoalog.h". Error messages at bottom. Thanks
Mike


#if 
!defined(AFX_ERRORDIALOG_H__9F80CB41_32F3_11D9_811C_000C41E9C262__INCLUDED_)
#define AFX_ERRORDIALOG_H__9F80CB41_32F3_11D9_811C_000C41E9C262__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// errorDialog.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// errorDialog dialog

class errorDialog : public CDialog
{
// Construction
public:
	errorDialog(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(errorDialog)
	enum { IDD = errorDialog };
	CStatic	m_errorMessageText;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(errorDialog)
	protected:
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(errorDialog)
		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately 
before the previous line.

#endif // 
!defined(AFX_ERRORDIALOG_H__9F80CB41_32F3_11D9_811C_000C41E9C262__INCLUDED_)


Here are the error messages:

Compiling...
testDialog.cpp
c:\program files\microsoft visual studio\myprojects\bico pick 
control\errordialog.h(13) : error C2143: syntax error : missing ';' before 
'constant'
c:\program files\microsoft visual studio\myprojects\bico pick 
control\errordialog.h(13) : fatal error C1004: unexpected end of file found
errorDialog.cpp
c:\program files\microsoft visual studio\myprojects\bico pick 
control\errordialog.h(13) : error C2143: syntax error : missing ';' before 
'constant'
c:\program files\microsoft visual studio\myprojects\bico pick 
control\errordialog.h(13) : fatal error C1004: unexpected end of file found
Generating Code...
Error executing cl.exe.

Bico Pick Control.exe - 4 error(s), 0 warning(s)


0
bicoman (15)
11/10/2004 10:28:03 PM
vc.mfc 33608 articles. 0 followers. Follow

2 Replies
540 Views

Similar Articles

[PageSpeed] 37

#include "stdafx.h" needs to be at the top of all your .cpp files.



joe


"bicoman" <bicoman@discussions.microsoft.com> wrote in message 
news:8AFD72B3-63ED-43FB-9235-C76A55FBA64C@microsoft.com...
> I'm getting these error messages when I try to build. I haven't edited the
> header file and don't see anything wrong. Does anyone know what is going 
> on
> here? I get the error in both places where there is a #include
> "errorDoalog.h". Error messages at bottom. Thanks
> Mike
>
>
> #if
> !defined(AFX_ERRORDIALOG_H__9F80CB41_32F3_11D9_811C_000C41E9C262__INCLUDED_)
> #define AFX_ERRORDIALOG_H__9F80CB41_32F3_11D9_811C_000C41E9C262__INCLUDED_
>
> #if _MSC_VER > 1000
> #pragma once
> #endif // _MSC_VER > 1000
> // errorDialog.h : header file
> //
>
> /////////////////////////////////////////////////////////////////////////////
> // errorDialog dialog
>
> class errorDialog : public CDialog
> {
> // Construction
> public:
> errorDialog(CWnd* pParent = NULL);   // standard constructor
>
> // Dialog Data
> //{{AFX_DATA(errorDialog)
> enum { IDD = errorDialog };
> CStatic m_errorMessageText;
> //}}AFX_DATA
>
>
> // Overrides
> // ClassWizard generated virtual function overrides
> //{{AFX_VIRTUAL(errorDialog)
> protected:
> //}}AFX_VIRTUAL
>
> // Implementation
> protected:
>
> // Generated message map functions
> //{{AFX_MSG(errorDialog)
> // NOTE: the ClassWizard will add member functions here
> //}}AFX_MSG
> DECLARE_MESSAGE_MAP()
> };
>
> //{{AFX_INSERT_LOCATION}}
> // Microsoft Visual C++ will insert additional declarations immediately
> before the previous line.
>
> #endif //
> !defined(AFX_ERRORDIALOG_H__9F80CB41_32F3_11D9_811C_000C41E9C262__INCLUDED_)
>
>
> Here are the error messages:
>
> Compiling...
> testDialog.cpp
> c:\program files\microsoft visual studio\myprojects\bico pick
> control\errordialog.h(13) : error C2143: syntax error : missing ';' before
> 'constant'
> c:\program files\microsoft visual studio\myprojects\bico pick
> control\errordialog.h(13) : fatal error C1004: unexpected end of file 
> found
> errorDialog.cpp
> c:\program files\microsoft visual studio\myprojects\bico pick
> control\errordialog.h(13) : error C2143: syntax error : missing ';' before
> 'constant'
> c:\program files\microsoft visual studio\myprojects\bico pick
> control\errordialog.h(13) : fatal error C1004: unexpected end of file 
> found
> Generating Code...
> Error executing cl.exe.
>
> Bico Pick Control.exe - 4 error(s), 0 warning(s)
>
> 


0
JoeB
11/10/2004 10:41:13 PM
JoeB,
Thanks, it is and the error persists.

"JoeB" wrote:

> #include "stdafx.h" needs to be at the top of all your .cpp files.
> 
> 
> 
> joe
> 
> 
> "bicoman" <bicoman@discussions.microsoft.com> wrote in message 
> news:8AFD72B3-63ED-43FB-9235-C76A55FBA64C@microsoft.com...
> > I'm getting these error messages when I try to build. I haven't edited the
> > header file and don't see anything wrong. Does anyone know what is going 
> > on
> > here? I get the error in both places where there is a #include
> > "errorDoalog.h". Error messages at bottom. Thanks
> > Mike
> >
> >
> > #if
> > !defined(AFX_ERRORDIALOG_H__9F80CB41_32F3_11D9_811C_000C41E9C262__INCLUDED_)
> > #define AFX_ERRORDIALOG_H__9F80CB41_32F3_11D9_811C_000C41E9C262__INCLUDED_
> >
> > #if _MSC_VER > 1000
> > #pragma once
> > #endif // _MSC_VER > 1000
> > // errorDialog.h : header file
> > //
> >
> > /////////////////////////////////////////////////////////////////////////////
> > // errorDialog dialog
> >
> > class errorDialog : public CDialog
> > {
> > // Construction
> > public:
> > errorDialog(CWnd* pParent = NULL);   // standard constructor
> >
> > // Dialog Data
> > //{{AFX_DATA(errorDialog)
> > enum { IDD = errorDialog };
> > CStatic m_errorMessageText;
> > //}}AFX_DATA
> >
> >
> > // Overrides
> > // ClassWizard generated virtual function overrides
> > //{{AFX_VIRTUAL(errorDialog)
> > protected:
> > //}}AFX_VIRTUAL
> >
> > // Implementation
> > protected:
> >
> > // Generated message map functions
> > //{{AFX_MSG(errorDialog)
> > // NOTE: the ClassWizard will add member functions here
> > //}}AFX_MSG
> > DECLARE_MESSAGE_MAP()
> > };
> >
> > //{{AFX_INSERT_LOCATION}}
> > // Microsoft Visual C++ will insert additional declarations immediately
> > before the previous line.
> >
> > #endif //
> > !defined(AFX_ERRORDIALOG_H__9F80CB41_32F3_11D9_811C_000C41E9C262__INCLUDED_)
> >
> >
> > Here are the error messages:
> >
> > Compiling...
> > testDialog.cpp
> > c:\program files\microsoft visual studio\myprojects\bico pick
> > control\errordialog.h(13) : error C2143: syntax error : missing ';' before
> > 'constant'
> > c:\program files\microsoft visual studio\myprojects\bico pick
> > control\errordialog.h(13) : fatal error C1004: unexpected end of file 
> > found
> > errorDialog.cpp
> > c:\program files\microsoft visual studio\myprojects\bico pick
> > control\errordialog.h(13) : error C2143: syntax error : missing ';' before
> > 'constant'
> > c:\program files\microsoft visual studio\myprojects\bico pick
> > control\errordialog.h(13) : fatal error C1004: unexpected end of file 
> > found
> > Generating Code...
> > Error executing cl.exe.
> >
> > Bico Pick Control.exe - 4 error(s), 0 warning(s)
> >
> > 
> 
> 
> 
0
bicoman (15)
11/10/2004 11:41:02 PM
Reply:

Similar Artilces:

2 Page Newsletters
I am trying to open a 2 page newsletter from someone they they saved on my computer. On his computer it is two pages and there is the 1,2 page numbers you can click on the bottom. When he sends it to me it only shows one page. When he comes to my computer and tries to open his from my computer it does the same, only one page. Can anyone help with this? After managing to set up OE-QuoteFix on his new PC, Ed reads a message from dpandozzi@r-masters.com <anonymous@discussions.microsoft.com>... > I am trying to open a 2 page newsletter from someone they > they saved on my comp...

http_403 error
This has been cross posted in the windows.sbs news group. Ok, I am going nuts here, can someone help me? I'm using Microsoft SBS 2003. I get a 403 error from any device trying to sync. I have checked all the VD's and they seem fine. Here is the IIS log: 2005-08-23 02:57:07 203.79.110.126 OPTIONS /Microsoft-Server-ActiveSync User=neill&DeviceId=B77507360000000108000050BF3F5173&DeviceType=PocketPC 80 - 166.179.17.182 Microsoft-PocketPC/3.0 401 2 2148074254 2005-08-23 02:57:09 203.79.110.126 OPTIONS /Microsoft-Server-ActiveSync User=neill&DeviceId=B77507360000000108000050B...

Encryption error
When I open Money 2004 I get the following error "Unable to encrypt data at the required level" Tells me to go to a site and install some security updates, which I did. I have all the latest patches and updates (except XPSP2, it sucks). Have latest IE 6 with SP1 and latest encryption pack. Help! In microsoft.public.money, "Encryption error..." <Encryption error...@discussions.microsoft.com> wrote: >When I open Money 2004 I get the following error > >"Unable to encrypt data at the required level" > >Tells me to go to a site and install so...

Circular Reference Error
Can anyone see what would be causing me to get a circular reference error??? Thanks! SELECT [BartS1Report].Customer_ID, [BartS1Report].Customer, [BartS1Report].Service_Address, [BartS1Report].Employee, [BartS1Report].Manager, [BartS1Report].Type_of_System, [BartS1Report].Raw_Water, [BartS1Report].Treated_Water, [BartS1Report].Cycles, [BartS1Report].Inhibitor_Level, [BartS1Report].Range_1, [BartS1Report].Range_2, [BartS1Report].Range_3, [BartS1Report].Range_4, [BartS1Report].Range_5, ((SELECT Sum([XX].[ZZZ]) FROM [BartS1Report] AS [XX] WHERE [BartS1Report].Customer_ID & ...

Print Reconcilliation #2
Is it possible to print a reconcilliation when you are done with it? I could always do this in Quicken but can't see how to do it in Money. Money doesn't have a reconciliation report. This, and many workarounds and near workarounds have been discussed numerous times in the last month or so. (These things come in cycles--this is the cycle for reconciliation report, apparently.) Get more headers or search archives of this group at http://groups.google.com. "Thomas Schiessl" <Schiessl@athenet.net> wrote in message news:319901c37573$1a2d6fa0$a301280a@phx.gbl... &g...

Get $500 to your PAYPAL Account by just one CLICK #2
i have hidden the form of getting $500 to your PAYPAL ACCOUNT....CLICK on the IMAGE which is on the RIGHT SIDE of the website http://tricks-4u.4-all.org/ ...

GALMOD32.exe not working #2
Hello. When the users of the domain run GALMOD32.exe it acts like it saves the settings but when I look at the gal those settings don't stick. I have done the following site suggestions about adding "self" to delegate control, but still no luck. Anyone have any suggestions on how I can get users to update the gal themselves and have it actually stick. http://mcpmag.com/columns/article.asp?EditorialsID=873 Thanks, -comb In article <MPG.1ef200b44f090d1b989684@news.newsreader.com>, whore@whore.com says... > Hello. > > When the users of the domain run GALM...

Autofill Error
Hi, I need a macro to autofill COLUMN A with a word say YES until the last row found in COLUMN B. Right now I have the ff codes: Sheets("VOUCHER - STEP 2").Select Range("A5").Select ActiveCell.FormulaR1C1 = "DEBIT" With ActiveCell.Characters(Start:=1, Length:=5).Font .Name = "Arial" .FontStyle = "Regular" .Size = 8 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineSt...

Kamasutra Full B-Grade Movie With Nudity Must See (1 Hour 50 Min ) #2
Kamasutra Full B-Grade Movie With Nudity Must See (1 Hour 50 Min ) At http://iceboob.Co.CC Due to GOOGLE security risks, i have hidden the videos(15) in an image. in that website on Right side below search box click on image and watch videos in all angles. ...

Header and Footer Locations (2)
Gord Dibben: Excuse my ignorance, but where do I find "Custom Settings" so I can move the Header and Footer margins in? Thanks, Bernie Bernie View>Header and Footer>Custom To have a left footer several spaces in from default, enter the footer using one of the buttons provided then click in box and enter the spaces before the actual footer. This is not an exact science, so some experimentation will take place. Gord On Tue, 13 Jul 2004 20:32:51 GMT, "Bernie Beal" <bquest@optonline.net> wrote: >Gord Dibben: > >Excuse my ignorance, but where do...

SHARING WORKBOOKS #2
I HAVE AN EXCEL SPREADSHEET THAT NEEDS TO BE AVAILABLE ON TWO COMPUTERS AND SHOW THE SAME INFORMATION INCLUDING CHANGES. HOW DO I DO THIS? Hi check out 'Tools - Share workbooks' Note: shared workbooks have many restrictions (several functions are not available for them). IMHO Excel is not well suited for beeing shared. You may condiser using a different type of application for this (e.g. a database) -- Regards Frank Kabel Frankfurt, Germany "ALSHORTMAN" <ALSHORTMAN@discussions.microsoft.com> schrieb im Newsbeitrag news:C0807914-A81F-4719-A37C-3F22160C2EB3@microsoft...

Mail error
I have been using outlook for a week and it was working fine all of a sudden i cannot retreive any emails, i can send but not receieve in outlook. i have a Hotmail plus account the service status in oultook says Mail: error Calender: connected Contact: connected can you help me with that?? ...

Outlook notification #2
in outlook 2003, we now have that cool little box that comes up when new mail hits the mailbox. Is there a way to set up a different folder to do a similar bubble message? You have to set up a rule. It's one of the action options for incoming messages ----- Philip wrote: ---- in outlook 2003, we now have that cool little box that comes up when new mail hits the mailbox. Is there a way to set up a different folder to do a similar bubble message? ...

Problem when adding an appointment in CRM from the SFO ver. 1.2
When the users make an appointment in the SFO, its fails. The SFO makes the activity on the contact, but the Outlook synchronisation fails. The appointment does not appear in the Outlook calendar. Then we reinstall the appointment form in Outlook, clear the forms cache, and the problem is resolved. Then after some time (weeks) the problem comes back. Any ideas? Best regards Jacob Mondrup IT Manager, Cultivator Denmark. have you loaded the latest rollup patch for the outlook client? http://www.microsoft.com/downloads/details.aspx?FamilyID=127a274d-bc20-4e2f-be0d-1247455748...

Outlook errors #4
Since upgrading to outlook 2003 I cannot view any items in the sent folder. I have tried uninstalling and reinstalling but get the same error- "outlook has encounted an error and will close" I can view the sent items via OWA, so I know they exist. I have also tried setting up the account on a different pc. Any help would be very helpful. Have you tried a new mail profile? --� Milly Staples [MVP - Outlook] Post all replies to the group to keep the discussion intact. Due to the (insert latest virus name here) virus, all mail sent to my personal account will be deleted without ...

2003 code raises error in 2007
I have a reference in VBA to a subform of a subform, which works fine in Access 2003. In Access 2007, however, it results in "you have entered an invalid reference to the property Form/Report." This is the snippet of code: Private Sub SetFormProperties() 'called from form_open, makes all forms editable if edit mode was selected Dim ctrl As Control, ctrlSub As Control Dim frm As Form If Me.OpenArgs = "Edit" Then Set frm = Me 'set main form edit options EditProperties frm 'set subform edit options For Each ctrl In frm If ct...

Upgrade to exchange enterprise #2
Hello I have just moved to exchange enterprise from exchange standard(with the mailbox move method). Everything has gone well but i'm noticing that i'm still getting event 1221 messages stating that there is x amount of space in the public and private message stores. Just wondering if i should still be getting these messages. I'm aware though that exchange space is white space based and that when you exceed the amount of white space the database will grow again. But just wondering if i should still be getting those 1221's. Thanks On Mon, 6 Jun 2005 09:17:03 -070...

Air Framing Nailer Kit 8-10 Gauge - 2"
Price:$250.99 Image: http:///image.php?id=B000UFSL5G Best deal: http:///index.php?id=B000UFSL5G Neiko Tools USA 8-10 Gauge 2"~ 3-1/2" Air Framing Nailer Kit * Large Piston For Increasing Power * Stong and Light Weight Die-Cast Body * Drivers Full-Head Nails from 2" to 3-1/2" Long * Includes: Goggles, Oil, Wrenches and Instruction * Max Capacity: 40 pcs * 72-120 psi * Air Inlet: 1/4" NPT * 21 Degree Angle ...

GetItemRect() not consistent with display after updating iIntegral #2
Sorry about the repost. I am trying to set the height of a CTreeCtrl item using the iIntegral property of TVITEMEX and SetItem. This is within the context of a splitter window with a left and a right pane. The left pane contains the tree and the right pane displays graphical elements which are vertically aligned with corresponding tree items. When iIntegral is set, the tree redisplays as expected, however the results from GetItemRect() do not change. As a result, the graphical elements in the right pane are not correctly vertically aligned. The only thing that seems to update GetItemRect...

Problem installing CRM 1.2 on Win2003
Hello, I get the following error installing the product: Setup was unable to install the Windows installer package.msi of microsoft CRM Server Setup. Any ideas? Michael Where can I find an installation guide? Thanks Michael Hi Micheal, There is a CRM installation guide from Microsoft called Installing_and_Securing_CRM_on_SBS.doc. I found this guide extremely useful. I recommend thoroughly reading it before implementing any of it. http://www.microsoft.com/downloads/details.aspx?FamilyID=C835F117-A447-48DB-940B-48EF88A192A3&displaylang=en Regards, Chris Netarus, LLC http://www...

"Get-ClusterResource" cmdlet throws "not recognized as a cmdlet, function, operable program, or script file" error.
Hi, I am trying to use "Get-ClusterResource" cmdlet to fetch "File Share Witness" property of CCR cluster. But when I run this command no "Exchange Management Shell" I am getting "The term 'Get- ClusterResource' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again." error. Any idea why I am getting this error? Do I need to add any "PSSnapin" via Add-PSSnapin cmdlet ? If so which one it is? Basically I am not able to run any of the cluster related GET cmdlets on Exchange Managem...

E2k3: An ambiguous SMTP proxy SystemMailbox error 9549
I get this message a few times a day and the best I can figure is I have two mailboxes found in the Exchange System Manager with the same string of characters in their names. SMTP (SERVER1-{A643FE61-xxxx-4B74-B902-280BFB58699B}) SystemMailbox{A643FE61-xxxx-4B74-B902-280BFB58699B} However this condition is identical on two exchange servers (slightly different numbers) but only one exchange server is getting the error. Any ideas? Event Type: Error Event Source: MSExchangeIS Event Category: General Event ID: 9549 Date: 1/9/2005 Time: 2:28:44 PM User: N/A Computer: SERVFL01 Description: An...

PCCharge #2
Does anyone know where I can find a list of transaction processing errors from PCCharge? One of our stores received a 114/203 error while processing a check the other night and I have no idea what a 114/203 error is? I've contacted Verifone for a list but to no avail. Thank you in advance for any assistance. No, but I have PCCharge issues as well. Two of our stores need to archive data, but the feature comes up with a separate error in each store. I have error PCCWHIST.MDB Error 3343:Unrecognized database format 'C:\Program Files\Active-Charge\backup\pccwhist.mdb AND PCCWHIS...

Sum on top of stacked columns #2
Is it possible in some way to add the sum of series on top of each column in a stacked column diagram? I am often using this feature in ThinkCell for my powerpoint slides. However, need to insert a stacked column graph from Excel 2007 into Word 2007. Currently, I've been using a text box with a reference. However, the reference in a text box is static, which makes it a source for error when inserting or deleting rows in Excel. Hello Drews. You can add a new series with the total sum and then: Change the chart type to line ONLY for this series. Format the series without lines or markers...

xp service pack 2 installation seems frozen
i am running Windows xp pro 32bit. I Had a virus and did a repair using xp disc, i managed to recover all my files and programs, but my windows reverted to service pack 1. Everytime i turn on my computer i get an update alert and you click on it it starts updating to service pack 2.The problem is it keeps stalling in the same spot for hours everytime.The dialog box says " creating cabinets", and then there is no progress at all from then on. PLEASE HELP!! Download Windows XP Service Pack 2 directly from Microsoft's download site to a newly created folder on yo...