Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i have problem about ocx driver,i got the error message "
System.Runtime.InteropServices.COMException was unhandled
Message=Çok zararlı hata (HRESULT özel durum döndürdü: 0x8000FFFF (E_UNEXPECTED))
Source=mscorlib
ErrorCode=-2147418113
StackTrace:
konum: System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
konum: BCCLib.BCCClass.Open(String szIdentUser, String szDeviceName, Int16 nTelegramType, Int16 nAccess, Int16 bLightLicenseEnable)
konum: bcsint.Form1.deneme() c:\Users\Ucge\Documents\Visual Studio 2013\Projects\bcsint\bcsint\Form1.cs içinde: satır 51
konum: bcsint.Form1.Form1_Load(Object sender, EventArgs e) c:\Users\Ucge\Documents\Visual Studio 2013\Projects\bcsint\bcsint\Form1.cs içinde: satır 25
konum: System.Windows.Forms.Form.OnLoad(EventArgs e)
konum: System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
konum: System.Windows.Forms.Control.CreateControl()
konum: System.Windows.Forms.Control.WmShowWindow(Message& m)
konum: System.Windows.Forms.Control.WndProc(Message& m)
konum: System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
konum: System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException:
"

my code is :
C#
BCCLib.BCC a = new BCCLib.BCC();
string bizerba = "Bizerba";
                string glp = "glp";


                short x = 1;
                short y = 1;
                short c = 0;

                a.Open(bizerba, glp, x, y, c);


How can i fix this problem?

What I have tried:

i tried:
1.change framework versions
2.cpu x64-x86
Posted
Updated 8-Mar-16 19:44pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900