#include "HardDriveSerialNumer.h"
#include <iostream>
#include <tchar.h>
#include <string.h>
#include <windows.h>
#include <winioctl.h>
#include <stdio.h>
#include <vector>
#include "stdafx.h"
usingnamespace std;
//using namespace MasterHardDiskSerial;
int main(int argc, char * argv[])
{
//ReadPhysicalDriveInNTWithAdminRights();
// Get Hard Drive Serial Number
template vector<char> hwId;
MasterHardDiskSeria diskSerial;
diskSerial.GetSerialNo(hwId);
if (hwId.empty())
{
throw std::runtime_error("Can't retrieve hardware serial number");
}
wchar_t *w_hwId = GetWText(hwId);
system("pause");
return 0;
but i have some error that they are not in orginal source code ,is this becuse that's an MFC project and i'm tring to use it as seperad project?
any help will take me out of darkness.
i asked my question from author and he said me that it can use it, be done but i'm need help
on this
my question:
=========
can use it for Non-MFC
can use it for console application ?
for example just method
Hide Copy Code
diskSerial.GetSerialNo(hwId);
my friend said that it's MFC and you can not easily use it on any c++ project but i think my freind is wrong.
==========
Answer
Re: can use it for Non-MFC professional Michael N Haephrati (האפרתי) 55mins ago
Go to ParentYou probably can. Most of the MFC functions are part of ATL which is built in in Visual Studio executables.