TheMillionDollarMan
Programmer
Hi,
We have an application written in C++. We have exposed some of the objects in a COM dll.
Now when the VB application calls one of the methods in the COM dll that returns a NULL the VB application blows up.
Normally when using the same method in C++ we can handle the NULL return type no problem.
How can we handle the null return type?
1. Change all of the methods in the C++ object so that they never return a null.
2. set one of the project configurations? NMAKE?
3. Avoid the VB application calling the NULL returning methods. Not feasible as its a distributed software component.
I would like some suggestions as there are 1000's of methods and I don't want to have to code the
return MethodMayReturnNull() = NULL : 0 : MethodMayReturnNull();
Thanks..