Search:

Type: Posts; User: thagulf2017

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    3,369

    [c+Win32] Windows heaps

    hello guys,

    i don't know whats wrong here, when i tried to make heap allocation for my program using HeapCreate(), it compiles but always terminates.

    The example i studied used GetProcessHeap....
  2. Replies
    2
    Views
    3,071

    [c+Win32] Windows/Dialogs Questions

    i am learning about win32 programming.

    i came around the code below and it got me having unanswered questions.


    #include <windows.h>


    LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);...
  3. Replies
    8
    Views
    4,485

    i just made this change to the code. the output...

    i just made this change to the code. the output is


    Building winui.obj.
    C:\Users\xx\Documents\Pelles C Projects\winUI\winui.c(49): warning #2018: Undeclared function 'StringCbPrintfW' (did you...
  4. Replies
    8
    Views
    4,485

    [C+Win32]Why is my code not compiling

    hello guys,

    i don't know whats wrong with this code of mine.


    #include <windows.h>
    #include <wchar.h>

    #define BUF_LEN 10;
  5. StringCchLength & StringCbLength wrong output

    Hey guys,

    I find it hard to understand what exactly with the below code.
    even copy pasted from the book which im using to learn, same wrong output.



    #include <windows.h>
    #include...
  6. Replies
    3
    Views
    1,852

    i renamed to main.c - --> same issue still so i...

    i renamed to main.c - --> same issue still
    so i tried to compile main.c in pelles C and it worked fine. time to ditch visual studio i guess.
  7. Replies
    3
    Views
    1,852

    WINAPI wchar_t array[] problem

    hello guys, here;s my code below:


    #include <windows.h>
    #include <wchar.h>
    #include <conio.h>

    #define BUF_LEN 25

    int wmain(void){
  8. Replies
    6
    Views
    4,492

    #include void filecopy(FILE *,...

    #include <stdio.h>


    void filecopy(FILE *, FILE *);
    int main(int argc, char *argv[]){
    FILE *fp;
    if (argc == 1){
    filecopy(stdin, stdout);
    }
    else
  9. Replies
    6
    Views
    4,492

    except i don't understand what you mean, but i...

    except i don't understand what you mean, but i believe this line assigns the file pointer to fp


    if ((fp = fopen(*++argv, "r")) == NULL) {
  10. Replies
    6
    Views
    4,492

    This compiles but gives error

    This is a program i coded which parses command line arguments which are expected to be text files and in turn send contents to STDOUT which is screen.

    it compiles but doesn't work. although it...
  11. Replies
    13
    Views
    12,225

    sizeof operator, im confused

    good day guys,

    i have this code


    #include <stdio.h>


    int main(){
    struct a{
  12. Replies
    1
    Views
    4,662

    Codeblocks lets out a beep sound

    so my code is just few lines that im experimenting on,

    it runs and terminates abruptly under certain condition, when i press shift+f7 in codeblocks to fire up the debugger it does nothing,...
  13. [C program HELP!] This does not compile

    i don't know why,

    this code:


    #include <stdio.h>
    #include <ctype.h>
    #include <string.h>
  14. Thread: Set X to 5

    by thagulf2017
    Replies
    11
    Views
    2,579

    i think i understand this now (*high - *low)...

    i think i understand this now (*high - *low) returns int not a pointer so it makes sense now, thanks salem
  15. Thread: Set X to 5

    by thagulf2017
    Replies
    11
    Views
    2,579

    im confused right now, isn't both *low' and...

    im confused right now, isn't both *low' and *high' pointers in the context used in the k & R?
  16. Thread: Set X to 5

    by thagulf2017
    Replies
    11
    Views
    2,579

    applied strcpy() as suggested, code is much...

    applied strcpy() as suggested, code is much neater and works too, thanks salem. ::)

    i have another problem tho, i was trying to implement binsearch using pointers but before changing the actual...
  17. Thread: Set X to 5

    by thagulf2017
    Replies
    11
    Views
    2,579

    i use codeblocks, how can i compile with -Wall...

    i use codeblocks, how can i compile with -Wall flag?

    also, i believe comments are different from the other keywords in that they can be anything or any length as long as they fall
    within /* and...
  18. Thread: Set X to 5

    by thagulf2017
    Replies
    11
    Views
    2,579

    thanks very much, that has been resolved but now...

    thanks very much, that has been resolved but now i don't know why ret which is to store the return value of getword in order to decide whether its a comment or normal keyword is always returning...
  19. Thread: Set X to 5

    by thagulf2017
    Replies
    11
    Views
    2,579

    Set X to 5

    so i'm reading an exercise on structures in the C k&R book.

    it says to modify getword routine in order to take in to consideration

    underscores, comments etc.

    i'm trying to start small (i.e...
  20. Replies
    3
    Views
    1,059

    hello, salem. thanks for the answer, however. i'm...

    hello, salem. thanks for the answer, however. i'm not sure of what you mean by "non-standard". i typed out whats in the book K & R and the response when i compile
    is a blank command line window...
  21. Replies
    3
    Views
    1,059

    declaration parser

    this code compiles but doesn't work, if i try to open debugger, it still does not work.

    whats wrong?


    #include <stdio.h>
    #include <ctype.h>
    #include <string.h>

    #define MAXTOKEN 100
  22. Replies
    1
    Views
    2,299

    conflicting data types

    this won't compile


    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    #define ALLOCSIZE 10000
    #define MAXLINES 5000
    #define MAXLEN 1000
  23. Replies
    1
    Views
    5,046

    lvalue required as increment operand

    i keep experiencing this particular error while doing pointer arithmetics in C/

    e.g


    #include <stdio.h>

    int strcmp(char *s, char *t);

    int main(){
  24. Replies
    1
    Views
    3,487

    C structure basic code not compiling

    hello sirs, why is this code not working? it does nothing special just trying to understand.


    #include <stdio.h>
    #include <stdlib.h>

    struct node

    {
    int a;
  25. Replies
    1
    Views
    2,290

    c recursion in structures

    hello guys, i read someone else's code which works. then i wrote this one myself to see if i can incorporate recursion in adding nodes to a linked list structure. in the debugger after the loop ought...
Results 1 to 25 of 31
Page 1 of 2 1 2