Home › Forums › Software Development › using the sdk in a dll library
- This topic has 1 reply, 2 voices, and was last updated 7 years, 9 months ago by Jenny [Tobii].
- 28/05/2015 at 06:40 #3007Thane PullanParticipant
If I’m creating a dll extension with the sdk and accessing everything from
the dll would I need to use the dllimport feature to import the functions?
alternatively could i use the Assembly class of c sharp?09/06/2015 at 12:41 #3093Jenny [Tobii]Participant
If you are using the EyeX SDK for .NET you add references to the EyeX dll’s in your project like this:
– add a reference to EyeXFramework.dll (right click the project’s Reference folder and select “Add Reference…”)
– make sure to have a copy of Tobii.EyeX.Client.dll in your output folder
If you are only building for one bitness (32 bit or 64 bit), one way to make sure the client dll is copied to the output folder is to add it to the project and set its properties to copy to the output folder. This is how you do that: copy the client dll to the project folder and then right click the project in Visual Studio and add the dll as an “Existing item…”. If you want to use the client dll from more than one project you can instead save the dll in a common place and add it as a link to each project: choose “Add” > “Existing item…”, locate and select the dll file, press the little arrow next to the Add button and select the “Add as link” option. When the dll has been added to the project, right click the dll item and open its Properties and set “Copy to Output directory” to one of the “Copy…” options.
- You must be logged in to reply to this topic.