Click here to Skip to main content
16,008,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do I move a Static control? Pin
Jaran Nilsen8-May-04 2:50
Jaran Nilsen8-May-04 2:50 
Questionhow to draw ellipse with dashed dotted styles Pin
Arun AC8-May-04 0:38
Arun AC8-May-04 0:38 
AnswerRe: how to draw ellipse with dashed dotted styles Pin
John R. Shaw8-May-04 5:07
John R. Shaw8-May-04 5:07 
Generalcreating CWnd using Create Pin
asif m@hmood7-May-04 23:46
asif m@hmood7-May-04 23:46 
QuestionHelp: How could I deal with this? Pin
GavinWang7-May-04 22:44
GavinWang7-May-04 22:44 
AnswerRe: Help: How could I deal with this? Pin
toxcct7-May-04 23:25
toxcct7-May-04 23:25 
AnswerRe: Help: How could I deal with this? Pin
Prakash Nadar8-May-04 22:55
Prakash Nadar8-May-04 22:55 
GeneralAn unexplained compiler error (C2039) Pin
Anonymous7-May-04 21:45
Anonymous7-May-04 21:45 
hey,

i get a very strange compilation error when compiling these files in .net :

//message.h

class Message
{
public:
void GetMessage();
};

//message.cpp

#include "message.h"

void Message::GetMessage()
{
}

//point.h

#include "message.h"

class Point
{
Message m;

public:
void ShowMessage();
};

//point.cpp

#include "point.h"
#include <winsock2.h>

void Point::ShowMessage()
{
m.GetMessage();
}

void main()
{
}


i get this error:

d:\point.cpp(8) : error C2039: 'GetMessageA' : is not a member of 'Message'
d:\test\message.h(4) : see declaration of 'Message'

as you can see there is indeed no function named GetMessageA but i wrote GetMessage , where did this A come from?!?
if i don't including Winsock2.h everything works fine. what does Winsock2.h have to do with it?
GeneralRe: An unexplained compiler error (C2039) Pin
Rafael Fernández López7-May-04 23:21
Rafael Fernández López7-May-04 23:21 
GeneralRe: An unexplained compiler error (C2039) Pin
GavinWang7-May-04 23:25
GavinWang7-May-04 23:25 
GeneralRe: An unexplained compiler error (C2039) Pin
Rafael Fernández López8-May-04 0:02
Rafael Fernández López8-May-04 0:02 
GeneralRe: An unexplained compiler error (C2039) Pin
Colin Angus Mackay8-May-04 0:31
Colin Angus Mackay8-May-04 0:31 
GeneralRe: An unexplained compiler error (C2039) Pin
Prakash Nadar8-May-04 22:57
Prakash Nadar8-May-04 22:57 
GeneralRe: An unexplained compiler error (C2039) Pin
Anonymous9-May-04 5:01
Anonymous9-May-04 5:01 
QuestionHow to get _DSpreadSheet's point from handle? Pin
wl@syntc.com.cn7-May-04 20:45
wl@syntc.com.cn7-May-04 20:45 
GeneralProtocol Validation Pin
Kannan Ramanathan7-May-04 20:03
Kannan Ramanathan7-May-04 20:03 
Generalrecursive directory searching Pin
Ryan McDermott7-May-04 16:12
Ryan McDermott7-May-04 16:12 
GeneralRe: recursive directory searching Pin
nguyenvhn7-May-04 17:17
nguyenvhn7-May-04 17:17 
GeneralRe: recursive directory searching Pin
Joe Woodbury7-May-04 17:40
professionalJoe Woodbury7-May-04 17:40 
GeneralRe: recursive directory searching Pin
2249177-May-04 19:27
2249177-May-04 19:27 
GeneralRe: recursive directory searching Pin
Joe Woodbury8-May-04 8:36
professionalJoe Woodbury8-May-04 8:36 
GeneralINI File/MFC Pin
ThongNguyen7-May-04 16:07
ThongNguyen7-May-04 16:07 
GeneralRe: INI File/MFC Pin
Joe Woodbury7-May-04 17:43
professionalJoe Woodbury7-May-04 17:43 
GeneralRe: INI File/MFC Pin
Anonymous7-May-04 18:11
Anonymous7-May-04 18:11 
QuestionHow can I calculate??? help Pin
Snyp7-May-04 15:00
Snyp7-May-04 15:00 

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.