Click here to Skip to main content
16,014,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
Peter Sjöström3-Feb-02 23:59
Peter Sjöström3-Feb-02 23:59 
AnswerRe: Expoert advice on MFC TCP/IP sockets, please? Pin
4-Feb-02 0:45
suss4-Feb-02 0:45 
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
4-Feb-02 1:04
suss4-Feb-02 1:04 
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
Peter Sjöström4-Feb-02 1:25
Peter Sjöström4-Feb-02 1:25 
AnswerRe: Expoert advice on MFC TCP/IP sockets, please? Pin
markkuk4-Feb-02 1:46
markkuk4-Feb-02 1:46 
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
Jay Beckert5-Feb-02 11:14
Jay Beckert5-Feb-02 11:14 
Generalscrolling Pin
Chagit3-Feb-02 23:13
Chagit3-Feb-02 23:13 
QuestionHow this is working? Pin
3-Feb-02 22:50
suss3-Feb-02 22:50 
Please look at the follwing code.When I create an object a set of memory location is allocated to that object(item).
Though I am calling within a member function of
Class A the data member of item belongs to the Object(item),
not to the Class A. So data member should be protected
from illegal access (being private and encapsulated within item).
This holds true when I create an object Out side class A.(Get an error that
you cannot access private members).But when
I create an object within A I don't get any
error and I can access an objects private members.

#include "stdafx.h"

class A
{
private:
int data;
public:
static void Test()
{

// data is a private member!
A* item = new A();
int j=item->data =100;
printf("\n %d",j);
}

};
AnswerRe: How this is working? Pin
Paul M Watt3-Feb-02 23:13
mentorPaul M Watt3-Feb-02 23:13 
GeneralSome Code Pin
NikoTanghe3-Feb-02 22:19
NikoTanghe3-Feb-02 22:19 
GeneralRe: Some Code Pin
Joaquín M López Muñoz3-Feb-02 23:37
Joaquín M López Muñoz3-Feb-02 23:37 
GeneralRe: Some Code Pin
NikoTanghe4-Feb-02 0:13
NikoTanghe4-Feb-02 0:13 
GeneralRe: Some Code Pin
Joaquín M López Muñoz4-Feb-02 0:21
Joaquín M López Muñoz4-Feb-02 0:21 
GeneralRe: Some Code Pin
Philip Patrick4-Feb-02 2:05
professionalPhilip Patrick4-Feb-02 2:05 
Generalmy recordset can't add new element Pin
3-Feb-02 22:00
suss3-Feb-02 22:00 
GeneralRe: my recordset can't add new element Pin
Mazdak3-Feb-02 22:22
Mazdak3-Feb-02 22:22 
GeneralRe: my recordset can't add new element Pin
4-Feb-02 9:33
suss4-Feb-02 9:33 
GeneralWav Pin
Chagit3-Feb-02 20:59
Chagit3-Feb-02 20:59 
GeneralRe: Wav Pin
Mazdak3-Feb-02 21:10
Mazdak3-Feb-02 21:10 
GeneralRe: Wav Pin
Paul M Watt3-Feb-02 21:08
mentorPaul M Watt3-Feb-02 21:08 
GeneralThanks, How can i launch the DUN entry dialog in vc program Pin
FayeGolf3-Feb-02 19:51
FayeGolf3-Feb-02 19:51 
GeneralRe: Thanks, How can i launch the DUN entry dialog in vc program Pin
Joaquín M López Muñoz3-Feb-02 21:53
Joaquín M López Muñoz3-Feb-02 21:53 
Generalreversed List Control Pin
Jerome Conus3-Feb-02 19:45
Jerome Conus3-Feb-02 19:45 
GeneralRe: reversed List Control Pin
wangyiming3-Feb-02 20:56
wangyiming3-Feb-02 20:56 
GeneralRe: reversed List Control Pin
Paul M Watt3-Feb-02 21:13
mentorPaul M Watt3-Feb-02 21:13 

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.