dbTalk Databases Forums  

getting started with DSO in C#

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss getting started with DSO in C# in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
wg
 
Posts: n/a

Default getting started with DSO in C# - 01-20-2004 , 07:26 PM






hi,

i was wondering if there were any guides/examples for getting started
with DSO in C#. i'm new to both DSO and C# (coming from C++ and java --
no COM). i've tried using tlbimp, but i run across the following error:

$ TlbImp "c:\Program Files\Common Files\Microsoft Shared\DSO\msmddo.dll"
/out:Microsoft.SQLServer.DSO.dll
Microsoft (R) .NET Framework Type Library to Assembly Converter 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

TlbImp warning: Type library importer has encountered an interface not
derived from IUnknown: _HiddenInterface.
Type library imported to c:\temp\dts\Microsoft.SQLServer.DSO.dll

is this the wrong DLL to attempt to wrap?

does anyone have pointers to working skeleton C# code for using DSO,
including how to create the RCW for the appropriate DSO dll?

thanks!

-wg

Reply With Quote
  #2  
Old   
wg
 
Posts: n/a

Default Re: getting started with DSO in C# - 01-20-2004 , 09:25 PM






actually, i don't see that error message when i tlbimp msmddo80.dll --
is it adequate to reference the RCW for this specific version of the
DLL? what's the general rule for stuff like this?

my simple test code (just getting the server name and version) seems to
work, at least. =)

wg wrote:

Quote:
hi,

i was wondering if there were any guides/examples for getting started
with DSO in C#. i'm new to both DSO and C# (coming from C++ and java --
no COM). i've tried using tlbimp, but i run across the following error:

$ TlbImp "c:\Program Files\Common Files\Microsoft Shared\DSO\msmddo.dll"
/out:Microsoft.SQLServer.DSO.dll
Microsoft (R) .NET Framework Type Library to Assembly Converter
1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

TlbImp warning: Type library importer has encountered an interface not
derived from IUnknown: _HiddenInterface.
Type library imported to c:\temp\dts\Microsoft.SQLServer.DSO.dll

is this the wrong DLL to attempt to wrap?

does anyone have pointers to working skeleton C# code for using DSO,
including how to create the RCW for the appropriate DSO dll?

thanks!

-wg

Reply With Quote
  #3  
Old   
wg
 
Posts: n/a

Default Re: getting started with DSO in C# - 01-21-2004 , 01:03 PM



looks like this error message happens the first time i tlbimp either
msmddo80.dll or msmddo.dll, but not the second. any idea why that might
be happening? anyway, anyone have a pointer to how to get started with DSO?

thanks!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.