I'm kind of new in C# and Visual Studio. I've searched for the question and found some interesting answers but none of them seems to works.
This is the situation: I have a TPV example source that is supposed to be ok itself, and I compile it with Visual Studio 2015 from a 32 bit Windows 7 using the option Release/x86, and it's aimed to work on a 64 bit Windows 7. The Application opens but when I'm about to use some functions (such as opening the cash drawer or other special events which depend on the peripherals) it throws a box saying it has an error and can either continue ignoring the error (which keeps the app running but ignores the petition about those peripheral events) or quit. This is the extra information it gives me:
This is the exception:
System.DllNotFoundException: Unable to load DLL 'toggle_Cd.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Elo_Proj.cashDrawerPopup._tmain() at Elo_Proj.cashDrawerPopup.cashDrawerPopup_Load(Object sender, EventArgs e) in C:\Users\usuario\Documents\TPV\PayPoint Windows\Sample Source\Elo_Paypoint_Windows_App_Source_Code\Elo_Paypoint_Windows_App_Source_Code\Elo_Proj_prj\cashDrawerPopup.cs:line 106 at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Apart from assembly information that I think is not especially relevant here. I tried to look for the Exception from HRESULT: 0x8007007E but couldn't find a proper solution. I also looked for the toggle_Cd.dll but I'm clueless about what to do with it. I tried to add it to the path that leads in dll windows32 in the 64bit machine and to add it directly in the same folder of the executable, but I guess that isn't how it works.
Thanks in advance, and sorry for my inexperience with the language, program and the OS.