Download MetaLib documentation - Trading

Transcript
if(FAILED(::CoCreateInstance
(CLSID_MLRegistration,NULL,CLSCTX_INPROC_SERVER,IID_IMLRegistration,(
void**)&g_IMLRegistration)))
{
TRACE("Failed to create the IID_IMLRegistration object!\n");
}
// g_IMLRegistration->SetRegistrationInfo (L"YOUR NAME",L"YOUR KEY");
6. It is necessary to release all interface pointers you have used. To release all
interface pointers add the following code e.g. to the destructor of the
CyourApplicationNameApp class.
// Release all interface pointers
if(g_IMLWriter != NULL)
{
g_IMLWriter->Release ();
g_IMLWriter = NULL;
}
if(g_IMLReader != NULL)
{
g_IMLReader->Release ();
g_IMLReader = NULL;
}
if(g_IMLProgBar != NULL)
{
g_IMLProgBar->Release ();
g_IMLProgBar = NULL;
}
if(g_IMLConverter != NULL)
{
g_IMLConverter->Release ();
g_IMLConverter = NULL;
}
if(g_IMLRegistration != NULL)
{
g_IMLRegistration->Release();
g_IMLRegistration = NULL;
}
How to add MetaLib to your JAVA Project
You need a COM bridge, like the JACOB project (http://danadler.com/jacob) if you want
to use MetaLib with JAVA. Download the COM bridge from this site and follow the
instructions.
How to add MetaLib to your Visual Basic Project
Steps to add MetaLib to your VB/VBA project:
1. Start the Visual Basic-Editor (ALT+F11)
Page 8 of 59