|
Hello, I am looking into having some GPS software written for me that would control the output of 1 or more applications when a certain height/speed parameter is met. Any takers??Contact me at tdolan@homelandsecurityaviation.com Thanks Tom
|
|
|
|
|
I have done some simple work
with GPS NAVMON module and VB .
I am basically a vc++ programer
but before i will under take i
like have a full details of ur
s/w requriement means a SRS.
Sir u can communicat to me with vikasamin@rediffmail.com
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
I mean, are there any that have an option for making a mobile app?
Gonna get me some smartphone action
|
|
|
|
|
|
Hey there,,,,,,,,,,
im working on cygnal microcontroller C8051F040 and am trying to interface it with a sonar.t program is ready as far as the interfacing is concerned. but while sending the necessary data over the CAN bus to other nodes, i have a slight problem i.e. i can't store data on flash. Can u help me fined some sites where they have sample programs on CAN & FLASH. is there any kind of a clash between FLASH initialisation & CAN ?? I have configured the CAN bus at 1MBPS.
sonar runs at 115200 baud. and both the uart's run at 115200 baud.
without the FLASH, the data is transferred successfuly to all the other nodes. but with FLASH, the program hangs(if CAN is started.) I also tried disabling CAN before FLASH. doesn't work.. Can nybody help me??
Waitin eagerly....
reeva
-- modified at 2:17 Wednesday 23rd November, 2005
|
|
|
|
|
Hi All..
I need some advise about embedding database on a cd. I need to read and query on large amount of text-based info and binary data from this database. Please write any think that you could say about the subject on this subject like that if I am on the true place to ask about..
karanba
|
|
|
|
|
I would like to check the driver of an industrial pc in Embedded Windows XP.
The windows is very very simple.
After boot up, only a command is displayed.
How can I check its driver?
Please help!
|
|
|
|
|
Hi, I have a program written in eVC++ for a HP1710 PDA running PPC2003. I want my program to automatically run when either a soft or hard reset is done. If I place it in the start up folder it is ok with soft reset but gets wiped when a hard reset is done.
People in other forums have told me to create a folder in the flash memory(permanent memory) called "2577",place my program here and it should run once any reset is done. Also I was advised that if that did not work then create a folder called "0" and place it in that. Both these solutions do not work so I figured someone here might be able to help me.
Oh, the flash storage is called "iPaq File Store";
Thank you
Cush
|
|
|
|
|
When u do the hard reset, the DEVICE goes to factory settings. Meaning, it'll be set to the initial configuration which was provided by the vendor(i.e., program stored in the ROM are loaded.) So, you may want to load your program onto ROM than that of RAM. I'm not sure about writing into ROM.
Correct me If I'm wrong and let me know how to do the same.
Zxczc
|
|
|
|
|
Hi all
I am getting reasonably well with VB.Net using VS 2003 but i want to start doing some stuff for Windows Mobile devices (particulary WM5).
Where do i start? What do i need to develop Hello World! for WM5?
Any help appreciated
Chris
|
|
|
|
|
I'm having a problem with CryptAcquireContext in a .NET Compact Framework application running on the Pocket PC Emulator 2002. On a Pocket PC 2003 Second Edition (a real device) it seems to work fine.
The line of code I'm having a problem with is:
WinApi.CryptAcquireContext(ref hProv, null,
"Microsoft Enhanced Cryptographic Provider v1.0",
1,
0xf0000000);
WinApi is a class that contains the definition of all the PInvoked
methods.
[DllImport("coredll.dll")]
public static extern bool CryptAcquireContext(
ref IntPtr phProv, string pszContainer, string pszProvider,
uint dwProvType, uint dwFlags);
The problem is that on my machine, running the code produces an error 0x80000005
When I tried the code on a collegues machine, her Pocket PC 2002 Emulator produced a differernt error message. She got 0x80090019 on the same function call. I don't understand why there is a difference - both should be set up identically, but I guess there is something different that neither of us is aware of.
Finally, we tried to deploy it to a real Pocket PC device (PPC 2003 Second Edition) and it worked fine.
I need the code to work on PPC 2002 onwards. Does anyone have any idea why I am seeing different results? Or have any idea of how to fix this?
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
0x80000005 - Invalid pointer.
0x80090019 - The keyset is not defined.
WinCE uses unicode, shouldn't you have L"Microsoft Enhanced Cryptographic Provider v1.0".
Or better yet, use the #defines in crypt i.e. MS_ENHANCED_PROV (MS_ENHANCED_PROV_W).
[EDIT]
Also, for the keyset error you should just create a new one:
bool rc = ::CryptAcquireContextW(&hnd, ct, MS_DEF_RSA_SCHANNEL_PROV_W, PROV_RSA_SCHANNEL, F);
if( !rc ) {
ulong err = GetLastError();
if( err == NTE_BAD_KEYSET ) {
rc = ::CryptAcquireContextW(&hnd, ct, MS_DEF_RSA_SCHANNEL_PROV_W, PROV_RSA_SCHANNEL, F|CRYPT_NEWKEYSET);
if( !rc ) err = GetLastError();
}
} [/EDIT]
[EDIT2]
Ok, Ignore the first EDIT, it's the same as shown in the MSDN docs (which i assume you've seen).
It's also for error 0x80090016 - Keyset does not exist.
From:
http://support.microsoft.com/default.aspx?scid=kb;en-us;238187[^]
NTE_KEYSET_NOT_DEF (0x80090019):
The Crypto Service Provider (CSP) may not be set up correctly. Use of Regsvr32.exe on CSP DLLs (Rsabase.dll or Rsaenh.dll) may fix the problem, depending on the provider being used.
So i would guess that the coding error is 0x80000005, and that her machine doen't get to that point because it's not setup right.
[/EDIT2]
...cmk
Save the whales - collect the whole set
-- modified at 9:35 Friday 25th November, 2005
|
|
|
|
|
This call(recvfrom) is waiting infinitely and the application never comes to next line.
I'm using UDP sockets. The data has been sent successfully to server. But I'm facing problem while receiving it. I tested on both smartphone emulator and real device(samsung). In both targets, the application is crashing when it reaches this line. Any idea why it's happening?. Your help is greatly appreciated.
i = recvfrom(s1,packetbuffer,sizeof(packetbuffer),0,(SOCKADDR *)&addr,&cbRemoteAddrSize);
Zxczc
|
|
|
|
|
Yes he is right. VC++ is quite difficult to USE. Many times 1 line code is .net is replaced with 10 lines code in VC++. I suggest you to learn VB.NET or Embedded vb. According to my experiance VB.net is better for Embedded Development
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hello
I own a Pocket PC 2003 with Arabic language support in it. I want to know how can I add other languages support in like. Both reading and writing(with keyboard-layouts).
Thanx in advance
Ahmad Zafar
|
|
|
|
|
Help!!!
Dear some one there...,
Im beginer VB.Net, still learning to create database application in Win CE.Net following this tutor:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnroad/html/road05222002.asp
in my VB.Net I can't found the reference object for System.Data.SqlServerCe.Engine
but I got obeject System.Data.SqlServerCe.SqlCeEngine there, so I have edited line of code from ...SqlServerCe.Engine to be ...SqlServerCe.SqlCeEngine.
Is my step is right?
Build... succeeded, no error.
Then, I have copy "nortwind Mobile.exe" file from "Debug" folder to my PDA, right?
But, when the application executed, I got the error message like this (on the PDA Win CE.Net):
"Error
An unexpected error has occured in Northwind Mobile.exe."
Detail:
"Error
Northwind Mobile.exe
ArgumentException
Could not find resource assembly
...."
Whats wrong?
Should I have SQL Server CE installed in my PDA Win CE.Net?
Zakiah
|
|
|
|
|
You might need the VB Runtime (or the .Net Compact Framework files) installed on your PPC....
Have you tried to deploy it directly to your pocket pc?
Not sure if this will help, but maybe get you moving in the right direction.
|
|
|
|
|
This call is waiting infinitely and the application never comes to next line.
I'm using UDP sockets. The data has been sent successfully to server. But I'm facing problem while receiving it. I tested on both smartphone emulator and real device(samsung). In both targets application is crashing when it reaches this line. Any idea why it's happening. Your help is greatly appreciated.
i = recvfrom(s1,packetbuffer,sizeof(packetbuffer),0,(SOCKADDR *)&addr,&cbRemoteAddrSize);
Zxczc
-- modified at 5:16 Tuesday 15th November, 2005FD_SETSIZE];
fd_set fdSockSet;
int nNumSocks, nNumSocksCount;
char pBuf[] = "WinCE Echo Test Packet";
int iReceiveStatus;
//Change these if required
#define USERNAME "sudhagar" //TODO
#define PWD "nopass" //TODO
#define INV_TO "sandeep" //TODO
#define IP_SERVER "172.29.12.154"//TODO
#define PORT_SERVER "5070" //TODO
TIMEVAL ReceiveTimeout;
int iRC = 0;
int iSendStatus = 0;
int SIPlib_main()
{
int i=0,j=0,k,infop1;
char *reg_dest,*inv_dest,*bhr= NULL ,*nnop1;
int x=0,reg_id=-1;
char tmp[200],locip[50];
unsigned int addr2=0;
osip_proxy_authorization_t *proxy_auth;
int cbXfer, cbTotalRecvd, cbRemoteAddrSize;
TCHAR *str;
SOCKET s,s1;
struct sockaddr_in addr,addr1;
char packetbuffer[1200]={{'\0'}},packetbuffer1[1000]={{'\0'}};
WSADATA dat ;
///////////////
SOCKET SIPRTPSOC;
struct sockaddr_in addr21;
char nextnon1[50];
char *buf2;
buf2=(char*)malloc(8*sizeof(char));
///////////////
//End of variable declarations
if(WSAStartup(MAKEWORD(2,2), &wsaData))
{
// WSAStartup failed
return 1;
}
sock = INVALID_SOCKET;
for(i = 0; i < FD_SETSIZE; i++)
SockServ[i] = INVALID_SOCKET;
// Get a list of available addresses to serve on
memset(&Hints, 0, sizeof(Hints));
Hints.ai_family = nFamily;
Hints.ai_socktype = nSockType;
Hints.ai_flags = AI_NUMERICHOST | AI_PASSIVE;
if(getaddrinfo(NULL, szPort, &Hints, &AddrInfo))
{
OutputDebugString(TEXT("ERROR: Couldn't get resolve the server name/address!"));
}
nNumSocksCount = 0;
for(AI = AddrInfo; AI != NULL; AI = AI->ai_next)
{
if (nNumSocksCount == FD_SETSIZE)
{
// getaddrinfo returned more addresses than we could use
break;
}
if((AI->ai_family == PF_INET) || (AI->ai_family == PF_INET6)) // only want PF_INET or PF_INET6
{
SockServ[nNumSocksCount] = socket(AI->ai_family, AI->ai_socktype, AI->ai_protocol);
if (SockServ[nNumSocksCount] != INVALID_SOCKET)
{
if (bind(SockServ[nNumSocksCount], AI->ai_addr, AI->ai_addrlen) == SOCKET_ERROR)
closesocket(SockServ[nNumSocksCount]);
else
{
OutputDebugString(
TEXT("Socket 0x%08x ready for connection with %hs family, %hs type, on port %hs\r\n"),
SockServ[nNumSocksCount],
(AI->ai_family == AF_INET) ? "AF_INET" : ((AI->ai_family == AF_INET6) ? "AF_INET6" : "UNKNOWN"),
(AI->ai_socktype == SOCK_STREAM) ? "TCP" : ((AI->ai_socktype == SOCK_DGRAM) ? "UDP" : "UNKNOWN"),
szPort);
nNumSocksCount++;
}
}
}
}
freeaddrinfo(AddrInfo);
if (nNumSocksCount == 0)
{
OutputDebugString(TEXT("ERROR: Unable to serve on any address. Error = %d\r\n"), WSAGetLastError());
goto Cleanup;
}
//Initializing socket s for transmission
s = socket(PF_INET,SOCK_DGRAM,IPPROTO_UDP);
memset(&addr,0,sizeof(struct sockaddr_in));
addr.sin_family = PF_INET;
addr.sin_addr.s_addr = inet_addr(IP_SERVER);//Server IP
addr.sin_port = htons((short )atoi(PORT_SERVER));//(5 0 7 0); Server Listen Port
//1st Transmission ( REGISTER )
i=sendto(s,reg_dest,strlen(reg_dest),0,(struct sockaddr *)&addr,sizeof(struct sockaddr_in));
NKDbgPrintfW(L"\nSent : %d bytes\n\n",i);
if(i != strlen(reg_dest))
{
OutputDebugString(TEXT("ERROR: Couldn't send the data! error = %d\r\n"), WSAGetLastError());
}
// Wait for incomming data/connections
nNumSocks = nNumSocksCount;
FD_ZERO(&fdSockSet);
for (i = 0; i < nNumSocks; i++) // want to check all available sockets
FD_SET(SockServ[i], &fdSockSet);
if (select(nNumSocks, &fdSockSet, 0, 0, NULL) == SOCKET_ERROR)
{
OutputDebugString(TEXT("ERROR: select() failed with error = %d\r\n"), WSAGetLastError());
goto Cleanup;
}
for (i = 0; i < nNumSocks; i++) // check which socket is ready to process
{
if (FD_ISSET(SockServ[i], &fdSockSet)) // proceed for connected socket
{
FD_CLR(SockServ[i], &fdSockSet);
if(nSockType == SOCK_STREAM)
{
cbRemoteAddrSize = sizeof(ssRemoteAddr);
sock = accept(SockServ[i], (SOCKADDR*)&ssRemoteAddr, &cbRemoteAddrSize);
if(sock == INVALID_SOCKET)
{
OutputDebugString(TEXT("ERROR: accept() failed with error = %d\r\n"), WSAGetLastError());
goto Cleanup;
}
OutputDebugString(TEXT("Accepted TCP connection from socket 0x%08x\r\n"), sock);
}
else
{
sock = SockServ[i];
OutputDebugString(TEXT("UDP data available on socket 0x%08x\r\n"), sock);
}
break; // Only need one socket
}
}
// Receive data from a client
cbTotalRecvd = 0;
do
{
cbRemoteAddrSize = sizeof(ssRemoteAddr);
cbXfer = recvfrom(sock, packetbuffer + cbTotalRecvd, sizeof(packetbuffer) - cbTotalRecvd, 0,
(SOCKADDR *)&ssRemoteAddr, &cbRemoteAddrSize);
cbTotalRecvd += cbXfer;
} while(cbXfer > 0 && cbTotalRecvd < sizeof(packetbuffer));
OutputDebugString(TEXT("SUCCESS - Received %d bytes from client %hs\r\n"), cbTotalRecvd, szRemoteAddrString);
Cleanup:
for(i = 0; i < nNumSocks && SockServ[i] != INVALID_SOCKET; i++)
closesocket(SockServ[i]);
if(sock != INVALID_SOCKET)
{
shutdown(sock, SD_BOTH);
closesocket(sock);
}
WSACleanup();
return 0;
}
Zxczc
|
|
|
|
|
I know that this combination now it's not possible.
The standard_sdk for WinCE.net 4.2 works only with evc 4.0 sp2 or higher (sp4).
The sdks available for VS2005 are only windows mobile 5.0 and pocketpc 2003.
Apparently there is no reason why I cannot compile a native application for wince 4.2 with vs2005 even if it seems that vs2005 only supports wince 5.0.
Anyone has faced the same problem ?
|
|
|
|
|
Hello!
Is there an existing program that can handle login to remote computer automatically (i.e. with one click) with HP iPAQ? Remote terminal server always requires normal windows login after connecting to remote computer. What I'd like to have, is that to happen automatically just like windows remote desktop connection can be configured.
|
|
|
|
|
Please tell me how to connect to Bluetooth. I want to connect with GPS receiver. thank you
|
|
|
|
|
Using a pc I would use
GetBitmapBits
to get all the bits that make up an image, CE 4 however does not support this
I have tried a load of things to get the bitmap bits
the latest is this
//Get a handle to the screen DC
HDC hdcScreen = CreateDC(_T("DISPLAY"), NULL, NULL, NULL);
//CREATE A COMPATIBLE DC
HDC hdcCompatible = CreateCompatibleDC(hdcScreen);
// Create a compatible bitmap for hdcScreen.
HBITMAP hbmScreen = CreateCompatibleBitmAP(hdcScreen,lBitmap.bmWidth,lBitmap.bmHeight);
//PUT OBJECT IN TO THE DC TO BE POPULATED WITH INFO
SelectObject(hdcCompatible, hbmScreen);
//COPY INFO FROM SCREEN DC TO COMPATIBLE DC
BitBlt(hdcCompatible,0,0,lBitmap.bmWidth,lBitmap.bmHeight,hdcScreen,0,0,SRCCOPY);
So at this point i would expect the hbmScreen to be populated with all the current screen information, the next thing i need to do is see all that info in a bitmap i thought somthing like this might work but no
BITMAP* bitmap = (BITMAP*)hbmScreen;
I thought the above would allow me to get the bitmapbits as below
bitmap.bmBits
but I get bugger all back, this is begining to get on my tits, so if anyone knows any way of getting the raw data and can post up the example code or even show me where i am going wrong I would be oh so happy
|
|
|
|
|
hi guys
Just joined code project. I need your advice on some issues.
I am developing an application for pocket pc in which we need to send recieve sms/mms,billing etc
I am not finding a way to start.
Please any body can guide some cool links from where i can give a start.
thanks a lot
hytechpro_gaurav
|
|
|
|
|
Please can anyone help me in, how can I print from my application to an IrDA enable printer, or Just using the .Net Compact Framework to print to a printer through infrared.
TKAUB
|
|
|
|
|
HP had a printing sdk and everything but it does not work with WM5 and they no longer suport it. You might find a copy some where. It works very well and it is a real letdown not having it for WM5.
tim
|
|
|
|
|