Click here to Skip to main content
16,005,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: "Please enter no more than 256 characters." Pin
Vladimir Georgiev22-Feb-03 7:42
Vladimir Georgiev22-Feb-03 7:42 
GeneralRe: "Please enter no more than 256 characters." Pin
Mike Nordell22-Feb-03 8:22
Mike Nordell22-Feb-03 8:22 
GeneralRe: "Please enter no more than 256 characters." Pin
Anonymous22-Feb-03 10:44
Anonymous22-Feb-03 10:44 
GeneralRe: "Please enter no more than 256 characters." Pin
Nish Nishant22-Feb-03 9:11
sitebuilderNish Nishant22-Feb-03 9:11 
GeneralSemaphores and Mutexes Pin
almc22-Feb-03 1:20
almc22-Feb-03 1:20 
GeneralRe: Semaphores and Mutexes Pin
Mike Nordell22-Feb-03 8:31
Mike Nordell22-Feb-03 8:31 
GeneralRe: Semaphores and Mutexes Pin
Jambolo22-Feb-03 20:37
Jambolo22-Feb-03 20:37 
GeneralMultiple View Pin
ROK_RShadow22-Feb-03 0:06
ROK_RShadow22-Feb-03 0:06 
sigh.. ok.. another problem I don't seem to understand..

sorry.. I'm a little new to MFC and Win Programming..

Ok.. I'm trying to follow along in this book "Microsoft Visual C++ Fith Edition" to create multiple views

Now the example from the book (Ex20c) compiles and works fine.. but when I try to re-create it.. I get 3 errors when I compile

error C2143: syntax error : missing ';' before '*'
error C2501: 'CMVSampleDoc' : missing storage-class or type specifiers
error C2501: 'GetDocument' : missing storage-class or type specifiers

I get these errors when I add the View Header files to the MainFrame implementation file (CMainFrm.cpp)

I can not for the life of me figure out why I am getting these error messages.. The first error message relates to the GetDocument() function in the view.

I tried two different ways.. first I used ClassWizard to create a new class derived from CView.. and I got these errors.. so I did it exactly the way the book did it.. and just copied the .h and .cpp file to new names, and modified them with different names.. thinking that maybe because the second view was avalible from ClassWizard that funked something up.. but I still receive the errors.

Any Ideas?


GeneralRe: Multiple View Pin
ROK_RShadow22-Feb-03 1:16
ROK_RShadow22-Feb-03 1:16 
GeneralRe: Multiple View Pin
MAAK22-Feb-03 12:17
MAAK22-Feb-03 12:17 
GeneralMemory Leakage !!!! Pin
Chintan21-Feb-03 23:03
Chintan21-Feb-03 23:03 
GeneralRe: Memory Leakage !!!! Pin
RobJones25-Feb-03 10:18
RobJones25-Feb-03 10:18 
Generallimiting the size of a CDialog Pin
nss21-Feb-03 22:19
nss21-Feb-03 22:19 
GeneralRe: limiting the size of a CDialog Pin
Stephane Rodriguez.21-Feb-03 22:56
Stephane Rodriguez.21-Feb-03 22:56 
GeneralRe: limiting the size of a CDialog Pin
nss21-Feb-03 23:28
nss21-Feb-03 23:28 
GeneralRe: limiting the size of a CDialog Pin
Stephane Rodriguez.22-Feb-03 0:38
Stephane Rodriguez.22-Feb-03 0:38 
GeneralRe: limiting the size of a CDialog Pin
Michael Dunn22-Feb-03 7:51
sitebuilderMichael Dunn22-Feb-03 7:51 
Questionwhat's font do u use when u programing? Pin
ttzzgg_8071321-Feb-03 21:45
ttzzgg_8071321-Feb-03 21:45 
AnswerRe: what's font do u use when u programing? Pin
Jambolo22-Feb-03 20:42
Jambolo22-Feb-03 20:42 
GeneralWindows Messages Pin
ROK_RShadow21-Feb-03 20:28
ROK_RShadow21-Feb-03 20:28 
GeneralRe: Windows Messages Pin
MAAK21-Feb-03 21:46
MAAK21-Feb-03 21:46 
GeneralRe: Windows Messages Pin
ROK_RShadow21-Feb-03 23:58
ROK_RShadow21-Feb-03 23:58 
Generalsystem() , need help please Pin
moraalg21-Feb-03 17:59
moraalg21-Feb-03 17:59 
GeneralRe: system() , need help please Pin
Chris Losinger21-Feb-03 18:13
professionalChris Losinger21-Feb-03 18:13 
GeneralRe: system() , need help please Pin
Mike Nordell22-Feb-03 8:42
Mike Nordell22-Feb-03 8:42 

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.