Click here to Skip to main content
15,880,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linker error LNK2001 ("external symbol not found") Pin
tiwal24-Oct-12 3:25
tiwal24-Oct-12 3:25 
GeneralRe: Linker error LNK2001 ("external symbol not found") Pin
Richard MacCutchan24-Oct-12 4:00
mveRichard MacCutchan24-Oct-12 4:00 
QuestionWeb Service in c++(.net 2003) Pin
Bhasker Singh21-Oct-12 20:19
Bhasker Singh21-Oct-12 20:19 
AnswerRe: Web Service in c++(.net 2003) Pin
Richard MacCutchan21-Oct-12 21:46
mveRichard MacCutchan21-Oct-12 21:46 
AnswerRe: Web Service in c++(.net 2003) Pin
David Crow22-Oct-12 4:06
David Crow22-Oct-12 4:06 
QuestionNeed Your valuable suggestion Pin
Game-point21-Oct-12 17:42
Game-point21-Oct-12 17:42 
AnswerRe: Need Your valuable suggestion Pin
Richard MacCutchan21-Oct-12 21:45
mveRichard MacCutchan21-Oct-12 21:45 
AnswerRe: Need Your valuable suggestion Pin
Orjan Westin21-Oct-12 22:51
professionalOrjan Westin21-Oct-12 22:51 
Not a C++ question, and you haven't provided enough information to answer the question without making a lot of assumptions.

So, assuming the platform is Windows, and that the PC is not connected to the internet:

1. Make a pre-install application that reports a unique ID for the PC. If you don't fancy rolling your own algorithm (not recommended), consider using the value found in the Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductId which is probably unique and tied to an installation of Windows (see this StackOverflow discussion).

2. Once the user has run this application and reported the unique number, use it, with a secret key and a suitable hashing algorithm, to generate a unique hash tied to this ID. Deliver this hash to the user (in a letter, or email to other PC, or in a text message, or however you like).

3. In the installer, get the unique ID (by reading the Registry above), apply the hashing algorithm, ask the user for his or her hash, and compare the two. If they correspond, this is the correct PC, if not, abort the installation.

4. After installation is complete, Windows Installer will make a that this application has been installed. You can check this at the start of the installer to make sure it's not re-installed.

Basically, if you want to limit an application to be installed on only one PC, you need some way of identifying this single PC. If internet access isn't available, it can't be done during installation, so will need to be done in a two-step process.
AnswerRe: Need Your valuable suggestion Pin
molesworth23-Oct-12 3:27
molesworth23-Oct-12 3:27 
QuestionHow to Resize Dialogbar? Pin
D.Manivelan20-Oct-12 0:02
D.Manivelan20-Oct-12 0:02 
AnswerRe: How to Resize Dialogbar? Pin
chaau21-Oct-12 15:06
chaau21-Oct-12 15:06 
QuestionUsing C++ codes in C# program ? Pin
taibc19-Oct-12 23:26
taibc19-Oct-12 23:26 
AnswerRe: Using C++ codes in C# program ? Pin
jschell20-Oct-12 4:43
jschell20-Oct-12 4:43 
GeneralRe: Using C++ codes in C# program ? Pin
taibc20-Oct-12 17:30
taibc20-Oct-12 17:30 
AnswerRe: Using C++ codes in C# program ? Pin
taibc22-Oct-12 0:32
taibc22-Oct-12 0:32 
GeneralRe: Using C++ codes in C# program ? Pin
Richard MacCutchan22-Oct-12 1:22
mveRichard MacCutchan22-Oct-12 1:22 
QuestionHow to keep track when a dialog is invoked second time.? Pin
mbatra3118-Oct-12 23:53
mbatra3118-Oct-12 23:53 
AnswerRe: How to keep track when a dialog is invoked second time.? Pin
Sivaraman Dhamodharan19-Oct-12 0:07
Sivaraman Dhamodharan19-Oct-12 0:07 
GeneralRe: How to keep track when a dialog is invoked second time.? Pin
mbatra3119-Oct-12 0:12
mbatra3119-Oct-12 0:12 
AnswerRe: How to keep track when a dialog is invoked second time.? Pin
Jochen Arndt19-Oct-12 0:31
professionalJochen Arndt19-Oct-12 0:31 
AnswerRe: How to keep track when a dialog is invoked second time.? Pin
ThatsAlok19-Oct-12 2:03
ThatsAlok19-Oct-12 2:03 
AnswerRe: How to keep track when a dialog is invoked second time.? Pin
Sajeesh Payolam19-Oct-12 20:51
Sajeesh Payolam19-Oct-12 20:51 
QuestionHow to use a png or jpg in visual studio? Pin
DanYELL18-Oct-12 16:12
DanYELL18-Oct-12 16:12 
AnswerRe: How to use a png or jpg in visual studio? Pin
Santhosh G_18-Oct-12 20:17
Santhosh G_18-Oct-12 20:17 
Question[Solved] How to Call an x86 3+ Parameter Method Using __fastcall Calling Conentions Pin
Skippums18-Oct-12 12:38
Skippums18-Oct-12 12:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.