I am working on my chemical composition and for this reason I need to write a software application to help me display samples under a microscope. This microscope is equipped with xyz nanostructure overlay. The stage is managed using an unmanaged DLL written in VC ++ by the hardware vendor. I could provide you with more details, but let me start with this:
One of the methods in the dll allows me to read the settings for the axis of movement:
C ++ Syntax:
BOOL E7XX_qSVO (int ID, const char* szAxes, BOOL* pbValueArray)
Where BOOL is int 0 or 1 as agreed.
My C # wrapper contains:
[DllImport("E7XX_GCS_DLL.dll", EntryPoint = "E7XX_qSVO")]
public static extern int qSVO(int iId, string sAxes, int []iValArray);
That seems right to me. However, when I try to do something like this in my main application (for requesting axes 1,2 and 3):
Int32 [] _iValues = new Int32[3];
E7XXController.qSVO(m_iControllerID, "123", _iValues);
I sequentially get this array:
{6, 0, 10}, {0, 0, 0} . :
BOOL E7XX_SVO (int ID, const char* szAxes, const BOOL* pbValueArray)
...
dll . , BOOL...
, , , ?
Kris Janssen