Search:

Type: Posts; User: Bill 101

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Image Annotation - Calculate total height of textbox - Help! -:)

    Hi

    PROBLEM 1:


    I want to add multiple lines of text to an image (using the ImageMagick Wand api).
    This prg will create postcards, so the text must fit in a X * Y rectangle (depends on size of...
  2. Replies
    3
    Views
    3,250

    Hello! OK, thank you very much for the info,...

    Hello!

    OK, thank you very much for the info, I'll check it out!
  3. Replies
    3
    Views
    3,250

    Hi, Thanks for the answer. Ok, but what...

    Hi,

    Thanks for the answer. Ok, but what library would you recommend? I hope it is not Win32 API, because that one seems to be very complex for me.

    Anyway I don't want to crate standard Windows...
  4. Replies
    3
    Views
    3,250

    Simple GUI for console app (How?)

    Hi,

    I'm just wondering how do you guys make a GUI for a simple console app. I would like to create an interface (just like the one in RHIDE, or the older versions of RAR (not WinRar). I'm sure...
  5. Replies
    4
    Views
    5,442

    Hi, Yes this func is not in the standard lib,...

    Hi,

    Yes this func is not in the standard lib, and is not available in Borland's package either.

    However, if you want to do a case-insensitive compare, you can always use several other funcs,...
  6. Replies
    3
    Views
    1,037

    Hi Well, I've heard something about this,...

    Hi

    Well, I've heard something about this, there is a MySQL C API.
    Check out this link: http://www.mysql.com/doc/en/C.html

    I don't know any more details, but some people say it could be slow...
  7. Replies
    0
    Views
    2,414

    Borland C Help needed (Locales)

    Hi,

    I've posted this to the worng board a few minutes ago, sorry. The thread has been deleted from the C++ area since this question is related to the C language, even if the compiler is Borland's...
  8. Hi! Ok I see, now it's clear. Thank you very...

    Hi!

    Ok I see, now it's clear. Thank you very much for your help!
  9. Hi, Thanks for the answer. Yes, I knew that...

    Hi,

    Thanks for the answer.

    Yes, I knew that it is possbile to cast char* to void* and vice-versa, however my array is a char*[x]!

    If I type in:

    char *tmparr[] = (char*[]) malloc(some...
  10. Replies
    5
    Views
    1,594

    Hi, Probably it's not what you're looking for,...

    Hi,

    Probably it's not what you're looking for, but it could be useful.
    Under a GNU-compatible system, check out struct stat and the function stat. The struct contains many attributes, inlcuding...
  11. Memory for Char*[x] - How to get the proper amount?

    Hi,

    I've got an array like this:

    tmparr char*[some number]

    Since number must be constant, I thought I just declare the array somehow and I reallocate the necessary space for it later using...
  12. Replies
    3
    Views
    851

    A really cool book!

    Hi,

    Well I've posted that link to GNU C lib help and online docs, but if you don't like that, then try "The C Programming Language" (second edition) by Dennis M. Ritchie and Brian W. Kernighan. (I...
  13. Replies
    9
    Views
    1,255

    Hi! Yes, fgets is better, however I'm not sure...

    Hi!

    Yes, fgets is better, however I'm not sure what does he mean by "taking input from the command line". If he wants to type in something then scanf() is good, else of course fgets is the right...
  14. Just a comment: The void* arg is not good,...

    Just a comment:

    The void* arg is not good, I've used for testing something. Use double instead.
  15. Hi! I've never heard about such function, but...

    Hi!

    I've never heard about such function, but snprintf() could be a good choice. I'm not sure if this code below is working properly, but try it. The integer parsing stuff functional, it will...
  16. Replies
    1
    Views
    1,340

    Float,double,int

    Hi,

    A short question: Is there any way to find what kind of data is stored in a void*?

    I've assigned the value of a double to void* p, but sometimes a I have to use int or float. Please...
  17. Replies
    9
    Views
    1,255

    Just one more thing: Why do you use #define?...

    Just one more thing:

    Why do you use #define? Although, it is valid, you should use local variables instead whenever it's possible.

    >> addr = getchar();

    This is invalid. You have to declare...
  18. Replies
    9
    Views
    1,255

    Hi, Just a short comment: If you want read in...

    Hi,

    Just a short comment: If you want read in data from the command line (as a program argument), then you must define your Main func. as follows:

    int main (int argc, char **argv) {

    .... the...
  19. Replies
    3
    Views
    1,140

    Getting the original type of data stored in a void** Help! -:)

    Hi guys!

    I would like to write a function which counts the number of elements of an array.

    The function has only one arg, a void**.

    My question is as follows:

    I can covert any pointer...
  20. Replies
    3
    Views
    1,140

    Hi everyboy! Thanks for the help for everyone....

    Hi everyboy!

    Thanks for the help for everyone. Then I was wrong. By the way, I've got more question about this:

    As you say it works only with pointer types. Then for example I can convert...
  21. Replies
    3
    Views
    1,140

    Void* 2 Double

    Hello everybody!

    I've got a function which has only one arg and it is a void*.
    Is it possible somehow to convert this to double or float?

    Somebody told me that every standard data type can...
  22. Thread: Enum question

    by Bill 101
    Replies
    4
    Views
    8,791

    Hi! Wow sounds good, I will try this. Thanks...

    Hi!

    Wow sounds good, I will try this. Thanks for the help for everyone!
  23. Replies
    1
    Views
    1,316

    Hi Salem, First of all, sorry for the late...

    Hi Salem,


    First of all, sorry for the late response.

    Of course I'm using malloc (or xmalloc), but I have used it to allocate mem for the elements of the array, since I don't know how much...
  24. Thread: Enum question

    by Bill 101
    Replies
    4
    Views
    8,791

    Hi, Too bad, it would be useful sometimes.....

    Hi,

    Too bad, it would be useful sometimes.. Anyway, thanks, then I leave it alone.

    Bye
  25. Thread: Enum question

    by Bill 101
    Replies
    4
    Views
    8,791

    Enum question

    Hi all!

    Is it possible somoehow to fetch the name of an enumerated var?

    eg: enum {foo=1,boo=2}

    Well, I would like to get 'foo' from this and not its value to find out if that name is...
Results 1 to 25 of 30
Page 1 of 2 1 2