Search:

Type: Posts; User: gavio

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,898

    @Salem: i always include headers because compiler...

    @Salem: i always include headers because compiler says, "missing prototype for x()" so i can't forget it :)
  2. Replies
    10
    Views
    1,898

    Just for the record... i'm usually using "int...

    Just for the record... i'm usually using "int main()"... this was just a quick example i was writing.
  3. Replies
    10
    Views
    1,898

    I have looked at the first one (casting malloc)...

    I have looked at the first one (casting malloc) and could only conclude that it's OK since i included the "stdlib" header (you said it yourself in there :D).

    I couldn't find the second one (void...
  4. Replies
    10
    Views
    1,898

    @Salem: OK, i will. Thank you :)

    @Salem: OK, i will. Thank you :)
  5. Replies
    10
    Views
    1,898

    Omg, i'm so embarrassed right now. Thank you....

    Omg, i'm so embarrassed right now. Thank you. Resolved.
  6. Replies
    10
    Views
    1,898

    Pointer to struct problem

    When i run this, it craches. Does anyone see the problem?
    #include <stdlib.h>

    struct employee{
    int id;
    struct employee *next;
    };

    void add(struct employee **my_struct,int id){
    struct...
  7. Thread: Creating DLL

    by gavio
    Replies
    11
    Views
    1,765

    How does that work? dumpbin /EXPORTs...

    How does that work?
    dumpbin /EXPORTs "example.dll";?? And where do i put it? Can you write an example for me?

    Thank you...
  8. Thread: Creating DLL

    by gavio
    Replies
    11
    Views
    1,765

    @Salem: Yes. It can create and compile DLL...

    @Salem: Yes. It can create and compile DLL projects. I enter the code (the example function from post #1), compile (it compiles) and then i have this 'Entry Point' problem.

    @Magos: this doesn't...
  9. Thread: Creating DLL

    by gavio
    Replies
    11
    Views
    1,765

    Sorry for bumping, but, any1??

    Sorry for bumping, but, any1??
  10. Thread: Creating DLL

    by gavio
    Replies
    11
    Views
    1,765

    Empty project.How should i go about this? Like...

    Empty project.How should i go about this? Like instead of main()?C (Pelles C 4.0.5).What exactly do you mean with 'dumpbin /exports'?

    Is there an example on a simple DLL? I have searched your...
  11. Thread: Creating DLL

    by gavio
    Replies
    11
    Views
    1,765

    Creating DLL

    Hello!

    I'm trying to create a DLL. This is my code:
    //just an example function...

    int someFunction(int i){
    return i;
    }... but here's a problem that i already run into before but never...
  12. Replies
    15
    Views
    3,042

    Thank you again dwk! ;)

    Thank you again dwk! ;)
  13. Replies
    15
    Views
    3,042

    I understood that, but cannot make it work. I...

    I understood that, but cannot make it work. I have tried "r+" and "a+" but nothing happened. I have made it work with 2 flows ("r" and "w").

    This was actually for LaTeX (if you're familiar)... i...
  14. Replies
    15
    Views
    3,042

    Thank you dwks! How stupid of me... all i needed...

    Thank you dwks! How stupid of me... all i needed was 2 FILE flows.
  15. Replies
    15
    Views
    3,042

    This is what i'm using: int myChar; FILE...

    This is what i'm using:


    int myChar;
    FILE *myFlow;
    myFlow=fopen("test.txt","w");
    while((myChar=getc(myFlow))!=EOF){
    myChar='a'; //for example, i would like to rewrite every character...
  16. Replies
    15
    Views
    3,042

    Nothing happens... 'c' stays 'c'... even if i use...

    Nothing happens... 'c' stays 'c'... even if i use a standard character (for example 'a'). It's not writing into the file. Where am i going wrong?
  17. Replies
    15
    Views
    3,042

    It's working. myChar=232... However, there's a...

    It's working. myChar=232... However, there's a new problem. I have declared myFlow like this:


    FILE *myFlow;
    myFlow=fopen("test.txt","r");

    //and when i use putc, nothing happens
    ...
  18. Replies
    15
    Views
    3,042

    Foreign characters

    Hello! I was wondering how to define a foreign character? Is there some escape character for that? For example: i'm looping through my file, and when some character equals 'c', i would like to write...
Results 1 to 18 of 18