Quick Sign In:  

Forum: VirtualDJ Plugins

Topic: GetInfo in basic plugin

This topic is old and might contain outdated or incorrect information.

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
 

Posted 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.
 

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! :)
 

Posted Thu 21 Oct 10 @ 6:54 pm
SBDJPRO Infinity Member since 2006
No trouble at all :)
 

Posted 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
 

Posted Fri 22 Oct 10 @ 11:18 am
 

Posted Fri 22 Oct 10 @ 11:34 am


(Old topics and forums are automatically closed)