|
Hi, guys!
I am using IR port on pocket pc to communicate with other device.
When I used emulator on desktop, it can work correctly.
But I use it on real pocket pc, what the routine gets from IR port is error code, such as 255 instead of ACII code. But via Hperterminal monitoring, the monitor display correct ACII code.
Why it happened? You know the sourcecode running on emulator and real Pocket PC is same. So do you think I should do some configurations on the IR port via code? If so, and how?
Thanks a lot
vigorous
|
|
|
|
|
if i use eVc++ 4.0 with sp4 - it means that i can develop for WinCe.net 4/4.1/4.2/5.0 or it is just for WinCe 4/4.1/4.2/5.0?
Thanx,
Eli
|
|
|
|
|
Okay, i'm having a big problem here, i use the CreateWindowEx() function to create a child window. It then uses a SetWindowPos() function to resize it, and then it creates a button on it. When the button is pressed on the child window, i want it to completely be destroyed, so it sends a message to its parent to destroy it. The thing is....i have to put 3 DestroyWindow() functions or else i will have to click the button three times. I don't know why. I don't know if i'm creating the child 3 times, or what i'm doing wrong....
my small snippets of the problematic code is here:
http://rafb.net/paste/results/8n1br319.html
my FULL program is here incase you need to see other code.
SecurityCamera.c (line 362):
http://rafb.net/paste/results/gcInkQ62.html
WelcomeWindow.h:
http://rafb.net/paste/results/jI5cLF32.html
|
|
|
|
|
Can i use 'Visual C++ Express 2005', or 'Visual C++ .Net 2003' to make windows mobile applications on a Pocket PC?
Thanks in Advnaced
|
|
|
|
|
I don't know about 'Visual C++ Express 2005',but with 'Visual C++ .Net 2003'
you can.
Just choose: c# projects->smartphone project.
Eegards,
Eli
|
|
|
|
|
we have created a small pocket pc app with c# with vs.net2003
when installed on our previous compaq ipaqs it all worked fine.
when now installing the same app on our newer HP ipaq rz1710 i get the warning :
the program you have installed may not display properly because it was designed for a previous version of windows mobile software
can i fix this in vs.net?? can i compile for some other processor or anyone know whats wrong?
//Roger
|
|
|
|
|
Hi,
i want to set up Bluetooth connection between my PDA and another Bluetooth device.
I'm trying to use these function:
WSALookupServiceBegin(),WSALookupServiceNext(),WSALookupServiceEnd()
but i always gets LNK2019 error(unresolved externak simbol).
Before ur going to ask - yes,i've imported "WS2.Lib" and included "winsock2.h".
I'm using "Embedded visual c++ 4",with SP3(for WCE.net 4.0/4.1/4.2).
I forgot to say that the same code working just fine with visual c++,
but i need to write an application for PocketPC.
If there is some bug,or something else iwm doing wrong,
please let me know.
Best regards,
Eli
|
|
|
|
|
Unfortunatly these funcs are not supported on embedded environment..
From MSDN:
Client: Requires Windows XP, Windows 2000 Professional, Windows NT Workstation 3.51 and later, Windows Me, Windows 98, or Windows 95.<br />
Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 3.51 and later.<br />
as you see no embedded...
Greetings,
Davy
|
|
|
|
|
Hi Davy,
Are you sure?
I think MSDN does not include help for evc++,because in the help of evc++,
i read that these functions required WS2.lib and winsock2.h files.
I have 1 more question:
if i can't use these functions - is there another way doing it?
Best regards,
Eli.
|
|
|
|
|
Ok I am sorry...
I was mistaken before. I am still working on some older platforms most of the time so I did not know this. Apparantly Bluetooth functions are supported from
WINDOWS CE.Net 4.0 and later
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcebluet/html/ceconbluetoothfunctions.asp[^]
for the WSALookupServiceBegin the requirements are
OS Versions: Windows CE .NET 4.0 and later.<br />
Header: Bt_api.h.<br />
Link Library: Btdrt.lib.<br />
<br />
Hope this will help you,
sorry for my wrong info earlier.
Greetings,
Davy
|
|
|
|
|
Hi again,
First,thanx for the quick answer.
Are you sure that the Link Librarry is Btdrt.lib?
Because in my "eVc++ help" it seems to be Ws2.lib.
Also,its required "winsock2.h"(and not "Bt_api.h").
Anyway,i've included both "winsock2.h" and "Bt_api.h" and imported
Ws2.lib(i don't have Btdrt.lib on my computer).
What i'm doing wrong?
Do you have code example (on Bluetooth) that worked?
Thanx,
Eli.
|
|
|
|
|
Hi,
I am just starting a project in EVC4. I have designed a dialog but when I download it to the target (iPAQ1945) the buttons and static text areas have lost their 3D effects, the background is white instead of grey and the font is to large and will not fit in the areas?
Any ideas what I'm doing wrong anyone?
Many Thanks,
Ali
|
|
|
|
|
Alison Pentland wrote:
Any ideas what I'm doing wrong anyone?
You are doing nothing wrong.
The Pocket PC dropped the 3D look and adopted a flat look. The dialog background is also white by default. You are being misled by the development environment, that's all.
For dialogs, as well as for the rest of the application, you should use the Tahoma 8 font, with occasional bolds.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi
I am using an window CE device to connect to an internet server of Port 1001 and 1005 uisng those wininet API provided. The 2 ports is needed as one is from normal TCP/IP communication and the other one is for keep alive packets.
just wonder if this can be done. i try it out on PC and it seems ok.
Any help will be apprecaited
|
|
|
|
|
Hi, I use DoModal() to open a Dialog in a Dialog-Based project. In the main OnInitDialog I hide the SIP button, and when I use DoModal() to open a second Dialog, the SIP continues hide, but when I close the second Dialog, the SIP button and the bar appears in the Main Dialog. Is it possible to execute OnInitDialog again to hide the bar? Or exists another way for doing it?
Thanks in advance.
Regards,
Javier
|
|
|
|
|
Your dialog window receives a WM_ACTIVATE message when it is shown.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Ok, initially for a dialog this message doesn't appear in the ClassWizard. I put a message handler in the *.cpp.
Is this the way?:
void CFullScreen2Dlg::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized) <br />
{<br />
CDialog::OnActivate(nState, pWndOther, bMinimized);<br />
<br />
<br />
}
I test in this way and it's not right. Can you help me?
Thanks.
Regards,
Javier
|
|
|
|
|
Did you write an entry on the message map?
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
I repass it and it's works, thanks!. Is there a easy way to hide the below bar (where the SIP button is) in all the application? I suppose at the beginning...I try it in many ways and wrong...
It's better than I hide this bar in each "Activate Message"...
Regards,
Javier
|
|
|
|
|
Where can I find printer drivers for windowsce?
I need a HP driver - dll.
THX
|
|
|
|
|
Hello everybody,
I have made some applications in eVC++ 4.0 for different device types. But now I got a new device which uses a different SDK for which I wish to compile my app. I can`t find however how I can add this SDK selection in the combobox of eVC++ . I can only see the ones I selected when creating the workspace (before I knew I would ever need this SDK), but I can`t see anywhere a menu point or dialog which allows me to add an SDK selection for the project.
Do I have to recreate my workspace now just for this one SDK or is there a way to add it to my existing workspace afterall???
Thanks for any help you might offer,
Greetings,
Davy
|
|
|
|
|
Have you installed the new SDK? First I would read in microsoft web if it is compatible with eVC++. Once installed, it must appears in the combo menu in eVC++ if it is installed correctly, I think...
Regards,
Javier
|
|
|
|
|
Thanks for the reply,
Maybe I was a little unclear in the exact explanation.
Yes, I installed the SDK. The new projects I create have the SDK selectable in the combobox. However, my old project that I created before I installed the SDK do not have it. So the problem lies there.
Some projects are quite big, so it would take me a some time to recreate them...
Thx for any suggestions!!!
|
|
|
|
|
Hi,
Try one of these:
1)Build->configuration
than try to add or choose the right one.
2)Build->Set Active Platform.
3)Tools->Configure Platform Manager.
GoodLuck,
Eli.
|
|
|
|
|
Hi, I have the following piece of code:
BD_ADDR direccion;<br />
direccion.LAP=0x19C4BB;
direccion.UAP=0x37;
direccion.NAP=0x0080; <br />
<br />
PORTEMUPortParams pp;<br />
memset (&pp, 0, sizeof(pp));<br />
pp.channel = 0;<br />
pp.device = (BD_ADDR) direccion;
pp.uiportflags = RFCOMM_PORT_FLAGS_REMOTE_DCB;
where BD_ADDR is a struct type according to MSDN web:
#pragma pack(push, 1)<br />
typedef struct __bd_addr {<br />
union {<br />
struct {<br />
unsigned int LAP : 24; <br />
unsigned int UAP : 8; <br />
};<br />
unsigned int SAP; <br />
};<br />
unsigned short NAP; <br />
} BD_ADDR;<br />
#pragma pack(pop)
The problem is when I compile the project appears the next error that I dont
understand:
- Error in line """pp.device = (BD_ADDR) direccion;"""
error C2679: binary '=' : no operator defined which takes a right-hand <br />
operand of type 'struct _BD_ADDR' (or there is no acceptable conversion)
Any suggestion??
Thanks.
Regards,
Javier
|
|
|
|