Trying to setup Licensing in a VS 2013 MFC MDi project.
In the InitLicensingSupport() function the call to
int ret = readSettingsProc(aKeyCode, aHWnd);
will crash the program.
The call to InitLicensingSupport() is made from the OnInitialUpdate()
The aKeyCode is the one copied from AI -> Licensing -> Registration tab -> Library Key
The aHWnd is m_hWnd
The Error is Unhandled exception at 0x002570B8 in <my.exe> : 0xC0000005: Access violation executing location 0x002570B8.
I had compiled the AI project and installed from that to the development machine. Running the application after install just crashes.
I copied the trial.dll to my VS 2013 project and ran in Release mode and it crashes. In Debug mode I can see the error code
Any ideas?
Ed