Click here to Skip to main content
15,896,606 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionExport datagrid to excel Pin
mayhem_rules6-Apr-06 23:51
mayhem_rules6-Apr-06 23:51 
AnswerRe: Export datagrid to excel Pin
Greeky7-Apr-06 1:40
Greeky7-Apr-06 1:40 
QuestionHow do you break up any Boolean Algebra expression into all possible result? Pin
Regardt6-Apr-06 23:50
Regardt6-Apr-06 23:50 
QuestionInvisible Buttons........ Pin
daviiie6-Apr-06 23:42
daviiie6-Apr-06 23:42 
Questionhow to edit & delete in gridview Pin
Amit Agarrwal6-Apr-06 22:01
Amit Agarrwal6-Apr-06 22:01 
QuestionLaptop Pin
ADY0076-Apr-06 21:13
ADY0076-Apr-06 21:13 
AnswerRe: Laptop Pin
albCode6-Apr-06 23:15
albCode6-Apr-06 23:15 
QuestionHow to declare a DLL function in VB.NET? Urgent need help! Pin
Ling Chen Wu6-Apr-06 19:30
Ling Chen Wu6-Apr-06 19:30 
Hi,

I need to call a dll function but have no idea how to declare the function in VB.NET

In the .h file, it is declare as follows:

int CALLBACK gscBsiGcReadTagList(
	IN     UTILCardHandle	hCard,    /* Card communication handle */
	IN     unsigned char*	usAID,	  /* Container AID */ 
	IN     unsigned int	unAIDLen, /* Container AID length */
	OUT    GCTag*	        pTagArray,/* Array of tags */
	INOUT  unsigned int*	pnTagNb	  /* Number of tags in array */		
	);


In the C sample code, it is called as follows

void CreateDataInContainer()
{
	long	lResp = BSI_OK;
	unsigned char	usAID[BUFSIZ];
	unsigned int	unAIDLen=0;
	char	 szLecture[BUFSIZ];	
	GCTag    ucTag=0;
	unsigned int	unTag=1;
	unsigned char	usValue[500]; 
	unsigned int 	unValueLen=0; 
    
	printf ("\ngscBsiGcDataCreate");

	unAIDLen = sizeof (usAID);
	GetContainerAID ( usAID, &unAIDLen);

	GetString ("\nEnter Tag", szLecture, sizeof (szLecture));
	sscanf (szLecture, "%d", &unTag);

	ucTag = (char)unTag;

	GetString ("\nEnter Data Value ", szLecture, sizeof (szLecture));
	strcpy ((char *)usValue, szLecture);
	unValueLen = strlen (szLecture);

	printf("\nSize of value=%d",unValueLen);

	lResp = gscBsiGcDataCreate(
		hCard,				
		usAID,			
		unAIDLen,
		ucTag,
		usValue,	
		unValueLen	
		);
	if (lResp != BSI_OK)
	{
		DisplayError(" ... ", lResp);
	}	
	else	
	{
		printf ("\n ... OK\n");
	}
}

So, can anyone help me with the declaration and calling in VB.NET?

Thanks!


Chen Wu

-- modified at 1:33 Friday 7th April, 2006
Questionproblem in dispaly images dynamically Pin
Amit Agarrwal6-Apr-06 18:32
Amit Agarrwal6-Apr-06 18:32 
AnswerRe: problem in dispaly images dynamically Pin
Christian Graus6-Apr-06 19:02
protectorChristian Graus6-Apr-06 19:02 
GeneralRe: problem in dispaly images dynamically Pin
Amit Agarrwal6-Apr-06 19:09
Amit Agarrwal6-Apr-06 19:09 
GeneralRe: problem in dispaly images dynamically Pin
Purple Monk7-Apr-06 2:11
Purple Monk7-Apr-06 2:11 
Questionproblem creating dynamic webchart Pin
uglyeyes6-Apr-06 18:12
uglyeyes6-Apr-06 18:12 
QuestionPower status Pin
Snoot_5435336-Apr-06 12:16
Snoot_5435336-Apr-06 12:16 
AnswerRe: Power status Pin
progload6-Apr-06 12:53
progload6-Apr-06 12:53 
QuestionWeb Browsing with VB Pin
Snoot_5435336-Apr-06 12:15
Snoot_5435336-Apr-06 12:15 
AnswerRe: Web Browsing with VB Pin
Regardt7-Apr-06 1:50
Regardt7-Apr-06 1:50 
GeneralRe: Web Browsing with VB Pin
Regardt7-Apr-06 1:51
Regardt7-Apr-06 1:51 
QuestionIP to IP Pin
ADY0076-Apr-06 11:10
ADY0076-Apr-06 11:10 
AnswerRe: IP to IP Pin
Regardt7-Apr-06 1:01
Regardt7-Apr-06 1:01 
QuestionCreate new Shortcut Pin
kostasdiktia26-Apr-06 8:44
kostasdiktia26-Apr-06 8:44 
AnswerRe: Create new Shortcut Pin
Eric Dahlvang6-Apr-06 11:26
Eric Dahlvang6-Apr-06 11:26 
GeneralRe: Create new Shortcut Pin
kostasdiktia26-Apr-06 12:10
kostasdiktia26-Apr-06 12:10 
GeneralRe: Create new Shortcut Pin
Dave Kreskowiak6-Apr-06 14:13
mveDave Kreskowiak6-Apr-06 14:13 
GeneralRe: Create new Shortcut Pin
kostasdiktia26-Apr-06 15:09
kostasdiktia26-Apr-06 15:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.