|
Thanks for the info.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <
|
|
|
|
|
Hi friends,
Can somebody provide me the sample code for getting serial number of motherboard using C++ on WINDOWS?
Regards
Aseem
|
|
|
|
|
I doubt there is a common way to do that, if any at all (i might be wrong and correct me if i am, fellas), maybe check out if WMI[^] has a way, e.g. here[^] it mentions a "serial number" and "bios asset tag", that's probably not for the motherboard though...
Here[^] are examples about how to use WMI in C++.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <
|
|
|
|
|
Hi friend.
Thanks for your reply. I have changed the plan. I'll use some third party licensing.
Regards
Aseem
|
|
|
|
|
Check out the DeviceID property of the Win32_MotherboardDevice class.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
You want WMI; see the SerialNumber property of the Win32_BaseBoard class.
Note: AFAIK it gets stored in the BIOS memory, and flashing a new BIOS is likely to erase the number.
|
|
|
|
|
Is that universal, i mean, whould that work on any system?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <
|
|
|
|
|
Code-o-mat wrote: whould that work on any system?
which part of it, getting it or getting rid of it?
and I'm afraid I don't know for all systems either way.
|
|
|
|
|
I meant the "getting it" part. I guess the "getting rid" part would work on any system that can have a big enough hammer applied on.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <
|
|
|
|
|
as always with WMI, it depends on the manufacturers. If they decide not to bother, then it won't be there. But I think they do use it to their advantage, during manufacturing and later on, for serviceability.
|
|
|
|
|
Thought so really... so basicly there is no common way to get the info he requested, it is most likely he can get it trough WMI but there are no garantees...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <
|
|
|
|
|
Hi how to convert binary file to bmp/jpg image. I have to convert image(BMP/JPG) to binary file and binary file to image(BMP/JPG).
Please help.
Thanks in advance.
|
|
|
|
|
What do you mean exactly by binary file ? An image is already a binary file. could you please clarify your question.
|
|
|
|
|
yes image is already a binary file.
|
|
|
|
|
was that exactly your question ?
|
|
|
|
|
i have already a image binary data, how to convert back to image file.
|
|
|
|
|
That is far from clarifying your question...
What is your problem exactly ?
|
|
|
|
|
i have binary image data i have to convert back to image file.
ex : image.bmp converted to binary file image.bin.
Now i have to convert "image.bin" binary file back to image.( imgage.bin to image.bmp).
|
|
|
|
|
Just change the extension ?
|
|
|
|
|
i have image binary data(file) how do i convert back to image.
|
|
|
|
|
How did you convert it from .BMP to .BIN? Just reverse the process.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Actullay it is converted as binary file in linux, i have to convert binary file back to image in windows, i dont know how to convert.
|
|
|
|
|
nobody knows what you mean by "binary file"
|
|
|
|
|
what actually i want,i have a device it scans finger(finger print information)and it stores as a file(in binary format).I have to convert this file to finger print image.
|
|
|
|
|
You'll first need to figure out what a .bin file is (i.e., it's format).
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|