From: Kevin W. <ke...@me...> - 2001-12-06 01:06:57
|
I notice the style of the member variable, are you using MS Visual C++ ? If so, and the CString is a MS Foundation Classes CString, you use either m_Edit1.getBuffer( ) or cast the CString to a const char* : (const char*)m_Edit1 both of which return a pointer to a null-terminated character string. Kev. ----- Original Message ----- From: Christian Wallukat <Chr...@vo...> To: CPP-Maillinglist (E-Mail) <dev...@li...> Sent: Wednesday, December 05, 2001 3:09 PM Subject: [Dev-C++] (no subject) > Hi List, > > > I want to sent an UDP Datagram via TCP... > > The send and recive function works properly in a console app... > > Now i want to make a GUI for that... > > > > The problem is that the editfield in my application is a cstring (m_Edit1), > but my app needs a nullterminated string... > > If I convert the CString to a nullterminated string I get nothing ... > > If I write strcpy(szSendString, "hjsdfhs\0"); it works .... > > > > > I have many things tryed but nothing work... > > > Did you have an Idea ??? > > What can I do ? > > > > > Kind regrads > > > Christian > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |