08-02-2016 05:14 PM
I have considered simply using function call nodes to include the functions manually. However, if the wizard can wrap them that would be optimal as there are many. I have included the dll if that will help. The function which imported properly was FDD_ExcGetMsg() :
FDD_ExcGetMsg
unsigned long * FDD_ExcGetMsg(CStr para0);
This works when using the inc.h as the first header file that is asked for and then also providing the path to the rest of the h files.
08-02-2016 05:39 PM
If I add types.h to the inc.h file you posted, and fix the #ifdef situation (you have a #ifdef with no matching #endif, I'm not sure why you put that in there at all though - it's not needed), and define a name for the dll even though it's not on my local machine (since you didn't attach it), I can import 7 functions. Those 7 functions are the ones that have only void or BOOL as parameter types, which suggests to me that you need to provide a definition for uint8_t, uint16_t, etc. Did you get any sample code in C/C++ for this library that would help indicate how it's supposed to be used?
08-04-2016 12:57 PM - edited 08-04-2016 01:01 PM
I have fixed that now and am at a similar situation. While the uint8_t and uint16_t are undefined, I don't think I would have to edit the header files provided as the package is created by a manufacturer probably for use with minimal modification.
There is example code provided and I have attatched it. As I am relatively new to coding, I do not know how to interpret it and any help would be greatly appreciated.
I have included the entire file provided to me as well, without modifications to header files. The folder r11comlib contains the dll in question: 2016-06\Software\R11CommLib\R11CommLib-Dist-1.4\examples\msvc\lib\windows_x64
2016-06 is available here : https://ln.sync.com/dl/74b0adf40#afcsfzqu-95d8y2cs-nemq5uhg-xrhjmf6m
08-04-2016 01:43 PM
I'm certain I got an email about a new reply in this thread, but I don't see the message (and I deleted the email, assuming I'd be able to find it on the forum). Did you delete your post, or is this a quirk related to NI upgrading the forum website?
08-04-2016 02:00 PM
Yes I did add a reply however it appears to have diappeared.
I am unble to get the 7 functions wraped after editing inc.h. I have included the updated header file, is this what you did?
Yes the file includes examples as to how the library should be used, however, as I am relatively new to coding I do not know how to interpret it. I have included my updated inc.h as well as a link to the folder where you can download an unedited version of the file I was given. https://ln.sync.com/dl/74b0adf40#afcsfzqu-95d8y2cs-nemq5uhg-xrhjmf6m
While I see that those (unit_8 &16) types are not defined in types.h, I believe that I shouldn't have to edit the fiels that much as the api is provided by the manufacturer of a device and should work. However, I will try to define them in types.h and try again.
Thanks!
08-04-2016 03:04 PM
I can now get 8 functions to import with this header file. I have included a link to download the complete unedited file that I have been given to work with :https://ln.sync.com/dl/74b0adf40#afcsfzqu-95d8y2cs-nemq5uhg-xrhjmf6m.
I will try to define uint_8 and 16 in types however I think that because this is an api provided by the manufacturer it should work without modifications like that.
The file contains example code, but as I am relatively new to programming I do not know how to interpret what is given. The dll is inside r11comlib. Any help would be greatly appreciated,
Thanks!
My posts keep disappearing...
08-04-2016 03:25 PM
I can now get 43 functions to import with this header file. I also downloaded stdint.h.
It appears as though if I download the remaining standard reference library, the remaining functions should load.
I will try to define uint_8 and 16 in types however I think that because this is an api provided by the manufacturer it should work without modifications like that.
The file contains example code, but as I am relatively new to programming I do not know how to interpret what is given. The dll is inside r11comlib. Any help would be greatly appreciated,
Thanks!
My posts keep disappearing...
08-04-2016 03:58 PM
I suspect the sample code shows that you should include some standard headers which define those types, but without seeing the attachment I can't confirm that. It's not unreasonable for a vendor to assume you're working in a standard development environment with the typical header files, so I wouldn't blame the vendor for not defining those types in their header file.
No idea why your posts are vanishing, I assume it's an issue with the changes to the forum.
08-04-2016 04:02 PM
yes this is what I think and I am working on getting the standard library so references to the standard headers will be defined. Here is a link to get the file that I am working with, as well as my updated inc.
https://ln.sync.com/dl/74b0adf40#afcsfzqu-95d8y2cs-nemq5uhg-xrhjmf6m
08-05-2016 03:04 PM
nathand wrote: No idea why your posts are vanishing, I assume it's an issue with the changes to the forum.
No, shende210's posts were "disappearing" because they were being flagged as spam by the automated system. I suspect it is due to the unfamiliar ln.sync URL that was pasted in over and over. Please refer to Spam Management on the Forums for more information.
I have unflagged the posts and they now appear in this thread. Sorry for the inconvenience!
Thanks,