![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2005
Posts: 2
Rep Power: 0
![]() |
a question require an answer please
hi every one
i'm wroking on a project and i want to know if i can connect between two wires using visual basic (By USB or any way) i want to connect two wires and a lamp and if i pushed Enter for example the lamp will light i want to know if this is possible and how i can make it . thanks for every thing good luck (sorry for my bad english language cause i'm not american) |
|
|
|
|
|
#2 |
|
Professional Programmer
|
Short answer no, long answer not in this scenario.
You need to know the circuitry of the light and have the USB connected to a controller that is able to turn the light on (which almost no lamps in the world have). Then you need to write the low-level (which VB is not) assembler that tells the controller and the computer how to exchange data through the USB port.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Nov 2005
Posts: 2
Rep Power: 0
![]() |
thanks for repiling me but i try to do this project using visual basic not c++
i try to do a program and when you press enter or any code a lamp for example will lit i wish for any one to teach me how to do this and how to make the cables i read that i can do this using lpt port and i wish any one to start with me from the zero point thanks alot and good luck |
|
|
|
|
|
#4 |
|
Expert Programmer
|
you might want to try using something other than visual basic. it might be easier.
|
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 3
![]() |
If really want to do it in VB you could make first a dll in assembly or search the net for such lybraries, I don't know if somebody built a thing like this...
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|