1
SDK / question 1
« on: June 25, 2024, 15:23:30 »
1. how to use ILogger
can write log to mc'log?
2. create id (mc how to set id)
"
// nID is the ID of the extensions that it should create. This is
extern "C" /*__declspec(dllexport)*/ PVOID APIENTRY Create( int nID )
{
if( nID == 0 )
{
MCNS::MCAppExtensionSample* pExtension = new MCNS::MCAppExtensionSample();
MCNS::IPluginInterface* pInterface = static_cast<MCNS::MCAppExtensionSample*>(pExtension);
return pInterface;
}
if( nID == 1 )
{
MCNS::MCFilePropSample* pExtension = new MCNS::MCFilePropSample();
MCNS::IFileProperties* pInterface = static_cast<MCNS::MCFilePropSample*>(pExtension);
return pInterface;
}
return NULL;
}
"
thank your answer
I want "File CheckSum" add sm3.. and out Base64Str.
or can input/paste String ,output sha256 512 sm3..(hex,base64)
can write log to mc'log?
2. create id (mc how to set id)
"
// nID is the ID of the extensions that it should create. This is
extern "C" /*__declspec(dllexport)*/ PVOID APIENTRY Create( int nID )
{
if( nID == 0 )
{
MCNS::MCAppExtensionSample* pExtension = new MCNS::MCAppExtensionSample();
MCNS::IPluginInterface* pInterface = static_cast<MCNS::MCAppExtensionSample*>(pExtension);
return pInterface;
}
if( nID == 1 )
{
MCNS::MCFilePropSample* pExtension = new MCNS::MCFilePropSample();
MCNS::IFileProperties* pInterface = static_cast<MCNS::MCFilePropSample*>(pExtension);
return pInterface;
}
return NULL;
}
"
thank your answer
I want "File CheckSum" add sm3.. and out Base64Str.
or can input/paste String ,output sha256 512 sm3..(hex,base64)