Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Jiko

  1. Jiko

    Change name on a .txt

    I have a file called "123.txt" and I want to change name to "AAA.txt" after i finished to write to "123.txt". I mean I have closed the file "123.txt". I can open it and read the file and write it to my new file, but can't I just copy the hole file? Or just...
  2. Jiko

    convert hex to dec or dec to hex

    Are there any functions I can use or do I have to write them myself? All kind of convertions between hex,dec,bin,ASCII. I have strings with 32 byte that i count and do a checksum in the end. ex. 0102030405060708090A0B0C0D0ECS I also convert 2 byte to 1 and represent them in ASCII. ex. 86 (1000...
  3. Jiko

    ListBox scrollbar

    Hi! I have a ListBox that presents information. When the ListBox gets full, I can no longer se whats beeing written. I have to wait until all information has been written, and then use the scroll. Have tried this... m_ListBoxInfo.SetScrollPos(1,m_ListBoxInfo.GetCount(),TRUE); ...but it only...
  4. Jiko

    Update ListBox

    Hi! I have a ListBox, that presents information and some meassurement values, when I press a "startbutton". But the ListBox doesn't update until the function is done. I wont it to display information during the function is running, so the user can see what's happening. Martin
  5. Jiko

    How to access data in Excel worksheet in VC++?

    Hi! Have used the code below, and have som questions. Does anyone know more about the line: (marked with ********) sSql = "SELECT StudentID, Marks FROM MarksDemo"; Whats MarksDemo, is it the tabel in the Excel-file? Have tried to create a table in Excel (called MarksDemo)...
  6. Jiko

    abort read com if nothing comes

    Thank you Marcel! But I think I'm stupid, because I don't get it right anyway!I've done like this: ***************************************************** CommTimeouts.ReadTotalTimeoutMultiplier = 1000; CommTimeouts.ReadTotalTimeoutConstant = 100; if(!SetCommTimeouts(hCom,&CommTimeouts)){ //just...
  7. Jiko

    abort read com if nothing comes

    Thanks Marcel! It's ok now, BUT now I also want to skip rest of the code in my function then a timeout occurs in COMMTIMEOUTS. SetCommTimeouts returns like this: If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error...
  8. Jiko

    Can't give struct _COMMTIMEOUTS parametervalues!

    I have problem then I Init the struct. typedef struct _COMMTIMEOUTS { DWORD ReadIntervalTimeout; DWORD ReadTotalTimeoutMultiplier; DWORD ReadTotalTimeoutConstant; DWORD WriteTotalTimeoutMultiplier; DWORD WriteTotalTimeoutConstant; } COMMTIMEOUTS,*LPCOMMTIMEOUTS...
  9. Jiko

    abort read com if nothing comes

    Thanks Marcel! But I have problem then I Init the struct. SetCommTimeouts want this parameters: BOOL SetCommTimeouts( HANDLE hFile, // handle to comm device LPCOMMTIMEOUTS lpCommTimeouts // pointer to comm time-out structure ); lpCommTimeouts = Pointer to a COMMTIMEOUTS...
  10. Jiko

    abort read com if nothing comes

    Hello! I communicate with different modules via com-port.I'm the master and they are slaves. They just answer me then I call them. But if they dont answere me.My program don't want to wait for ever. After a certain time I want to stop reading from the comport.Because in that case I want to send...
  11. Jiko

    Show all alternatives in the combobox

    Have a combobox, where we have tried to set styles in properties so that the combobox shows the entire list. But can't get more than two alternatives shown at the same time. Can we use properties to fix that? Martin, Mikael.
  12. Jiko

    set path (Browse)

    We want to be able to set the path to a directory when we click setpath in our FileMenu. We have a SAVE-button, but we don't want to set the path when we click that button. Just change the directory in setpath in the FileMenu. Want it to work like a browser.When we set the path we don't want to...
  13. Jiko

    Move program from Pc to Pc

    Yes, I have moved the sourcecode. And I have managed to start the program and been able to edit. Don't know why it did't work first time.
  14. Jiko

    Save to file

    If I send char it's no problem to read the characters in notepad. DO I need to convert every character to char?
  15. Jiko

    Save to file

    I'm trying to to save variabels like byte, int, string to a file and open it with Notepad. But then I open it's I get 'A' instead of 65.(ASCII 65 = A).How do I save my byte to get it right? And how do I save a String? Thank you.

Part and Inventory Search

Back
Top