1

I've written a small test COM dll in c# and registered it. I would like to call this from Clarion.

So far in clarion I have the following code

?OLE{PROP:Create} = 'test.test_COM'
oc:MicData = ?OLE{ 'SayHello("myname")' }

The problem I'm having is there is a class testClass_COM and the function SayHello actually lies in the class. How can I access the function or create an object in clarion with the class testClass_COM and access the function that way.

Thanks in advance for any help

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
Thomas Snyman
  • 11
  • 1
  • 4

1 Answers1

1

The code you show says that the class is called test_COM but then you say the class is called testClass_COM:

?OLE{PROP:Create} = 'test.testClass_COM'
oc:MicData = ?OLE{ 'SayHello("myname")' }

anyway I will enable errors like this to get more details on what is going on:

?OLE{PROP:Create} = 'test.testClass_COM'
?Ole{PROP:ReportException} = true
oc:MicData = ?OLE{ 'SayHello("myname")' }
ProgrammerV5
  • 1,915
  • 2
  • 12
  • 22