Sign in to follow this  
Followers 0
Guest leems

Visual C++ and compolet

1 post in this topic

Hi, I'm currently developing a test program in Visual C++ 6.0 using the Compolet Trial Version 2.0. The classwizard has converted all the functions for me and I'm able to use most of the functions except those involving data type VARIANT. For example, the readArea method of SYSMAC CS1 compolet is translated as readArea(long Type, long Offset, long Size, const VARIANT &RetValType). In my program, I would like to read from memory area CIO, address 1, hence my code is as follows: VARIANT varTest; OLECHAR len = 8; varTest.vi = VT_BSTR; varTest.bstrVal = SysAllocString(&len); m_cs1.readArea(0xB00000, 1, 1, varTest); When I execute this program, I get the error message "Type mismatch". Any idea why? Or any website or contact which can help me out? Thanks in advance.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0