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

C / C++ / MFC

 
GeneralRe: Getting the access token of the logged-on user Pin
Garth J Lancaster26-Feb-03 10:58
professionalGarth J Lancaster26-Feb-03 10:58 
GeneralRe: Getting the access token of the logged-on user Pin
Garth J Lancaster26-Feb-03 11:20
professionalGarth J Lancaster26-Feb-03 11:20 
GeneralRe: Getting the access token of the logged-on user Pin
Garth J Lancaster26-Feb-03 12:32
professionalGarth J Lancaster26-Feb-03 12:32 
GeneralRe: Getting the access token of the logged-on user Pin
Neflyte26-Feb-03 16:41
Neflyte26-Feb-03 16:41 
GeneralRe: Getting the access token of the logged-on user Pin
Garth J Lancaster27-Feb-03 2:43
professionalGarth J Lancaster27-Feb-03 2:43 
GeneralGot the token, but can't Impersonate... Pin
Neflyte27-Feb-03 5:19
Neflyte27-Feb-03 5:19 
GeneralRe: Got the token, but can't Impersonate... Pin
Garth J Lancaster27-Feb-03 9:55
professionalGarth J Lancaster27-Feb-03 9:55 
GeneralCWnd * pParent in CReate() Pin
ns26-Feb-03 6:09
ns26-Feb-03 6:09 
Why is it that in

CModeLess::CModeLess(CWnd* pParent /*=NULL*/)
    : CDialog(CModeLess::IDD, pParent)
{
    m_parent=pParent; 

}


I can send a message or post and it gets to the right view. But if I try to set a parent member (parent is CTView), it says thats not a member of CWnd....fine So I try to cast the m_pParent to a CTVIew* pointer, but it doesnt like it if I do a #include "tView.h" in the CDialog derived class, since "myCDlg.h" is included in TView.h....something circular going on...
SO I tried forward declaring the CTVIew class in my CDlg .h file but it didnt like that either....

SO why does my message get to the right parent, but I cant set a member of the parent? If I could cast it I could but it doesnt look like its legal...?

Appreciate your help,
ns
GeneralRe: CWnd * pParent in CReate() Pin
Nitron26-Feb-03 7:54
Nitron26-Feb-03 7:54 
GeneralRe: CWnd * pParent in CReate() Pin
ns26-Feb-03 8:01
ns26-Feb-03 8:01 
GeneralRe: CWnd * pParent in CReate() Pin
Nitron26-Feb-03 8:04
Nitron26-Feb-03 8:04 
Questionhow can i see the source code? Pin
wildelf26-Feb-03 6:07
wildelf26-Feb-03 6:07 
AnswerRe: how can i see the source code? Pin
Jim A. Johnson26-Feb-03 6:11
Jim A. Johnson26-Feb-03 6:11 
GeneralRe: It's gone. Pin
wildelf26-Feb-03 6:40
wildelf26-Feb-03 6:40 
GeneralRe: It's gone. Pin
Maximilien26-Feb-03 6:46
Maximilien26-Feb-03 6:46 
GeneralRe: It's gone. Pin
wildelf26-Feb-03 6:52
wildelf26-Feb-03 6:52 
GeneralRe: It's gone. Pin
Valera24117626-Feb-03 11:11
Valera24117626-Feb-03 11:11 
GeneralRe: It's gone. Pin
Willem B27-Feb-03 0:43
Willem B27-Feb-03 0:43 
GeneralOnOK and delete this Pin
ns26-Feb-03 5:59
ns26-Feb-03 5:59 
GeneralRe: OnOK and delete this Pin
palbano26-Feb-03 6:09
palbano26-Feb-03 6:09 
GeneralRe: OnOK and delete this Pin
ns26-Feb-03 6:16
ns26-Feb-03 6:16 
GeneralRe: OnOK and delete this Pin
xsummerx26-Feb-03 7:10
xsummerx26-Feb-03 7:10 
Generalthanks--I got it now Pin
ns26-Feb-03 7:58
ns26-Feb-03 7:58 
Generalthe CP modeless article - thanks. Pin
ns26-Feb-03 6:21
ns26-Feb-03 6:21 
Generalresource.rc could not be opened. Pin
ns26-Feb-03 5:40
ns26-Feb-03 5:40 

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.