CAB file won't install on emulator 2.0 Okay, so I have been messing around with the securities on the emulator, and I used the Security Config Manager power toy to turns all securities off on the emulator. I would think this would allow me to run the CAB now I still get the message "Installation of Application.CAB was unsuccessful". Do I still have to sign the CAB and all files in it if securities are off Am I dealing with a bigger problem here with how the CAB was built Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Beta of Microsoft Certification Exam 70-540 Hi Jeff - this delay is also true of 70-500
thanks,
_howard Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
serial connection to device emulator Hi, how can i send serial data from emulator to hyperterminal and vice versa ,i tried all possible settings in the emulator but getting an exception on hyperterminal
Data1 = "RaiseException: Thread=8db0c684 Proc=8c2472c8 'EmulatorStub.exe'\r"
Can anyone help me to sort out this problem.
thanks
prakash Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
how to package some function into DLL file prepare for c# i want to use some function from teh xxx.h file in c#(add native code to managed code)
I've got some infomation about this, but i am not sure how to do it ,and i am not sure vc ++ 2005 whether can be used to accomplish it.
who can give me a example
really appreciate your help. Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Deployment and/or registration failed Hi
Thankx again.
I had an issue with my SQL mobile before.... Pls Refer below : So I implimented the solution provided by this article.
as mentioned in this I am including following .dll files.
sqlceca30.dll, sqlcecompact30.dll, sqlceer30en.dll, sqlceme30.dll, sqlceoledb30.dll, sqlceqp30.dll, sqlcese30.dll
Deploying SQL Mobile via ClickOnce To get a feel how easy it is to deploy SQL Mobile with Click Once, here¡¯s a quick walk through:
Using Visual Studio 2005 (Whidbey) create a new Windows Forms project.
Using the Data Sources Window choose to add a new Database Data Source for the Northwind sample database
On the Choose your Data Connection step, click New Connection
In the top of the dialog you can change the Data Source ¨C I know this term is overloaded¡
Click the [Change¡] button and select Microsoft SQL Server Mobile Edition as the data base data source
Your now given a Connection dialog where you can either create a new SQL Mobile Database or you can choose an existing SQL Mobile database.
Click [Browse] and you should see Northwind.sdf . .sdf is the SQL Mobile data file extension. If for some reason you don¡¯t see the sample database, verify you¡¯re looking in C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0
Once you select the sample database, click Ok, and click next to the Save Connection step
At this point you¡¯re prompted to copy the .sdf file to your project. Choose yes so the data file travels with your application.
Again, choose yes save the connection string in the Settings file.
You can now choose which tables. For the purposes of this simplified demo, just choose Employees and click finish.
This creates a strongly typed DataSet, new in Whidbey for devices, for your Northwind SQL Mobile file.
Drag the employees table from the Data Sources Window to the Form1 design surface. You can choose the Smart Tag on the grid to dock-fill. So far, this is the same experience for server based databases.
At this point you¡¯d think you can run your application, and you can certainly try hitting F5. But, you¡¯ll get an exception stating the runtime can¡¯t find sqlceme30.dll. ADO.net for SqlMobile can¡¯t find the SQL Mobile runtime. No problem, we¡¯ll just add it to our project. But wait you say. Isn¡¯t that an install Or a ClickOnce boot strapper thingy Nope. The SQL Mobile runtime is a few very small dlls. To get the full functionality for SQL Mobile you only need to add less then 1.4mb to your project. That¡¯s less then some home page images.
To add the runtime we need to place these files in a path that can be found by ADO.net. You could MSI install these to the System32 directory, but because they¡¯re so small, why not just ship them with your app
Within Solution Explorer, select your project and choose Add Existing Item
Navigate to C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
Change the files of type to all files
Click in the file list window and type sqlce to get to the files that start with these letters
Shift select all 7 files, sqlcera30.dll, sqlcecompact30.dll, sqlceer30en.dll, sqlceme30.dll, sqlceoledb30.dll, sqlceqp30.dll, sqlcese30.dll and click Add.
You now have the runtime in the project, but it¡¯s not in the execution path.
Select all 7 files in solution explorer and select the property grid.
Change the Copy to Output Directory to Copy if newer This will make sure these files are copied to the output directory and can be found at runtime.
Hit F5 to test your app.
Voila . You now have a local database ready to go. Deploying with ClickOnce Because these dll¡¯s are just private to the project, you can simply publish your app just as you would normally. Post Beta 2 however, you¡¯ll have a minor problem. ClickOnce actually places ¡°Data¡± files in a different directory then you¡¯re app. For more info check out my Tech Ed blog and Data Directory sample. Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Multithreaded Serial: how to stop the thread and close the port smoothly Dear all, I'm developing a C# multithreaded application, based on ( http://www.codeproject.com/useritems/GpsTracer.asp ) which starts a thread whose duty is to wait on the serial port and whenever it receives something, to process it accordingly. The ony difference from my code to the one in the web page is that I wait indefinitely until a DataReceivedEvent pulls the thread out of the sleep state, since once the serial port is open, it receives a continuous stream of data, and there is no need to wait a certain amount of ms.
My question are:
1) what is the best way to stop smoothly such a mechanism without leaving the port open or the thread active, so that I can restart the thread without the ned of closing and restarting the application
2) a .DiscardInBuffer call before the closing of the port would ease the process
Many thanks in advance for your attention
Paolo
//------------------------- Start Routine --------------------------------
public void start()
{
try
{
if (myThread == null )
{
if (mySerialPort == null )
{
mySerialPort = new System.IO.Ports. SerialPort (sSerialPort);
InitializeSerialPort();
}
myThread = new Thread (myThreadCore);
}
bThreadRunning = true ;
myThread.Start();
}
catch ( Exception ex)
{
ex.ToString();
MessageBox .Show( "Serialfeeder.start(): " + ex.Message + "\n" + ex.InnerException);
}
}
//------------------------- Stop Routine --------------------------------
public void stop()
{
try
{
bThreadRunning = false ;
Thread .Sleep(500);
mySerialPort.Close();
Connected = false ;
if (myThread != null )
{
myThread.Abort();
myThread = null ;
}
}
catch ( Exception ex)
{
ex.ToString();
MessageBox .Show( "Serialfeeder.stop(): " + ex.Message + "\n" + ex.InnerException);
}
}
//------------------------- Thread core Routine --------------------------------
private void myThreadCore()
{
int iBytes2Read = 0;
try
{
if (!mySerialPort.IsOpen)
mySerialPort.Open();
Connected = true ;
while (bThreadRunning)
{
iBytes2Read = mySerialPort.BytesToRead;
if (iBytes2Read > 0)
{
// Create a byte array buffer to hold the incoming data
byte [] buffer1 = new byte [iBytes2Read];
// Read the data from the port and store it in our buffer
mySerialPort.Read(buffer1, 0, iBytes2Read);
dataReceived( ref buffer1);
}
Thread .Sleep(0);
}
ThreadEnding = true ;
}
catch ( Exception ex)
{
ex.ToString();
MessageBox .Show( "Serialfeeder.ThreadCore(): " + ex.Message + "\n" + ex.InnerException);
}
} Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
playing .amr files in WM5.0 hi suppose i want to play a .amr file in Windows Mobile 5.0, does media player supports it can someone provide me with some codes. thanks in advance Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
LineGetGeneralInfo not work properly with 2005 window Mobile? Hi theres, I am working with CF 2.0 for Windows Mobile usign .net. here I am sending my code that will being easy for you to understand my problem. =======CODE START=====a=== using System; using System.Collections; using System.Data; using System.Runtime.InteropServices; using System.Text; using System.Xml; using System.IO; namespace TAPI { public static class PhoneInfo { public static void Get(out string manufacturer, out string model, out string revision, out string serialNumber, out string subsciberId) { IntPtr hLine; int dwNumDev; int num1 = 0x20000; LINEINITIALIZEEXPARAMS lineInitializeParams = new LINEINITIALIZEEXPARAMS(); lineInitializeParams.dwTotalSize = (uint)Marshal.SizeOf(lineInitializeParams); lineInitializeParams.dwNeededSize = lineInitializeParams.dwTotalSize; lineInitializeParams.dwOptions = 2; lineInitializeParams.hEvent = IntPtr.Zero; lineInitializeParams.hCompletionPort = IntPtr.Zero; #region lineInitializeEx int result = Tapi.lineInitializeEx(out hLine, IntPtr.Zero, IntPtr.Zero, null, out dwNumDev, ref num1, ref lineInitializeParams); if (result != 0) { throw new ApplicationException(string.Format("lineInitializeEx failed!\n\nError Code:{0}", result.ToString())); } #endregion #region lineNegotiateAPIVerison int version; int dwAPIVersionLow = 0x10004; int dwAPIVersionHigh = 0x20000; LINEEXTENSIONID lineExtensionID; result = Tapi.lineNegotiateAPIVersion(hLine, 0, dwAPIVersionLow,dwAPIVersionHigh, out version, out lineExtensionID); if (result != 0) { throw new ApplicationException(string.Format("lineNegotiateAPIVersion failed!\n\nError Code: {0}", result.ToString())); } #endregion #region lineOpen IntPtr hLine2 = IntPtr.Zero; result = Tapi.lineOpen(hLine, 0, out hLine2, version, 0,IntPtr.Zero, 0x00000002, 0x00000004, IntPtr.Zero); if (result != 0) { throw new ApplicationException(string.Format("lineNegotiateAPIVersion failed!\n\nError Code: {0}", result.ToString())); } #endregion #region lineGetGeneralInfo int structSize = Marshal.SizeOf(new LINEGENERALINFO()); byte[] bytes = new byte[structSize]; byte[] tmpBytes = BitConverter.GetBytes(structSize); for (int index = 0; index < tmpBytes.Length; index++) { bytes[index] = tmpBytes[index]; } #endregion #region make initial query to retrieve necessary size 1 result = Tapi.lineGetGeneralInfo(hLine2, bytes); // get the needed size int neededSize = BitConverter.ToInt32(bytes, 4); // resize the array bytes = new byte[neededSize]; // write out the new allocated size to the byte stream tmpBytes = BitConverter.GetBytes(neededSize); for (int index = 0; index < tmpBytes.Length; index++) { bytes[index] = tmpBytes[index]; } // fetch the information with properly size buffer result = Tapi.lineGetGeneralInfo(hLine2, bytes); if (result != 0) { throw new ApplicationException(Marshal.GetLastWin32Error().ToString()); } #endregion #region actual data fetching int size; int offset; // manufacture size = BitConverter.ToInt32(bytes, 12); offset = BitConverter.ToInt32(bytes, 16); manufacturer = Encoding.Unicode.GetString(bytes, offset, size); manufacturer = manufacturer.Substring(0, manufacturer.IndexOf('\0')); // model size = BitConverter.ToInt32(bytes, 20); offset = BitConverter.ToInt32(bytes, 24); model = Encoding.Unicode.GetString(bytes, offset, size); model = model.Substring(0, model.IndexOf('\0')); // revision size = BitConverter.ToInt32(bytes, 28); offset = BitConverter.ToInt32(bytes, 32); revision = Encoding.Unicode.GetString(bytes, offset, size); revision = revision.Substring(0, revision.IndexOf('\0')); // serial number size = BitConverter.ToInt32(bytes, 36); offset = BitConverter.ToInt32(bytes, 40); serialNumber = Encoding.Unicode.GetString(bytes, offset, size); serialNumber = serialNumber.Substring(0, serialNumber.IndexOf('\0')); // subscriber id //size = BitConverter.ToInt32(bytes, 44); //offset = BitConverter.ToInt32(bytes, 48); //subsciberId = Encoding.Unicode.GetString(bytes, offset, size); //subsciberId = subsciberId.Substring(0, subsciberId.IndexOf('\0')); subsciberId = "123";// serialNumber.Substring(0, serialNumber.IndexOf('\0')); #endregion //tear down Tapi.lineClose(hLine2); Tapi.lineShutdown(hLine); } } } ========CODE END============ please consantrate the point 1 and bold line; when I use the code on Pocket Pc 2003, It will run succssfully and "bytes" array type variable will fill exect required value, But The same code is raised a problam on the same line no 1 when I use Pocket Pc 2005. Problem is the "bytes" variable does not fill this time with generalInfo of the system. I dont know why is happening with 2005 for both system (pocket pc and smart phone 2005). any one who has some idea about it please post me. I would very thnakful to you. bye regards Rajat. Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
link between gadget html, anbd flyout html You're closer than you think. Try <body onload="System.Gadget.document.parentWindow.FlyOutShowResult();"> Andy Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Process Explorer for Windows Mobile 6.0? Hi,
I need to see all the DLL's attached with a particular process, running on Windows Mobile 6 Standard Emulator. How can I do this Is there any free Process Explorer for this platform Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Cannot trap HttpWebResponse exception Ilya Tumanov wrote:
You should be able to catch this exception by adding try/catch to your doWork() method.
doWork is in System.Threading.ThreadPool.WorkItem
How can I add try/catch in mscorlib.dll, it's not my code! Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Exchange data in tab control I have a app for WM5.0 with a tab control (CTabCtrl).
How can I exchange data between the tabs (the different dialog boxes)
F.ex. in the first tab I have a edit-box and in the second I have a list box. How can I set add the text from the first tab to the list box in the second Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Deployment and/or registration failed Hi
Thankx again.
I had an issue with my SQL mobile before.... Pls Refer below : So I implimented the solution provided by this article.
as mentioned in this I am including following .dll files.
sqlceca30.dll, sqlcecompact30.dll, sqlceer30en.dll, sqlceme30.dll, sqlceoledb30.dll, sqlceqp30.dll, sqlcese30.dll
Deploying SQL Mobile via ClickOnce To get a feel how easy it is to deploy SQL Mobile with Click Once, here¡¯s a quick walk through:
Using Visual Studio 2005 (Whidbey) create a new Windows Forms project.
Using the Data Sources Window choose to add a new Database Data Source for the Northwind sample database
On the Choose your Data Connection step, click New Connection
In the top of the dialog you can change the Data Source ¨C I know this term is overloaded¡
Click the [Change¡] button and select Microsoft SQL Server Mobile Edition as the data base data source
Your now given a Connection dialog where you can either create a new SQL Mobile Database or you can choose an existing SQL Mobile database.
Click [Browse] and you should see Northwind.sdf . .sdf is the SQL Mobile data file extension. If for some reason you don¡¯t see the sample database, verify you¡¯re looking in C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0
Once you select the sample database, click Ok, and click next to the Save Connection step
At this point you¡¯re prompted to copy the .sdf file to your project. Choose yes so the data file travels with your application.
Again, choose yes save the connection string in the Settings file.
You can now choose which tables. For the purposes of this simplified demo, just choose Employees and click finish.
This creates a strongly typed DataSet, new in Whidbey for devices, for your Northwind SQL Mobile file.
Drag the employees table from the Data Sources Window to the Form1 design surface. You can choose the Smart Tag on the grid to dock-fill. So far, this is the same experience for server based databases.
At this point you¡¯d think you can run your application, and you can certainly try hitting F5. But, you¡¯ll get an exception stating the runtime can¡¯t find sqlceme30.dll. ADO.net for SqlMobile can¡¯t find the SQL Mobile runtime. No problem, we¡¯ll just add it to our project. But wait you say. Isn¡¯t that an install Or a ClickOnce boot strapper thingy Nope. The SQL Mobile runtime is a few very small dlls. To get the full functionality for SQL Mobile you only need to add less then 1.4mb to your project. That¡¯s less then some home page images.
To add the runtime we need to place these files in a path that can be found by ADO.net. You could MSI install these to the System32 directory, but because they¡¯re so small, why not just ship them with your app
Within Solution Explorer, select your project and choose Add Existing Item
Navigate to C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
Change the files of type to all files
Click in the file list window and type sqlce to get to the files that start with these letters
Shift select all 7 files, sqlcera30.dll, sqlcecompact30.dll, sqlceer30en.dll, sqlceme30.dll, sqlceoledb30.dll, sqlceqp30.dll, sqlcese30.dll and click Add.
You now have the runtime in the project, but it¡¯s not in the execution path.
Select all 7 files in solution explorer and select the property grid.
Change the Copy to Output Directory to Copy if newer This will make sure these files are copied to the output directory and can be found at runtime.
Hit F5 to test your app.
Voila . You now have a local database ready to go. Deploying with ClickOnce Because these dll¡¯s are just private to the project, you can simply publish your app just as you would normally. Post Beta 2 however, you¡¯ll have a minor problem. ClickOnce actually places ¡°Data¡± files in a different directory then you¡¯re app. For more info check out my Tech Ed blog and Data Directory sample. Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Using the select form to change a specific URL I've been working on a gadget which would show streamed tv news directly on the sidebar. The basic coding is finished; I can watch a given streamed french news channel (similar to CNN) on the sidebar. I tried to create a select form in the gadget's settings which would allow the user to change the channel. I know how to save text entries, but is it possible to use <select> in order to change the streamed video URL on the main gadget page Thanks for helping. N.b. English is my second langage, sorry for any grmamar mistake in my post Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
How to selected related items in ListView(C#) when an item is click? Hi Catamount,
Sorry, but it's .NET Compact Framework. Some limitations cause it is not able to do what desktop version can. Searching in the forum with the similar topic, I think it's best choice to use checkbox property instead of selected, with which you can achieve the same functionality.
Or, you can also keep all the items that you want to set it selected in a Array.
Hope this can help,
Zero Dai - MSFT Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
XmlReader NotSupportedException on <!DOCTYPE rss ...> Hi,
I'm trying to get XmlReader parse random RSS feeds, and ran accross the document header:
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" " http://my.netscape.com/publish/formats/rss-0.91.dtd "><channel>...</channel></rss>
and XmlReader.Read throws the exception "NotSupportedException".
Replacing the header with a proper XML header < xml version="1.0" ...> fixes the problem.
Question: Is there a property in the compact frameworks XmlReader properties to get around this
I suppose the brute force method would be to replace the header with a proper xml one, but I'm lazy and am looking for a one line fix.
Thanks,
Chris Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
getting the device id of windowsmobile 5.0 hi Zerodai, i am having a problem on Device ID . i know that the length of the Device Id is around 20 bytes .i have generated the device ID using the following code . u sing System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Windows.Forms; using System.Runtime.InteropServices; using System.Text; namespace SudokuFusion { public class DeviceID { private static Int32 METHOD_BUFFERED = 0; private static Int32 FILE_ANY_ACCESS = 0; private static Int32 FILE_DEVICE_HAL = 0x00000101; private const Int32 ERROR_NOT_SUPPORTED = 0x32; private const Int32 ERROR_INSUFFICIENT_BUFFER = 0x7A; private static Int32 IOCTL_HAL_GET_DEVICEID = ((FILE_DEVICE_HAL) << 16) | ((FILE_ANY_ACCESS) << 14) | ((21) << 2) | (METHOD_BUFFERED); [DllImport("coredll.dll", SetLastError=true)] private static extern bool KernelIoControl(Int32 dwIoControlCode, IntPtr lpInBuf, Int32 nInBufSize, byte[] lpOutBuf, Int32 nOutBufSize, ref Int32 lpBytesReturned); public DeviceID() { } public string GetDeviceID() { byte[] outbuff = new byte[20]; Int32 dwOutBytes; bool done = false; Int32 nBuffSize = outbuff.Length; // Set DEVICEID.dwSize to size of buffer. Some platforms look at // this field rather than the nOutBufSize param of KernelIoControl // when determining if the buffer is large enough. // BitConverter.GetBytes(nBuffSize).CopyTo(outbuff, 0); dwOutBytes = 0; // Loop until the device ID is retrieved or an error occurs while (! done) { if (KernelIoControl(IOCTL_HAL_GET_DEVICEID, IntPtr.Zero, 0, outbuff, nBuffSize, ref dwOutBytes)) { done = true; } else { int error = Marshal.GetLastWin32Error(); switch (error) { case ERROR_NOT_SUPPORTED: throw new NotSupportedException("IOCTL_HAL_GET_DEVICEID is not supported on this device", new Win32Exception(error)); case ERROR_INSUFFICIENT_BUFFER: // The buffer wasn't big enough for the data. The // required size is in the first 4 bytes of the output // buffer (DEVICE_ID.dwSize). nBuffSize = BitConverter.ToInt32(outbuff, 0); outbuff = new byte[nBuffSize]; // Set DEVICEID.dwSize to size of buffer. Some // platforms look at this field rather than the // nOutBufSize param of KernelIoControl when // determining if the buffer is large enough. // BitConverter.GetBytes(nBuffSize).CopyTo(outbuff, 0); break; default: throw new Win32Exception(error, "Unexpected error"); } } } Int32 dwPresetIDOffset = BitConverter.ToInt32(outbuff, 0x4); // DEVICE_ID.dwPresetIDOffset Int32 dwPresetIDSize = BitConverter.ToInt32(outbuff, 0x8); // DEVICE_ID.dwPresetSize Int32 dwPlatformIDOffset = BitConverter.ToInt32(outbuff, 0xc); // DEVICE_ID.dwPlatformIDOffset Int32 dwPlatformIDSize = BitConverter.ToInt32(outbuff, 0x10); // DEVICE_ID.dwPlatformIDBytes StringBuilder sb = new StringBuilder(); for (int i = dwPresetIDOffset; i < dwPresetIDOffset + dwPresetIDSize; i++) { sb.Append(String.Format("{0:X2}", outbuff)); } sb.Append("-"); for (int i = dwPlatformIDOffset; i < dwPlatformIDOffset + dwPlatformIDSize; i ++ ) { sb.Append( String.Format("{0:X2}", outbuff)); } return sb.ToString(); } } } The output is as follows : 53006D00610072007400500068006F006E0065000000-00 Is that the above ID is correct or is there any problem in code , If so give me a sample ID . waiting for the reply thanks sadiq Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Vector Graphics in Gadget You need to display something first! Shapetype defines a shape, to display it you need to add: <v:shape style="top:0px; left:0px; width:100px; height:50px;" type="#box" strokecolor="white" fillcolor="black" /> Regard "caching", yes Sidebar (well, IE actually) does cache Gadgets so if you make a change, you should always exit and reload Sidebar. Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Launching external application via Shell() Hi everybody,
I'm trying to create an application to overwrite the "Today" on my PPC (WM5). The aim is to simplify the use of the PDA for lambda user, and avoid him to make wrong use. To do it, I simply craeted a application (in "Maximised" to hide the Start button), and put some buttons on it to launch what I accept the user to use (my own application, a navigation software, ...), and put a nice value in the registry to launch it at OS start.
But the problem comes when I try to launch these application. Here is what I did (example for one button):
Code Snippet
Dim tmp As String = "\Windows\calc.exe"
MMProcID = Shell(tmp, AppWinStyle.MaximizedFocus, False )
AppActivate(MMProcID)
But these create this error:
Code Snippet FileNotFOundException
Obviously, the exe file exists (I checked 3 times).
What happens
Thank you !
Regards,
Ch'Portos. Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
How to make a .net class library pocket pc compatible? P/Invoke is a term used to call into native dll's (non .net dll's) it's normally used when you want to use functionality not yet supported on the .net (compact) framework. Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
C# Plugin for Home page? (I removed this, it was a duplicate post) Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Putting captured image into a SQL database This worked perfectly and seems to speed up my code.
Unfortunately the image still appears black on the crystal report.
Is there any generic tool for capturing images without having to use the HPCAMM.EXE app on the PDA Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Pocket PC: Error () causes "Object does not support this property or method" work-around:
on error, return E_FAIL, or your own HRESULT, and fire an event with the error text. Catch the event in your client and print out the message. You can still have a try-catch block, but only to check success and failure. Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
How to connect to another device such as handheld, or printer by WI-FI? HI,
I am not sure if this is the way that it should work.
We are trying to develop a program on handheld, to connect to a printer by WI-FI to do printing. Is this doable Both my handheld and printer support 802.11 WLAN. Normally, in my home computer, we need to have a WLAN adapter as a network access point in order to let my laptop connect to internet. In the handheld case, will handheld be a role like the adapter
And also, is there any sample code to detect the printer, and connect to the printer or other handheld device
Thanks. Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
CallBack State for a Mobile. Hi I am working with .Net CF for window mobile P pc and smart phone. The problem is, I want to trap a status of called phone device. like is it; 1. Off. 2. Out of range. 3 Switch off. 4. not acitvated. etc. Rajat. Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
List of Devices with RAPI Disabled? Are there many Windows Mobile 5 or 6 devices being sold to consumers with RAPI disabled Is there a list of those devices somewhere Thanks! Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
AlphaBlend a Windows Control Hi Alex
There is a way of implementing what you want.
The key point is ho have the parent (usually a Form or Panel) paint the controls background before painting the image using the Win32 API AlphaBlend.
Here is a small code snipped that shows how this may look like:
Code Snippet
/// <summary> /// External paint control interface /// </summary> public interface IPaintControl {
// have the foreground painted
void InvokePaint (PaintEventArgs e);
// have the background painted
void InvokePaintBackground (PaintEventArgs e);
}
// Form class implementing the IPaintControl Interface
public class Form : System.Windows.Forms.Form , IPaintControl
{
//other stuff...
//IPaintControl
public void InvokePaint (PaintEventArgs e) { this.OnPaint (e); }
public void InvokePaintBackground (PaintEventArgs e) { this.OnPaintBackground (e); }
}
public class PictureBox: System.Windows.Forms.Control
{
//Fields and properties required
// eg the Alpha property and other related stuff
// P-Invoke stuff for SetViewportOrgEx
[StructLayout (LayoutKind.Sequential)] private struct POINT { public int x; public int y;
[DllImport ("coredll.dll", SetLastError = true)] private static extern int SetViewportOrgEx (IntPtr hDC, int x, int y, out NativeMethods.POINT lpPoint);
//Called by the framework to paint the control
protected override void OnPaint (PaintEventArgs e)
{
//Step 1: have the background painted by the parent
IPaintControl parent = this.Parent as IPaintControl; if (parent != null)
{
Point location = this.Location;
using (Region rgn = new Region (this.ClientRectangle)) {
Graphics gfx = e.Graphics;
IntPtr hDC = gfx.GetHdc ();
SetViewportOrgEx (hDC, -location.X, -location.Y, out oldOrigin);
gfx.Clip = rgn; parent.InvokePaintBackground (e);
parent.InvokePaint (e);
SetViewportOrgEx (hDC, oldOrigin.x, oldOrigin.y, oldOrigin); gfx.ResetClip ();
gfx.ReleaseHdc (hDC); }
}
//Step 2:
// Paint the picture using the AlphaBlend API
...
}
}
I successfully used this approach to inmplement a transparent label and other controls that do require a 'transparent' background.
Hope this makes sens
Michael Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
CeRunAppAtEvent in WM5 Has anyone tried CeRunAppAtEvent in Windows Mobile 5 I need to trigger an app when I switch on my pocket PC. So I wrote a code
CeRunAppAtEvent (szAppName, NOTIFICATION_EVENT_WAKEUP);
This works for Windows Mobile 2003. Everytime when I switch on my pocket PC, the app is triggered. However, when I compile and run it in Windows Mobile 5, nothing gets triggered. Did I miss something Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
VS 2005 with CE 6.0 device emulator cannot work Hi Jeff,
Have you came across the following blog entry It may be of help to you, but by the sounds of it you are already attempted most of the suggestions it provides.
"Where are we going, and what's with the handbasket - Does PB 5.0 work side-by-side with PB 6.0 " - http://blogs.msdn.com/dcook/archive/2007/05/13/does-pb-5-0-work-side-by-side-with-pb-6-0.aspx
Hope this helps,
Christopher Fairbairn Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
Problem with Unicode characters If you are importing the strings with the "UnicodeEncoding", try using "UnicodeEncoding.Default....." instead of "UnicodeEncoding.ASCII...." Tag: Smart Devices VB and C# Projects MSMQ Message Max Size on PPC Smart Device Development
prawin
Any ideas on the Max size of a MSMQ Message on PPC