Re: C# - Problem to receive data from a C++ Dll
- From: "Gandalf" <Gandalf@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Mar 2005 08:33:02 -0800
Hi,
You are probably right but I don't know which type of variable I can use.
I'm asking me something else also : the dll I'm using is a dll which was
created by embedded Visual C++ 3.0 and I want to use it on a Pocket PC 2003
device....
I know that eVC++3.0 is compatible with Pocket PC 2002 but I don't know if
it's compatible with Pocket PC 2003.
"Tegdeep" wrote:
> I'm not too sure about this, but are you sure you can convert a string
> array to a single char array?
>
> This is what I see from your code:
> "extern "C" void GetSN(TCHAR** pData)" <--takes a pointer to a TCHAR
> array
>
> string[] valueStr = new string[6]; <-- a string array
> ....
> GetSN(ref valueStr) <-- you're sending a string array by reference
> (pointer to a pointer to a pointer to a character....)
>
> The exception means that the invoked method is not supported.
> Basically, it is not recognising your function GetSN.
>
> Like I said, I'm not certain about this. But you can look into your
> code and verify this.
>
>
.
- Follow-Ups:
- Re: C# - Problem to receive data from a C++ Dll
- From: Tegdeep
- Re: C# - Problem to receive data from a C++ Dll
- Prev by Date: Create and Excel file and edit its cell values from a template...
- Next by Date: Re: DirectoryInfo....folder size??
- Previous by thread: Create and Excel file and edit its cell values from a template...
- Next by thread: Re: C# - Problem to receive data from a C++ Dll
- Index(es):
Relevant Pages
|