Click here to Skip to main content
15,887,280 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTrue DBGrid in VC++ Pin
liur1723-Jan-07 2:43
liur1723-Jan-07 2:43 
AnswerRe: True DBGrid in VC++ Pin
ThatsAlok23-Jan-07 18:45
ThatsAlok23-Jan-07 18:45 
GeneralRe: True DBGrid in VC++ Pin
liur1723-Jan-07 21:08
liur1723-Jan-07 21:08 
Questioncheck whether user logged in to Local system/domain Pin
sach!!23-Jan-07 2:33
sach!!23-Jan-07 2:33 
AnswerRe: check whether user logged in to Local system/domain Pin
David Crow23-Jan-07 3:03
David Crow23-Jan-07 3:03 
GeneralRe: check whether user logged in to Local system/domain Pin
sach!!23-Jan-07 3:17
sach!!23-Jan-07 3:17 
QuestionRe: check whether user logged in to Local system/domain Pin
David Crow23-Jan-07 3:40
David Crow23-Jan-07 3:40 
AnswerRe: check whether user logged in to Local system/domain Pin
James R. Twine23-Jan-07 4:06
James R. Twine23-Jan-07 4:06 
   I believe that you can use ::GetUserNameEx(...) with a name format parameter of NameSamCompatible.  That format will reutrn the username in DOMAIN\USERNAME format, and I believe that if you are logged in locally, the DOMAIN portion will be the Computer Name (See ::GetComputerName(...)/::GetComputerNameEx(...) for the computer name).

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

QuestionProperty Sheets and OnInitialize() Pin
Like2Byte23-Jan-07 2:31
Like2Byte23-Jan-07 2:31 
AnswerRe: Property Sheets and OnInitialize() Pin
David Crow23-Jan-07 3:06
David Crow23-Jan-07 3:06 
QuestionCString to LPCSTR. Pin
uday kiran janaswamy23-Jan-07 1:25
uday kiran janaswamy23-Jan-07 1:25 
AnswerRe: CString to LPCSTR. Pin
Mass Nerder23-Jan-07 1:47
Mass Nerder23-Jan-07 1:47 
GeneralRe: CString to LPCSTR. Pin
uday kiran janaswamy23-Jan-07 1:56
uday kiran janaswamy23-Jan-07 1:56 
GeneralRe: CString to LPCSTR. Pin
James R. Twine23-Jan-07 2:49
James R. Twine23-Jan-07 2:49 
GeneralRe: CString to LPCSTR. Pin
David Crow23-Jan-07 3:09
David Crow23-Jan-07 3:09 
AnswerRe: CString to LPCSTR. Pin
Anilkumar K V23-Jan-07 1:56
Anilkumar K V23-Jan-07 1:56 
AnswerRe: CString to LPCSTR. Pin
Abris23-Jan-07 2:09
Abris23-Jan-07 2:09 
AnswerRe: CString to LPCSTR. Pin
toxcct23-Jan-07 2:21
toxcct23-Jan-07 2:21 
GeneralRe: CString to LPCSTR. Pin
uday kiran janaswamy23-Jan-07 3:05
uday kiran janaswamy23-Jan-07 3:05 
Questionmain() Pin
Anilkumar K V23-Jan-07 1:18
Anilkumar K V23-Jan-07 1:18 
AnswerRe: main() Pin
toxcct23-Jan-07 2:18
toxcct23-Jan-07 2:18 
GeneralRe: main() Pin
David Crow23-Jan-07 3:15
David Crow23-Jan-07 3:15 
GeneralRe: main() Pin
toxcct23-Jan-07 3:16
toxcct23-Jan-07 3:16 
AnswerRe: main() Pin
Waldermort23-Jan-07 2:23
Waldermort23-Jan-07 2:23 
QuestionMicrosoft Outlook: &amp;quot;A Program is trying to send email..&amp;quot; [modified] Pin
Abris23-Jan-07 0:48
Abris23-Jan-07 0:48 

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.