Click here to Skip to main content
16,004,890 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ADO and date/time problem Pin
RChin16-Aug-04 0:30
RChin16-Aug-04 0:30 
GeneralDriver Installer Pin
R. Thomas15-Aug-04 18:29
R. Thomas15-Aug-04 18:29 
Generalparallel port Pin
bobmob15-Aug-04 16:14
bobmob15-Aug-04 16:14 
GeneralRe: parallel port Pin
Name Removed15-Aug-04 18:06
Name Removed15-Aug-04 18:06 
GeneralRecognise data in 2nd View Pin
Puah15-Aug-04 15:24
Puah15-Aug-04 15:24 
GeneralRe: Recognise data in 2nd View Pin
netboy202015-Aug-04 18:11
netboy202015-Aug-04 18:11 
GeneralRe: Recognise data in 2nd View Pin
Puah15-Aug-04 20:44
Puah15-Aug-04 20:44 
GeneralRe: Recognise data in 2nd View Pin
netboy202015-Aug-04 20:57
netboy202015-Aug-04 20:57 
Hi,
If you are replacing your original view class then its fine. But only precaution you should take is, in CXApp class properly map your view class while instanciating your CSingleDocTemplate class in InitInstance method.
If this is done properly then in OnDraw of CXView you should be able to get your document class.

CXDoc* pDoc = GetDocument();

Also, I hope while retriving document pointer you are creating the pointer to your document class and not CDocument class.

HTH

Cheers
Mitesh
GeneralRe: Recognise data in 2nd View Pin
Puah16-Aug-04 14:45
Puah16-Aug-04 14:45 
GeneralRe: Recognise data in 2nd View Pin
netboy202016-Aug-04 17:45
netboy202016-Aug-04 17:45 
GeneralRe: Recognise data in 2nd View Pin
Puah16-Aug-04 20:08
Puah16-Aug-04 20:08 
GeneralRe: Recognise data in 2nd View Pin
netboy202019-Aug-04 20:52
netboy202019-Aug-04 20:52 
GeneralRe: Recognise data in 2nd View Pin
Puah19-Aug-04 23:43
Puah19-Aug-04 23:43 
GeneralArabic Interface Pin
Al_Shakhly15-Aug-04 15:09
Al_Shakhly15-Aug-04 15:09 
GeneralRe: Arabic Interface Pin
Khanh Trinh17-Aug-04 7:49
Khanh Trinh17-Aug-04 7:49 
Generalmenu problem Pin
Qraven15-Aug-04 15:04
Qraven15-Aug-04 15:04 
GeneralVBAJET.dll for 16-bit versions, or VBAJET32.dll for 32-bit versions Pin
PaleyX15-Aug-04 11:28
PaleyX15-Aug-04 11:28 
GeneralHelp with DDK drivers Pin
gamitech15-Aug-04 10:11
gamitech15-Aug-04 10:11 
GeneralRe: Help with DDK drivers Pin
Ravi Bhavnani15-Aug-04 10:23
professionalRavi Bhavnani15-Aug-04 10:23 
GeneralRoll the dice Pin
---Mark---15-Aug-04 9:24
---Mark---15-Aug-04 9:24 
GeneralRe: Roll the dice Pin
Ravi Bhavnani15-Aug-04 10:17
professionalRavi Bhavnani15-Aug-04 10:17 
GeneralRe: Roll the dice Pin
---Mark---15-Aug-04 21:11
---Mark---15-Aug-04 21:11 
GeneralRe: Roll the dice Pin
Mike Beckerleg15-Aug-04 23:04
Mike Beckerleg15-Aug-04 23:04 
GeneralRe: Roll the dice Pin
mahade115-Aug-04 23:21
mahade115-Aug-04 23:21 
GeneralRe: Roll the dice Pin
---Mark---16-Aug-04 13:28
---Mark---16-Aug-04 13:28 

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.