Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing locale and get COleDateTime to recognize it Pin
Not Active15-Aug-01 5:37
mentorNot Active15-Aug-01 5:37 
GeneralRe: Changing locale and get COleDateTime to recognize it Pin
Mike Eriksson15-Aug-01 23:16
Mike Eriksson15-Aug-01 23:16 
GeneralPlz tell me Pin
Muhammad Abid15-Aug-01 3:28
Muhammad Abid15-Aug-01 3:28 
GeneralDetermining Internet connection Pin
neilbennevis15-Aug-01 2:17
neilbennevis15-Aug-01 2:17 
QuestionHow to get pointer to desired view? Pin
14-Aug-01 22:22
suss14-Aug-01 22:22 
AnswerRe: How to get pointer to desired view? Pin
15-Aug-01 10:34
suss15-Aug-01 10:34 
GeneralRe: How to get pointer to desired view? Pin
16-Aug-01 1:25
suss16-Aug-01 1:25 
GeneralRe: How to get pointer to desired view? Pin
Steen Krogsgaard16-Aug-01 1:44
Steen Krogsgaard16-Aug-01 1:44 
try this:
#include "tableview.h"

...

if (pView->IsKindOf(RUNTIME_CLASS(CTableview))) {
CTableview* pTableview = (CTableview*)pView;
pTableview->setUsers();
}
...

CTableview would have to be at least DECLARE_DYNAMIC.

A note: I've used the ol'-fashion casting here ((CTableview*)pView) - I'm sure there's a lot of C++ gurus out there that want you to use static_cast<> or dynamic_cast<> or whatever instead - but I've never figured out which one to use so I stick with the old one.

good luck


Steen.
GeneralRe: How to get pointer to desired view? Pin
Steen Krogsgaard17-Aug-01 0:50
Steen Krogsgaard17-Aug-01 0:50 
GeneralRe: How to get pointer to desired view? Pin
Jim A. Johnson16-Aug-01 3:20
Jim A. Johnson16-Aug-01 3:20 
GeneralRe: How to get pointer to desired view? Pin
16-Aug-01 3:50
suss16-Aug-01 3:50 
GeneralRe: How to get pointer to desired view? Pin
Steen Krogsgaard17-Aug-01 0:29
Steen Krogsgaard17-Aug-01 0:29 
GeneralText properties Pin
14-Aug-01 20:57
suss14-Aug-01 20:57 
GeneralRe: Text properties Pin
Matt.W.14-Aug-01 21:59
Matt.W.14-Aug-01 21:59 
GeneralRe: Text properties Pin
14-Aug-01 22:14
suss14-Aug-01 22:14 
General3rd party control library for MFC Pin
14-Aug-01 19:57
suss14-Aug-01 19:57 
GeneralUnicode, and UTF-8 Pin
14-Aug-01 19:32
suss14-Aug-01 19:32 
GeneralRan out of controls...... Pin
Liam O'Hagan14-Aug-01 19:13
Liam O'Hagan14-Aug-01 19:13 
GeneralRe: Ran out of controls...... Pin
Michael Dunn14-Aug-01 20:41
sitebuilderMichael Dunn14-Aug-01 20:41 
GeneralSDI Multiple File Types Pin
Amit Jain14-Aug-01 17:04
Amit Jain14-Aug-01 17:04 
GeneralRe: SDI Multiple File Types Pin
Ben Burnett15-Aug-01 11:28
Ben Burnett15-Aug-01 11:28 
GeneralRe: SDI Multiple File Types Pin
Amit Jain16-Aug-01 5:02
Amit Jain16-Aug-01 5:02 
GeneralCStatic Control Pin
Joseph LeBlanc14-Aug-01 15:58
Joseph LeBlanc14-Aug-01 15:58 
GeneralRe: CStatic Control Pin
KingsGambit14-Aug-01 19:28
KingsGambit14-Aug-01 19:28 
GeneralRe: CStatic Control Pin
Bob Groves15-Aug-01 1:10
Bob Groves15-Aug-01 1: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.