RE: What's about the " PInvoke Meta data" error? by pbo
pbo
Tue Nov 04 01:56:21 CST 2003
Hi,
Thanks for your suggestion ,
I wrote a small test program that call 2 Dlls .
An error occurs when one of the functions in the Dll try
to retrieve data from the database using sql statements .
The return error message is "PInvoke Meta data ".
Regards,
PBO
>Hi,
>Thanks for you reply,
>As your description, all you code is written in managed
code, so there is
>no platform invoke in your project or they just not
related to this
>problem, right?
- Yes it is. In my code is no problem about the PInvoke
meta data.
>Also , since this problem is occurred when connecting to
the SQL server,
>could you show me some code snippet on connecting the
SQL Sever?
- My connection string is normal SQL-2000 connection as
like --> "Provider=SQLOLEDB.1;Initial Catalog=local;Data
Source=local\source;uid=myname;password=sa;"
>Also, could you give me the complete error information?
>Thanks!
>
>
>Best regards,
>
>Ying-Shen Yu [MSFT]
>Microsoft Online Partner Support
>Get Secure! - www.microsoft.com/security
>
>This posting is provided "AS IS" with no warranties and
confers no rights.
>You should not reply this mail directly, "Online" should
be removed before
>sending, Thanks!
>
>--------------------
>| Content-Class: urn:content-classes:message
>| From: "pbo" <trojan@dis.cc>
>| Sender: "pbo" <trojan@dis.cc>
>| References: <00d201c39d14$647d8400$a001280a@phx.gbl>
><NjIKfkVnDHA.2148@cpmsftngxa06.phx.gbl>
>| Subject: RE: What's about the " PInvoke Meta data"
error?
>| Date: Tue, 28 Oct 2003 20:35:10 -0800
>| Lines: 71
>| Message-ID: <09d601c39dd6$09a694a0$a101280a@phx.gbl>
>| MIME-Version: 1.0
>| Content-Type: text/plain;
>| charset="iso-8859-1"
>| Content-Transfer-Encoding: 7bit
>| X-Newsreader: Microsoft CDO for Windows 2000
>| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>| Thread-Index: AcOd1gmmtJG8PO/zQ8qWkWvo9y/rGg==
>| Newsgroups: microsoft.public.dotnet.framework.adonet
>| Path: cpmsftngxa06.phx.gbl
>| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.adonet:64788
>| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
>| X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
>|
>| Dear Ying-Shen Yu ,
>| Thanks for your advise.
>| I'm coding by VB.NET for Dlls class ( also whole
>| project ) .
>| The project is combined with 1 exe file and 2 Dlls.
>| This error occur when I connect to the SQL-server .
>| When connecting database.
>|
>| I can trace by immed-command for retrieve the real
data .
>| But cann't access data from program testing .
>|
>| Regards,
>|
>| PBO
>|
>| >-----Original Message-----
>| >Hi,
>| >Thanks for your post.
>| >I'm trying to investigate your problem, but I have
>| something unclear,
>| >To my understanding ,you met some errors when platform
>| invoking the
>| >functions inside your Dll from .NET. Could you tell me
>| more about your dll
>| >and that error?
>| >Such as what language are these Dlls written in, C/C++?
Is
>| there anything
>| >special with these Dll?
>| >Could you give me a sample of the unmanaged definition
>| and the managed
>| >definition of you dll function?
>| >The error info you gave me is only a part I couldn't
find
>| a match error to
>| >this, could you give the complete error description
and
>| the exception type
>| >on this error.
>| >
>| >Also I didn't understand the following words
>| >"
>| >Aspite it can run smoothly when compile by step.
>| >Please suggest me how can I test ( or trace ) my
program
>| >by simulate the working function and call inside code.
>| >"
>| >Could you make it clear for me?
>| >Maybe it would be helpful if it is possible to give me
a
>| simple project to
>| >reproduce your problem. Then, I can research on it
>| directly.
>| >
>| >Thanks a lot!
>| >
>| >
>| >
>| >
>| >
>| >
>| >
>| >Best regards,
>| >
>| >Ying-Shen Yu [MSFT]
>| >Microsoft Online Partner Support
>| >Get Secure! - www.microsoft.com/security
>| >
>| >This posting is provided "AS IS" with no warranties
and
>| confers no rights.
>| >You should not reply this mail directly, "Online"
should
>| be removed before
>| >sending, Thanks!
>| >
>| >.
>| >
>|
>
>.
>