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

C / C++ / MFC

 
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 
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 
Some Code:

//App = SDI

CMyFormView::OnInitialUpdate()
{
//..
//initialise logging
CMainFrame* pMainFrame = (CMainFrame*)AfxGetMainWnd();

//Logging class is an exported class from a dll
//linking is done by making project dependend
pMainFrame->m_Logging.init(&m_RichEditControl,AfxGetResourceHandle());

//fails
pMainFrame->m_Logging.log(IDS_TEST);

//works
m_RichEditControl.SetWindowText("test");
}

bool CLogging::Init(CRichEdit* pRichEdit,HINSTANCE ResourceHandle)
{
//..
AfxSetResourceHandle(ResourceHandle); //to make CString::LoadString() work
m_pRichEdit = pRichEdit;
//..
}

bool CLogging::Log(UINT uID)
{
csString.LoadString(uID);
//..
m_pRichEdit->SetWindowText(csString); //Gives an assert ASSERT(IsWindow()), ptr is valid
}
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 
GeneralC2084 Pin
3-Feb-02 18:13
suss3-Feb-02 18:13 
GeneralRe: C2084 Pin
Paul M Watt3-Feb-02 18:19
mentorPaul M Watt3-Feb-02 18:19 

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.