In the following class I'm using the C lib <time.h> .
The functions gmtime, ctime, and asctime return pointers to char/structs.
Am I responsible to clean the memory allocated by them? Is there any possible memory leak associated to the methods MyTimeClass::getDateAndTimeLocalTime() and...
There are 4 tables defined in this MIB:
- Config Table: which holds configurations profiles for named Logs.
-Stats table : which holds statistical data for each named log.
-Log table: which holds the actual log entries for each named log.
- LogVariableTable: which keeps track of log table...
Thanks Scott, but that’s the point. I can’t change things like that. Unfortunately this is a legacy code and I need to figure out a way to use those structures as they are. Would be very nice to have u_int8_t *data instead of u_int8_t data[MAX_DATA_SIZE].
Best Regards,
P.
...};
typedef struct b_s b_t;
At some point, the received info is routed to another equipment using the following functions:
int checkSet(void * ne, b_t * msg)
{
(…)
send(ne->position, msg->payload.cmd, msg->payload.dataSize, msg->payload.data)
(...)
}
int send(u_int8_t pos...
Here is an excerpt from one tutorial on how to compare float numbers in C:
"(...) It is very usual for the C programming language beginners to compare a floating point number using the "==" operator. Floating point numbers must not be compared with the "==" operator.
That is mainly because...
...void functionA(); //...
void functionB(); //...
//SonB's exclusive method
void exclusiveMethodSonB();
};
I have an array of Parent* and at any given position I can instantiate either a SonA or a SonB object:
EXAMPLE:
int main(int argc, char *argv[])
{
Parent* array[10]...
Hi,
Is that a function definition? Why there are 2 sets of '()' in the definition and in the call?
What's the name of this kind of definition?
Definition:
static inline void func(pu) ( void )
{
printf( "%s", s_msg_usage );
}
Call:
func(pu)();
Thanks.
Does anyone have a algorithm for drawing a b-tree (a multiway tree, not a binary tree) on the canvas?
I'm having a really hard time trying to do that!
Thanks,
Best regards,
Paul.
Thanks Steve, but how about the dll? do I have to include it somewhere? Maybe set a path?
I've put the dll in the same project's folder, but the linker cannot find it.
Every time I run I got a message of missing dll.
Thanks again,
Best Regards,
Paul.
I'm having a hard time to use a third party sound engine dll.
How do I load the functions from the dll to use them as if they were in a normal unit(*.c/*.h)?
I've already got the right .lib for c++ builder. But how do I load it?
Best Regards.
Paul.
Yes. That was the solution I used to this problem. Should have posted here...
Very straight-forward, but you need to do some tricks to get rid of the "grayed text". A good solution though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.