It is becuase of structure padding.. just reffer to structure padding concept in net... you will get the solution
Type: Posts; User: ushacy
It is becuase of structure padding.. just reffer to structure padding concept in net... you will get the solution
I am writing a code using multimedia timer, where i have to include the library winmm.h with out that it will not work. But i am not getting how to include this in my c project. is it possible to...
anyone please help me in, how to avoid the busy wait loop in my code. am fed up with this.. but i want this to run continiously(periodically for every 100 ms) all eg. in net used while 1 loop only.
...
Thank you for your feedback. i definetly follow it. as per you told i have changed my code like this
int main()
{
struct timeval tv;
long msec;
gettimeofday(&tv,NULL);
...
:confused:
I have a timer function which has to printf the current time for every 100 milliseconds that means in 1 second it has to come for 10 times, but in my code its is going somewhere wrong and...
[QUOTE=ushacy;1069661]Ya you are right ,, if i try to change the type of windows data types it will through a erro but here my requirement is like this ... i have to redefine the windows data type to...
Ya you are right ,, if i try to change the type of windows data types it will through a erro but here my requirement is like this ... i have to redefine the windows data type to my own definition as...
Thanks for your help. but my requirement is like this :
if i define BOOL as unsigned char then i have to use the same all over the programme , if BOOL is not defined as unsigned char then it has...
Hi can anyone please tell me how can i typedef the BOOL to unsigned char , if it is defined , but if we havt define the BOOL as unsigned char then it has to take the defualt bool (windows BOOL).
...
my question is very simple i dont know y u ppl are not undrestanding.. i have to convert a string to ascii in c means if i have abcd efgh it should give ascii value of 616263642065666768 and 20 is...
Hi ,
I am facing a problem in converting a string to ascii without considering the space . i.e if space come then it has to be considered as space only not an ascii value of space. please help me in...
Hi everyone i have my timer implementation using win32 api's written in c . but these API's are not working please help me soon.
Code:
#define _WIN32_WINNT 0x0500
#include <stdio.h>
#include...
Hello,
I want to implement a pause and resume functionality in my c programme.
if i call pause , my programme has to wait for user input .. if user inputs a data then it has to resume from...
hey make your process to take more time for eg. put some sleep(2000) in for loop then you will get the time as 1.99999 like this...
/*
* eg4.c
*
* Created on: Aug 23, 2011
* Author: UshaC1
*/
/*******************************************************************************
** Include Section ...
#include<sys/time.h>
#include<stdio.h>
#include<time.h>
#include<string.h>
#include"stdlib.h"
//extern int g_stop_application;
int SetTimer(struct timeval *, int);
int CheckTimer(struct...
Attached my code for a scheduler that schedules a task periodical. But in my code i have taken different periods and need to set the timer for those periods and i should use single timer for this ....