How to open a file with string through USB?

This is a discussion on How to open a file with string through USB? within the Networking/Device Communication forums, part of the General Programming Boards category; I am trying to open a file ( like a picture) by sending a null terminated string from a micro-controller ...

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    11

    How to open a file with string through USB?

    I am trying to open a file ( like a picture) by sending a null terminated string from a micro-controller through a USB to my computer. The only command that I have available to send to the PC is: "_SendString232" or

    uchar _SendString232 (long ptr)

    Is there a program that can get the info from the USB and then open the desired file? Can I write a program ( e.x. in Microsoft Visual Studio or other environment) that gets info from the USB then have that program open a file? Is it possible to send a ShellExecute() command through the USB making windows open a file?

    I EMPHATICALLY THANK YOU FOR YOUR HELP!!!

    My computer specs:
    64-bit Dell with Windows 7 OS.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,434
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to open a file with string through USB?
    By K.Flynn in forum C Programming
    Replies: 12
    Last Post: 06-29-2011, 07:34 AM
  2. Replies: 3
    Last Post: 03-08-2010, 01:43 PM
  3. trouble using string to open file
    By dougwilliams in forum C Programming
    Replies: 3
    Last Post: 11-25-2007, 05:05 PM
  4. Using a string to open a file..
    By neoragexxx in forum C++ Programming
    Replies: 7
    Last Post: 04-27-2006, 09:41 AM
  5. Replies: 12
    Last Post: 03-10-2005, 06:48 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21