i write a c-program for circuit (c-program and circuit are)given below to control it i want to control it by VB
help me how can i do
c-program
#INCLUDE<DOS.H>
#DEFINE BASE 0X378
VOID MAIN()
{
OUTPORTB(BASE,255)
}
THIS PROGRAM SEND A BYTE OF DATA TO THE PORT ADDRESS 0X378
DATA IS 11111111=255
AND I USE THIS DATA FOR ELECTRONIC INTERFACING CIRCUIT WHICH CONTAIN
LED TO LIGHT UP
In windows you can't control port directly.You must use an interface file called "inpout32.dll".Searc for it on the net.Then you can import it into your app. and use functions defined in that file.