Search:

Type: Posts; User: see the big C

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    6,409

    Ok thank you Salem

    Ok thank you Salem
  2. Replies
    6
    Views
    6,409

    Hi Salem, Ok so if I understand correctly, the...

    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...
  3. Replies
    6
    Views
    6,409

    Hey Salem, thank you so much for your reply! ...

    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”...
  4. Replies
    1
    Views
    16,784

    Is it possible to do this in C?

    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...
  5. Replies
    6
    Views
    6,409

    Is it possible to do this using C

    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...
  6. Replies
    5
    Views
    7,234

    Yes thank you Salem StbC

    Yes thank you Salem
    StbC
  7. Replies
    5
    Views
    7,234

    Hi, Okay, it works .... I shouldn't be using...

    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];
  8. Replies
    5
    Views
    7,234

    Can't pass and array??

    Hello,

    here's some code:



    uint8_t receiveBuffer[256]; // Array filled elsewhere!
  9. >Check this link regarding casting the return of...

    >Check this link regarding casting the return of malloc.
    >FAQ > Casting malloc - Cprogramming.com

    Interesting ... Thanks for the link!

    Thanks guys!

    r
  10. Hello Salem, >In the first instance, I would...

    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...
  11. Replies
    12
    Views
    3,050

    AaronP, In C you don't really have 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...
  12. Where is the best place to define llarge arrays of structs?

    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 ......
  13. Replies
    10
    Views
    27,906

    yes but CommonTater... why would people do such a...

    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
  14. Replies
    2
    Views
    1,181

    God this is amazing!

    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...
  15. Replies
    9
    Views
    3,112

    < Nothing, altho if def.h and abc.h are both...

    <
    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...
  16. Replies
    9
    Views
    3,112

    Hi guys, MK27: < -if other.c has a header,...

    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...
  17. Replies
    9
    Views
    3,112

    Hello CommonTater, Yes but what if some other...

    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...
  18. Replies
    9
    Views
    3,112

    Where to put our structures?

    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...
  19. Hi Quzah, Thanks for your sample. I have to...

    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...
  20. Member never assigned in sample code!!!

    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...
  21. Replies
    0
    Views
    2,940

    RGB to HSL question!

    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...
  22. Replies
    25
    Views
    4,771

    >What are you talking about? Stop! I never...

    >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);...
  23. Replies
    25
    Views
    4,771

    Imalc, So just to recap if my green =...

    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...
  24. Replies
    25
    Views
    4,771

    iMalc, As long as we reminise on this ... just...

    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 ...
  25. Replies
    25
    Views
    4,771

    anduril462 , I suppose so. thanks all for...

    anduril462 ,

    I suppose so.

    thanks all for your insights.
Results 1 to 25 of 54
Page 1 of 3 1 2 3