|
Hi, I'm developing an application for a pocketpc2003 based device. Now I have to port this application to a Windows CE based device.
In my application I used FindFirstFlashCard() to detect a storage on the device, but this function is part of PPC SDK. What can I use to detect if there's a flashcard (a storage card) on the winCE device?
|
|
|
|
|
I believe you will have to ask the device manufacturer for that information.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi,
I have to host WebService in WinCE .NET.
I have written ATL COM Component in embedded VC++ ,and generated WSDl/WSML files using tool wsdlstb_ce.exe .
I am using ComplexTypes in my WebMethods,for that i have written COM Component implementing ISoapTypeMapper.
Modified WSML file accordingly e.g.
<servicemapping name="Service">
<service name="Service">
<using progid="Service.MyService.1" cachable="1" id="ServiceObject">
<using progid="Service.ComplexTypeMapper.1"
="" cachable="1" id="ComplexTypeMapperObject">
<using progid="Service.StatusMapper.1"
="" cachable="1" id="StatusMapperObject">
<types>
<type name="Complex1" targetnamespace="http://temp.org/webservices/"
="" uses="StatusMapperObject" iid="{xxxx-xxxx-xxxx-xxxx-xxxxxxxxx}">
<type name="Complex2"
="" targetnamespace="http://temp.org/webservices/" uses="ComplexTypeMapperObject" iid="{xxxxxx-xxxx-xxxx-xxxx-xxxxxxx}">
------------------------------------
------------------------------------
Now when i call WebMethod from client on PC (sending Complex Types as a parameters)It goes in Constructors of all the COM Components (e.g. Service,ComplexTypeMapper,StatusMapper) after that it throws the Exception of type
"System.Web.Services.Protocols.SoapExceptions"
"Additional Information:Error Source :Server"
How can i see, where this exception is occuring on WinCE hardware??
what is this exception?????
Thanks
Tushar Mahajan.
|
|
|
|
|
I'm interesting is it possible to communicate from pocket pc with Web Services by GPRS or any another way? I want to make a programm, that can recieve or send to server some data, so how to make it, and where can i find such information? Please, help.
|
|
|
|
|
Hello,
I want to call api to change registry in ppc because in CF.Net have not class to do this. I tried many idea for a long time. But also get a System.NotSupportedExcepion. Where have error?
This is my code.And running in Ppc Emu 2002.
Imports System
Imports System.Runtime.InteropServices
Public Class Form1
Inherits System.Windows.Forms.Form
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
--Windows Form Designer generated code--
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
MsgBox(OpenMySubKey)
End Sub
<dllimport("coredll.dll", setlasterror:="True)"> _
Public Shared Function RegOpenKey(ByVal hkey As IntPtr, ByVal lpSubKey As String, _
ByRef hkeyResult As IntPtr) As Long
End Function
Public Function OpenMySubKey() As Long
Dim HKEY_CLASSES_ROOT As IntPtr = New IntPtr(&H80000001)
Dim hkey As IntPtr = IntPtr.Zero
Return RegOpenKey(HKEY_CLASSES_ROOT, "MySubKey", hkey) 'When running here,i get System.NotSupportedException.
End Function 'OpenMySubKey
End Class
Please help me...
|
|
|
|
|
I have proprietary hardware that contains a host controller that can
enumerate PPC 2003 devices. When a PPC 2003 device is attached to our
hardware, our hardware enumerates the device then waits for the device to
send data to it, specifically waits for a hex 5. Once it receives the hex 5
it returns a hex 6. We have built in debug monitoring on our hardware that
allows us to see all incoming and outgoing data. Using the serial over USB
driver interface that’s a part of the COM driver we can successfully send a 5
down as well as any other data we want. The issue comes in when we send data
from the host, i.e. a 6, back to the device running PPC 2003. No matter how
long we read for on the device nothing ever comes back but the host is
definitely returning data. I also tried setting up a WaitCommEvent on the handle and have it signal when a EV_RXCHAR event came in. This event is never getting flagged.
Again we are using the Serial over USB driver included with PPC 2003 to
communicate with the host controller. The drivers interface type is
4294967295 and its key is Drivers\BuiltIn\SerialUSB. I did check and although
the specific index the SerialUSB driver resides on changes i.e. COMx:, the
interface remains the same. Does anyone know if there is something special
you have to do to read data being sent over USB on the device? Is data read
on a different Com? Thanks for your help in advance.
Jeremy Truelove
---
Software Engineer
|
|
|
|
|
Hi,
First - check the pins of both sides of the RS232 connector(are you sure the TX of one side goes to Rx of the other?).
Also - you should check if your H/W uses Flow Control etc.
if so - check if all the pins are connected.
Good Luck,
Eli
|
|
|
|
|
Well when I say Serial over USB that isn't with a special cable. That's how the communication between a PPC 2003 and the desktop occurs. The PPC doesn't use a standard serial cable it has a special connector you plug into the bottom that has a male USB connector on the other. It's pretty hard to have them not connected because both ends pretty much lock in. I've pretty much tried every combination of serial settings on the device possible but to no avail. And again I can send data down but I can't receive it back. I'm beginning to think it may be an issue in how our hardware is enumerating the device. If anyone has tried to use the serial over usb driver that is a part of PPC 2003 please let me know, thanks.
--
Jeremy Truelove
|
|
|
|
|
Hi,
I could not find any info on this anywhere some maybe someone here has an idea?
When I create a dialog with a button (CButton) and the stylus is held down on the button for an extended period the the red dots from tap and hold do not appear. This is good.
When I create a CBitmapButton and the stylus is held down the red dots do appear. This is bad.
How do I disable tap-n-hold for owner draw (CBitmapButton) buttons ?
Thanks Tom.
|
|
|
|
|
Never mind -
Here is the solution
Derive your own class from CBitmapButton and override the OnLButtonDown function.
void CMyBitmapButton::OnLButtonDown(UINT nFlags, CPoint point)
{
Default();
}
|
|
|
|
|
Is it possible to get Smartphone/Pocket PC ID/PIN???
I have a solution for mobile devices and I want to limit user access without requesting user name/password, just based on device ID.
|
|
|
|
|
I'm also interested in the answer
Thanks...
sun.lcr
|
|
|
|
|
you can actually look at ur mobile device's Settings. There is an Asset Viewer there that tells you ur device's identity.
|
|
|
|
|
Hi,
I want to host the existing Web Service (on PC) to Windows CE device.How can i host the same Web service there.
According to the article i read ,i need to write new ATL Component and from that COM dll i need to generate WSDL and WSML files using tool called "wstlstb_ce.exe"
article link is:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnembedded/html/embedded12032002.asp
but by doing that my WSDL gets changed(it will be different from the Desktop counterpart).
is there any other way of hosting XmlWeb service on Windows CE Device??
Thanks and Regards
Tushar Mahajan
|
|
|
|
|
Hi,
I try to launch the voice Recorder out of my Application but didn't yet find a way to do so. The ShellExecute is not supported and all the other methods i know arent either. There seems to be a dll called VCOMCTL.DLL coming with activesync that provides that functionallity but i didnt find a way to set a reference to it as it is not "Known" by .NET.
Thanks, Markus
|
|
|
|
|
hello,
i want to ask that i m new to mobile world.
I dont think that a computer scientist may survive
in the field of mobiles and communication b/c after
doing BS(cs) he only thinks about programming.
If anyone interested in this field then how can
he become successfull in this manner.
I m student of BS and think of mobiles.
How can i do the final project of mine in this field.
Any one who has an idea please tell me and also tell me
about my confusion.
Thanks in advance
Voilent Voice
|
|
|
|
|
Hi,
I want to upload file on Windows CE.NET Emulator.I Open RemoteFileViewer and try to connect Device "STATDARDSDK Emulator",but it is not connecting to Device giving MessageBoxes:
"The Emulator Startup Server Reported the Following Error:Unable to establish a connection with the Device.Please check server configuration settings."
and
"Platform Manager was unable to connect to the Device.Please check your startup server and transport settings and try again."
can anyone tell me how to upload file on emulator??
Thanks
TusharM.
|
|
|
|
|
You are doing the right thing, you problem is that the Platform Manager is not seeing the emulator. Do you have a valid and live IP connection?
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
where do you find the remote file viewer? Do you have to download the tools kit for the file loader?
sun.lcr
|
|
|
|
|
Hi,
Remote File Viewer comes with Embedded VC++ 4.0 ,
you can find it in Tools menu.
Thanks
TusharM.
|
|
|
|
|
I have to write a routine where i have to compact a local database in the middle of an application.
I have created a Cdatasource object and CSession object at the time of start of the application.
In the middle of the PPC application say on a button click,
i called the close method of these 2 objects, ran the command for compacting the database and opening the datasource and session again.
In the routine for compacting the database we are creating a com object.
i.e
HRESULT hr = CoCreateInstance(CLSID_Engine, NULL, CLSCTX_INPROC_SERVER, IID_ISSCEEngine, (void**)&ssceEngine);
This returned false.So it could not create the engine object,
Can any one tell me why this happened,
When i call this function in the start as soon creating a sdf file it works, but from the middle of application it doesnt,
Pls help !!!!!!!!!
|
|
|
|
|
Did you call CoInitializeEx?
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
This is what i wrote:
ISSCEEngine* ssceEngine = NULL;
bool retVal = false;
m_strLocalStorageFile = _T("C:\Tmp1");
HRESULT hr = CoCreateInstance(CLSID_Engine, NULL, CLSCTX_INPROC_SERVER, IID_ISSCEEngine, (void**)&ssceEngine);
if (SUCCEEDED(hr) && (ssceEngine != NULL))
{
CString strDestStorageFile = _T("C:\Temp");
CString strSource = _T("Data Source=");
strSource += m_strLocalStorageFile;
strSource += _T(";SSCE:Database Password=xxxx;SSCE:Encrypt Database=TRUE");
CString strDest = _T("Data Source=");
strDest += strDestStorageFile;
strDest += _T(";SSCE:Database Password=xxxx;SSCE:Encrypt Database=TRUE");
BSTR sourceFile = strSource.AllocSysString();
BSTR destFile = strDest.AllocSysString();
hr = ssceEngine->CompactDatabase(sourceFile, destFile);
}
if (retVal)
{
if (::DeleteFile(m_strLocalStorageFile))
{
// rename the file
::MoveFile(strDestStorageFile,m_strLocalStorageFile);
}
}
This code works from fine in one module but doesnt seem to work when called from another module.
The module from where it works is where the sdf file is created.
before calling the above lines of code im just closing the connection the datasource and session and opening it after running the compact routine.
I also tried calling coInitialixeEX but didnt wrk
Pls help !
|
|
|
|
|
exactly, so why don't u try paint that comes with all microsoft OS to draw larger icons?
|
|
|
|
|
How to custom draw big icons in CListViewCtrl which type is LVS_ICON?
I know how to custom draw in CListViewCtrl typs is LVS_REPORT, but can't draw
icon when type is LVS_ICON by the same method!
I use embedded vc 4.0 ,and wtl 7.0, sdk is smartphone 2003
Please help me.
Thanks .
lee
|
|
|
|