Click here to Skip to main content
15,911,715 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSyntaxiserror in updatecommand Pin
keninfo6-May-07 8:41
keninfo6-May-07 8:41 
AnswerRe: Syntaxiserror in updatecommand Pin
Colin Angus Mackay6-May-07 23:09
Colin Angus Mackay6-May-07 23:09 
QuestionReport Generation in VB Pin
Mohamad Kaifi6-May-07 7:43
Mohamad Kaifi6-May-07 7:43 
QuestionRe: Report Generation in VB Pin
Sachin Pimpale7-May-07 2:29
Sachin Pimpale7-May-07 2:29 
Questionmaking and recording call Pin
aapke_leeye6-May-07 2:53
aapke_leeye6-May-07 2:53 
AnswerRe: making and recording call Pin
Dave Kreskowiak7-May-07 4:12
mveDave Kreskowiak7-May-07 4:12 
QuestionHow to detect if "My documents" or "Internet explorer" is dropped... Pin
re infecta5-May-07 23:47
re infecta5-May-07 23:47 
QuestionC to VB6 Pin
Alex_735-May-07 22:13
Alex_735-May-07 22:13 
I have this code in C gpio.h file:
typedef enum _DIRECTION<br />
{<br />
	DIGITAL_IN = 0,<br />
	DIGITAL_OUT <br />
} DIRECTION;<br />
#endif<br />
typedef int     (__cdecl *GPIO_QUERY)(int pin, DIRECTION dir);<br />
typedef void    (__cdecl *GPIO_CONTROL)(int pin);<br />
static  GPIO_CONTROL    AssertGPIO = NULL;<br />
static  GPIO_CONTROL    DeassertGPIO = NULL;<br />
static  GPIO_QUERY      QueryGPIO = NULL;<br />
// end of declaraton//===========================================================================<br />


//*This code in the gpioapp.c file://
// GPIO sample application program<br />
//<br />
#include "gpio.h"<br />
// Load DLL library (gpiodll.dll) and retrieve export function<br />
	hModule = LoadLibrary("gpiodll.dll");<br />
	AssertGPIO = (GPIO_CONTROL)GetProcAddress(hModule, "AssertGPIO");<br />
	DeassertGPIO = (GPIO_CONTROL)GetProcAddress(hModule, "DeassertGPIO");<br />
	QueryGPIO = (GPIO_QUERY)GetProcAddress(hModule, "QueryGPIO");<br />
	if (QueryGPIO == 0 || AssertGPIO == 0 || DeassertGPIO == 0)<br />
	{<br />
		fprintf(stderr, "Fail to get DLL service");<br />
		FreeLibrary(hModule);<br />
		return 0;<br />
	}<br />
// end of retrieve export function
//===========================================================================
Kindly can you help me translate this to VB6, I want to be able to use the functions AssertGPIO and DeassertGPIO.
Thanks...

AnswerRe: C to VB6 Pin
Christian Graus6-May-07 11:36
protectorChristian Graus6-May-07 11:36 
QuestionRe: C to VB6 Pin
Alex_736-May-07 21:02
Alex_736-May-07 21:02 
AnswerRe: C to VB6 Pin
Christian Graus7-May-07 1:08
protectorChristian Graus7-May-07 1:08 
General[Solved]Re: C to VB6 Pin
Alex_738-May-07 6:11
Alex_738-May-07 6:11 
QuestionLooping Problem - ArgumentOutOfRange - Processes Pin
InfectiousX5-May-07 20:55
InfectiousX5-May-07 20:55 
AnswerRe: Looping Problem - ArgumentOutOfRange - Processes Pin
Dave Kreskowiak6-May-07 5:06
mveDave Kreskowiak6-May-07 5:06 
QuestionMySql Login Pin
LegionFX5-May-07 11:59
LegionFX5-May-07 11:59 
AnswerRe: MySql Login Pin
Paul Conrad5-May-07 12:45
professionalPaul Conrad5-May-07 12:45 
GeneralRe: MySql Login Pin
LegionFX5-May-07 12:51
LegionFX5-May-07 12:51 
GeneralRe: MySql Login Pin
Paul Conrad5-May-07 13:22
professionalPaul Conrad5-May-07 13:22 
GeneralRe: MySql Login Pin
LegionFX6-May-07 0:42
LegionFX6-May-07 0:42 
GeneralRe: MySql Login Pin
Paul Conrad6-May-07 4:05
professionalPaul Conrad6-May-07 4:05 
AnswerRe: MySql Login Pin
P P Vilsad6-May-07 4:51
P P Vilsad6-May-07 4:51 
GeneralRe: MySql Login Pin
LegionFX6-May-07 9:17
LegionFX6-May-07 9:17 
GeneralRe: MySql Login Pin
LegionFX6-May-07 9:30
LegionFX6-May-07 9:30 
GeneralRe: MySql Login Pin
Paul Conrad6-May-07 16:50
professionalPaul Conrad6-May-07 16:50 
GeneralRe: MySql Login Pin
P P Vilsad7-May-07 0:44
P P Vilsad7-May-07 0:44 

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.