For Programmers: Free Programming Magazines  


Home > Archive > Clarion > March 2004 > OLE in c55ee reference problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author OLE in c55ee reference problem
Gert Burger

2004-03-26, 11:01 pm

Hey
Im currently trying to use a ocx in ole control. All the functions
that ive tried to call in the form ?ole{'Function(1,2,3)'} worked fine
except for the ones where i need to pass a reference to a variable.

One such function is GetParam(BSTR ParamName,VARIANT * Value) C++
prototype

My code is as follows:
bind('Value',Value)
test = 'GetParam("IPADRESS",&Value)'
result = ?terminal{test}

test is of type string(thought i have tried cstring etc)

The value of test stay unchanged.
I have also verified that the ocx works from C++ examples.

Is the above code correct to pass a string variable by reference?
Any other ideas?

Gert Burger
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com