Source code needed

This is a discussion on Source code needed within the C++ Programming forums, part of the General Programming Boards category; If you want to talk about security risks of using system(), start another thread. Then I can give you good ...

  1. #16
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,236
    If you want to talk about security risks of using system(), start another thread. Then I can give you good reasons. But my problem is not formating a floppy disk, so I don't need system() at this time. There are ways to tell system doing something without sending commands to cmd.
    You want to force me using system() when I don't need it?
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  2. #17
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    According to this 1998 thread there are no win32 api functions that will allow a program to format a diskette. That may be true, but does not explain how other win32 programs, such as Explorer, accomplishes it. You might explor the DeviceIoControl function.

  3. #18
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,236
    Quote Originally Posted by That site
    Microsoft® Windows does not provide any
    functions to format a diskette
    As I understand, it says there is no function to do it directly for example "format(char* DrvLetter)". But I want to format using direct access to the floppy drive. For example take the head to position x and write y. Maybe with low level hardware access that I think windows will not allow or by Win32 API.
    Last edited by siavoshkc; 02-20-2006 at 10:18 PM.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 01-18-2008, 07:05 PM
  2. Documenting Source Code
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 01-04-2008, 12:18 PM
  3. Lines from Unix's source code have been copied into the heart of Linux????
    By zahid in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 05-19-2003, 04:50 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM
  5. Source Code Beautifier
    By Hammer in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 05-05-2002, 10:21 PM

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