Thread overview
Embed Application
May 30, 2007
okibi
May 30, 2007
okibi
May 30, 2007
Regan Heath
May 30, 2007
okibi
May 30, 2007
Bill Baxter
May 30, 2007
Hey,

I was wondering how I would go about putting an application inside of a D program. For example, if I created a window with gtkD, how could I allow a program written in C++ to run inside of that window?

Any ideas would be GREATLY appreciated!

Thanks!
May 30, 2007
okibi Wrote:

> Hey,
> 
> I was wondering how I would go about putting an application inside of a D program. For example, if I created a window with gtkD, how could I allow a program written in C++ to run inside of that window?
> 
> Any ideas would be GREATLY appreciated!
> 
> Thanks!

Is this an incredibly stupid question or does no one want to help me out?
May 30, 2007
okibi Wrote:
> okibi Wrote:
> 
> > Hey,
> > 
> > I was wondering how I would go about putting an application inside of a D program. For example, if I created a window with gtkD, how could I allow a program written in C++ to run inside of that window?
> > 
> > Any ideas would be GREATLY appreciated!
> > 
> > Thanks!
> 
> Is this an incredibly stupid question or does no one want to help me out?

I'd love to help but I have no idea how to even start thinking about how one might do this.

Regan
May 30, 2007
okibi wrote:

> okibi Wrote:
> 
>> Hey,
>> 
>> I was wondering how I would go about putting an application inside of a D program. For example, if I created a window with gtkD, how could I allow a program written in C++ to run inside of that window?
>> 
>> Any ideas would be GREATLY appreciated!
>> 
>> Thanks!
> 
> Is this an incredibly stupid question or does no one want to help me out?

No, there are no stupid questions.

I hope the FAQ helps you:

http://www.digitalmars.com/d/faq.html#omf http://www.digitalmars.com/d/faq.html#cpp_interface http://www.digitalmars.com/d/faq.html#call-cpp-code
May 30, 2007
Jari-Matti Mäkelä Wrote:

> okibi wrote:
> 
> > okibi Wrote:
> > 
> >> Hey,
> >> 
> >> I was wondering how I would go about putting an application inside of a D program. For example, if I created a window with gtkD, how could I allow a program written in C++ to run inside of that window?
> >> 
> >> Any ideas would be GREATLY appreciated!
> >> 
> >> Thanks!
> > 
> > Is this an incredibly stupid question or does no one want to help me out?
> 
> No, there are no stupid questions.
> 
> I hope the FAQ helps you:
> 
> http://www.digitalmars.com/d/faq.html#omf http://www.digitalmars.com/d/faq.html#cpp_interface http://www.digitalmars.com/d/faq.html#call-cpp-code

Thanks for the info! I know people are willing to help, I was just getting frustrated with it as I'm not entirely sure how to accomplish this. If I figure out something, I'll post it.

Thanks!
May 30, 2007
okibi wrote:
> Jari-Matti Mäkelä Wrote:
> 
>> okibi wrote:
>>
>>> okibi Wrote:
>>>
>>>> Hey,
>>>>
>>>> I was wondering how I would go about putting an application inside of a D
>>>> program. For example, if I created a window with gtkD, how could I allow
>>>> a program written in C++ to run inside of that window?
>>>>
>>>> Any ideas would be GREATLY appreciated!
>>>>
>>>> Thanks!
>>> Is this an incredibly stupid question or does no one want to help me out?
>> No, there are no stupid questions.
>>
>> I hope the FAQ helps you:
>>
>> http://www.digitalmars.com/d/faq.html#omf
>> http://www.digitalmars.com/d/faq.html#cpp_interface
>> http://www.digitalmars.com/d/faq.html#call-cpp-code
> 
> Thanks for the info! I know people are willing to help, I was just getting frustrated with it as I'm not entirely sure how to accomplish this. If I figure out something, I'll post it.
> 
> Thanks!

The type of thing you're talking about is what COM is for.  You can use COM for instance to embed Internet Explorer into an app.
D has some support for COM, but I don't know anything about it because I avoid non-portable Windows-specific things.

--bb