Click here to Skip to main content
15,915,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to give a File New command from inside a program Pin
#realJSOP14-Jan-07 2:18
professional#realJSOP14-Jan-07 2:18 
GeneralRe: How to give a File New command from inside a program Pin
IlanTal14-Jan-07 2:33
IlanTal14-Jan-07 2:33 
GeneralRe: How to give a File New command from inside a program Pin
#realJSOP14-Jan-07 2:53
professional#realJSOP14-Jan-07 2:53 
GeneralRe: How to give a File New command from inside a program Pin
IlanTal14-Jan-07 3:11
IlanTal14-Jan-07 3:11 
GeneralRe: How to give a File New command from inside a program Pin
#realJSOP14-Jan-07 4:11
professional#realJSOP14-Jan-07 4:11 
GeneralRe: How to give a File New command from inside a program Pin
IlanTal14-Jan-07 4:45
IlanTal14-Jan-07 4:45 
GeneralRe: How to give a File New command from inside a program Pin
PJ Arends14-Jan-07 7:16
professionalPJ Arends14-Jan-07 7:16 
QuestionCArray Compaliation Error C2143: syntax error : missing ';' before '<' Pin
sdancer7513-Jan-07 23:34
sdancer7513-Jan-07 23:34 
I tried to compile a simple Dialog project with just a simple CARRAY declaration of a new class called CPoint3d.

I receive the following error

Generating Code...
Compiling...
MyTestDlg.cpp
c:\temp\mytest\mytestdlg.h(36) : error C2143: syntax error : missing ';' before '<'
c:\temp\mytest\mytestdlg.h(36) : error C2501: 'CArray' : missing storage-class or type specifiers
c:\temp\mytest\mytestdlg.h(36) : error C2059: syntax error : '<'
c:\temp\mytest\mytestdlg.h(36) : error C2238: unexpected token(s) preceding ';'
Generating Code...
Error executing cl.exe.

MyTest.exe - 8 error(s), 0 warning(s)

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

Here the declatation. What seems to be wrong here ?

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


class CPoint3D
{
public:
CPoint3D ()
{
x = y = z = 0;
}
CPoint3D (int xPos, int yPos, int zPos)
{
x = xPos;
y = yPos;
z = zPos;
}
int x, y, z;
};


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

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


----> CArray<cpoint3d, cpoint3d&=""> array; ------------->ERROR




// Dialog Data
//{{AFX_DATA(CMyTestDlg)
enum { IDD = IDD_MYTEST_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA

// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyTestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL

// Implementation
protected:


HICON m_hIcon;

// Generated message map functions
//{{AFX_MSG(CMyTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};


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



sdancer75

AnswerRe: CArray Compaliation Error C2143: syntax error : missing ';' before '&lt;' [modified] Pin
#realJSOP13-Jan-07 23:46
professional#realJSOP13-Jan-07 23:46 
GeneralRe: CArray Compaliation Error C2143: syntax error : missing ';' before '&lt;' Pin
sdancer7514-Jan-07 6:28
sdancer7514-Jan-07 6:28 
AnswerRe: CArray Compaliation Error C2143: syntax error : missing ';' before '<' Pin
Cedric Moonen13-Jan-07 23:51
Cedric Moonen13-Jan-07 23:51 
AnswerRe: CArray Compaliation Error C2143: syntax error : missing ';' before '<' Pin
Christian Graus14-Jan-07 1:41
protectorChristian Graus14-Jan-07 1:41 
AnswerRe: CArray Compaliation Error C2143: syntax error : missing ';' before '&amp;lt;' Pin
Mark Salsbery14-Jan-07 6:29
Mark Salsbery14-Jan-07 6:29 
AnswerRe: CArray Compaliation Error C2143: syntax error : missing ';' before '<' Pin
Hamid_RT15-Jan-07 6:57
Hamid_RT15-Jan-07 6:57 
QuestionTrack DLL calls Pin
ToughGuy913-Jan-07 23:16
ToughGuy913-Jan-07 23:16 
AnswerRe: Track DLL calls Pin
mark novak14-Jan-07 9:11
mark novak14-Jan-07 9:11 
GeneralRe: Track DLL calls Pin
ToughGuy914-Jan-07 20:58
ToughGuy914-Jan-07 20:58 
GeneralRe: Track DLL calls Pin
mark novak15-Jan-07 2:21
mark novak15-Jan-07 2:21 
GeneralRe: Track DLL calls [modified] Pin
ToughGuy915-Jan-07 6:49
ToughGuy915-Jan-07 6:49 
AnswerRe: Track DLL calls Pin
ThatsAlok14-Jan-07 21:45
ThatsAlok14-Jan-07 21:45 
GeneralRe: Track DLL calls Pin
ToughGuy914-Jan-07 22:09
ToughGuy914-Jan-07 22:09 
QuestionFtp program Pin
Silly Boy13-Jan-07 21:27
Silly Boy13-Jan-07 21:27 
QuestionSetCursorPos and GetWindowText Pin
misha_grewal13-Jan-07 20:47
misha_grewal13-Jan-07 20:47 
AnswerRe: SetCursorPos and GetWindowText Pin
Dominik Reichl13-Jan-07 22:49
Dominik Reichl13-Jan-07 22:49 
QuestionHow to disable Intellisense on VC 2005 Express Pin
yarp13-Jan-07 20:20
yarp13-Jan-07 20:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.