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...
Type: Posts; User: Bill 101
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...
Hello!
OK, thank you very much for the info, I'll check it out!
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...
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...
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,...
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...
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...
Hi!
Ok I see, now it's clear. Thank you very much for your help!
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...
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...
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...
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...
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...
Just a comment:
The void* arg is not good, I've used for testing something. Use double instead.
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...
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...
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...
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...
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...
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...
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...
Hi!
Wow sounds good, I will try this. Thanks for the help for everyone!
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...
Hi,
Too bad, it would be useful sometimes.. Anyway, thanks, then I leave it alone.
Bye
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...