Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 9th, 2005, 1:26 PM   #1
aya brea
Newbie
 
Join Date: Nov 2005
Posts: 2
Rep Power: 0 aya brea is on a distinguished road
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)
aya brea is offline   Reply With Quote
Old Nov 9th, 2005, 1:40 PM   #2
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
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;}
iignotus is offline   Reply With Quote
Old Nov 10th, 2005, 5:22 PM   #3
aya brea
Newbie
 
Join Date: Nov 2005
Posts: 2
Rep Power: 0 aya brea is on a distinguished road
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
aya brea is offline   Reply With Quote
Old Nov 10th, 2005, 8:37 PM   #4
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 572
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
you might want to try using something other than visual basic. it might be easier.
crawforddavid2006 is offline   Reply With Quote
Old Nov 11th, 2005, 7:20 AM   #5
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 3 ivan is on a distinguished road
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...
ivan is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:11 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC