Re: How to COM interfaces work

2017-03-18 Thread evilrat via Digitalmars-d-learn
On Sunday, 19 March 2017 at 03:27:28 UTC, StarGrazer wrote: I'd just like to get some conformation on the process so at least I know I'm headed in the right direction. The project is pretty complex and most of the stuff is done in compile time code. What debug shows? If CoCreateInstance an

Re: How to COM interfaces work

2017-03-18 Thread StarGrazer via Digitalmars-d-learn
On Sunday, 19 March 2017 at 03:10:02 UTC, Adam D. Ruppe wrote: On Sunday, 19 March 2017 at 02:04:53 UTC, StarGrazer wrote: If I use it as a pointer in to the the D interface equivalent, it crashes as the value is not pointing to anything valid. What's the code look like? What interface too?

Re: How to COM interfaces work

2017-03-18 Thread StarGrazer via Digitalmars-d-learn
On Sunday, 19 March 2017 at 02:45:48 UTC, evilrat wrote: On Sunday, 19 March 2017 at 02:04:53 UTC, StarGrazer wrote: I have a COM interface that is dynamically created using invoke and such. One of the functions returns an interface. It is just a value of IUnknown or whatever. If I use it a

Re: How to COM interfaces work

2017-03-18 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 19 March 2017 at 02:04:53 UTC, StarGrazer wrote: If I use it as a pointer in to the the D interface equivalent, it crashes as the value is not pointing to anything valid. What's the code look like? What interface too?

Re: How to COM interfaces work

2017-03-18 Thread StarGrazer via Digitalmars-d-learn
On Sunday, 19 March 2017 at 02:45:48 UTC, evilrat wrote: On Sunday, 19 March 2017 at 02:04:53 UTC, StarGrazer wrote: I have a COM interface that is dynamically created using invoke and such. One of the functions returns an interface. It is just a value of IUnknown or whatever. If I use it a

Re: How to COM interfaces work

2017-03-18 Thread evilrat via Digitalmars-d-learn
On Sunday, 19 March 2017 at 02:04:53 UTC, StarGrazer wrote: I have a COM interface that is dynamically created using invoke and such. One of the functions returns an interface. It is just a value of IUnknown or whatever. If I use it as a pointer in to the the D interface equivalent, it cras

How to COM interfaces work

2017-03-18 Thread StarGrazer via Digitalmars-d-learn
I have a COM interface that is dynamically created using invoke and such. One of the functions returns an interface. It is just a value of IUnknown or whatever. If I use it as a pointer in to the the D interface equivalent, it crashes as the value is not pointing to anything valid. What do