smart-device

error LNK2019: unresolved external symbol SHInitExtraControls referenced?

无人久伴 提交于 2020-01-06 06:45:49
问题 How can i resolve this error: Error 1 error LNK2019: unresolved external symbol SHInitExtraControls referenced in function "public: virtual int __cdecl CTestApp::InitInstance(void)" (?InitInstance@CTestApp@@UAAHXZ) Test.obj thanks 回答1: You need to link against aygshell.lib . Note that the MSDN page for SHInitExtraControls() says that aygshell.lib is the required library to use it. A LNK2019 usually means that you forgot to provide a definition of something. In this case, the definition of

error LNK2019: unresolved external symbol SHInitExtraControls referenced?

二次信任 提交于 2020-01-06 06:45:03
问题 How can i resolve this error: Error 1 error LNK2019: unresolved external symbol SHInitExtraControls referenced in function "public: virtual int __cdecl CTestApp::InitInstance(void)" (?InitInstance@CTestApp@@UAAHXZ) Test.obj thanks 回答1: You need to link against aygshell.lib . Note that the MSDN page for SHInitExtraControls() says that aygshell.lib is the required library to use it. A LNK2019 usually means that you forgot to provide a definition of something. In this case, the definition of

How to convert an excel file to .csv file?

可紊 提交于 2020-01-03 17:52:14
问题 I'm developping an application for Honeywell Dolphin 6100, a mobile computer with a barcode scanner that uses Windows CE 5.0 like OS. I want to create a little application responsible of the convertion of an excel file to .csv file. Is it possible in Win CE ? if so, any help on it ? thank you in advance !! Note : I'm using VS2008 and I'm working on Windows 7. 回答1: You can do this by using saveas() method in Excel: wbexceltocsv.SaveAs("c:\Filename.csv", Microsoft.Office.Interop.Excel

Break the debugger on assertion failed

混江龙づ霸主 提交于 2020-01-01 08:05:11
问题 Is there a way to break the debugger when assertion is false and running the application using Visual Studio debugger. Earlier when I was debugging Windows application I would get an exception and the debugger would break, but now on Smart Device an assertion failed window is showed with stack trace, but I would also like to see variable values etc. 回答1: Stupid me, the solution was simple. When the window pops out, press pause in debugger :) 回答2: Not sure about VS 2008, but in at least 2010

Set background color only for the first row in a DataGrid?

痴心易碎 提交于 2019-12-25 18:25:22
问题 I'm trying to change the color only for the first color of a DataGrid in a smartDevice project in c#. I tried to use the "Paint" event but couldn't figure out if it could solve my issue. I'm using Microsoft Visual Studio 2008. This is a testing code private void buttonRed_Click(object sender, EventArgs e) { DataRow row = this.dataSet1.Tables[0].NewRow(); row[0] = "002"; row[1] = "E"; this.dataSet1.Tables[0].Rows.InsertAt(row, 0); } private void load() { this.dataSet1.Tables[0].Rows.Add(new

How to create the inf file for a smart device cab project from command line?

青春壹個敷衍的年華 提交于 2019-12-21 04:30:21
问题 I am trying to get my continuous integration to create build the smart device cab project from within msbuild on the command line. Everything that I have found says to use the inf file (with cabwiz) created when you build the project from within visual studio. Is there a way to create the inf using the .vddproj file so that I can then use it with cabwiz.exe? 回答1: Your best bet is either to run devenv.exe (or devenv.com) from the msbuild task, or to steal the INF that Visual Studio generates

How to hide my SmartDevice application on startup?

笑着哭i 提交于 2019-12-20 03:38:10
问题 I made a SmartDevice application that runs on startup and I want it to be hidden at first launch. I've tried this.Hide() , this.Visible = false and ShowWindow(Handle, SW_HIDE) in Form Load() event and InitializeComponent() with no luck. Any help will be appreciated. 回答1: The CF automatically calls Show on the Form passed to Application.Run. There is no avoiding that without avoiding the call to Application.Run. The SDF has an Application2.Run that takes a parameter to tell it to not show the

What could be causing a System.TypeLoadException?

点点圈 提交于 2019-12-17 06:14:48
问题 I'm developing, with VS2008 using C#, an application for Honeywell Dolphin 6100, a mobile computer with a barcode scanner that uses Windows CE 5.0 like OS. I want to add a functionality that can send files from the local device to the distant server. I found the librairy "Tamir.SharpSSH " which can garantee this. I tested the code on a console application and on normal windows forms application and it works perfectly. But when I tried to use the same code on the winCE device, I get a

How to use AddFontResource in c# for Windows CE 5.0 application with .NET 2.0

家住魔仙堡 提交于 2019-12-14 03:04:42
问题 I'm trying to develop a Smart Device program for Windows CE 5.0 device in my car with Visual Stdio 2008 pro and c# with .NET 2.0. I want to add a font using AddFontResourceEx, but I can't get it to work. Here is the code: public partial class Form1 : Form { public Form1() { InitializeComponent(); } private const uint FR_PRIVATE=0x10; [DllImport("GDI32.dll",EntryPoint="AddFontResourceEx")] static extern int AddFontResourceEx(string lpszFilename, uint fl, IntPtr pdv); private void button1_Click

Print and Export to USB (File Format: XML/CSV/Excel) Functionality in Smart device[Symbo Motoroal MC75(Windows Mobile 6.1)] application?

北城余情 提交于 2019-12-14 00:03:45
问题 I have a form which contains combo boxes, textboxes and a data grid with many rows. I want to take print out (with generated barcode [application generating barcode as image]) and also want to export the data in that page as CSV/XML/Excel format to USB or Phone's Physical Directory. Please guide me how to it. This is my first Windows Mobile app. I am not so wise in Windows Mobile. Please help me find a better solution as a code or link or just direct me. 回答1: To create the Print Out, you will