Re: Newbie question: COM programming and linking to Windows libraries

2009-03-12 Thread Sergey Gromov
Thu, 12 Mar 2009 17:12:41 -0400, Patrick Kristiansen wrote: > The compiler fails with the following error: > > setwallp.obj(setwallp) > Error 42: Symbol Undefined _coinitial...@4 > --- errorlevel 1 The implib doesn't produce acceptable results for Windows system DLLs. It does cre

Re: Newbie question: COM programming and linking to Windows libraries

2009-03-12 Thread Patrick Kristiansen
jicman Wrote: > Patrick Kristiansen Wrote: > > > Hi > > > > I've been trying out D lately, and I really love it. I use the Tango > > library at the moment, and I wanted to do some simple COM programming, > > which I'm also a newbie at, just to get more acquainted with Windows > > programming

Re: Newbie question: COM programming and linking to Windows libraries

2009-03-11 Thread jicman
Patrick Kristiansen Wrote: > Hi > > I've been trying out D lately, and I really love it. I use the Tango library > at the moment, and I wanted to do some simple COM programming, which I'm also > a newbie at, just to get more acquainted with Windows programming in D. > > What I want to do is re

Re: Newbie question: COM programming and linking to Windows libraries

2009-03-11 Thread Denis Koroskin
On Thu, 12 Mar 2009 00:31:33 +0300, Patrick Kristiansen wrote: Hi I've been trying out D lately, and I really love it. I use the Tango library at the moment, and I wanted to do some simple COM programming, which I'm also a newbie at, just to get more acquainted with Windows programming

Re: Newbie question: COM programming and linking to Windows libraries

2009-03-11 Thread Daniel Keep
Patrick Kristiansen wrote: > ... > > Now, this is probably obvious to some people - but not to me. Why doesn't > this work? Why does OPTLINK fail and tell me that the format of the .lib file > is wrong? Is it because Digital Mars compilers produce .lib files in a > different format? Is it bec

Re: Newbie question: COM programming and linking to Windows libraries

2009-03-11 Thread Jarrett Billingsley
On Wed, Mar 11, 2009 at 5:31 PM, Patrick Kristiansen wrote: > Apparently, one of the first things to do is call CoInitialize(...), and > this is where my problem arises. That's funny, I've never had to call it when using DirectX interfaces. Maybe it's something peculiar to DirectX? > CoInitia

Newbie question: COM programming and linking to Windows libraries

2009-03-11 Thread Patrick Kristiansen
Hi I've been trying out D lately, and I really love it. I use the Tango library at the moment, and I wanted to do some simple COM programming, which I'm also a newbie at, just to get more acquainted with Windows programming in D. What I want to do is relatively simple I think. I want to use the