How are you going to connect the PPC to the PC ?
arcticbrew
Posts
-
Looking for any way to transfer file from PPC to PC -
How to retrive the Storage Card nameThe System.IO.DirectoryInfo object can be used to get a list of all directories. Storage Cards will have this attribute: System.IO.FileAttributes.Temporary.
-
Double Buffering for PocketPCI do double buffering on Windows Mobile 2003 devices. It works well. Show your code and I might be able to help you.
-
Button pressed issueThe only way that I know to do this is to make your own button class derived from control. Then you can use the mouse events from the control class.
-
GPS error ASUS P535Does the Asus provide gps sharing through a virtual port scheme. If so this may be your problem. The workaround would be to implement your own polling and NMEA sentence data parsing routine. I experienced a problem on an HP Travel Companion with the serial port data received events when the virtual port feature was being used. The virtual port feature is intended for sharing of the gps port by multiple applications. When I disabled the feature and accessed the port directly the data received event was fired. If I enabled the feature I had to use a polling routine to get the serial port data. I do not think that this is a bug. I am not sure how I would implement a data received event for multiple listeners when using virtual ports.
-
Bitmaps and com interophow are you drawing to the bitmap in unmanaged code? Don't you need a Device Context?
-
Bitmaps and com interopHi Mike thanks for responding. Would you describe the method you used. I tried creating a bitmap from the device context of the screen, passing the Device Context and hBitmmap to unmanaged code, drawing on the bitmap in unmanaged code and passing back to managed code. But when I try to draw in managed code using GDI I get a memory exception.
-
Bitmaps and com interopI am working in the compact framework. I have an ATL object that needs to draw on a bitmap. I need to pass the bitmap to a C# program and display it. We have tried creating the bitmap in C# with GDI methods then used the APIs for CompatibleDCs, selectobject, getHdc, etc and passed the DC to the ATL object. On returning it from the ATL object I get ExceptionHandling errors relating to memory when I try to get a bitmap I can use in managed code. We have been able to pass the DeviceContext and draw directly on it but I want to retrieve a bitmap that I can cache as a member variable in my class. Has anyone successfully passed bitmaps back and forth between managed and unmanaged code?
-
bitmaps and com interopI am working in the compact framework. I have an ATL/COM library that creates a bitmap. I need to pass the bitmap to a C# program and display it. We have tried creating the bitmap in C# with GDI methods then used the APIs for CompatibleDCs, selectobject, getHdc, etc and passed the DC to the ATL object. On returning it from the ATL object I get ExceptionHandling errors relating to memory when I try to get a bitmap I can use in managed code. We have been able to pass the DeviceContext and draw directly on it but I want to retrieve a bitmap that I can cache as a member variable in my class. Has anyone successfully passed bitmaps back and forth between managed and unmanaged code?
-
Custom Region in Window CEYou can find a sample program that shows how to create an irregular shaped window on smart devices here http://www.opennetcf.org/PermaLink.aspx?guid=f0abe92f-6e94-4a19-b0e3-11d1bdb3c9f0
-
Multithreading Local VariablesRead about synclock and monitor. They provide a mechanism that locks an object and blocks other threads from accessing it except the thread that created the lock. When the lock is released the blocked threads are allowed similar lock and access.
-
Daylight saving not working in vb .net applicationInteresting question. Perhaps, your program is working correctly (without regard to the "garbages in my registry"). How do you test the time change? What should happen? The logistics of making the clock jump forward are straightforward. Advance the clock when you hit 2am. What happens when it is time to jump backwards. Obviously, MS has had this function working correctly for years. How should the system clock behave on the switch in November when you are watching it? Should it jump back to 1am when it reaches 2am? This poses a problem when it hits 2am the next time. Dave do you know how to test this function?
-
Help Needed!! Problem in running an exe fileYou can use the CreateProcess api to start an exe. There are many examples of how to do this on the web.
-
Windows Mobile Soft Keys1. There is codeproject article on capturing hardware key events. 2. You can add a background image to a form by overriding the paint event and using GDI to draw a bitmap on the form. I do this. 3. me.close, then application.exit If you still have the problem use the debugger to see if the application is hanging during the form's dispose event and determine which object is causing the problem.
-
Running regsvr32.exe from CreateProcessAs an alternative to regsvr32, you could (pinvoke) call the DllRegisterServer function in the Dll. Regsvr32 executes this function in the Dll to perform the registration.
-
Very Long IntegersKarens Power Tools has a free calculator with source code that handles numbers with thousands of digits http://www.karenware.com/powertools/ptcalc.asp
-
Dynamically creating panels and text boxesSet the parent property of the label to the panel you create. Set the parent property of the panel to the form on which you want it to appear. The labels location coordinates will be relative to the top left corner of the panel. If you want the panel to show on the form you must set its visibility property to true and call BringToFront. You must do the same for the label so it shows on the panel.
-
VBA speed issuesDid you run an analysis, identify the procedures that are consuming the most time, and optimize them? This would be the first step before making a decision to rewrite in another language. How large is the program? Converting to VB.Net might be the most prudent and quickest.
-
Exe file bigger than usually"the exe file is about 120MB" Is it 120MB or 12MB?
-
Split functionI ran your code and it worked without error.