Hi to theForcesOfCpp! I'm just wondering if there is any simple way to read
the serial number of an memory stick connected to an USB port? Something
like reading the vendor number of a hard disk... OS: Windows XPEnvironment:
Borland C++BuilderX Personal or MS Visual Studio 2005 ExpressAny help /
sample would be great...Thanx in advance,Joe 10 3722
Joe Macarony wrote: Hi to theForcesOfCpp! I'm just wondering if there is any simple way to read the serial number [..]
Nope. C++ _language_ has no definition of "serial number" or "USB 2.0
Memory Stick". You need to ask in a newsgroup that deals with your OS.
"Victor Bazarov" <v.********@com Acast.net> wrote in message
news:fY******** **********@news read1.mlpsca01. us.to.verio.net ... Joe Macarony wrote: Hi to theForcesOfCpp! I'm just wondering if there is any simple way to read the serial number [..]
Nope. C++ _language_ has no definition of "serial number" or "USB 2.0 Memory Stick". You need to ask in a newsgroup that deals with your OS.
Hi Victor!
It seems like I didn't express myselft correctly. I am looking for a peace
of C++ code which reads out the serial number of an USB 2.0 memory stick. I
am not looking the simple things that I can read out from the windows
registry.
"My" OS is written as Windows Xp, because I will try to "play" with this
kind of code on Windows, and not on some Linux/Unix/Mac/Simbian/WhatEver...
Thanx anyway, hope that is clear what for I am tryin? to get help?
Joe
On Wed, 14 Dec 2005 22:37:13 +0100, Joe Macarony wrote: It seems like I didn't express myselft correctly. I am looking for a peace of C++ code which reads out the serial number of an USB 2.0 memory stick. I am not looking the simple things that I can read out from the windows registry.
"My" OS is written as Windows Xp, because I will try to "play" with this kind of code on Windows, and not on some Linux/Unix/Mac/Simbian/WhatEver...
Accessing that level of hardware requires third-party APIs. There is no
support defined at the level of the ISO C++ language for such things. That
puts it outside the scope of this newsgroup, which only deals with what
can be done with the standard C++ language.
Each platform/OS is different. So in order to find out how to do what you
want on your particular platform, you need to ask in a newsgroup specific
to that platform.
Good luck!
- Jay
"Jay Nabonne" <ja*********@so nicNOSPAM.com> wrote in message
news:pa******** *************** *****@sonicNOSP AM.com... On Wed, 14 Dec 2005 22:37:13 +0100, Joe Macarony wrote:
Accessing that level of hardware requires third-party APIs. There is no support defined at the level of the ISO C++ language for such things. That puts it outside the scope of this newsgroup, which only deals with what can be done with the standard C++ language.
Each platform/OS is different. So in order to find out how to do what you want on your particular platform, you need to ask in a newsgroup specific to that platform.
Good luck!
- Jay
Any sugesstions where could I ask this kind of question?? On which
newsgroup?
I know that this is something very, very specific, but I hope that some1 who
reads this group has any idea / any expirience in this kind of things...
Thanx anyway,
Joe
Joe Macarony wrote: "Victor Bazarov" <v.********@com Acast.net> wrote in message news:fY******** **********@news read1.mlpsca01. us.to.verio.net ...
Joe Macarony wrote:
Hi to theForcesOfCpp! I'm just wondering if there is any simple way to read the serial number [..]
Nope. C++ _language_ has no definition of "serial number" or "USB 2.0 Memory Stick". You need to ask in a newsgroup that deals with your OS.
Hi Victor!
It seems like I didn't express myselft correctly. I am looking for a peace of C++ code which reads out the serial number of an USB 2.0 memory stick. I am not looking the simple things that I can read out from the windows registry.
"My" OS is written as Windows Xp, because I will try to "play" with this kind of code on Windows, and not on some Linux/Unix/Mac/Simbian/WhatEver...
Thanx anyway, hope that is clear what for I am tryin? to get help?
Hi Joe!
It seems that I didn't help you understand the concept of topicality
correctly. This newsgroup discusses (and helps folks solve problems) with
C++ _language_ as defined in its International Standard. Since the C++
Standard does *not* have any reference to "USB" or "serial number", I am
afraid your problem cannot be solved in C++ terms. You need help from the
folks who know your OS (Windows XP or whatever) because you will _have_to_
use OS-specific means to get to whatever you "play" with, whether it is
achieved by calling a function or two from OS-specific API, or using some
kind of third-party library, or even using some extension to C++ provided
by your compiler.
Hope that is clear what I am trying to say?
Visit comp.os.ms-windows.program mer.win32 and ask there.
V
Joe Macarony wrote: "Jay Nabonne" <ja*********@so nicNOSPAM.com> wrote in message news:pa******** *************** *****@sonicNOSP AM.com... On Wed, 14 Dec 2005 22:37:13 +0100, Joe Macarony wrote:
Accessing that level of hardware requires third-party APIs. There is no support defined at the level of the ISO C++ language for such things. That puts it outside the scope of this newsgroup, which only deals with what can be done with the standard C++ language.
Each platform/OS is different. So in order to find out how to do what you want on your particular platform, you need to ask in a newsgroup specific to that platform.
Good luck!
- Jay
Any sugesstions where could I ask this kind of question?? On which newsgroup? I know that this is something very, very specific, but I hope that some1 who reads this group has any idea / any expirience in this kind of things...
One of the many websites on USB programming might be useful. I find
google to be rather helpful with this sort of problem.
Joe Macarony wrote: Hi to theForcesOfCpp! I'm just wondering if there is any simple way to read the serial number of an memory stick connected to an USB port? Something like reading the vendor number of a hard disk... OS: Windows XPEnvironment: Borland C++BuilderX Personal or MS Visual Studio 2005 ExpressAny help / sample would be great...Thanx in advance,Joe
This question is off-topic here since it doesn't deal with the C++
language proper. Check the FAQ for what is on-topic here and for some
suggestions of newsgroups that would be a better fit: http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
Cheers! --M
"Victor Bazarov" <v.********@com Acast.net> wrote in message
news:0x******** ***********@new sread1.mlpsca01 .us.to.verio.ne t... Joe Macarony wrote: "Victor Bazarov" <v.********@com Acast.net> wrote in message news:fY******** **********@news read1.mlpsca01. us.to.verio.net ...
Hope that is clear what I am trying to say?
Visit comp.os.ms-windows.program mer.win32 and ask there.
V
Thanx,
my last word in this topic.
Joe
Joe Macarony wrote: I know that this is something very, very specific, but I hope that some1 who reads this group has any idea / any expirience in this kind of things...
Joe, answering an off-topic question here is even bigger violation of
netiquette than asking it. If somebody knows the answer, they will gladly
provide it in an appropriate newsgroup. If 'comp.os.ms-windows.*' that
I recommended doesn't work for you, try the hierarchy of newsgroups that
begins with 'microsoft.publ ic.win32.progra mmer.', and if you can't find
it on your ISP's list, connect to 'msnews.microso ft.com' server. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tron Thomas |
last post by:
Given the following information about memory management in C++:
-----
The c-runtime dynamic memory manager (and most other commercial memory
managers) has issues with fragmentation similar to a hard drive file
system.
Over time, the more often use call new/delete or alloc/free, there
will be
gaps and fragments in the heap. This can lead to inefficient use of
available memory, as well as cache-hit inefficiencies.
|
by: Stijn |
last post by:
I wrote an application where the user needs an USB memory
stick. When the user closes the program, some data is
written to the stick.
Can I write some code so my application is closing the
usb stick whithout an action of the user?
When I do not implement this, the user have to click on
an icon in the taskbar for removing the usb stick
safely. But i want to keep it simpel for the user ;)
|
by: John Salerno |
last post by:
Is there a way to 'install' and use Python on a memory stick, just as
you would on any computer? I use Windows, and I know the installation
does things with the registry, so probably I couldn't use the executable
file to install it. But is it possible to do it some other way, such as
how you might build it yourself on Linux (although I don't know how to
do that yet) and then just write and run scripts normally straight from
your memory...
|
by: Bobby |
last post by:
Hi,
I'm not 100% sure that this is an Access problem. A friend of mine has
an Access 2003 database. Occasionally he brings a copy to me so that I
can import some of his data into my Access 2003 database. For years he
has done this with no problems by bringing his copy on a CD.
However, last week he put his database onto a memory stick and brought
it to me. When I try to open the database, I get the error "The Visual
Basic for...
|
by: =?Utf-8?B?U2Nob29uZXI=?= |
last post by:
I'm using Vista and have just plugged in a USB Flash mem (Toshiba 1GB
preformatted) for the first time. I was transferring pics to the flash mem ok
until I got to around 200mb and then I received error 0x80070052 and was
unable to transfer any more pics, despite there still being close to 800mb
free on the stick.
I also noticed that Readyboost wanted to reserve 796mb for system speed but
I'd checked 'do not use this device'. (Note...
| |
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |