Click here to Skip to main content
15,917,859 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWinsock and MFC Pin
sweep12320-Apr-05 4:28
sweep12320-Apr-05 4:28 
GeneralRe: Winsock and MFC Pin
Manikandan20-Apr-05 5:37
Manikandan20-Apr-05 5:37 
GeneralRe: Winsock and MFC Pin
sweep12320-Apr-05 5:45
sweep12320-Apr-05 5:45 
GeneralRe: Winsock and MFC Pin
Manikandan20-Apr-05 5:51
Manikandan20-Apr-05 5:51 
GeneralRe: Winsock and MFC Pin
Tom Wright20-Apr-05 9:28
Tom Wright20-Apr-05 9:28 
GeneralLimit Bandwith using WinSock2 Pin
bigbby20-Apr-05 4:16
bigbby20-Apr-05 4:16 
GeneralRe: Limit Bandwith using WinSock2 Pin
cmk20-Apr-05 10:05
cmk20-Apr-05 10:05 
GeneralRegular DLL syntax question Pin
odiesback20-Apr-05 3:53
odiesback20-Apr-05 3:53 
I have a data type from class CLine which is derived from a
CObject.

since this line will not compile:

extern "C" __declspec(dllexport)void LineSerialize(CArchive& ar, CLine* pLine)

I changed it to:

extern "C" __declspec(dllexport)void LineSerialize(CArchive& ar, CObject* pLine)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CLine* lLine;
lLine = (CLine*)(CObject*)pLine;
lLine->Serialize(ar);

}

but it does not look so elegant to me. is this OK?

Thanks a lot,

Odie
GeneralRe: Regular DLL syntax question Pin
User 58385220-Apr-05 4:06
User 58385220-Apr-05 4:06 
GeneralRe: Regular DLL syntax question Pin
odiesback20-Apr-05 4:25
odiesback20-Apr-05 4:25 
GeneralRe: Regular DLL syntax question Pin
CatMan6120-Apr-05 11:26
CatMan6120-Apr-05 11:26 
GeneralAbout STN_CLICKED notification message Pin
coffeecoffee20-Apr-05 3:15
coffeecoffee20-Apr-05 3:15 
GeneralRe: About STN_CLICKED notification message Pin
James R. Twine20-Apr-05 7:54
James R. Twine20-Apr-05 7:54 
GeneralUnix Tutorials Pin
Neelesh K J Jain20-Apr-05 2:56
Neelesh K J Jain20-Apr-05 2:56 
GeneralRe: Unix Tutorials Pin
markkuk20-Apr-05 6:27
markkuk20-Apr-05 6:27 
Generalmfc filepath problem Pin
tordyvel20-Apr-05 2:47
tordyvel20-Apr-05 2:47 
GeneralRe: mfc filepath problem Pin
David Crow20-Apr-05 3:25
David Crow20-Apr-05 3:25 
GeneralRe: mfc filepath problem Pin
22491720-Apr-05 4:03
22491720-Apr-05 4:03 
GeneralCRecordset and text columns Pin
CatMan6120-Apr-05 2:19
CatMan6120-Apr-05 2:19 
GeneralRe: CRecordset and text columns Pin
22491720-Apr-05 6:32
22491720-Apr-05 6:32 
GeneralRe: CRecordset and text columns Pin
CatMan6120-Apr-05 11:18
CatMan6120-Apr-05 11:18 
GeneralRe: CRecordset and text columns Pin
CatMan6120-Apr-05 11:28
CatMan6120-Apr-05 11:28 
GeneralMap ListBox to CCheckListBox Pin
Yaron Abershitz20-Apr-05 2:04
Yaron Abershitz20-Apr-05 2:04 
GeneralRe: Map ListBox to CCheckListBox Pin
David Crow20-Apr-05 2:22
David Crow20-Apr-05 2:22 
GeneralUnderline characters in Menu Pin
teresazevedo20-Apr-05 1:59
teresazevedo20-Apr-05 1:59 

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.