Hi,
I wrote a ATL COM executable in VC++ 6.0. The COM server includes a
method to read a data point from a file: (The advantage of COM is
obvious).
STDMETHODIMP ReadOnePoint(BSTR bstrFileName, double data_point)
{
CString cstrFileName = bstrFileName; //Convert to CString
.....
};
It's working well to call the method by an exmample client in VB6. But
when I tried to call the method in a VI (labVIEW 6.1) with ActiveX
automation (simply pass string to bstrFileName), VC++ can't open the
file even although the cstrFileName looks same as the one called by
VB6 in the Watch/Debug Windows of VC++. Seems that something is
hiddenly messed up when I passed string in VI to the COM server. Any
expert knows what is hiding in this?
TIA,
GC