Hello.
I am developing in MFC C++ environment now.
I want to Get License ID and Comp ID by using "GetPropertyValue" function.
please look at my code.
===================================================================================================================
HMODULE hModule = ::LoadLibrary("Trial.dll");
if(hModule == NULL)
return ; // Missing Trial DLL;
GetPropT getPropFct = reinterpret_cast<GetPropT>(::GetProcAddress(hModule, "GetPropertyValue"));
CString strID;
DWORD LengthID = strID.GetAllocLength();
if ( ERROR_MORE_DATA == (getPropFct)(LICENSE_PROP_ID, strID.GetBuffer(), LengthID) )
{
(getPropFct)(LICENSE_PROP_ID, strID.GetBufferSetLength(LengthID), LengthID);
}
===================================================================================================================
I already refer to your tutorial code. but It doesn't worked.
I guess that your API now don't allow CString type not CStringW.
But In my project, CStringW Type is not allowed. and then, I can't get License Information.
Can you help me please ㅠㅠ?
FOLLOW US