Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

IceBerG71

@IceBerG71
About
Posts
41
Topics
28
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Variable Baud Rate
    I IceBerG71

    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?

    C / C++ / MFC question

  • Max Range For Some Constants
    I IceBerG71

    Hi 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

    C / C++ / MFC tutorial

  • Winsock Doubts
    I IceBerG71

    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

    Mobile sysadmin json help

  • Winsock Doubts in embedded Visual C
    I IceBerG71

    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

    C / C++ / MFC sysadmin hardware json help

  • Pointer Usage
    I IceBerG71

    Hi 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?

    C / C++ / MFC question c++ hardware performance tutorial

  • RegisterDevice
    I IceBerG71

    Hi. 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

    C / C++ / MFC c++ help

  • Getting BoderStyle At Runtine
    I IceBerG71

    Hi 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.

    C / C++ / MFC tutorial

  • Unplug or Eject Hardware APIs
    I IceBerG71

    Hi 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 / C++ / MFC hardware json tutorial question

  • C++ Exception Handling
    I IceBerG71

    Yes, 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 / C++ / MFC c++ hardware help question

  • C++ Exception Handling
    I IceBerG71

    Hi 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

    C / C++ / MFC c++ hardware help question

  • Data Verification problem
    I IceBerG71

    Hi 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.

    C / C++ / MFC help

  • Thread & Class
    I IceBerG71

    Hi 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

    C / C++ / MFC help tutorial

  • File Read/Write Determination
    I IceBerG71

    Hi 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

    C / C++ / MFC help tutorial

  • File Database Access Method
    I IceBerG71

    So 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

    C / C++ / MFC question database visual-studio performance workspace

  • Directory Information
    I IceBerG71

    This 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

    C / C++ / MFC tutorial question

  • Directory Information
    I IceBerG71

    Anyone 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

    C / C++ / MFC tutorial question

  • File Database Access Method
    I IceBerG71

    A 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

    C / C++ / MFC question database visual-studio performance workspace

  • File Database Access Method
    I IceBerG71

    Hi 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

    C / C++ / MFC question database visual-studio performance workspace

  • __try / __finally
    I IceBerG71

    Sorry, 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?

    C / C++ / MFC c++ hardware help question

  • swfsource: error2664
    I IceBerG71

    can 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

    Managed C++/CLI help csharp c++
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups