Ok thank you Salem
Type: Posts; User: see the big C
Ok thank you Salem
Hi Salem,
Ok so if I understand correctly, the first link is a Windows application which is an application that I have to run once a computer has entered mine.
The second link is a C command...
Hey Salem, thank you so much for your reply!
If you may allow me to take this a little further, the problem here is I don’t know which one would be better to use TCP or UDP?
I say the “problem”...
Hello folks,
This is a Yes or No question....
If someone logs into your computer via a commercial software like LogMeIn or TeamViewer or the like, is it possible through C sockets code that we...
Hello folks,
This is a Yes or No question....
If someone logs into your computer via a commercial software like LogMeIn or TeamViewer or the like, is it possible through C sockets code that we...
Yes thank you Salem
StbC
Hi,
Okay, it works .... I shouldn't be using strcpy since they are numbers
so I simply accessed the array by an equals sign see code below.
uint8_t receiveBuffer[256];
Hello,
here's some code:
uint8_t receiveBuffer[256]; // Array filled elsewhere!
>Check this link regarding casting the return of malloc.
>FAQ > Casting malloc - Cprogramming.com
Interesting ... Thanks for the link!
Thanks guys!
r
Hello Salem,
>In the first instance, I would delete malloc.h, since it isn't a standard header file. malloc() is declared in stdlib.h, which you're including.
Understood! So while on the...
AaronP,
In C you don't really have the possiblilty to use flexible arrays. You may however, use malloc, to malloc the keys array to heap. Then realloc / calloc to store new values or more/less...
Hello,
Programmers say it is better to define arrays of structs in a function or in main instead of defining them at the top of a .c file having global scope to the file.
So here it is ......
yes but CommonTater... why would people do such a stupidity! I mean what's in it for them ????
That's what I don't get ....
rob
Hello,
Have a look at this.
User Interface of 2020 - YouTube
I am a little discouraged when I see stuff like this. This because I am myself a gui creator and no where near what this video or...
<
Nothing, altho if def.h and abc.h are both included in the .c file with main(), you'll have to put include guards in com.h (as per CommonTater post #5 above).
>
Yes. Absolutely. I usually...
Hi guys,
MK27:
<
-if other.c has a header, and one of the prototypes includes a "tag_fields" as an argument, I would #include com.h in other.h, exactly the way I would a standard library...
Hello CommonTater,
Yes but what if some other .c file (for example "other.c") needs the "tag_fields" structure.... Then wouldn't it be a good idea to put it in a common header "Com.h" file and...
Hello,
I am a C programmer. I program micro-controllers... mainly PICs.
I have a C question about where structure definitions should reside. Most of us create a pair of files called xxx.h and...
Hi Quzah,
Thanks for your sample. I have to admit, that I am trying to understand what is under the hood of OOP when using inheritance mixed with polymorphism as shown in my article link. This is...
Hello,
I am trying to learn a little about inheritance in C through an article I found on the web at:
Inheritance and Polymorphism in C - CodeProject
There is one thing I don't...
Hello,
Okay, so through extensive testing I was able to get to re-colorize my pics or icons to the colors I want. There's just one thing I don't get.
If I load a pixel from memory and I want to...
>What are you talking about?
Stop! I never used HSV or HSL! Doesn't it show!
/*
r = g = b = 0.2125*r + 0.7154*g + 0.0721*b;
This adjusts its contrast:
pOut->r = 0.5f + c * (pC->r - 0.5f);...
Imalc,
So just to recap if my green = 0-128-0... to get my new red in respect to the rgb green:
(0*30%) + (128*59%) + (0*11%) = 75.52 >>>>> min(75.52, 255); (Okay so I will put up with the...
iMalc,
As long as we reminise on this ... just to understand your formula here,
my green = 0-128-0... to get my new red in respect to the rgb green:
(0*30%) + (128*59%) + (0*11%) = 75.52 ...
anduril462 ,
I suppose so.
thanks all for your insights.