WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Plug-in development (https://forum.worldviz.com/forumdisplay.php?f=8)
-   -   Custom plug-in (https://forum.worldviz.com/showthread.php?t=5188)

ICT4Health 10-10-2014 08:05 AM

Custom plug-in
 
Hello,
I need to develop a plug-in for a custom sensor. I have a development licence.

I followed the tutorial for the Visual Studio setup here:
http://docs.worldviz.com/vizard/#Usi...20SDK%7C_____2

Then I created a simple code that do nothing with the informations at this link:
http://docs.worldviz.com/vizard/#Ext...20SDK%7C_____3

So at the end I created two files:

MyExtension.h

Code:

#include
 
class MyExtension : public viz::Extension
{
public:
    MyExtension(void);
 
    virtual const char* getName() const { return "My Extension"; }
 
protected:
   
        virtual ~MyExtension(void);
};



MyExtension.cpp

Code:

#include "MyExtension.h"

extern "C" __declspec(dllexport) viz::Extension* CreateVizardExtension(viz::Data &data)
{
    return new MyExtension();
}

MyExtension::MyExtension(void) : viz::Extension()
{
}

MyExtension::~MyExtension(void)
{

}


Then I geneerated the MyExtension.dle and tried to load it with Vizard 5 with the following code
Code:

import viz
viz.go()
mysensor = viz.add('MyExtension.dle')


The result is the error:

ERROR: Failed to load plug-in: 'MyExtension.dle'

What am I missing?

mellott124 11-13-2014 11:17 PM

Make sure your plug-in is in the Vizard plug-in folder. Otherwise it seems fine.


All times are GMT -7. The time now is 02:35 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC