Results 1 to 9 of 9

Thread: How do I access devices from vb?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    Question

    I think the Device Manager tab of System Properties is there just to tease vb programmers with devices you'll never be able to access directly from vb.
    Am I right?
    No?
    Well how do I access those devices? I can do it just fine from Quick Basic, but I need the windows interface. I'm not looking for work around or OLE Controls. I'm looking for the real-deal access through the Win API. (If that's possible)

    Any ideas? Somebody out there has to be smarter than me... Now's your chance to prove it...

  2. #2
    Junior Member
    Join Date
    Nov 2000
    Posts
    30
    I was reading in the VB tutorial that is hosted here at vb-world by Karl, and he said that you cant even access that crap with VB. I dunno but I think it would be safe to say that you cant. All VB does it use API, and the API just draws from the operating system, and that is what actually does the dirty work, like bytes and bits and all that jazz. Maybe im wrong, if I am then i will eat my hat.

    Bye
    --> noware <--
    [email protected]

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    Ok, so how do I go about writing one of those .vxd files?

  4. #4
    Junior Member
    Join Date
    Nov 2000
    Posts
    30

    goof

    Now how should I know how to do that? I am only 15, I dont even have a class other than basic C++ programming at my school, so everything I learn I get help from others and basically teach myself. If you are going to as some crazy professional programming jargon you better ask some crazy professional programmer.
    --> noware <--
    [email protected]

  5. #5
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    If you use the inp and out commands in qb, then there's a replacement. Vbio.dll, you can download it for free.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  6. #6
    Guest
    i wouldn't try making VXD's in VB, it will only end in tears.

  7. #7
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    VXD can't be made in VB. They can be made with C++. Use the DDK in MSDN to help you make VXD in C++.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  8. #8
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    I've never done it, but the API call CreateFile can be used to open/create files, pipes, mail slots, communication services, devices and consoles.


    td.
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  9. #9
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    yeah, createfile is very flexible, it might just work.
    vxds are horrible - if you want to write drivers u need ASM - millions of lines of incomprehensible rubbish
    buzzwords are the language of fools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width