Click here to Skip to main content
15,927,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a question about StrechBlt()???? Pin
Leesen25-Nov-01 22:32
Leesen25-Nov-01 22:32 
GeneralCStatusBar in a CDialog Pin
r2d2rigo25-Nov-01 4:50
r2d2rigo25-Nov-01 4:50 
GeneralRe: CStatusBar in a CDialog Pin
Nish Nishant25-Nov-01 5:32
sitebuilderNish Nishant25-Nov-01 5:32 
QuestionWhat type of view is VC++'s output window? Pin
hierro25-Nov-01 4:04
hierro25-Nov-01 4:04 
AnswerRe: What type of view is VC++'s output window? Pin
Nish Nishant25-Nov-01 5:31
sitebuilderNish Nishant25-Nov-01 5:31 
AnswerRe: What type of view is VC++'s output window? Pin
Stephane Routelous25-Nov-01 16:34
Stephane Routelous25-Nov-01 16:34 
QuestionFree Source Code? Pin
Lizp25-Nov-01 2:46
Lizp25-Nov-01 2:46 
GeneralWeird Problem Pin
mvworld25-Nov-01 2:14
mvworld25-Nov-01 2:14 
Well I have a weird problem. I have declared a stucture called BrowseBoxStruct in the header file BBDefinition.h as follows


#ifndef __BBOXSTRUCT__
#define __BBOXSTRUCT__
struct MyStruct {
CString column_name;
int column_width;
_variant_t table_column_name;
};
typedef MyStruct BrowseBoxStruct;
#endif

Now I want to pass it to the constructor of a class (CBrowse in Browse.h and Browse.cpp) so I changed the standard constructor for the class as follows.


CBrowse(CWnd* pParent = NULL, BrowseBoxStruct* pBbx = NULL);

and in the cpp file I have

CBrowse::CBrowse(CWnd* pParent /*=NULL*/, BrowseBoxStruct* pBbx) : CDialog(CBrowse::IDD, pParent){
//{{AFX_DATA_INIT(CBrowse)
// NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT}
}

But when I build the application I get the follwoing errors


c:\coursemanager\browse.h(18) : error C2629: unexpected 'class CBrowse ('
c:\coursemanager\browse.h(18) : error C2238: unexpected token(s) preceding ';'
C:\CourseManager\Browse.cpp(20) : error C2511: 'CBrowse::CBrowse' : overloaded member function 'void (class CWnd*, struct MyStruct*)' not found in 'CBrowse'C:\CourseManager\Browse.cpp(94) : fatal error C1004: unexpected end of file found

Please tell me what is going wrong? I included the header file for the structure in the cpp file of my class. I did not forget to add ; in the header file BBDefinition which defines the structure. Still what is going wrong?

Mike Frown | :(
GeneralRe: Weird Problem Pin
Nish Nishant25-Nov-01 5:21
sitebuilderNish Nishant25-Nov-01 5:21 
GeneralCView as a dialog box Pin
25-Nov-01 1:57
suss25-Nov-01 1:57 
QuestionWhat happens to the CDC Pin
25-Nov-01 1:45
suss25-Nov-01 1:45 
AnswerRe: What happens to the CDC Pin
Tim Deveaux25-Nov-01 3:45
Tim Deveaux25-Nov-01 3:45 
GeneralRe: What happens to the CDC Pin
2-Dec-01 0:40
suss2-Dec-01 0:40 
GeneralComboBox problem ! Pin
Hadi Rezaee25-Nov-01 1:34
Hadi Rezaee25-Nov-01 1:34 
GeneralRe: ComboBox problem ! Pin
Michael P Butler25-Nov-01 1:42
Michael P Butler25-Nov-01 1:42 
GeneralRe: ComboBox problem ! Pin
Hadi Rezaee25-Nov-01 1:51
Hadi Rezaee25-Nov-01 1:51 
GeneralRe: ComboBox problem ! Pin
Nish Nishant25-Nov-01 5:25
sitebuilderNish Nishant25-Nov-01 5:25 
GeneralDataGrid ! Pin
Hadi Rezaee25-Nov-01 1:25
Hadi Rezaee25-Nov-01 1:25 
GeneralRe: DataGrid ! Pin
Christian Graus25-Nov-01 10:19
protectorChristian Graus25-Nov-01 10:19 
GeneralRe: DataGrid ! Pin
Hadi Rezaee25-Nov-01 15:02
Hadi Rezaee25-Nov-01 15:02 
GeneralRe: DataGrid ! Pin
Christian Graus25-Nov-01 15:37
protectorChristian Graus25-Nov-01 15:37 
GeneralRe: DataGrid ! Pin
Hadi Rezaee25-Nov-01 15:48
Hadi Rezaee25-Nov-01 15:48 
GeneralRe: DataGrid ! Pin
Christian Graus25-Nov-01 16:00
protectorChristian Graus25-Nov-01 16:00 
GeneralRe: DataGrid ! Pin
Hadi Rezaee26-Nov-01 15:54
Hadi Rezaee26-Nov-01 15:54 
GeneralRe: DataGrid ! Pin
Christian Graus26-Nov-01 16:10
protectorChristian Graus26-Nov-01 16:10 

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.