fineedge
Posts: 4
Joined: Sat Nov 19, 2005 7:26 pm

Product registration sample

------ Build started: Project: Serial Validation DLL, Configuration: Debug Win32 ------
Compiling...
stdafx.cpp
Compiling...
Serial Validation DLL.cpp
Compiling manifest to resources...
Hi,
I'm trying to create the example product registration dll. When I try to compile and link it. I get the msg below. This is using the provided example with no modifications. Any suggestions are appreciated. I'm not much of a programer but need to have serial # registration in the product I'm creating. I'm using Microsoft studio 8 for this.
The error msg is listed below.
thanks,

Linking...
Creating library Debug/Serial Validation DLL.lib and object Debug/Serial Validation DLL.exp
Serial Validation DLL.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function "unsigned int __stdcall ValidateSerial_Sample(unsigned long)" (?ValidateSerial_Sample@@YGIK@Z)
Debug/Serial Validation DLL.dll : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\serial validation original\SerialValidationDLL\Debug\BuildLog.htm"
Serial Validation DLL - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

Thank you for signaling this error to us.

This DLL project was tested using Visual Studio 7.

We look into this matter and see what could be the problem.

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi

These are the necessary changes that must be done in order to build the Serial Validation DLL using Visual Studio 8.

Go to the Project Properties->Linker->Input and set
Additional Dependencies = msi.lib user32.lib

Also configure Visual Studio to find the necessary LIB files.

All the best,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
fineedge
Posts: 4
Joined: Sat Nov 19, 2005 7:26 pm

Thanks,
That did the trick. :D

Return to “Common Problems”