Is there a way to create a user library of your self written functions? That you can include your own functions, like for ex. #include <string.h>, with #include <my_functions.h> in your projekt?
mfg
Is there a way to create a user library of your self written functions? That you can include your own functions, like for ex. #include <string.h>, with #include <my_functions.h> in your projekt?
mfg
Hi Pre? You mean create your own header file?
>Is there a way to create a user library of your self written functions?
Yes, of course. The easiest way is to just create a header/implementation pair and add it your project. Here is an example. There's nothing special to it unless you want to actually create a static or dynamic library, such as the .lib files that your compiler probably links with behind your back.
My best code is written with the delete key.
Thx for your answer.
But what does the #ifdef's cause? is that a protection that if you have already included this header file, the prototypes are not included twice?
And what is reached with extern "C"?
Yes, the thing with the static or dynamic library is what i really want. I just don't want to load my own written functions in each projekt to the other project-files, I want to use them like you use printf() or whatever.
mfg
edit: i found a tutorial how to make static or dynamic libraries with the keywords "static dynamic library" you gave me
http://users.actcom.co.il/~choo/lupg...libraries.html
Last edited by mabuhay; 10-25-2005 at 08:30 AM.
yessssssssss, it works!
if someone needs ini functions to store data in a *.ini-file like settings etc. here you can download my library (C-Funktionen -> ini_* -> my_ini.zip). Also a demo-programm is available.
Last edited by mabuhay; 10-27-2005 at 12:18 PM.
Too bad you don't have an English language version of that web site I have no clue what it says.
babelfish it
hmmyes, I still thought about a translaion, but it would be to hard to translate everything on my own.
Today i added some descriptions of the functions. I think, if you know something about ini-Files, you can find out how they are working.
If there ist big necessary for an english translation, i could make one if i've finished all the descriptions of the functions.
is there an easy way i could use to make a language-file for the functions? maybe if i #define MY_INI_LANG_E it would show the english messages of the functions if they are enabled?
just ask me here for help, if you need...
or learn german
mfg
Last edited by mabuhay; 10-28-2005 at 03:25 PM.
now I opened a forum, with an english section.-> Forum
Feel free to post all your questions about the homepage there. I will answer as good as i can.
Last edited by mabuhay; 11-03-2005 at 03:45 PM.