J
José Joye
Hello,
I'm having a problem with CCW and method parameters. Some of the parameters
are classes.
It seems that these classes (or at least the properties inside the class)
are not seen from my VB client
Do I have to declare an interface for these classes (eg. TransModes)? If
yes, does anyone know the syntax?
Thanks a lot,
José
Code snippet:
=========
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
[Guid("1930F351-E6B3-4706-8784-562F7B541340")]
public interface _UFSStatusAccess
{
TerminationCode Init (int nTestLevel, out string strErrDescr);
TerminationCode Terminate (out string strErrDescr);
TerminationCode GetTransmissionMode (bool UseCaching, out TransModes
UFSMode, out string strErrDescr);
}
[Serializable]
public enum TerminationCode:int
{
eOK = 0,
eErrXXX = 1,
eErrNoConfirmation = 8901,
eErrInitNotSuccessfull = 8902,
eWngXXX = 189000,
eWngNoCommunication = 189001,
eInfXXX = 28900,
eDBGXXX = 38900
}
[Serializable]
public class TransModes
{
public bool m_Online;
public bool m_MemoryMode;
}
I'm having a problem with CCW and method parameters. Some of the parameters
are classes.
It seems that these classes (or at least the properties inside the class)
are not seen from my VB client
Do I have to declare an interface for these classes (eg. TransModes)? If
yes, does anyone know the syntax?
Thanks a lot,
José
Code snippet:
=========
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
[Guid("1930F351-E6B3-4706-8784-562F7B541340")]
public interface _UFSStatusAccess
{
TerminationCode Init (int nTestLevel, out string strErrDescr);
TerminationCode Terminate (out string strErrDescr);
TerminationCode GetTransmissionMode (bool UseCaching, out TransModes
UFSMode, out string strErrDescr);
}
[Serializable]
public enum TerminationCode:int
{
eOK = 0,
eErrXXX = 1,
eErrNoConfirmation = 8901,
eErrInitNotSuccessfull = 8902,
eWngXXX = 189000,
eWngNoCommunication = 189001,
eInfXXX = 28900,
eDBGXXX = 38900
}
[Serializable]
public class TransModes
{
public bool m_Online;
public bool m_MemoryMode;
}