c# - "Can't find PInvoke DLL 'dbnetlib.dll'." error in Smart Device Application -


I'm building a program in Visual Studio Pro 2008, and I'm trying to reach out to SQL databases and programs I am here. The program running is running on Windows CE, and it is a one time code scanner. When I run the code and tries to establish a connection to the database would, so I put a missing Manejapiptsn which says:

  PInvoke DLL can not get 'dbnetlib.dll' is. Online reseraching, I discovered that you need to install sql.ppc.we5.armv4i.cab file, though my device is not set up (my problem).  

Here is the code that I am using to establish a connection with my SQL database.

  string conString = "Data Source = OS4DPC05 \\ SQLEXPRESS; Initial Catalog = test; Integrated Security = Sspiai; User ID = **************; "; process. Start ( "\\ Windows \\ wceload.exe", " '\\ Program Files \\ Smartdiwaisprojekt 2 \\ sql.ppc.wce5.armv4i.cab'"); (Using SqlConnection con = new SqlConnection (conString)) {con.Open (); }  

This is just a part of the code, but the program always stops. open ();

How does anyone know how to fix this problem? Any suggestions would be much appreciated.

sql.ppc.we5.armv4i.cab copy will not solve the problem.

The problem is that DBnetLab in a bug in Visual Studio. Dll is not included in the list of dependencies to copy the device. I have tried to add the appropriate dbnetlib.dll file from EMDK (Motorola Wt41N0 in my case), directly to VS To set armv4 directories for the project and to always make it copy that it ends in build.

Your device is different but for your device processor type there should be a version of dbnetlib.dll anywhere within your SDK directory.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -