快速登录:  

Forum: VirtualDJ Plugins

话题: GetInfo in basic plugin

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

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
 

发表时间 Thu 21 Oct 10 @ 4:49 pm
SBDJPRO Infinity Member since 2006
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.
 

发表时间 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! :)
 

发表时间 Thu 21 Oct 10 @ 6:54 pm
SBDJPRO Infinity Member since 2006
No trouble at all :)
 

发表时间 Thu 21 Oct 10 @ 9:07 pm
jdkarlHome userMember since 2010
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
 

发表时间 Fri 22 Oct 10 @ 11:18 am
 

发表时间 Fri 22 Oct 10 @ 11:34 am


(陈旧帖子或论坛版块会自动关闭)