Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / streambufffer problem

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. streambufffer problem
#4128
Posted by: chot 2004-05-16 01:55:56
why wont the following code work:

wxStreamBuffer *buff = new wxStreamBuffer(wxStreamBuffer::write);
wxString temp("test");
buff->Write(temp.c_str, temp.Length());

when i test the length of buff (Tell()) it says its 0 bytes.
this works when the buffer is connected to a stream.

the reason for why im doing this is that i want to send this buffer to my buffer that is connected to a stream.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2022-12-2  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0