ok i got an app in vb
im using softwrap to wrap it...
now within vb im supposed to know if app is regged...
Isregistered function from an api call to [login to view URL]
HOW do i get that ?
thats the .h file they gave
#ifndef Register_h
#define Register_h
#ifdef REGISTER_EXPORTS
#define REGISTER_API extern "C" __declspec(dllexport) __stdcall
#else
#define REGISTER_API extern "C" __declspec(dllimport) __stdcall
#endif
// Constants
#define NOT_REGISTERED 0
#define REGISTERED 1
#define HACK_DETECTED 2
#define FILE_MISSING 3
#define FILE_ERROR 4
#define EXPIRED 5
// Exported functions
REGISTER_API int IsRegistered(char *pSWFile);
#endif
And heres the pdf doc
int check_purchase_status(char *DllFilename, char *Swfile)
{
if (!check_CRC(DllFilename))
return -1;
typedef int (_stdcall *FUNC)(char*);
FUNC IsRegistered;
HINSTANCE h = LoadLibrary( LPCTSTR(DllFilename) );
if( h == NULL )
return (GetLastError());
IsRegistered = (FUNC)GetProcAddress(h,"IsRegistered");
if( IsRegistered == NULL )
return (GetLastError());
return (IsRegistered(Swfile));
}
Please help me... i dont know how to declare and use the dll as an api
thanks for all
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
## Platform
all