I am in need of some help with getting a .dll import to work within my VB.net code.
I currently have the following code:
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim MyCecCallbacks As New CecCallbackMethods
Dim Config As New LibCECConfiguration()
Config.ClientVersion = CecClientVersion.Version2_1_1
Dim Libb As New LibCecSharp(Config)
Dim adapters As CecAdapter() = Libb.FindAdapters(String.Empty)
Dim PulseEightComPort As String = adapters(0).ComPort
Dim TVPowerStatus As String = Libb.GetDevicePowerStatus(CecLogicalAddress.Tv)
The .dll lib that needs to work is the CEC dll located here: https://github.com/Pulse-Eight/libcec and here http://libcec.pulse-eight.com/
You can see the c# example here: https://github.com/Pulse-Eight/libcec/tree/master/project
I am unable to use the current DLL because when i start running the program of mine it says:
"Could not load file or assembly 'LibCecSharp.dll' or one of its dependencies. The specified module could not be found."
This is to be used with the USB - CEC Adapter that i have of theirs here: http://www.pulse-eight.com/store/products/104-usb-hdmi-cec-adapter.aspx
You can download the windows libCEC 2.1.1 installation files here: http://www.pulse-eight.com/store/download/get/6 that has the .dll that i am trying to use in it that's giving me the error.
I consider this a small project so my max would be $30 since i already have the code ready to go above-just cant seem to get the .dll to work in VB.net.
My development environment is Visual Studio 2010 running .net framework 4.0.
All code will become the property of me.
1) I require complete and fully-functional working program(s) in executable form as well as complete source code of all work done (so that I may modify it in the future).
2) Deliverables must be in ready-to-run condition as follows (depending on the nature of the deliverables):
2b) Any website server-side deliverables must be installed by the worker in ready-to-run condition in the employer's environment.
2c) Any website server-side deliverables must be provided with complete instructions and assistance so that the employer may install them in ready-to-run condition in the employer's environment.
2d) Any website server-side deliverables must be installed as described elsewhere by the employer.
2e) If there are any server-side deliverables (intended to only exist in one place in the employer's environment) then they must be installed by the worker in ready-to-run condition (unless specified elsewhere by the employer).
2f) All other software (including but not limited to any desktop software or software the employer intends to distribute) must include a software installation package that will install the software in ready-to-run condition on the platform(s) specified in this project (unless specified elsewhere by the employer).
3) All deliverables will be considered 'work made for hire' under U.S. Copyright law. Employer will receive exclusive and complete copyrights to all work purchased.