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

cbuilder equivalent

0 views
Skip to first unread message

Jeff Kish

unread,
Nov 4, 2005, 12:28:37 PM11/4/05
to
Hi.
I'm trying to get an ocx to display in a window of my choosing
dynamically.
In cbuilder this happens when you just drop it on the form (after
importing the control, binding it etc).
I can do the binding etc in borland 5.02.

What can I do in 5.02 that is the equivalent of dropping it on the
form in cbuilder? I can't put it in a dialog.
Thanks
Jeff Kish

Sebastian Ledesma [Solidyne Labs]

unread,
Nov 4, 2005, 2:21:37 PM11/4/05
to
Hi Jeff:

I'm also learning something about ActiveX/OCX.
I also downloaded the OLEWizard. Since I was hurried, i switched to VC++ 6,
but after that I'm coming back to implement some ActiveX in BC502+OWL.
I was also considering to extend my resource Workshop addon to support some
ActiveX.
Currently the easiest way to insert an ActiveX control is to open the .RC
file in text mode and add it manually.
For example for adding a ShocWave control just add:

CONTROL "",IDC_SHOCKWAVEFLASH1, "{D27CDB6E-AE6D-11CF-96B8-444553540000}",
WS_TABSTOP,192,7,237,148
in your dialog definition.

When i have a more completed example I will push in my personal page
(www.solidyne1.com/sebas)

Saludos
Sebastian

"Jeff Kish" <jeff...@mro.com> escribió en el mensaje
news:mf6nm19dbfn4mr2qc...@4ax.com...

Jeff Kish

unread,
Nov 4, 2005, 2:48:13 PM11/4/05
to
On Fri, 4 Nov 2005 16:21:37 -0300, "Sebastian Ledesma [Solidyne Labs]"
<labo[no_sp@m]solidyne1.com> wrote:

>Hi Jeff:
>
>I'm also learning something about ActiveX/OCX.
>I also downloaded the OLEWizard. Since I was hurried, i switched to VC++ 6,
>but after that I'm coming back to implement some ActiveX in BC502+OWL.
>I was also considering to extend my resource Workshop addon to support some
>ActiveX.
>Currently the easiest way to insert an ActiveX control is to open the .RC
>file in text mode and add it manually.
>For example for adding a ShocWave control just add:
>
> CONTROL "",IDC_SHOCKWAVEFLASH1, "{D27CDB6E-AE6D-11CF-96B8-444553540000}",
>WS_TABSTOP,192,7,237,148
>in your dialog definition.
>
>When i have a more completed example I will push in my personal page
>(www.solidyne1.com/sebas)
>
>Saludos

<snip>
Thanks.
Can I get this displayed in a Window rather than a dialog?
Not sure how to associate it to a window.. I mean I think you use
these:
Function Action
FormatMessage Loads and formats a message-table entry.
LoadAccelerators Loads an accelerator table.
LoadBitmap Loads a bitmap resource.
LoadCursor Loads a cursor resource.
LoadIcon Loads an icon resource.
LoadImage Loads an icon, cursor, bitmap, or enhanced metafile
resource.
LoadMenu Loads a menu resource.
LoadString Loads a string-table entry.

How could I use this to load an OCX in a window rather than a dialog?
Jeff Kish

Ivar Suneson

unread,
Dec 14, 2005, 9:25:09 PM12/14/05
to
Hi,

As I pointed out in another answer, why not create a DLL in C++Builder. A
DLL that acts as an interface to the ActiveX.
You can then call that DLL from your Borland 5.02 application.

/Ivar

"Jeff Kish" <jeff...@mro.com> skrev i meddelandet
news:mf6nm19dbfn4mr2qc...@4ax.com...

Jeff Kish

unread,
Dec 15, 2005, 2:03:33 PM12/15/05
to
On Thu, 15 Dec 2005 03:25:09 +0100, "Ivar Suneson" <iw...@iware.se>
wrote:

heh heh... yes it was a while since this was last posted!
I have put the code in a cbuilder form, and hashed out most of the
problems, and called it from borland.

thanks.

Oh.. I'd like to be able to communicate between the interface and the
rest of the app (cbuilder and 5.02). I was thinking about using char*
parameters that are xml.
Any comments?

Thanks again
and if you celebrate, have a happy holiday.
Jeff Kish

Ivar Suneson

unread,
Dec 16, 2005, 11:28:52 PM12/16/05
to
Hi,

I think it would be ok if you find that you can benefit of XML.
Builder has an XML handler, under the Internet tab, that I use. If you do
not like that one there are more out there.

/Ivar
"Jeff Kish" <jeff...@mro.com> skrev i meddelandet

news:edf3q1tfmqg6if0vv...@4ax.com...

computergeek925

unread,
Dec 23, 2005, 11:11:11 AM12/23/05
to
Our Com+ application only partially works with the Borland C++ Builder
and so far cannot find any answers on why. Can you help?
0 new messages