I'm tinkering with a very simple plugin for VDJ Home 7, just to check out the possibilities... I'll probably buy Broadcaster if I can make stuff work...
Right now I simply can't seem to make GetInfo() return anything other than a TVdjQueryResult with type 0 with the "help" command. I've been lurking around the forums for hours, but I can't seem to get any further than this. Plugins do work in the Home edition, right?
HRESULT __stdcall ThePlugin::OnLoad()
{
m_outfile.open("test.txt", ios_base::app);
m_outfile << endl << "Plugin loaded!" << endl;
TVdjQueryResult res= NewQuery();
GetInfo("help", &res);
m_outfile << "Help query returned type: " << res.type << endl;
return S_OK;
}
NewQuery() returns a TVdjQueryResult object with every value initialized to 0.
I've also tried having res.type initialized to 1, and it still outputs 0, so GetInfo() does touch it!
Any idea what's wrong?
Thanks in advance,
Jon
EDIT:
Also, as a complete sidenote, why can't I seem to make [quote] work? :P
Right now I simply can't seem to make GetInfo() return anything other than a TVdjQueryResult with type 0 with the "help" command. I've been lurking around the forums for hours, but I can't seem to get any further than this. Plugins do work in the Home edition, right?
HRESULT __stdcall ThePlugin::OnLoad()
{
m_outfile.open("test.txt", ios_base::app);
m_outfile << endl << "Plugin loaded!" << endl;
TVdjQueryResult res= NewQuery();
GetInfo("help", &res);
m_outfile << "Help query returned type: " << res.type << endl;
return S_OK;
}
NewQuery() returns a TVdjQueryResult object with every value initialized to 0.
I've also tried having res.type initialized to 1, and it still outputs 0, so GetInfo() does touch it!
Any idea what's wrong?
Thanks in advance,
Jon
EDIT:
Also, as a complete sidenote, why can't I seem to make [quote] work? :P
Posted Thu 21 Oct 10 @ 4:49 pm
bbcode isn't enabled for users without licenses.
Personally I always preinit the struct, and if you're using the v6 SDK you need to use v6 commands as per the 'get' mapper options - for example deck 1 get beatpos.
Personally I always preinit the struct, and if you're using the v6 SDK you need to use v6 commands as per the 'get' mapper options - for example deck 1 get beatpos.
Posted Thu 21 Oct 10 @ 6:25 pm
That explains the lack of quoting! :)
Ah yeah, I'm using the v6 SDK -- it works with those commands! Brilliant!
Thanks a bunch for your fast assistance! Sorry to be of trouble! :)
Ah yeah, I'm using the v6 SDK -- it works with those commands! Brilliant!
Thanks a bunch for your fast assistance! Sorry to be of trouble! :)
Posted Thu 21 Oct 10 @ 6:54 pm
No trouble at all :)
Posted Thu 21 Oct 10 @ 9:07 pm
this my question: what I'm going to do to hear the disk 2 by using a headphone to choose the next remix song while the disk 1 is playing. i'm using a PC speaker and headphone..hope u will help me..thanx a lot
Posted Fri 22 Oct 10 @ 11:18 am
Please ask your question in the correct forum - http://www.virtualdj.com/forums/20/PC_Version_Technical_Support.html - It has nothing to do with creating (Programming) plugins (Add-ons.)
Also, please do not post the same message or question in more than one topic.
Also, please do not post the same message or question in more than one topic.
Posted Fri 22 Oct 10 @ 11:34 am