|Error creating OleControlSite [message #451435]
||Wed, 02 March 2005 03:54
Originally posted by: michael_bishop.rta.nsw.gov.au|
Wondering if someone might be able to help me out with an OleClientSite
I have a 3rd party .exe which registers itself as an OLEServer when it is
A simple Visual Basic program using this COM object runs correctly.
However the same code in Java, using SWT's OleClientSite, gives an
ERROR_CANNOT_CREATE_OBJECT error when it tries to instanciate the
Would anyone know what is going wrong when I use OleClientSite ?
The Visual Basic code and equivalent Java code is attached.
**======================== VB Code
Private Sub Form_Load()
Dim TMCVSClient As Object
Set TMCVSClient = CreateObject("TMCVSClient.TMCVSClientInterface")
Dim Result As Integer
Result = TMCVSClient.SelectCamera("1")
Set TMCVSClient = Nothing
**========================= JAVA Code
Shell shell = new Shell(display);
OleFrame frame = new OleFrame(shell, SWT.NONE);
OleControlSite controlSite = new OleControlSite(frame,
Powered by FUDForum
. Page generated in 0.01343 seconds