Search:

Type: Posts; User: Niccolo

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    302

    @microcontroller, You are at a position I...

    @microcontroller,

    You are at a position I think should provoke some thought on how to proceed.

    In C, you'd do as @flp1969 suggests, which is to use the C API of Windows. It's painful, but it...
  2. Replies
    1
    Views
    104

    This code is a slightly questionable attempt at...

    This code is a slightly questionable attempt at rounding into a 16 bit signed output. I say questionable because depending on "Float_Value", this could overflow.

    The 0.5 is a means of 5/4 rounding...
  3. Replies
    7
    Views
    284

    @christop What @jimblumberg is saying is...

    @christop

    What @jimblumberg is saying is correct.

    It is among the "ISO" coding standards to never mix these operations in a single clause that way (Stroustrup/Sutter's site on ISO C++).
  4. Replies
    6
    Views
    263

    if (header[i] = 24) This is an assignment, not...

    if (header[i] = 24)

    This is an assignment, not a test


    (*p) = c;//exception always here

    ++p;
  5. Replies
    4
    Views
    214

    @I C everything, @jimblumberg 's message goes...

    @I C everything,

    @jimblumberg 's message goes deeper.

    However, there's no context. This is an isolated function.

    In C++ I'd expect to see a pixel, not a char or unsigned char pointing to...
  6. Replies
    13
    Views
    949

    The function of interest isn't in C because of...

    The function of interest isn't in C because of the nature of C. It was originally purpose built to write the UNIX operating system while translating the assembler source into a language operating...
  7. @Asymptotic, glad you like that "One of my...

    @Asymptotic, glad you like that

    "One of my favorite things about C is that it can get me into thinking about the hardware that the code is actually running on."

    Indeed, C was originally created...
  8. I offer a slight expansion on @john.c's point. ...

    I offer a slight expansion on @john.c's point.

    Searching for a text match could be a unknown workload unless it is a simple match. If the file is ASCII only you may bypass localization issues. If...
  9. Unfortunately I don't know of any texts in C, but...

    Unfortunately I don't know of any texts in C, but then the subject is not so much a language concept, but a cross section of operating system details and computer science, with a bit of the...
  10. Replies
    9
    Views
    854

    My own favored solution to this problem is memory...

    My own favored solution to this problem is memory mapped file services. The interfaces differ on *Nix v Windows, but they are similar enough that a simple abstraction layer allows either OS to serve...
  11. Replies
    4
    Views
    290

    With full acknowledgement of @laserlight's point,...

    With full acknowledgement of @laserlight's point, the declaration of wxApp:OnInit is declared as virtual, so the function in the derived class will be virtual. While it is optional, there's more to...
  12. void writeDes(char * str1,char * str2);

    void writeDes(char * str1,char * str2);
  13. Replies
    10
    Views
    439

    Well, sometimes servers have little...

    Well, sometimes servers have little glitches...your post of 21 minutes ago appeared, to try again.
  14. Replies
    11
    Views
    1,104

    Since we have no code to study, we have to assume...

    Since we have no code to study, we have to assume from your description that you have declared global variable in socket.h. If by "redefinition" you are referring to the fact that the linker may...
  15. Replies
    10
    Views
    561

    C was purposely created to replace an assembler...

    C was purposely created to replace an assembler (to be a CPU independent assembler level language) to write the UNIX operating system.

    Rust isn't targeting such a direction. It is not for use in...
  16. Replies
    5
    Views
    330

    @zach, they're teasing you about the include file...

    @zach, they're teasing you about the include file configuration. Find where "windows.h" exists, and make sure that's in the include path.

    Of course, that will lead you to the next problem,...
  17. @Zeus_ There are so many absolutely free C++...

    @Zeus_

    There are so many absolutely free C++ compilers and IDE's that I have some trouble understanding why anyone would use TurboC++ unless targeting outdated operating system targets.

    What OS...
  18. Replies
    10
    Views
    296

    RyanC, the mystery you're probing is found by...

    RyanC, the mystery you're probing is found by knowing assembler, and how the CPU operates. It is rather primitive, which means writing to the CPU in it's own language is rather detailed, tedious and...
  19. Replies
    24
    Views
    973

    Well, as declared, a char * monkey represents a...

    Well, as declared, a char * monkey represents a non constant string.

    const char * monkey = "whatever";

    would declare that "whatever" is const, and can't be changed.
  20. Replies
    24
    Views
    973

    I just wanted to point out that in Windows,...

    I just wanted to point out that in Windows, Visual Studio 2017 and 2019 easily install and support CLang "out of the box" - very easy setup and installation (basically just check the box, it does...
  21. Replies
    6
    Views
    266

    One could oversimplify the answer by saying...

    One could oversimplify the answer by saying malloc can return just about anything, and is unpredictable.

    While true, there are some answers you may find of interest.

    One thing malloc might...
  22. Replies
    6
    Views
    266

    size_t diff = b - a; I must disagree...

    size_t diff = b - a;




    I must disagree with this observation.

    b was assigned
  23. Replies
    6
    Views
    343

    Yeah, but I didn't make it clear it was about...

    Yeah, but I didn't make it clear it was about order of precedence :)
  24. Replies
    6
    Views
    343

    Just so I'm clear, the acronym DLL usually means...

    Just so I'm clear, the acronym DLL usually means "dynamic link library", but in this context I think you're using it to refer to a double linked list. I'll assume it's a double linked list.

    Let's...
  25. Replies
    15
    Views
    1,465

    I nearly forgot that I said I'd return to this,...

    I nearly forgot that I said I'd return to this, and it took a rainstorm blocking me from doing other things to notice this particular oversight.

    So, I thought I'd check, and indeed when I went...
Results 1 to 25 of 212
Page 1 of 9 1 2 3 4