Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreateWindow Pin
Waldermort24-Jan-07 21:45
Waldermort24-Jan-07 21:45 
AnswerRe: CreateWindow Pin
PJ Arends24-Jan-07 23:42
professionalPJ Arends24-Jan-07 23:42 
GeneralRe: CreateWindow Pin
Waldermort25-Jan-07 18:26
Waldermort25-Jan-07 18:26 
QuestionHow to Insert a CButton into a CListControl ? [modified] Pin
erajsri24-Jan-07 21:21
erajsri24-Jan-07 21:21 
AnswerRe: How to Insert a CButton into a CListControl ? Pin
prasad_som24-Jan-07 21:37
prasad_som24-Jan-07 21:37 
AnswerRe: How to Insert a CButton into a CListControl ? Pin
Hamid_RT25-Jan-07 19:45
Hamid_RT25-Jan-07 19:45 
QuestionFriend function Pin
arun kumar kk24-Jan-07 19:42
arun kumar kk24-Jan-07 19:42 
AnswerRe: Friend function Pin
Stephen Hewitt24-Jan-07 19:53
Stephen Hewitt24-Jan-07 19:53 
Here's a complete example:

// Win32.cpp : Defines the entry point for the application.
//
 
#include "stdafx.h"
#include <windows.h>
 
class CMyClass
{
private:
	void Private() const;
	friend void CallPrivate(const CMyClass &obj); // Declared as a friend.
};
 
void CMyClass::Private() const
{
	MessageBox(NULL, "CMyClass::Private", NULL, MB_OK);
}
 
void CallPrivate(const CMyClass &obj)
{
	obj.Private(); // Calling private function!!!
}
 
int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)
{
	CMyClass mc;
	CallPrivate(mc);
 
	return 0;
}



Steve

AnswerRe: Friend function Pin
Hamid_RT25-Jan-07 19:45
Hamid_RT25-Jan-07 19:45 
QuestionTRACE in vc++ Pin
deeps_cute24-Jan-07 19:14
deeps_cute24-Jan-07 19:14 
AnswerRe: TRACE in vc++ Pin
Waldermort24-Jan-07 21:26
Waldermort24-Jan-07 21:26 
QuestionVC++ [modified] Pin
deeps_cute24-Jan-07 18:56
deeps_cute24-Jan-07 18:56 
QuestionRe: VC++ Pin
prasad_som24-Jan-07 19:08
prasad_som24-Jan-07 19:08 
Questionin vc++ Pin
deeps_cute24-Jan-07 17:38
deeps_cute24-Jan-07 17:38 
AnswerRe: in vc++ Pin
prasad_som24-Jan-07 17:53
prasad_som24-Jan-07 17:53 
AnswerRe: in vc++ Pin
Michael Dunn24-Jan-07 17:53
sitebuilderMichael Dunn24-Jan-07 17:53 
Questioncan any body help me in win32 Pin
amitmistry_petlad 24-Jan-07 17:36
amitmistry_petlad 24-Jan-07 17:36 
AnswerRe: can any body help me in win32 Pin
Blake Miller25-Jan-07 8:53
Blake Miller25-Jan-07 8:53 
GeneralRe: can any body help me in win32 Pin
amitmistry_petlad 28-Jan-07 19:35
amitmistry_petlad 28-Jan-07 19:35 
GeneralRe: can any body help me in win32 Pin
Blake Miller29-Jan-07 4:04
Blake Miller29-Jan-07 4:04 
AnswerRe: can any body help me in win32 Pin
Hamid_RT25-Jan-07 19:45
Hamid_RT25-Jan-07 19:45 
QuestionUsing WMI to get SMART data from my harddrives problem Pin
Outback199924-Jan-07 14:46
Outback199924-Jan-07 14:46 
Questionstrings Pin
zoobiskuit24-Jan-07 14:41
zoobiskuit24-Jan-07 14:41 
AnswerWrong way! [modified] Pin
Mohammad Rastkar24-Jan-07 15:40
Mohammad Rastkar24-Jan-07 15:40 
QuestionRe: strings Pin
David Crow25-Jan-07 3:12
David Crow25-Jan-07 3:12 

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.