Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

.NET Assembly question

4 views
Skip to first unread message

philippe

unread,
Oct 21, 2009, 10:29:43 AM10/21/09
to
Powerbuilder 10.2, VStudio 2008 SP1

Hi All

According to what I've read, this should be working though I don't do
OCX much at all.

I've created (had created) a DLL in .NET which brings up a window;
currently it's a garbage window we put together for testing. The
project has the 'expose for COM registration' checked, and we used the
regasm command (regasm blah.blah.ComUserControl.dll) to successfully
register.

On the PB side, I've got some *very* basic calling set up

<code>
Int li_rc
oleobject tester
tester = CREATE oleobject
li_rc = tester.ConnectToNewObject("blah.blah.ComUserControl")
messagebox('test', string(li_rc))
Destroy tester
</code>

but I get a -2 return at all times. I'm sure I'm missing something basic
on this but all the digging I've done says I'm actually doing things right.


Anything glaring come out at you guys?

TIA

P.

(if this message comes up more than once, I apologize.. authentication
issues with news server)

Andreas Mykonios

unread,
Oct 26, 2009, 12:20:22 PM10/26/09
to
I think that you must check two options in your assembly. First the
one you mentioned, second in the assmble info the 'Make assembly
COM-Visible'...

Andreas Mykonios.

On 21 Oct 2009 07:29:43 -0700, philippe <pboud_01...@hotmail.com>
wrote:

philippe

unread,
Oct 26, 2009, 4:42:43 PM10/26/09
to
I'll re-visit to ensure they're both checked.

Thks:)

0 new messages