|
You may find that the features you're trying to use aren't available on the platform you're targetting. Ensure you've selected the right platform.
Alternatively, the functions you're trying to use may not even exist on CE. For example, system has never been present. Use the Windows function CreateProcess instead.
iostream.h is obsolete and non-standard anyway; you should be using the newer standard <iostream> header.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi All,
I used the following code to create a socket in my EVC++ program:
#include "winsock.h"
if (WSAStartup (MAKEWORD(1,1), &WSAData) != 0){
wsprintf (szError, TEXT("WSAStartup failed. Error: %d"),
WSAGetLastError ());
MessageBox (hWnd, szError, TEXT("Error"), MB_OK);
}
if ((WinSocket = socket (AF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET)
{
wsprintf (szError, TEXT("Allocating socket failed. Error: %d"),
WSAGetLastError ());
MessageBox (hWnd, szError, TEXT("Error"), MB_OK);
}
I have no compile error but a link error that states :
error LNK2019: unresolved external symbol _socket@12 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
It would be great if somebody could kindly help me out of this.
Thanks and Regards,
Deepa Gopal.
|
|
|
|
|
Add winsock.lib to the list of Object/Library Modules in the Link tab in Project Settings.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi,
Is anyone aware of how you can define the dictionary that gets used for
auto-complete when typing text into a text box?
I need to restrict the words available in an application to a list of 1000.
Many thanks,
Chris.
|
|
|
|
|
|
All,
I am having difficulty in establishing a connection to GPRS network.
I am developing application on smartphone&pocket pc 2003 and want to connect to GPRS network using eVC++4.0. Any sample source code available for connecting to the GPRS network via either using AT commands or Connection Manager.
Is there any third party GPRS Connection Manager Controls available in the real world for smartphone?
If any one haivng idea, then please provide more detais here to undertand the things better.
Any kind of helps are most welcome.
Regards,
AKS
|
|
|
|
|
There is no way to create phonebook entries through a published API.
If you already have a suitable phonebook entry, entered through the Connections control panel, you can use the ConnMgrEstablishConnection function.
Being able to send AT commands doesn't get you very far, because you need the PPP and TCP/IP stacks to work; there's no way to create a PPP link over an established connection except through RAS or the Connection Manager.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I'm trying to make an application on the Sony/Erickson P800 (Symbian OS running) which would communicate with my PC with BlueTooth.
My problem is that i've absolutely no idea where to search the BTooth API.
Does anybody have an idea to help me please ?
thx
TOXCCT >>> GEII power
|
|
|
|
|
Look at the examples on the SDK
|
|
|
|
|
where could i find that ?
TOXCCT >>> GEII power
|
|
|
|
|
hi,
i would like to know if its possible to use a serial port on a windowsCE system in a simple self-programmed (with EVC) application
thanks for your help
Tibar
|
|
|
|
|
Yes.
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
You open serial ports using the CreateFile API and send and receive data with WriteFile and ReadFile .
You also need to call SetCommState with an appropriately configured DCB structure, to set the baud rate and other communications parameters.
You should find useful information by searching for 'serial' on this site.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hello All
I am delevoping in eVC++ 4.0 for Pocket PC 2003. I would like to know how to enable/disable via code the auto switch-off of the PDA, because, while my application is running, if the PDA switches off the application crashes.
I know that you can do it manually by Start->Settings->Power, but I would be desirable to do it by software, so that you can restore the state when the app finishes.
Thanks in advance.
|
|
|
|
|
Either periodically call SystemIdleTimerReset , or call SystemParametersInfo with the SPI_SETBATTERYIDLETIMEOUT value. You can use SPI_GETBATTERYIDLETIMEOUT to work out how often to call SystemIdleTimerReset , or to remember the old value.
Your application really shouldn't crash if the device suspends. You should expect this to happen and program for it. The debugger will crash if the device suspends while debugging, but I'm afraid you get used to eVC crashing all the time.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Thank you for the information, it was useful to temporally solve the problem.
I know that the program shouldn't crash (well, really it does not crash, it hungs up, what it's worse ). The problem is that the program reads data from a compact flash GPS receiver, and it seems that when the PDA switches off the COM created with the receiver disapears, and when it switches on the COM appears after about one second. I think that here is the problem, the handle created with CreateFile to open the port has a non-valid value when the application restarts and any operation over it hangs up the app.
Anyway, the given solution ties in with I was looking. Thank you again
|
|
|
|
|
I'm wondering if anyone has found decent info on programming an IR port on a Smartphone (2002 OS, should be pretty similar to Pocket PC 2002).
I'm attempting to use my phone's IR to control my Nikon D70's shutter for long exposure sequences, but even Google doesn't seem to shed much light on this one last (crucial ) thing I need to make the app work.
Thanks!
Look at the world about you and trust to your own convictions. - Ansel Adams
Meg's World - Blog
Photography
|
|
|
|
|
My source for IR programming (not that I've ever done any) is Doug Boling's book Programming Windows CE. Either the second or third edition should be fine.
Unless your camera does talk full IrDA, you'll probably want Raw IR mode. However, it might be tricky to work out what to send to the camera.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi Mike,
Thanks for the reply - I really appreciate it as I know absolutely nothing about this.
I do however know exactly what to send to the camera (whew!):
1 - 1.913ms
0 - 27.925ms
1 - 0.510ms
0 - 1.530ms
1 - 0.510ms
0 - 3.570ms
1 - 0.510ms
(39.2kHz)
However, what to do with this info is slightly more cryptic (for example, why are the individual numbers in the sequence measured in "ms" while the total is measured in "kHz"?)
I take it from your answer above that this will mean that I need Raw IR mode? Sorry to ask further questions, but do you know if it's possible to control this via VB.NET?
Thanks again
Look at the world about you and trust to your own convictions. - Ansel Adams
Meg's World - Blog
Photography
|
|
|
|
|
I think the relationship is that 1 cycle at 39.2kHz is approximately 0.255ms - therefore you could run a circuit from a clock of 39.2kHz frequency.
You may find this article[^] useful.
As for using VB.NET - you could, but you'd end up writing so many P/Invokes. I'd go with C++.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
|
Hi,
I'm developing an application with Evtools3.0, but I can use also Ecvc++4.0. I write only c++, not VB.. so.. is there a function to design a Dialog so that it automatically fit the screen...(something like a MyDialog.FillTheWholeScreen()..ehehe)?
Please help me..
|
|
|
|
|
|
Hi, I really need your help guys...I really need a tutorial in developing mobile applications for windows CE on a pocket pc (pocket pc SDK 2004) using embedded visual C++ 4.0,
|
|
|
|
|