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...
Type: Posts; User: doia
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...
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...
@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...
yup that works... thanks=)
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...
thanks nonoob! I used your code and it works perfectly.
I have an if statement with the following condition:
if ((strstr(to_units, param_units))&&(param_units!=NULL))
{
...
stuff
...
}
okay I used the union from quzah's code and it works!
Thanks to everyone :D
Isa
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...
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...
hasn't given me any issues so far.
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...
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;
merci beaucoup MK27 & tabstop
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...
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;
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 ...
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)))
{...
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?
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;...
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]
...
sorry. I'm using Visual Studio.NET Windows XP
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...
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...
yes that works great! thanks for all the help guys