Anmelden:     


Forum: VirtualDJ Plugins

Topic: bundle plugin wont starting
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?
 

geposted Thu 26 Dec 24 @ 3:54 pm
Try place the bundle in soundeffects instead.
 

I tried all the folders, nothing works
 

I apologize for the duplicate topic, I accidentally created two because I thought that this not been created
 

starting a topic name with . causes problems with link navigation.
 

Ahh, understand
 

 

Its intel Mac. Ahh, it possible to write a plugin, even a simple one, without a Pro license?