Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: What library is needed to link with IVdsDiskOnline

HTVi
TV Discussion Newsgroups

What library is needed to link with IVdsDiskOnline
addressmadan 12/2/2008 6:46:09 AM
Hi All,
I have written a small program which will load a VDS Service on Windows
Server 2008 and then it will check for any Offline disks. If the disks are
offline, then I'am making them Online using the VDS's API
IVdsDiskOnline::Online();

But, I'am getting the following link error:
error LNK2001: unresolved external symbol _IID_IVdsDiskOnline

I have downloaded the Platform SDK for Windows Server 2008 and gave proper
paths to the libraries in that for the program to link correctly.

MSDN says that VDS (Virtual Disk Service) requires "uuid.lib". To quench my
curiosity, I have opened the uuid.lib in a binary editor and to my surprise
found that there is no definition for IVdsDiskOnline() interface. MSDN says
that this API is only for Windows Server 2008. But I have already downloaded
the Platform SDK for Windows Server 2008!

So, why then the link error is appearing during build?
Is it because the Platform SDK for Windows Server 2008 is not having the
required definition or some other problem?

Wonder, if anyone has solved this problem or faced it atleast.
Please help me.

Regards,
Madan Mohan Cheemakurthi
Re: What library is needed to link with IVdsDiskOnline
"Chris P." <msdn[ at ]chrisnet.net> 12/2/2008 4:47:37 PM
On Mon, 1 Dec 2008 22:46:09 -0800, addressmadan wrote:

[Quoted Text]
> I have written a small program which will load a VDS Service on Windows
> Server 2008 and then it will check for any Offline disks. If the disks are
> offline, then I'am making them Online using the VDS's API
> IVdsDiskOnline::Online();
>
> But, I'am getting the following link error:
> error LNK2001: unresolved external symbol _IID_IVdsDiskOnline

I don't see what this has to do with the Windows Media SDK.

Instead of using IID_IVdsDiskOnline try using __uuidof(IVdsDiskOnline)

--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
Re: What library is needed to link with IVdsDiskOnline
"Chris P." <msdn[ at ]chrisnet.net> 12/2/2008 4:53:13 PM
On Tue, 2 Dec 2008 11:47:37 -0500, Chris P. wrote:

[Quoted Text]
> On Mon, 1 Dec 2008 22:46:09 -0800, addressmadan wrote:
>
>> I have written a small program which will load a VDS Service on Windows
>> Server 2008 and then it will check for any Offline disks. If the disks are
>> offline, then I'am making them Online using the VDS's API
>> IVdsDiskOnline::Online();
>>
>> But, I'am getting the following link error:
>> error LNK2001: unresolved external symbol _IID_IVdsDiskOnline
>
> I don't see what this has to do with the Windows Media SDK.
>
> Instead of using IID_IVdsDiskOnline try using __uuidof(IVdsDiskOnline)

Not sure what SDK you think your using or if you didn't search uuid.lib
very well but I found the interface name in question defined there at
offset 0x2b980.

--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen