objects (7,380)


Unload a COM control when working in VB6 IDE

Part of my everyday work is maintaining and extending legacy VB6 applications. A common engine is written in C/C++ and VB6 uses these functions in order to improve performance. When it comes to asyn…


c++ - Ensuring that Exceptions are always сaught

Exceptions in C++ don't need to be caught(no compile time errors) by the calling function. So it's up to developer's judgment whether to catch them using try/catch(unlike in Java). Is there a way o…


testing - What is Object Mocking and when do I need it?

Many people use Mock Objects when they are writing unit tests. What is a Mock Object ? Why would I ever need one? Do I need a Mock Object Framework?…


sql - How to pass a comma separated list to a stored procedure?

So I have a Sybase stored proc that takes 1 parameter that's a comma separated list of strings and runs a query with in in an IN() clause: CREATE PROCEDURE getSomething @keyList varchar(4096) AS SELE…


In C#, why can't a List<string> object be stored in a List<object> variable

It seems that a List object cannot be stored in a List variable in C#, and can't even be explicitly cast that way. List<string> sl=new List<string>(); List<object> ol; ol=sl; results in Cannot implici…


c++ - How to prevent an object being created on the heap?

Does anyone know how I can, in platform-independent C++ code prevent an object from being created on the heap? That is, for a class "Foo", I want to prevent users from doing this: Foo*ptr=new Foo;…


c# - Returning Large Results Via a Webservice

I'm working on a web service at the moment and there is the potential that the returned results could be quite large(> 5mb). It's perfectly valid for this set of data to be this large and the web…



Can I serialize a C# Type object?

I'm trying to serialize a Type object in the following way: Type myType=typeof(StringBuilder); var serializer=new XmlSerializer(typeof(Type)); TextWriter writer=new StringWriter(); serializer.S…


c# - What is the best way to iterate through a strongly-typed generic List<T>?

What is the best way to iterate through a strongly-typed generic List in C#.NET and VB.NET?…


Easy way for Crystal Reports to MS SQL Server Reporting Services conversion

Is there a way to easily convert Crystal Reports reports to Reporting Services RDL format? We have quite a few reports that will be needing conversion soon. I know about the manual process(which is…




array object list how example java from javascript with value