If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
DLL C++ Code - Problems executing funktins from other lib /
7 posts
• Page 1 of 1
DLL C++ Code - Problems executing funktins from other lib /
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
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 755 times
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
-
chackl - Posts: 233
- Joined: Tue Aug 17, 2010 8:46 pm
- Location: Austria / Salzburg
Re: DLL C++ Code - Problems executing funktins from other li
Hi chackl,
in your project is missing the VJOYINTERFACE_EXPORTS
and the include for static link to the vJoyInterface.lib
in your project is missing the VJOYINTERFACE_EXPORTS
and the include for static link to the vJoyInterface.lib
- Tronic
- Posts: 539
- Joined: Wed Dec 21, 2011 12:59 pm
Re: DLL C++ Code - Problems executing funktins from other li
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
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.
-
chackl - Posts: 233
- Joined: Tue Aug 17, 2010 8:46 pm
- Location: Austria / Salzburg
Re: DLL C++ Code - Problems executing funktins from other li
You have to declare it in the "Preprocessor Definitions" in you project settings
add the "VJOYINTERFACE_EXPORTS"
add the "VJOYINTERFACE_EXPORTS"
- Tronic
- Posts: 539
- Joined: Wed Dec 21, 2011 12:59 pm
Re: DLL C++ Code - Problems executing funktins from other li
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
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.
-
chackl - Posts: 233
- Joined: Tue Aug 17, 2010 8:46 pm
- Location: Austria / Salzburg
Re: DLL C++ Code - Problems executing funktins from other li
added this to the linker? AdditionalDependencies="Setupapi.lib"
- Tronic
- Posts: 539
- Joined: Wed Dec 21, 2011 12:59 pm
Re: DLL C++ Code - Problems executing funktins from other li
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.
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.
-
chackl - Posts: 233
- Joined: Tue Aug 17, 2010 8:46 pm
- Location: Austria / Salzburg
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 101 guests