Archive for July, 2008
StringBufferInputStream has been deprecated; the documentation recommends you use StringReader instead. Yet, many stream-related methods in other classes (often those that predate the deprecation) will only accept an InputStream. So, how to send an InputStream that came from an in-memory string?
One easy alternative is to use ByteArrayInputStream.
Following is a sample snippet.
Instead ofÂ
InputStream is = new [...]
Filed under: Java | 3 Comments
Tags: ByteArrayInputStream, StringBufferInputStream
While programming for COM, you must have encountered this annoying “Server Busy” dialog box. This happens when the MFC COM Client is calling some method in the COM Server, that takes a long time to process. Until the method returns, nothing can be done in the client side and this dialog box pops up.
To deal [...]
Filed under: C plus plus, COM | 1 Comment
Tags: OLE Server Busy, COleMessageFilter, AfxOleInit, OleInitialize
Pages
Categories
Archives
Blogroll
-
Recent Posts
- Changing the drag cursor in C#
- Handling System Commands in C#
- Why Comment your code?
- Hide properties inherited from Base class in the PropertyGrid
- Rubber Band / Marquee Selection tool in C#
- A Simple “Print Preview” and “Print” approach in .NET and Java
- How to put combo-boxes into toolbars in Eclipse RCP/Plugin ?
- Alternative to StringBufferInputStream
- How to deal with annoying Server Busy dialog box ?
- BSTR to CString and CString to BSTR Conversion
- Programming Linux Sockets
- Working with COM : Part 3 – Writing COM Client
- Working with COM : Part 2 – Writing your own COM Component
- Working with COM : Part 1 – Basics
- Sleeping Beauty
Unique Hits