DLL C++ Code - Problems executing funktins from other lib /

For general discussion related FlowStone
Post Reply
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

DLL C++ Code - Problems executing funktins from other lib /

Post by chackl »

Hello!

Well i'm trying to feed vjoy (http://vjoystick.sourceforge.net/site/) with data from Flowstone by getting the SDK of VJoy to an FS-DLL

Well i had look with some other easy DLLs that i made in the past. but this one keeps me busy. I'm not that c++ geek, so it might be cool if some one cold look at it.

The Problem is, that every time the DLLs tryes to run a funktion of the vjoy Lib - the flowstone DLL component does not find the function within the dll anymore.

If someone can find some time it would be helpfull, otherwise i have to freeze one project again.

I have uploaded the project file. it is a Visual C++ 2010 project.


Kind regards C.Hackl
Attachments
DEV-VJOY.zip
(370.07 KiB) Downloaded 888 times
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: DLL C++ Code - Problems executing funktins from other li

Post by Tronic »

Hi chackl,
in your project is missing the VJOYINTERFACE_EXPORTS
and the include for static link to the vJoyInterface.lib
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: DLL C++ Code - Problems executing funktins from other li

Post by chackl »

Hi!
Thanks for Reply!

What do you mean by missing the "VJOYINTERFACE_EXPORTS"

I added now the lib to the linker - but still same problems.

The Flowstone DLL component sais, that it had found the DLL but it did not find the function inside.
If i'm deleting all lines that call functions from the vjoy-lib, flowstone sais that it found the function without problems.

Kind regards, C.Hackl
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: DLL C++ Code - Problems executing funktins from other li

Post by Tronic »

You have to declare it in the "Preprocessor Definitions" in you project settings
add the "VJOYINTERFACE_EXPORTS"
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: DLL C++ Code - Problems executing funktins from other li

Post by chackl »

Ok I see now.

Well now Flowstone seems to take and accespt the DLL. But still if it runns a code from the DLL it does not continue.

I'm taking now another way to goal. Ruby seems to be 100% able with win32api to load the 32 bit interface dll. Well this is not often, that DLLS would fit over all here - but it seems that win32api has everything that vJoy needs. I'll post an example when it is done. (So finaly i can replace my old glovepie and ppjoy)

If i get the dll running i'll post it too.

Kind regards and big thans for help ;)
C.Hackl
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: DLL C++ Code - Problems executing funktins from other li

Post by Tronic »

added this to the linker? AdditionalDependencies="Setupapi.lib"
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: DLL C++ Code - Problems executing funktins from other li

Post by chackl »

Yes. gat that also. But still no luck.
I might get over this again in some time - i have to learn c++ more harder ;)

The Win32Api part with ruby is done:
viewtopic.php?f=3&t=3191

Thanks for help! Kind regards.
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
Post Reply