building plugin in vc7

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  12 December 2003
Angry building plugin in vc7

Hi there,

ive got a really annoying problem. I just cant get any (example )plugin to load in maya. anything i try throws this error:

Error: initializePlugin function could not be found in plug-in (test)

Since im using VC7 i cant use the wizard that comes with maya and i set up the project myself. Im pretty sure ive done everything right, the plugin also builds without any problems.

The intialize fucntion is in there too, neither using the macro (DeclareSimpleCommand()) or by declaring by hand helps.
I wonder if i made a mistake while setting up the environment, I really dont know. Id be glad if anybody could help me out with this.

Thanks alot in advance,

seb
__________________
www.sebscorner.org
(brandnew and shiny!)
 
  12 December 2003
ok i solved it, read the help properly dammit!!
for those interested you have to add

/export:initializePlugin /export:uninitializePlugin

to the command line

huray,

seb
__________________
www.sebscorner.org
(brandnew and shiny!)
 
  12 December 2003
Hi there

Just an alternative approach which works in VC++ 6 and ought to work in 7: You should be able to skip that line and instead declare the initializePlugin & uninitializePlugin with the export directive. Saves you some setup time

I don't have any source file in front of me right now, but it should be something like this:

MStatus export initializePlugin(...

...or perhaps it was _export... test it and if you cannot get it right, I'll check my source files for the correct line later.

Cheers
/ Daniel
 
  01 January 2006
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:19 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.