Click here to Skip to main content
16,011,883 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reg: System Login detail Pin
Rajesh R Subramanian11-Jun-08 22:09
professionalRajesh R Subramanian11-Jun-08 22:09 
GeneralRe: Reg: System Login detail Pin
David Crow12-Jun-08 4:15
David Crow12-Jun-08 4:15 
AnswerRe: Reg: System Login detail Pin
Nibu babu thomas11-Jun-08 22:11
Nibu babu thomas11-Jun-08 22:11 
GeneralRe: Reg: System Login detail Pin
pooja_friends11-Jun-08 22:16
pooja_friends11-Jun-08 22:16 
GeneralRe: Reg: System Login detail Pin
Rajesh R Subramanian11-Jun-08 22:22
professionalRajesh R Subramanian11-Jun-08 22:22 
GeneralRe: Reg: System Login detail Pin
pooja_friends11-Jun-08 22:59
pooja_friends11-Jun-08 22:59 
GeneralRe: Reg: System Login detail Pin
Rajesh R Subramanian11-Jun-08 23:04
professionalRajesh R Subramanian11-Jun-08 23:04 
GeneralRe: Reg: System Login detail Pin
pooja_friends11-Jun-08 23:13
pooja_friends11-Jun-08 23:13 
My code

#include "stdafx.h"
#include "useradmin.h"
#include "useradminDlg.h"

#include <shlobj.h>
#pragma comment(lib, "Shell32.lib")

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About


void CUseradminDlg::OnOK()
{
// TODO: Add extra validation here
if(IsUserAnAdmin())
AfxMessageBox(_T("User is an administrator"));
else
AfxMessageBox(_T("User is not an administrator"));
CDialog::OnOK();
}



I got Following error :

**********************


77) : error C2065: 'IsUserAnAdmin' : undeclared identifier
Generating Code...
Error executing cl.exe.


what is problem
GeneralRe: Reg: System Login detail Pin
Rajesh R Subramanian11-Jun-08 23:20
professionalRajesh R Subramanian11-Jun-08 23:20 
GeneralRe: Reg: System Login detail Pin
pooja_friends11-Jun-08 23:31
pooja_friends11-Jun-08 23:31 
GeneralRe: Reg: System Login detail Pin
Rajesh R Subramanian12-Jun-08 0:00
professionalRajesh R Subramanian12-Jun-08 0:00 
AnswerRe: Reg: System Login detail Pin
Jagdish V. Bhimbha11-Jun-08 23:09
Jagdish V. Bhimbha11-Jun-08 23:09 
GeneralRe: Reg: System Login detail Pin
pooja_friends11-Jun-08 23:47
pooja_friends11-Jun-08 23:47 
GeneralRe: Reg: System Login detail Pin
Jagdish V. Bhimbha12-Jun-08 0:02
Jagdish V. Bhimbha12-Jun-08 0:02 
Questionerror in Access DB "Attempt to Update or Delete failed." and "Recordset is read-only" Pin
Le@rner11-Jun-08 21:04
Le@rner11-Jun-08 21:04 
AnswerRe: error in Access DB "Attempt to Update or Delete failed." and "Recordset is read-only" Pin
Joseph Marzbani11-Jun-08 23:06
Joseph Marzbani11-Jun-08 23:06 
GeneralRe: error in Access DB "Attempt to Update or Delete failed." and "Recordset is read-only" Pin
Le@rner11-Jun-08 23:41
Le@rner11-Jun-08 23:41 
AnswerRe: error in Access DB "Attempt to Update or Delete failed." and "Recordset is read-only" Pin
David Crow12-Jun-08 4:23
David Crow12-Jun-08 4:23 
QuestionDoubt in Serial communication Pin
kuttiam11-Jun-08 19:47
kuttiam11-Jun-08 19:47 
AnswerRe: Doubt in Serial communication Pin
Cedric Moonen11-Jun-08 20:44
Cedric Moonen11-Jun-08 20:44 
GeneralRe: Doubt in Serial communication Pin
kuttiam11-Jun-08 21:22
kuttiam11-Jun-08 21:22 
GeneralRe: Doubt in Serial communication Pin
Cedric Moonen11-Jun-08 21:42
Cedric Moonen11-Jun-08 21:42 
AnswerRe: Doubt in Serial communication Pin
buntyrolln12-Jun-08 2:09
buntyrolln12-Jun-08 2:09 
AnswerRe: Doubt in Serial communication Pin
buntyrolln12-Jun-08 2:17
buntyrolln12-Jun-08 2:17 
QuestionHow can get Index of Current Save Record in Access Database? Pin
Le@rner11-Jun-08 19:21
Le@rner11-Jun-08 19:21 

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.