RemoteCreateDBInstanceEX warning in VS 2005

G

Guest

I'm getting the following warning when I build a solution in VS 2005 which I
did not get in VS 2003:

At least one of the arguments for 'DataLinks.RemoteCreateDBInstanceEx'
cannot be marshaled by the runtime marshaler. Such arguments will therefore
be passed as a pointer and may require unsafe code to manipulate.

There are several other similar warnings with different prefixes of
RemoteCreateDBInstanceEx.

I can't find any references to RemoteCreateDBInstanceEx in MSDN help or by a
Google search. Any ideas?

Thanks,
Rich Wood
 
K

Kevin Yu [MSFT]

Hi Rich,

Based on my research, RemoteCreateDBInstanceEx method is a member of the
DataLinks class which exists in the MSDASC library. Are you interoping the
MSDASC library in your application? Please check the following links for
more information on this method.

http://www.webtropy.com/articles/art14-2.asp?Interop=MSDASC

http://www.dotnet2themax.com/dotnetbrowser/ShowMember.aspx?asm=vjswfccw&ns=D
ATALib&type=DataLinks&member=RemoteCreateDBInstanceEx(System.Guid,System.Obj
ect,System.UInt32,System.String,DATALib._COSERVERINFO;vjswfccw,System.UInt32
,System.Guid,System.Object,System.Int32)

If you're using this method in C#, it's better to declare the method like
the following:

public virtual void RemoteCreateDBInstanceEx(ref System.Guid clsidProvider,
object pUnkOuter, uint dwClsCtx, string pwszReserved, ref
DATALib._COSERVERINFO pServerInfo, uint cmq, ref System.Guid rgpIID, Out
object rgpItf, Out int rghr)

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
G

Guest

Hi Kevin,

Thanks for the response. I recompiled and the warnings went away.

Thanks,
Rich Wood
 
K

Kevin Yu [MSFT]

You're welcome, Rich.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top