Animated Graphics
Hi,
I am in a process to create a game on pocket pc. while creating the
game i have to use a lot of animations. the problem here is that i have
5 frames of the same image in diffrent angles which makes it look
moving. Can some one send me code in vb.net on creating an animated
image using those 5 frames.
I would be greatful to any one who helps. Tag: Oladoce and embedded visual c Tag: 91714
Windows CE & PocketPC 2003
Dear all
I need to know Windows CE difference Pocket pc 2003 ?
Thankyou & Brg,
TingN@ng Tag: Oladoce and embedded visual c Tag: 91712
User inactivity timeout
Hi,
How to get the user inactivity timeout on pocket pc?
I need to realize functionality that occures when user do not touch the
device.
--
Best regards,
Vladimir Zinin
mailto:zinin@eldos.org Tag: Oladoce and embedded visual c Tag: 91710
How to Determine whether a pocket pc is VGA mode or not.
Hi there,
I am trying to find the screen resolution of the pocket pc, it works
fine with GetSystemMetrics() API for Non-VGA mode but For VGA mode it
displays the same resolution as Non-VGA. Is there a way to know whether
a pocket pc is in VGA mode or Non-VGA mode.
Any Reply is welcome . Tag: Oladoce and embedded visual c Tag: 91708
Autorun.exe Windows Mobile 2003.
Hi all,
I am trying to install CAB files from Storage Card, when the device is
cold/hard reset. Platform :Windows Mobile 2003, Hardware: Symbol PDT 8100.
How can I write the autorun program in .NET Compact Framework, when .NET
Compact Framework is one of the cab files which this program would grab from
the Storage card and install on to the device?
Any ideas would be much appreciated.
TIA,
KriS. Tag: Oladoce and embedded visual c Tag: 91698
CE Query Analyzer Please Help!
Hi,
I am having a frustrating problem with SQL CE query analyzer.
I cannot add a NOT NULL column to an existing table, using either the GUI or
an SQL statement "ALTER TABLE Sites ADD status bit NOT NULL". I tried the
same with all my existing tables, and with different data types, and no luck.
I can only add these columns when I originally design the table. All my
tables have PKs and are empty.
Is this a bug or is it supposed to operate this way? I really don't want to
re-create all my tables just to add one non-nullable column to each.
Any help would be GREATLY appreciated. Tag: Oladoce and embedded visual c Tag: 91697
GPS on PDA browser
Hi,
I'm an informatics student.
I've a dream... :-)
my dream is to have, in a PDA browser, the real time GPS co-ordinates.
how can I do it?
I thought to an applet or an activex control... but...
is there a free JVM for all kind of PDAs and related OSs?
are activex usable with non windows PDAs?
is there another better way?
and last...
how can I get the datas from the GPS receiver? (also if it is external - COM
or USB - or embedded in the PDA.....)
coul someone help me????
thanks!!!!
gp Tag: Oladoce and embedded visual c Tag: 91696
Programatically Provisioning PocketPC for 802.11
Hello All:
Does anyone have any sample code for setting SSID, WEP key, etc on a
PocketPC via DeviceIOControl and the various NDIS OIDs? DeviceIOControl is a
nefariously difficult call to get right...
Robert Tag: Oladoce and embedded visual c Tag: 91684
Symbol PDT 8100 Cold boot.
Hi all,
I am trying to persist .NET Compact Framework(a cab file), two other third
party softwares on a Symbol PDT 8100/Windows Mobile 2003 across cold boots.
My problem is that the Flash File System(\Application and \Platform folders)
on the device is way less than what I need.
I have added a compact flash card to the device. Copied all three cab
files(.NET CF and two third party softwares) to the compact flash card. Wrote
a .CPY file which would tell the Operating System to copy the CAB files from
Compact Flash card to "\Windows\Startup". This is not working.
How can I persist three softwares across cold boots if the space on the
Flash File System is less and the Compact Flash card method does not work?
Can I somehow increase the memory for the Flash File System? Any ideas would
be much Appreciated.
Thanks in Advance,
KriS.
If at all the Tag: Oladoce and embedded visual c Tag: 91682
Help! Is something fundamentally wrong with this?
Hi All,
I created a new ActiveX project, implemented IObjectSafety, and then tried
to create a modeless dialog in the ActiveX control's InitInstance. Then, I
made a web page that embeds it and then open the web-page:
It <seems> to work at first, but then weird problems arise. When the device
is cradled/uncradled, Pocket IE shuts down. Not only that, but certain
Pocket PC's lose their cookies too! Also, if ShowWindow( SW_SHOW ) is not
used after creation, then Pocket IE hangs up, and the control terminates
unexpectedly.
I need the dialog to be modeless so I can use it to hold state information,
and only appear when necessary. I have a win32 version that runs just fine
on the desktop machine.
Is there something fundamentally wrong with doing this?
Thank You!
Bryan Palmer
Software Engineer
TORO - EICON Tag: Oladoce and embedded visual c Tag: 91681
Using RDP / Terminal Server with CE.NET
L.S.,
I have been trying to write a Terminal Server Client-application for
Mobile 2003 using Visual Studio.Net.
In VB.NET for desktop, I can use the MsRDPClient-control through which
I can start a session, and use Virtual Channels.
However, for a Pocket PC, the compact framework doesn't seem to be able
to implement the same control (an OCX), because the compact framework
doesn't accept COM.
Nevertheless, the Microsoft website suggests that use of the
MSTsCax.dll with the compact framework is possible.
eg:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcerdp/html/cerefimstscaxeventsinterface.asp
But, no clue as to how to import or register this control. Simply
adding is not enough.
Does anybody know how do this? Or does anybody know for a fact that it
is not possible?
Much obliged,
Joris Broeren Tag: Oladoce and embedded visual c Tag: 91676
How to change IMM mode with external keyboard?
Hello.
My customers have pocketpc 2003 korean version and 3rd party external
keyboard. But problem exists. Because customers use korean language,
they may have to change IMM input mode-korean or english input mode.
On the screen, there is toggle button. But I can't find the any
external keyboard input for that - somthing like kor/eng toggle
button.
For windows, there is kor/eng toggle button, and it works. If adequate
keyboard driver which is provided by MS is selected, we can change the
input mode by pressing "Shift + Space".
For the external keyboard, there is no kor/eng button, so I'd like to
emulate the button using something like "Shift+Space" or any other
key. I also tested kor/eng button in my PC keyboard using PPC
emulator, and it doesn't work.
I must find the way for customers...so I've tried to make some
program. At the first time, I think about keyboard hooking and luckily
there is hidden function in PocketPC 2003. And I wrote down the code
below.
-----------------------------------------------------
hLibrary = LoadLibrary(L"coredll.dll");
if(hLibrary == NULL)
{
return 0;
}
else
{
m_pfSetWindowsHook = (SetWindowsHookExW)GetProcAddress(hLibrary,
L"SetWindowsHookExW");
if(m_pfSetWindowsHook == NULL)
{
return 0;
}
else
{
HHOOK gHook = m_pfSetWindowsHook(WH_KEYBOARD_LL, (HOOKPROC)
MainWndProc, hInstance, 0);
}
}
-------------------------------------------------------
The hooking seems to works but not perfectly. Because I can get the
keyboard messages but the wparam and lparam value is fixed and
meaningless. How to get the keyboard information precisely?
And I'd like know how to toggle the IMM input mode. For my experience,
the IMM input mode is set for the applications respectively. How to
change the IMM for the currently activated program, not the helper
program(what I want to make).
I think Pocket PC 2003 OS must support the kor/eng toggle key.
If you know any work-around such as using hot-key or others, please
let me know that.
Thank you.
Best Regards,
Hojae Lee Tag: Oladoce and embedded visual c Tag: 91673
POOM date type?
I'm busy working with POOM and using the pocketoutlook c++ wrapper from the
.net compact framework POOM wrapper sample, trying to add calendar entries.
I can add entries but soon as I try specify a date/time I have fails with no
informative exceptions.
So I'm checking what format date the wrapper dll requires, does anyone what
format it needs, it just says DATE in the C++ source code of the dll. Tag: Oladoce and embedded visual c Tag: 91672
Show ColorWheel while loading NOT hour glass
I would like to display the colorwheel when loading an app or a form on the
app. I have seen other non-microsoft programs do it so I know that it isn't
something that microsoft keeps to themself. I know I can display the
hourglass using: Cursor.Current = Cursors.WaitCursor but I would really
prefer the colorwheel because it is color and it's animated. Anyone know how
to use it? Tag: Oladoce and embedded visual c Tag: 91668
Software protection/Device Serial Number can it be spoofed ?
Hi all
We have spent around 18 months developing software for a PPC and an add-on
piece of hardware.
We would like to be able to 'hire out' the solution without a member of
office staff.
Having invested so much time and effort in developing the software and
add-on hardware with the maufacturer. We want to make it 'impossible' for
someone to simple copy the software and buy the hardware !
I was thinking of combining several things to make it all but impossible to
run on another device. A registry entry, machine serial number and possibly
a hidden file.
Ultimateley what ever I do someone can just do a full backup to an SD card
and load it onto the same model PPC.
My main point is that is it 'easy' for someone to change a given device's
serial number ? or spoof it so the program thinks it's running on the
original machine ? Is it copied into the registry for IOCTL_HAL_GET_DEVICEID
to read ?
Thanks in advance for any assistance
Andrew Kennard Tag: Oladoce and embedded visual c Tag: 91666
Using COM port on HP iPAQ 1710.
I want to make a program for my Pocket PC that can send/recive data(512B)
to/from a MCU through the COM1 port (serial port).
I am using Microsoft eMbedded Visual C++ 4.0 with Microsoft Pocket PC 2003
SDK (emulator) to make the program on the PPC.
I am also making the program om the MCU, so I conroll both programs.
Here is what I want the program on the Pocet PC to do:
-Open the COM port
-Send data to MCU
-Recive data from MCU
-Close COM port
Do you think that it is ok to only use the Rx and Tx lines? Does anyone know
what RS232 Standard the HP use, and what voltage it operate with.
I don't want to use hardware handshaking. I thinking of making a rutine in
the program to check that the data is sent/received correct.
Is this possible? Is there any trap I can go into?
I am thankful for all kind of tip and help!
Thanks,
Bodil Tag: Oladoce and embedded visual c Tag: 91664
Table Object
Does anyone know if I can find the date a Table was last modified
I have tried using the ADOXCE catalog abject but keep getting "Object
Required" error when trying to set the ActiveConnection property.
The database is a Pocket Access database and I am developing in eVB on a
Pocket PC 2003 Tag: Oladoce and embedded visual c Tag: 91662
Help: Reinstall eVC4.00 + sp2/3 + PPC 2003 SDK failed
Hi,
I have developed some applications with eVC4 and PPC 2003 SDK several months
ago.
My computer is DELL with preinstalled WinXP.
I had installed eVC4.00 + sp2/3 + PPC SDK 2003, and made some apps for my
DELL PDA.
But last week My computer was updated from net. Then I could not build my
apps since then.
Then I removeds and reinstalled eVC4.00 + sp2/3 + PPC SDK 2003 several
times. The result is the same.
I can't find WCE PPC 2003 App / WCE PPC 2003 MFC App in the
File->New->Projects Tab, and my old apps can't be successfully compiled.
But with WS2003 I can still use the PPC2003 emulator.
Anyone could help me to resolve this problem please.
Thanks.
wzl Tag: Oladoce and embedded visual c Tag: 91656
changes of SDIO driver from OzoneUpdate to Magneto
hi~
I am developer of PPC currently working on driver porting from Ozone update
to Magneto with same h/w device. the code(BSP) I have was working well with
OzoneUpdate. what I want to know is about SDIO driver part. We have used
Bsquare sdio driver before but I heard that Magneto will support SDIO driver.
If I want to use MS sdio Stack , should I just simply delete previouse SDIO
driver code ? is there anything else I have to do?
Please kindly give me some advice.... Tag: Oladoce and embedded visual c Tag: 91655
IR and UART
Hello,
I am working on an IR remote but I have a few questions about the hardware
involved and IR (raw) in general.
My understanding of the UART is this:
o All serial data goes through the UART. There is no way around this since
it is the last step before actually sending the data out through the serial
port.
o The UART will automatically append start, stop and parity bits when
sending and remove them on incoming data. This is invisible to the user and
causes no problems assuming both sender and receiver use UART.
o The data in transit is not the actual bit representation of the data but
is in fact the data plus the UART bits.
â?¢ Does all IR data go through the UART? I assume it does since itâ??s a serial
device but I am not sure.
â?¢ Can I get around the UART either by disabling it or just bypassing it all
together? I do not want it to â??helpâ?? me in any way. I want to send out a
specific byte without any UART bits.
â?¢ If I am receiving an IR code from a remote the data received is not the
actual data sent. This is due to two things: (1) the UART has already handled
the data and removed the bits it thought were start, stop and parity; and (2)
if the UART is waiting for a start bit and one never comes, then the UART
will continue waiting for a start bit and ignore the data it receives.
This is my general conception of how the UART works. I know this is probably
flawed in a few areas but thatâ??s why I am posting here. Please correct me and
share any good resources that would help me get a better understanding of how
IR communications work.
Now, hereâ??re some general IR questions and ones related to the remote. I am
using VITOâ??s Oscilloscope to view the IR code from the remote as well as
viewing any bytes I send.
â?¢ One finding is that if I send 0x0B VITO receives 0xF6
o FIRE BYTE: 0x0B = 00001011 = |____|¯|_|¯¯|
o SENT BYTE: 0xF6 = 11110110 = |¯¯¯¯|_|¯|__|
â?¢ I saw something along these lines in an IrDA doc as well.
Does anyone have any information on creating an IR remote? I know devices
without a CIR LED arenâ??t designed to function as such but I still would like
any input you can provide. However, the first step is understanding the UART
and how the data is handled.
Thank you,
Kyle Tag: Oladoce and embedded visual c Tag: 91654
please help: Context menu on TreeView (.net compact framework)
Hi, there,
i added a context menu on a treeview, using
TreeView tv = new TreeView();
//add nodes
tv.nodes.Add(new TreeNode());
.....
.....
.....
//add context menu
ContextMenu ContextMenu1 = new ContextMenu();
ContextMenu1.MenuItems.Add(new MenuItem());
tv.ContextMenu = ContextMenu1
however ContextMenu is shown everywhere when I tap and hold in the treeveiw.
what i want is the ContextMenu is only shown on the nodes I selected ,
rather than every where in the treeview.
I know it is easy to do it in .net 1.1, but what i want is on .net Compact
Framework,
help please
Regards
Nick Tag: Oladoce and embedded visual c Tag: 91653
How can I set timezone info. on PPC?
Hi, all.
I am trying to set timezone programmatically.
First, I get the timezoneinformation through POOM,
IPOutlookApp::GetTimezoneInformationFromIndex. By this way, I can get the
"TIME_ZONE_INFORMATION" structure filled with timezone info.
Next, "SetTimeZoneInformaton()" API is used for setting timezone.
But, It is seem that some timezone info missed. If set the timezone
GMT+8 Taipei(index : 220) and excute ppc clock on today screen,
we can see the GMT+8 Beijing(index : 210).
my code like this,
...
hr = CoCreateInstance(CLSID_Application, NULL, CLSCTX_INPROC_SERVER,
IID_IPOutlookApp, (LPVOID*)&g_polApp);
if(FAILED(hr)) return FALSE;
hr = g_polApp->Logon(NULL);
if(FAILED(hr)) return FALSE;
g_polApp->GetTimeZoneInformationFromIndex(220, &tzinfo);
g_polApp->SysFreeString(pwszVersion);
SetTimeZoneInformation(&tzinfo);
g_polApp->Logoff();
g_polApp->Release();
How can I set the all timezoneinformation right?
thanks. Tag: Oladoce and embedded visual c Tag: 91651
Bluetooth Adaptors and Pocket PCS
I want my applicaiton to recieve data thats coming in from a bluetooth
adaptor, which is connected to a device via the serial port.
i have currently ben able to connect to the device with my Pocket PC, but
not sure how to set it up to recieve information..i use BTAccess to connect
my bluetooth, using a SPPConnection (Serial-Port Profile), do i need to set
up a Virtual Comm port (set a prt up with the address the same as my incoming
COM address on my PPC) in my app that is set to recieve the information. Tag: Oladoce and embedded visual c Tag: 91643
System.NotSupportedException - on F5 debug but not on CTRL-F5
I built an application that works 100% ok when I run it in debug mode but
with CTRL-F5.
I changed to deploy and get the System.NotSupportedException message.
I ALSO get the error when I run in debug mode with F5 (not CTRL-F5).
Here is a partial piece of code:
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlServerCe;
using System.Text.RegularExpressions;
namespace NJ5J_CarLog_PocketPC
{
public class formCarLog : System.Windows.Forms.Form
{
public string wrkMaximumMileageStart = "9999991.0";
public string wrkMaximumMileageEnd = "9999999.9";
public decimal maximumMileageStart = 0;
public decimal maximumMileageEnd = 0;
public formCarLog()
{
InitializeComponent();
maximumMileageStart =
System.Convert.ToDecimal(wrkMaximumMileageStart.ToString());
The last instruction above is what gives the exception. I found another
solution on this newsgroup and tried Parse() but it also gives the exception.
Is there a namespace I am omitting? The MSDN help shows that this is
supported in the .Net Compact Framework.
Thanks in advance,
Carl Perkins Tag: Oladoce and embedded visual c Tag: 91640
Pocket PC vs. Pocket PC Phone Edition
From a development standpoint is there any real difference between a device
running Pocket PC and Pocket PC Phone Edition (other than the obvious cell
phone capability)?
Also, more of a market question. Is Pocket PC Phone Edition going to
eventually replace the WinCE Smartphone system?
I'm looking at branching some of my products out from the Pocket PC platform
to other WinCE platforms and I just want to know if its even worth it to
start working with Smartphones.
Thanks in advance,
ed Tag: Oladoce and embedded visual c Tag: 91632
Send dialer app to back - PhoneMakeCall
I have a dialog that calls PhoneMakeCall. My problem is that when the
call concludes the phone app stays in the front. I have tried calling
my app to the front using SetForegroundWindow and the return value
indicates it has worked yet the phone app persists in the front. Is
there anyway to send this back? Tag: Oladoce and embedded visual c Tag: 91631
broadcast problem
I'm working in evc 3.0 and I'm making a registry setting change then
broadcasting a notification using:
::SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
However, on the pocket pc I'm using my program freezes on that call. I've
done the same thing in evc 4.2 and its worked fine. Does anyone have any
suggestions? Tag: Oladoce and embedded visual c Tag: 91629
cheapest pocket pc hardware
I'm new to Pocket PC, Smart Phone, WinCE, etc.
I just want to write some noddy stuff for one of these devices so that I can
familiarise myself. What cheap device would you recommend and are there
any gotcha's that I should know about. E.g. I saw a device for £40 (Toshiba
e740), but I'm assuming that this is not a generic Pocket PC that would be
able to run apps that I author myself? I'm looking to spend about £150 UK
maximum.
Thanks. Tag: Oladoce and embedded visual c Tag: 91628
How to select Contacts like built-in Inbox does?
By the built-in Inbox program, in the creating new email/SMS Message window,
tap on "Recipients" or the Contact icon, a listbox will displayed within the
messageBody area.
I want my application has the same functionality, how can I do it?
I checked MSDN, found nothing. actually I don't konw what keywords to search
in the net.
please help me on this . best with sample code
Thanks in adv Tag: Oladoce and embedded visual c Tag: 91627
copying sql CE database to desktop
Hi all,
Is there any way to create a database on the desktop from an SQL CE database
that already exists on the handheld? This would be the reverse of the usual
method of the pocket PC subscribing to an SQL server database, and I suspect
it doesn't work that way.
I already have an existing, stand alone CE database on the device, populated
with data, that I want to connect and begin using replication with SQL server. Tag: Oladoce and embedded visual c Tag: 91621
iPaq h5550 Biometric FingerPrint Reader
Readers Thank's a lot for read this messages.
La consulta es la siguiente:
I need to know how i can to integrate or star up my iPaq h5550 Biometric
FingerPrint Reader.
The question are the following:
1- This iPaq bring 128 RAM, is possible to grow to 1GB, if is true, i can to
develop some aplication that use the new 1GB SD RAM.
2- I know that this model of iPaq is for control the access of your Pocket
PC (one user),
If I can to use this FingerPrint Reader Tecnologie to implement for my
custom applicatión? For example: Time Access Control for 150 employees.
3- I am a developer, but for me is new this mobile platform; i think that
exist some SDK for develop or use this FingerPrint Reader, I need to know if
is posible to
integrate this SDK with my custom aplication.
I hope for yours helps, i know this is hard, i readed some about embbeded
Visual C++ 4.0, please help me to considerate the best option.
Regards
RAV Tag: Oladoce and embedded visual c Tag: 91619
Paint background of Pocket pc task bar ?
I would like to do some skins with ppc task bar and the bottom tray bar.
After searched sdk and newsgroup, I got some clues to do it.
It seems to FindWindow and get handle of taskbar, then SetWindowLong to
replace window procedure.
But I can't find anymore than it.
Here is the page that implement what i want.
http://www.pocketpcdn.com/articles/taskbar_icon.html
but I just want to paint the bg of task bar and the bottom tray bar.
Any help or example is really appreciated. Tag: Oladoce and embedded visual c Tag: 91616
IMsgStore::Advise
Hello,
I need to register for the event "fnewObjectCreated" (creation of a message)
in my Inbox folder but the Advise method needs an alocated IMAPIAdviseSink
object.
If I write LPMAPIADVISESINK lpAdviseSink I get a warning that an
uninitialized parameter is used. That's ok because I created a pointer to
IMAPIAdviseSink Interface only. But how can I initialize lpAdviseSink?????
RESULT =
lppMDB->Advise(cbEntryID,(LPENTRYID)rgprops[0].Value.bin.lpb,fnevObjectCreat
ed,lpAdviseSink,&ulong);
please help thanks in advance
Is there a good book available for either CEMAPI or MAPI? Tag: Oladoce and embedded visual c Tag: 91614
XMLHTTP doesn't work, I'm getting access denied
Hello,
I need to write a web application for my pocket PC, here is part of the
code I'm using:
xrequest = new ActiveXObject("Microsoft.XMLHTTP");
xrequest.open("POST",url,true );
I'm getting access denied when trying to execute the open method.
The same code works fine when running it using scripting host on the same
pocket PC. Also, the same code works fine on another iPaq I have that uses
win CE 4
Trying to change the security setting in the registry didn't help.
Can someone please help
Thanks,
Shlomi Tag: Oladoce and embedded visual c Tag: 91612
programatically turning wireless ON / OFF
hi there,
i would like to know how or if it is possible (through API i guess), to
programatically turn ON and OFF the wireless on my PDA?
thanks,
Paul Tag: Oladoce and embedded visual c Tag: 91611
Text to Speech
Does anyone know of a text to speech library which has both english and
french language support and will run on Windows NT Embedded.
Thanks Tag: Oladoce and embedded visual c Tag: 91610
Sending data via the IrDa Port
Hi all,
I am writing a small app that needs to send a serial string out of the
infra red port, the app does not need to look for a response hence no
need for a recieve routine. The data that I need to send is simple plain
ascii characters ie: the string "12456" padded with ASCII Start of
Header (1 hex) at the start of the data and ASCII End of Text at the end
of the data.
Has anyone done this before, and if so has anyone got a code sample I
could look at or maybe a goo hyperlink.
Many thanks
Joe Tag: Oladoce and embedded visual c Tag: 91606
National Language Support
We are using language resources in one of our projects, and they work fine.
We have not translated any message text yet, and I was wondering how other
people might have done it. The obvious solution is to use hidden labels, but
I was wondering if there is anything better. Tag: Oladoce and embedded visual c Tag: 91603
Create a virtual comport for gps data?
Hello!
I want to create a virtual comport on my windows mobile 2003 device which I
want to use for navigation.
I have a rs232 connection to a blackbox which sends me all kind of data
including NMEA signals wrapped in a protocol. I want to extract the NMEA
data from the protocol and send it to the virtual comport so that the
navigation software thinks it has it's own dedicated comport. I've looked in
the microsofts knowledgebase but only find bluetooth related items. like
this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcebluet/html/ceconvirtualcomportsample.asp
I couldn't check if this was usefull because I don't have this program.
Can anyone help me?
thanks,
Thijs. Tag: Oladoce and embedded visual c Tag: 91602
ftp with evb
Hi!
I have a pocketpc with windows mobile 2003.
I try to use thies code for ftp
http://support.microsoft.com/default.aspx?scid=kb;en-us;305598
the error is here:
lngFtpHandle = InternetConnect(lngInternetHandle, myserverftp, _
INTERNET_DEFAULT_FTP_PORT, myusr, mypsw, _
INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, 0)
It's work in the emulator but don't work in pocketpc
Pocketpc work with internet explorer, msn etc
Any idea? It's a bug of wininet.dll?
Hi, AEOM Tag: Oladoce and embedded visual c Tag: 91600
IOCTL_HAL_GET_DEVICEID not returning a full buffer?
This is a repost with more details. The plot has thickened....
I have some customer complaining about there DeviceID ( a unique id obtained
by IOCTL_HAL_GET_DEVICEID ) not working properly. Further digging I found
that IOCTL_HAL_GET_DEVICEID doesn't return a full buffer.
Here is the deal in more detail. This code works on many machines with many
different os versions. I have narrowed in down to be machine specific. It is
not a problem with Mobile 2003 SE. I purchased a Dell X30 to make sure. Turns
out the code only returns 36 bytes on some machines but 40 on most. So anyone
have any ideas now?
[BAD RESPONSE]
Here is the output on a machine with a 36 bytes return.
Microsoft Windows CE 4.20.0
First Int32: 256
KernelIoControl Error: 0
Buffer Length: 256
Bytes Returned: 36
First Int32: 36
dwPresetIDOffset: 20
dwPlatformIDOffset: 36
dwPlatformIDSize: 0
Full ID: F80300EB-A471-1171-0078-
[GOOD RESPONSE]
Here is the same code run on a Dell x30 with WM2003 SE. Notice the 40 byte
return.
Microsoft Windows CE 4.21.1088
First Int32: 256
KernelIoControl Error: 0
Buffer Length: 256
Bytes Returned: 40
First Int32: 40
dwPresetIDOffsset: 20
dwPlatformIDOffset: 32
dwPlatformIDSize: 6
Full ID:
028B5615-4187-51DF-00A8-0050BFE45CE5
[CODE]
AddText( Environment.OSVersion.ToString() );
uint len = 256;
Int32 cb = 0; //For some reason this is very important
byte [] buffer = new byte[256];
buffer[0] = 0;
buffer[1] = 1;
uint ret;
AddText( "First Int32: " + BitConverter.ToInt32( buffer, 0 ).ToString() );
try
{
ret = KernelIoControl( IOCTL_HAL_GET_DEVICEID, IntPtr.Zero, 0, buffer,
len, ref cb );
AddText( "KernelIoControl Error: " + GetLastError().ToString() );
}
catch
{
throw;
}
AddText( "Buffer Length: " + len.ToString() );
AddText( "Bytes Returned: " + cb.ToString() );
AddText( "First Int32: " + BitConverter.ToInt32( buffer, 0 ).ToString() );
Int32 dwPresetIDOffsset = BitConverter.ToInt32(buffer, 4);
Int32 dwPlatformIDOffset = BitConverter.ToInt32(buffer, 0xc);
Int32 dwPlatformIDSize = BitConverter.ToInt32(buffer, 0x10);
StringBuilder sb = new StringBuilder();
sb.Append(String.Format("{0:X8}-{1:X4}-{2:X4}-{3:X4}-",
BitConverter.ToInt32(buffer, dwPresetIDOffsset),
BitConverter.ToInt16(buffer, dwPresetIDOffsset+4),
BitConverter.ToInt16(buffer, dwPresetIDOffsset+6),
BitConverter.ToInt16(buffer, dwPresetIDOffsset+8)));
AddText( "dwPresetIDOffsset: " + dwPresetIDOffsset.ToString() );
AddText( "dwPlatformIDOffset: " + dwPlatformIDOffset.ToString() );
AddText( "dwPlatformIDSize: " + dwPlatformIDSize.ToString() );
for( int i = dwPlatformIDOffset; i < dwPlatformIDOffset +
dwPlatformIDSize; i ++ )
sb.Append( String.Format("{0:X2}", buffer[i] ));
string text = sb.ToString();
AddText( "Full ID: " + text );
[/CODE]
--
Bobby Cannon
SharpDeck Software
www.sharpdeck.net Tag: Oladoce and embedded visual c Tag: 91593
Bluetooth with Pocket PCs
I have a question to everyone
I am trying to develop an application that recieves information from a
bluetooth adaptor (which is plugged into a detector via a serial port
connection), the information will be recieved by teh bluetooth on my Pocket PC
At the moment will be recieving data in bytes.
Is there a easy way to implement something like this. Tag: Oladoce and embedded visual c Tag: 91591
Exporting SDK from PocketPC Magneto
Could someone tell me the command line for exporting a SDK package?
Thanks,
Tiegang Li Tag: Oladoce and embedded visual c Tag: 91590
how to get device id or whatever unique for every device?
Hi
Does anybody have any idea to recognize devices uniquely?
KernelIoControl () works with some devices but not all.
I think there should be some kind of id which can apply to every device like
MAC address for Ethernet devices.
If anybody knows, please reply.
thnks Tag: Oladoce and embedded visual c Tag: 91589
How to using CopyMessages method of CEMAPI?
Hi
if a SMS message has just created using CreateMessage method, how do I get
its ENTRYID?
What I want is to copy this new created message to a folder.
MSDN do not have a sample for this, could any one show me the code?
Thanks Tag: Oladoce and embedded visual c Tag: 91584
Persistent installation
I have programmed a pocketpc (HP/iPaq 2210) to operate as a controller for
some electronic test equipment.
The problem I have is that if the battery goes flat on the iPaq it loses its
application. I have the installation stored on the non-volatile memory
area, and can re-install, but then the installation erases itself.
Can I get the installation to NOT erase itself after installation, or can I
run the application from the non-volatile area?
Can someone give me a pointer here?
TIA
Steve
Albury AU Tag: Oladoce and embedded visual c Tag: 91582
COMM Ports on Windows Mobile 2003 Second Edition
Hi all,
I have an HP4700 running on Windows Mobile 2003 Second Edition.
I am running a couple tests on my COM ports and I currently have the
following information that I get from the registry:
Port Registry Path Description
COM1 Drivers/BuiltIn/Serial "Serial Cable on COM1:"
COM2 Drivers/BuiltIn/Serial_FIR "Infrared Port"
COM3 Drivers/BuiltIn/IrComm "Infrared Port"
COM4 Drivers/Buildin/Serial_BTUR
COM5 Drivers/BuiltIn/Serial5 "Bluetooth Serial Port COM5:"
COM8 Drivers/BuiltIn/Serial8 "Bluetooth Serial Port COM8:"
COM9 Drivers/BuiltIn/SerialUSB "Serial on USB"
When I run the test with Bluetooth enabled, ports COM2 and COM4 fail. Why
would these ports fail if Bluetooth uses COM5 and COM8?
When I run the test with Bluetooth disabled, ports COM2, COM5 and COM8 fail.
If port COM5 and COM8 are Bluetooth and Bluetooth is disabled, how can they
fail saying that they are in use? Do I have the wrong mapping for the ports?
Any help is appreciated.
Thanks in advance.
--
Anderson Tag: Oladoce and embedded visual c Tag: 91581
embedded VC 3.0 question
I am building an application that requires that I use eVC++ 3.0. I have a
question concerning the development environment.
How do I copy additional files to the emulator when I start the debugger?
How is this done in 3.0.
Paul Tag: Oladoce and embedded visual c Tag: 91578
Has anvyone tried to connect to the oracle lite odb file using oladoce
in evc