Hello All, I have an EVC++ program and a Flash program running concurrently in a Pocket PC wherein the EVC++ program passes some data to the Flash application via an XML socket.I am facing a problem of low animation speed when the data transfer takes place.Is there a way in the flash program to receive the data in a seperate thread so as not to disturb the animation speed?I would be grateful for your kind responses. Thanking you, Deepa Gopal.
Deepa Gopal
Posts
-
EVC++ to Flash Comunication.... -
Socket ServerHi 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.:confused:
-
Bluetooth Manager Status....Hello All, I am writing a program in Embedded VC++or communication via a bluetooth gateway.Is there any status word for teh Bluetooth Manager which can be checked in the program before opening and writing to the COM7 port?I wnat to make sure the bluetooth manager has established the connection with a WaveCan generator before opening the port. Thanking you for your co-operation and time, Deepa Gopal.
-
Bluetooth connection......Hi All, I have a problem as follows: I need to have a serial connection between my PDA and a WaveCan generator for my program to function.now every time I reset the PDA I have to manually get the connection again.Is there a way such that once the connection is established, the user need not e-establish it on reset? Thanking you for your time, Regards, Deeepa.
-
Thread Initialisation.......Hi all, Thanx a lot for the replies.The Read Thread works fine now.Apparently there was a problem with the firmware. Thanx again:):)
-
Thread Initialisation.......Hi, Actually I am reading from COM7 using a bluetooth gateway.I have opened COM7 before creating the read thread. Regards, Deepa.
-
Thread Initialisation.......Hi, This i how I read the data: SetCommMask (hSerial1, EV_RXCHAR | EV_TXEMPTY |EV_CTS | EV_DSR | EV_RLSD | EV_RING); WaitCommEvent (hSerial1, &dwCommModemStatus, 0); SetCommMask (hSerial1, EV_RXCHAR | EV_TXEMPTY |EV_CTS | EV_DSR | EV_RLSD | EV_RING); if (dwCommModemStatus & (EV_RXCHAR | EV_RLSD | EV_TXEMPTY |EV_CTS | EV_DSR | EV_RING) ) { do { flag = ReadFile(hSerial1,&response, 1, &dwBytesTransferred, NULL); if (flag) { //Process Data } } while(dwBytesTransferred == 1); } Thanx Deepa
-
Thread Initialisation.......:confused:Hi All, I have a problem in my embedded VC++ which is as follows: There is a Read Thread created during WM_CREATE event, which is supposed to read data from the COM1 port as and when it receives data.I have created the thread in such a way that it is active right from the point of creation - hReadThread = CreateThread (NULL, 0, PortRead, 0, 0, &dwThreadId); The problem is I dont know why the data is not read from COM1 though the read thread is active right from start. It would be very helpful if you could kindly help em out. Thanx Deepa.
-
Thread Initialisation.......:confused:Hi All, I have a problem in my embedded VC++ which is as follows: There is a Read Thread created during WM_CREATE event, which is supposed to read data from the COM1 port as and when it receives data.I have created the thread in such a way that it is active right from the point of creation - hReadThread = CreateThread (NULL, 0, PortRead, 0, 0, &dwThreadId); The problem is I dont know why the data is not read from COM1 though the read thread is active right from start. It would be very helpful if you could kindly help em out. Thanx Deepa.
-
Display BYTES....Hi All, I am doing an EVC++ programm for communication between two PDAs through a bluetooth gateway.One PDA sends some BYTES which is to be read by the second PDA.My problem is that I need to know how to display the BYTES read by the second PDA on its screen.I tried converting the BYTES to string and displaying it, but certain junk characters are also displayed. It would be great if you could kindly help me out. Thanks a ton, Deepa.
-
help with CSerial (code included)Hi, Could you please let me know how you can runa terminal program to capture the output from another program?I am in the process of developing a serial communication between a laptop and PDA.I have to send data from the lpatop which has to be read by the PDA. Thanking you for your time, Deepa. John R. Shaw wrote: When working on serial communication I have found it usful to run a terminal program on another machine and capture the data output from my program. If it receives garbage, then it is a port setup problem (or bad serial port). If it receive nothing, then either I selected the wrong output port or (heaven forbid) I forgot to make sure the port open successfuly. I hope this will at least help a little, since I have not used CSerial. I tend to write my own using file I/O (on Win32 platforms). INTP
-
Serial Communication - Laptop and PDAHello, I am a beginner in the world of Embedded VC++ programming and am confronted with the following problem: I have a PDA (iPAQ, Win CE OS) connected to my Laptop. I have to implement a program such that i can write data to the COM port which the PDA has to read and display.Now, I can write seperate read and write programs, but how can I run it simultaneously?Moreover, if the port is open for writing by one program can I open it for reading by another program at the same time?Any pointers in clearing the above queries is most welcome. Thanks a lot for your time, Deepa.
-
Serial CommunicationHello Antti, Thank you for your kind response.My PDA uses Win CE.I have written a program in EVC++ to write a few characters to the COM1 port.Now I have no idea how to implement the read program in the PDA so that it can read the data being sent. Thanks Deepa.
-
Serial CommunicationHello, I am a beginner in Embedded VC++ programming and am confronted with a problem : I have a desktop connected to a PDA.I have to write a program to send data from the desktop which would be read and displayed by the PDA.Any suggestions on how to proceed with this is most welcome. Thanks, Deepa.