Hi Will like to ask if anyone has ever try opening a comport with baudrate other than those even in Microsoft APIs? like BaudRate of 141250 etc? I have a device that will work best with this baudrate but could not set the comport baudrate to this value for communication?
IceBerG71
Posts
-
Variable Baud Rate -
Max Range For Some ConstantsHi Anyone know if there is defined constant value for Data type...For example DWORD.... Max Range For DWORD is FFFFFFFF Need To Do Functions That Do Checking If The Passed In values Meet The Range Or Not. Although Can Hardcode the FFFFFFFF, i ma wondering if there is any better way. Thanx
-
Winsock DoubtsHi 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
-
Winsock Doubts in embedded Visual CHi 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
-
Pointer UsageHi Just a question on Pointer In C++ used on embedded system, memory leak is very critical. so i used example LPTSTR ptrText = new _TCHAR[MAX_PATH]; when i exit, i use if(ptrText) { delete[] ptrText; ptrText = 0; } Just wonder if the ptrText = 0; is necessary? Another is will the use of new and delete slow down the system?
-
RegisterDeviceHi. I am in a project that needs to use a serial port to virtually set so that it acts as a virtual serial port for interfacing with many devices. In The market, there is software on it but that cost US$100++ per port which is too costly for my school project. I seen codes in Windows CE using RegisterDevice but when i use in Visual C++ on desktop, it says undeclared even if i include and Any help will be greatlt appreciated. Thank You
-
Getting BoderStyle At RuntineHi Anyone Know how to change the border style of a listbox at runtime...That means when listbox is non-active, the border is not bold but it is in focus, the border is darker to indicate to the user... I tried to use getwindowlong and setwindowlong but i am unable to set it properly..maybe i miss some APIs.. Thanx.
-
Unplug or Eject Hardware APIsHi All, Anyone knows how to safely "Unplug or Eject Hardware" without having to click that green arrow icon on the system tray? I want to write an application using some window API to do it. Normally that icon appear when i plug in my USB storage. I have searched the web, some people use DeviceIOControl to eject, but it doesn't really remove the device as when i click the icon and "Stop USB Storage Device - Drive G:" Can anyone enlighten me please? I refuse to believe that i cannot do this using some window APIs... Thanks!!
-
C++ Exception HandlingYes, the size was a result of adding the excpetion blocks, maybe i use too extensive, every functions i use the exception to protect the codes in case there is any errors resulting in unforseen cases. initially, it helps me in debugging, after solving the bugs, so far, the exception was never resulted but frankly speaking, it is hard to predict what user can do to it since there is user entry portion. I checked MS website, it was indicated that the __try __ except is WIN32 exception handling. and they also indicated not all cases can be captured by the __try block.
-
C++ Exception HandlingHi In the past thread, i asked about C++ exception handling using __try, __except and _try __finally blocks to safeguard my codes against carelessness programming as well as unforeseen events... I am using on a embedded WinCE platform after almost completing my module, i find that the size of the programs grows a lot, from the initial 10k to abt 100k. Is there anyway to minimise the size and at the same time without compromise reliably. The size is critical as my program may need to upgrade through IR and if it is huge, time is a factor but i can't sacrifice for a reliable program any help pls?? thanx
-
Data Verification problemHi I am doing an application that requires data entry. Verification of data entry is done using EN_ENTER window message. but in the event the user uses tab, the en-enter was not called and i have problem verifying the entry. i am developing in a window cE device. any help will be appreciated.
-
Thread & ClassHi I have a problem with the thread and class. I created a thread from a function and in the thread function, i called and init a class but not using the new and delete method. There is a problem when the thread ended as the class destructor was not activated when i called ExitThread...an example below main function() { CreateThread(.....,ThreadProc,...); } ThreadProc() { CDB_Database Data(); //Class Init DWORD dwRecords; HANDLE hFile; etc OpenFile(); ... .... ... ExitThread(0); } my problem is everytime i called creatThread, the class constructor will be activated but when i called ExitThread, the class destructor was not activated. So is the resources used by the thread free when i called exitThread as i seems to have sharing violation inside the function Thank you for ur advise
-
File Read/Write DeterminationHi Anyone know how to determine if a file is opened as Read or Write through any of the APIs... I need to know as currently i using 2 flags to determine from the class. Any help will be appreciated. Thankyou
-
File Database Access MethodSo u are saying using fread and fwrite is faster in performance as compared to WriteFile, ReadFile?? Sorry, i am evaluating which is better as i more used to fread and fwrite but now i exposed to another APIs WriteFile, ReadFile...The only gd thing about ReadFile is that the Handler obtained from CreateFile can be used for getting File Attributes.. Anyway, thanx for taking the time to answer my doubts
-
Directory InformationThis API only tells me if it is a directory or not. what i need is the date the directory is created etc...like File attributes.. is it possible on directory as well? Thanx
-
Directory InformationAnyone know how to get the creation date of a Directory? I need the information for backing up of files in a process. For example a week backup, so after a week, the previous backup shall be erased off Thanx
-
File Database Access MethodA bit Deep for me.. Are you saying that fread, fwrite is asynchronous handling? or is it WriteFile, ReadFile?? Maybe you could quote an example Thanx
-
File Database Access MethodHi Just a question regarding the performance of CreateFile using Handler (APIs) Vs C Runtime function FILE *fp and fopen Anyone know which is faster in reading and writing text files and whether any of them has limitations or problems in usage in WinCE environment? Thank you
-
__try / __finallySorry, just to add in, i am using on embedded Visual C++, so that is why only __try and __except and __finally i can use.unless is using version 4, then i can use try and catch.. but that will have to recompile for a new window CE OS. i can do without __finally, then i can use return statement; but since __finally is a cleanup code, so i thought can use...make the codes cleaner also. so any suggestions? what is RTTI actually?
-
swfsource: error2664can give the full line of the error where wcslen is?? looking at the error, it seems like you are trying to get the length of the word.... if you know wcslen(wide character string); only...just check it out again:-D