Hi! I wrote a simple Hello World plugin, and I placed it in folder /Users/aroslav/Documents/VirtualDJ/Plugins64/Other/plugin.bundle and start VirtualDJ in terminal by $ > /Applications/VirtualDJ.app/Contents/MacOS/VirtualDJ but the plugin does not work, Hello World is not displayed in terminal
code:
```c++
#include "vdjPlugin8.h"
class MyPlugin : public IVdjPlugin8
{
public:
HRESULT VDJ_API OnLoad() override
{
printf("Hello World 2\n");
return S_OK;
}
HRESULT VDJ_API OnGetPluginInfo(TVdjPluginInfo8 *infos) override
{
infos->Author = "Yoricya";
infos->Description = "Hello World Plugin";
infos->Version = "v0.1";
infos->PluginName = "Hello World";
infos->Flags = 0x00;
infos->Bitmap = NULL;
return S_OK;
}
};
HRESULT VDJ_API DllGetClassObject(const GUID &rclsid,const GUID &riid,void** ppObject)
{
printf("Hello World 1");
if (memcmp(&rclsid,&CLSID_VdjPlugin8,sizeof(GUID))==0 && memcmp(&riid,&IID_IVdjPluginBasic8,sizeof(GUID))==0)
{
*ppObject=new CMyPlugin8();
}
else
{
return CLASS_E_CLASSNOTAVAILABLE;
}
return NO_ERROR;
}
```
terminal out:
```log
aroslav@iMacPro-Aroslav ~ % /Applications/VirtualDJ.app/Contents/MacOS/VirtualDJ
libpng warning: iCCP: known incorrect sRGB profile
```
what should I do?
code:
```c++
#include "vdjPlugin8.h"
class MyPlugin : public IVdjPlugin8
{
public:
HRESULT VDJ_API OnLoad() override
{
printf("Hello World 2\n");
return S_OK;
}
HRESULT VDJ_API OnGetPluginInfo(TVdjPluginInfo8 *infos) override
{
infos->Author = "Yoricya";
infos->Description = "Hello World Plugin";
infos->Version = "v0.1";
infos->PluginName = "Hello World";
infos->Flags = 0x00;
infos->Bitmap = NULL;
return S_OK;
}
};
HRESULT VDJ_API DllGetClassObject(const GUID &rclsid,const GUID &riid,void** ppObject)
{
printf("Hello World 1");
if (memcmp(&rclsid,&CLSID_VdjPlugin8,sizeof(GUID))==0 && memcmp(&riid,&IID_IVdjPluginBasic8,sizeof(GUID))==0)
{
*ppObject=new CMyPlugin8();
}
else
{
return CLASS_E_CLASSNOTAVAILABLE;
}
return NO_ERROR;
}
```
terminal out:
```log
aroslav@iMacPro-Aroslav ~ % /Applications/VirtualDJ.app/Contents/MacOS/VirtualDJ
libpng warning: iCCP: known incorrect sRGB profile
```
what should I do?
geposted Thu 26 Dec 24 @ 3:54 pm
Try place the bundle in soundeffects instead.
geposted Thu 26 Dec 24 @ 3:59 pm
I tried all the folders, nothing works
geposted Thu 26 Dec 24 @ 4:08 pm
I apologize for the duplicate topic, I accidentally created two because I thought that this not been created
geposted Thu 26 Dec 24 @ 4:10 pm
starting a topic name with . causes problems with link navigation.
geposted Thu 26 Dec 24 @ 4:11 pm
Ahh, understand
geposted Thu 26 Dec 24 @ 4:14 pm
First is it a Mac arm or mac intel?
I need to check but I think IID_IVdjPluginBasic8 only works for user with a pro license.
You also have some examples for mac here:
https://github.com/szemek/virtualdj-plugins-examples
I need to check but I think IID_IVdjPluginBasic8 only works for user with a pro license.
You also have some examples for mac here:
https://github.com/szemek/virtualdj-plugins-examples
geposted Thu 26 Dec 24 @ 11:35 pm
Its intel Mac. Ahh, it possible to write a plugin, even a simple one, without a Pro license?
geposted Fri 27 Dec 24 @ 5:48 am