Hello all,
I want to create my own filesystem on a flash memory card. How can I
open the card as a raw character device?
On a unix-like system I can just open /dev/hdx as a file and do
whatever I want. How can I achieve the same thing under MS DOS or
Windows 98?
Thanks!
Hof 3 1939
In article <11************ **********@e65g 2000hsc.googleg roups.com>,
<rx******@yahoo .co.ukwrote:
>I want to create my own filesystem on a flash memory card. How can I open the card as a raw character device?
filesystems and flash memory cards and raw character devices
are all system-specific, not mentioned by the standard C language.
>On a unix-like system I can just open /dev/hdx as a file and do whatever I want. How can I achieve the same thing under MS DOS or Windows 98?
You'd need to ask in a system specific newsgroup. All that
C provides is fopen() with a "b" modifier on the file mode
(to indicate binary). Determining the correct filename to open
(or whatever else needs to be done to get a hook to the device)
is system specific.
--
Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us. -- Ecclesiastes
In article <11************ **********@e65g 2000hsc.googleg roups.com>,
<rx******@yahoo .co.ukwrote:
>Hello all,
I want to create my own filesystem on a flash memory card. How can I open the card as a raw character device?
On a unix-like system I can just open /dev/hdx as a file and do whatever I want. How can I achieve the same thing under MS DOS or Windows 98?
Let me just say, with all sincerity and love:
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
Useful clc-related links: http://en.wikipedia.org/wiki/Aspergers http://en.wikipedia.org/wiki/Clique http://en.wikipedia.org/wiki/C_programming_language
On 2 May, 18:48, rober...@ibd.nr c-cnrc.gc.ca (Walter Roberson) wrote:
In article <1178127733.755 392.297...@e65g 2000hsc.googleg roups.com>,
<rxhof...@yahoo .co.ukwrote:
I want to create my own filesystem on a flash memory card. How can I
open the card as a raw character device?
filesystems and flash memory cards and raw character devices
are all system-specific, not mentioned by the standard C language.
On a unix-like system I can just open /dev/hdx as a file and do
whatever I want. How can I achieve the same thing under MS DOS or
Windows 98?
You'd need to ask in a system specific newsgroup. All that
C provides is fopen() with a "b" modifier on the file mode
(to indicate binary). Determining the correct filename to open
(or whatever else needs to be done to get a hook to the device)
is system specific.
--
Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us. -- Ecclesiastes
Thanks, Walter. Apologies for the off-topic post - I wondered if there
was some strange and wonderful system call provided on DOS platforms
that C experts would be familiar with. All the DOS newsgroups seem to
have very little activity.
Regards,
Hof This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: CMiYC |
last post by:
I'm attempting to open an USB HID device using createfile from kernel32.
The open attempt always fails. This is the call I'm using:
CreateFile(HidName$, &HC0000000, 3, 0, 3, 0 ,0)
HidName$ gets assigned the device:
\\?\hid
#vid_7766&pid_1629
#6&1b9813bf&0&0000
#{4d1e55b2-f16f-11cf-88cb-00111100030}
|
by: John |
last post by:
Hi
We have an access db which records daily orders. We would like the orders to
be downloaded to a windows mobile 2003 device via usb cradle. Drivers then
take along the device and get signatures from customers when items
delivered. Once drivers are back, the information to be synched back to the
access db as drivers may have amended the order detail.
How does one go about synching to/from mobile device? Are there any code
examples...
|
by: Mars |
last post by:
char c;
int i;
scanf("%d",&i);
c=getchar();
I want to read a integer and a character in 2 lines.
Why the getchar always get the \n character from the last line?????
(Sorry for my newbie question, but where is the FAQ section of the
|
by: Tony Liu |
last post by:
I am having a "Null Device is Missing" compile error when compiling a c++
project.
The documentation from MSDN said it could be caused by low system resource
or the user account does not have the prillivage.
But I am plenty of system resources and I logged in as Admin.
Anyone know how to solve this?
Thanks in advance
|
by: aldrin |
last post by:
I'm trying to run this code under windows xp sp2 using codeblocks v1.0
compiler with great difficulty.There is no problem with running this
under KDevelop in linux. Any help would be greatly appreciated.
Enter an interesting string.
Too many cooks spoil the broth
Error opening C:\myfile.txt for writing. Program termnated.
This application has requested the Runtime to terminate it in an
unusual way.
| |
by: davetelling |
last post by:
I am a total newbie, trying to slog through the Visual C# Express
application. I need to be able to convert a single ASCII character (can be
anything from 0 to 255) to an int for use in other places. So far, I cannot
find anything that works. My application gets a string of characters from an
external device via the serial port. I can use the substring method to get
just one character from that input string, and I need to be able to convert...
|
by: jraul |
last post by:
1) Am I correct that C++ does not have a defined character set? In
particular, a platform might not use the ASCII character set?
2) C++ supports wchar_t types. But again, this has no defined
character set? For instance, it might not be a unicode character set?
|
by: gallois |
last post by:
hello everyone,
i've been trying to write something that checks the inputs from the possible devices where a mouse can be connected (debian/linux) in order to make it configure the system according to the right path
i'm proceeding as follow:
i call a function that will invoke multiple threads, each one trying to get some input stream from a device that is declared on a configuration file. i can get the first one (/dev/psaux as it is...
|
by: Alexnb |
last post by:
Gerhard Häring wrote:
No, it didn't work, but it gave me some interesting feedback when I ran it
in the shell. Heres what it told me:
Traceback (most recent call last):
File "<pyshell#10>", line 1, in <module>
os.startfile("C:\Documents and Settings\Alex\My Documents\My
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |