Search:

Type: Posts; User: doia

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    3,927

    NVM I found out what the problem was. My...

    NVM I found out what the problem was. My application(it's an infinite loop) was taking longer to process than 1 sec sometimes an therefore the delay wouldn't work in this case because I declared it...
  2. Replies
    3
    Views
    3,927

    Delay using timeGetTime is too short

    Ok I understand that by trying to create a delay using timeGetTime I'll get an approximate delay, not an exact one. But if anything it should be AT LEAST the amount of time I tell it to delay. My...
  3. Replies
    9
    Views
    4,734

    @brewbuck: fortunately my strings are not...

    @brewbuck: fortunately my strings are not constant
    @nonoob: YES I do, exactly what I wanted! merci

    now only one more thing for my code. I also want to find abbreviations:

    for example if I look...
  4. Replies
    9
    Views
    4,734

    yup that works... thanks=)

    yup that works... thanks=)
  5. Replies
    9
    Views
    4,734

    Find word with uppercase and lowercase letters

    Is there a function I can use that will find the variation of a determined word with any combination uppercase/ lowercase letters?

    eg: If I look for the word "rat" i also want to find the...
  6. Replies
    3
    Views
    6,031

    thanks nonoob! I used your code and it works...

    thanks nonoob! I used your code and it works perfectly.
  7. Replies
    3
    Views
    6,031

    strstr doesn't return FALSE for empty string

    I have an if statement with the following condition:


    if ((strstr(to_units, param_units))&&(param_units!=NULL))
    {
    ...
    stuff
    ...
    }
  8. Replies
    13
    Views
    8,307

    okay I used the union from quzah's code and it...

    okay I used the union from quzah's code and it works!
    Thanks to everyone :D

    Isa
  9. Replies
    13
    Views
    8,307

    Thanks nonoob and Bayint. Not really, I need...

    Thanks nonoob and Bayint.


    Not really, I need to convert a lot more than just 8 bytes, I am going to have a large amount of values stored into this array. The values stored are going to be in...
  10. Replies
    13
    Views
    8,307

    Can you please be more specific? The values are...

    Can you please be more specific?
    The values are stored in a char array. Are you suggesting I transfer the 8 bytes from the char array into the union and then just call the value for double? Isn't...
  11. Replies
    13
    Views
    8,307

    hasn't given me any issues so far.

    hasn't given me any issues so far.
  12. Replies
    13
    Views
    8,307

    well for some reason when I store the binary...

    well for some reason when I store the binary numbers in my char array and do a "quickwatch" of the array index I get -27 which, according to the Visual Studio, corresponds to char å.
    it was just an...
  13. Replies
    13
    Views
    8,307

    convert set of chars into double

    Hi,
    I have 8 char stored in a char array.

    char char_buff[65536];

    char_buff[x]=68;
    char_buff[x+1]=59;
    ...
    char_buff[x+7]=-56;
  14. Replies
    6
    Views
    3,188

    it works

    merci beaucoup MK27 & tabstop
  15. Replies
    6
    Views
    3,188

    tabstop, your code doesn't account for the fact...

    tabstop, your code doesn't account for the fact that I have a variable number of words. What should I do if I have 6 words instead of 2?
    Also, the tab space does not happen between words, only...
  16. Replies
    6
    Views
    3,188

    Here is the code, paramacquire is just a BOOL...

    Here is the code, paramacquire is just a BOOL that triggers reading the file.



    FILE* fp3;

    fp3 = fopen ("offsets_list.txt","r");
    char buffer2[300];
    char *find_ptr, *offset_ptr;
  17. Replies
    6
    Views
    3,188

    fgets/sccanf question

    I am trying to read some info from a file. The text in the file in saved in the following format:

    [String]TAB[Hex Number]TAB[Integer]TAB[Float]

    Blahbllah Blahlahhhuhuhuhuh 3060 8 ...
  18. Replies
    8
    Views
    3,276

    Thanks Salem! I figured it would be better to...

    Thanks Salem! I figured it would be better to acquire the PARAMETER name instead of the Mnemonic. The code looks a lot cleaner now:



    while ((find_ptr = strstr(buff_ptr,mnemonic)))
    {...
  19. Replies
    8
    Views
    3,276

    Salem, are you suggesting I go back to my...

    Salem,
    are you suggesting I go back to my original code?
    and what should I use to advance past Mnemonic= to the next " ? memmove in conjuction with a strchr?
  20. Replies
    8
    Views
    3,276

    Thanks for the help hk_mp5kpdw. After some...

    Thanks for the help hk_mp5kpdw.

    After some struggle I managed to fix it. Here's the corrected code:



    while(fgets(buffer,MAX_LEN_LINE+2,fp1))
    {
    buff_ptr = buffer;...
  21. Replies
    8
    Views
    3,276

    Organize words from a text file

    Hi,
    I am trying to create a code that will find words and organize them in a text file in the following manner:

    For the following input text file:


    [PARAMETER: Left Pedal]
    ...
  22. Replies
    3
    Views
    972

    sorry. I'm using Visual Studio.NET Windows XP

    sorry. I'm using Visual Studio.NET Windows XP
  23. Replies
    3
    Views
    972

    synchronous i/o URGENT HELP PLZZZ

    Right now I have a process writing a file and having another .exe come in and read that file and save the data to a buffer.
    I was just told the i/o process needs to be synchronous, so how exactly do...
  24. Replies
    1
    Views
    1,363

    Multiple process access to data stream

    Hi,
    I wrote a code to access a stream of data coming in from an ethernet port. Everything works fine until I try to open multiple applications trying to access that same data: after the first...
  25. Thread: string into int

    by doia
    Replies
    10
    Views
    1,070

    yes that works great! thanks for all the help guys

    yes that works great! thanks for all the help guys
Results 1 to 25 of 47
Page 1 of 2 1 2