Is there any wrong declaration dx_gtsernum for getting serial number of my d4/pci board?

rated by 0 users
This post has 0 Replies | 1 Follower

Top 75 Contributor
Male
Posts 57
Points 934
hruday ranjan mallick Posted: 05-13-2009 12:24 AM

Hello Sir,

I have declared dx_gtsernum as following:

 

private const int GS_SN=0x0000;

 

[DllImport("LIBDXXMT.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention

.Cdecl)]

 

 

private unsafe static extern int dx_gtsernum(int chdev,int GS_SN,string

serial);

and passing the value as follows:

string serial="";

if

(dx_gtsernum(chdev,GS_SN, serial) == 0)

{

here i get serial nhumber...

}

but i get board serial number as blank.

Is there any error there?

pls help.

  • | Post Points: 5
Page 1 of 1 (1 items) | RSS