473,396 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

RemoteCreateDBInstanceEX warning in VS 2005

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
Nov 17 '05 #1
3 1773
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/art...Interop=MSDASC

http://www.dotnet2themax.com/dotnetb...=vjswfccw&ns=D
ATALib&type=DataLinks&member=RemoteCreateDBInstanc eEx(System.Guid,System.Obj
ect,System.UInt32,System.String,DATALib._COSERVERI NFO;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."

Nov 17 '05 #2
Hi Kevin,

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

Thanks,
Rich Wood

"Kevin Yu [MSFT]" wrote:
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/art...Interop=MSDASC

http://www.dotnet2themax.com/dotnetb...=vjswfccw&ns=D
ATALib&type=DataLinks&member=RemoteCreateDBInstanc eEx(System.Guid,System.Obj
ect,System.UInt32,System.String,DATALib._COSERVERI NFO;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."

Nov 17 '05 #3
You're welcome, Rich.

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

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bas Wassink | last post by:
Hello there, I'm having trouble understanding a warning produced by 'splint', a code-checker. The warning produced is: keywords.c: (in function keyw_get_string) keywords.c:60:31: Released...
2
by: um | last post by:
When the POSIX pthreads library for w32 release 2-2-0 (http://sources.redhat.com/pthreads-win32/) is compiled with VC++6 then it compiles and passes all the benchmark tests in the subdirectory...
0
by: Mart | last post by:
Hi, I have just written (my first) VB.net app using MS Visual Basic 2005 Express Edition Beta. It is fairly simple, it reads some configuration data from an XML file then opens a new window...
34
by: Bob | last post by:
Hi, The compiler gives Warning 96 Variable 'cmdSource' is used before it has been assigned a value. A null reference exception could result at runtime. Dim cmdSource as SQlClient.SQLDataReader...
6
by: Tom McL. | last post by:
I'm trying to move a program that was designed using Visual Studio 2003 and (Visual Basic) into Visual Studio 2005. When it runs I get the following warning in the Error List Window and I'm not...
1
by: Nathan Sokalski | last post by:
Visual Studio 2005 recently stopped generating the *.designer.vb files for my *.aspx and *.ascx files. I am using Service Pack 1, and do not believe I did anything differently than normal prior to...
1
by: Nathan Sokalski | last post by:
Visual Studio 2005 unexpectedly stopped generating the *.designer.vb files for *.aspx and *.ascx files. After a few days of frustration trying to fix this, I noticed that it had the following...
0
by: marathoner | last post by:
I am currently migrating my Visual C++ 6.0 applications to Visual Studio 2005. I am getting compiler errors involving the VS2005's platform SDK. When I removed directory references to that SDK,...
1
by: sahilrekhi | last post by:
Hi i am working on a graphical user interface deisgn programme. when i compile the file i i get the following output with the mentioned errors: 1>------ Rebuild All started: Project: guiq,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.