This is a round about way to achieve what you want.
Check out the header files <dirent.h> or <unistd.h>
in your AIX system. Either of them would have defined
functions to open and traverse directories. I think
the function name is "readdir" if you are having dirent.h.
Once you have...
The best python tutorial is the original one
by Guido himself. If you are not happy with that
try this
http://www.diveintopython.org
Anand ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Visit my homepage for python scripts
URL: http://www.angelfire.com/linux/anand
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi
Not very similar but a related query. How do I copy a file
from one location to another using pure ANSI C calls ? Is there a portable, atomic function in ansi c libraries to do this ?
Thanks
Anand Pillai ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want...
Hi jamisar
Thanks for your reply. But what I was looking for was a single function call to do this.
Regards
Anand ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont promise that I can solve your problem, but I will try my best...
Hi All
Is there a portable function in ANSI c library to copy a
file to another location. Of course system("copy ...") is there but I need a better solution if possible.
Thanks
Anand :) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional...
Hi!
My company runs a lotus notes mail server/domino web server. I use a lots notes client to read my mails. I tried
to hook up the mail server to emacs 'Rmail' package. I am able to get the messages by using my pop login/pass but
emacs cannpt read the contents of them.
This is the error I...
How do i debug a multithreaded program using MS VC++ 6.0 ?
Does it support multithreaded debugging ?
I am not able to debug a new thread in a program. The
debugger seems to be following the main thread.
Thanks
Anand ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you...
...I set the function declarations of these functions as extern "C". That is all fine, but there is a global data called "pdb_object *open_object" which is exported by the above dll. This is defined in a global file calld "pdb.glb". I have included this file
also...
Hi Folks!
I tried it in IE5.5. Loooks like the egg
is broken.
Anand ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont promise that I can solve your problem, but I will try my best.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi
I found out later that this was indeed from a file that
i forgot to include in the project.
Thanks
Anand Pillai ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont promise that I can solve your problem, but I will try my best...
Hi tdatgod
Thanks for your reply. But I am sure that it is the library I am missing to link with here. I cannot find the definition of these functions in my code.
Thanks
Anand Pillai ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont...
I guess i screwed it up! :->
What i meant was
You need to get definitions of functions defined in
source1.cpp in source2.cpp then,
Inside source2.cpp,
extern ret_type1 function1_defined_in_source1(...);
extern ret_type2 function2_defined_in_source1(...);
where ret_type1 and ret_type2 are...
If you need to use a function defined in source2.cpp
in source1.cpp
Assuming you want a global namespace declaration
In source2.cpp,
using namespace std;
extern _cplusplus
{
function1_defined_in_source1(...);
function2_defined_in_source1(...);
}
This will obviate any need to include...
Hi Zyrenthian
Thanks for the replies.
Anand ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont promise that I can solve your problem, but I will try my best.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Which version of MS VC compiler are you using...
Anand ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont promise that I can solve your problem, but I will try my best.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Try this link . Might help!
http://www.programmersheaven.com/zone3/cat156/6326.htm
Anand
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont promise that I can solve your problem, but I will try my best...
You might declare the function in the header file
like this.
rettype myfunc(char c, int i, float f=3.5, char ch='p');
where ret_type is your functions return type -void, int, float or whatever.
In your function definition,
rettype
myclass::myfunc(char c, int i,float f, char ch)
{
//---...
...delete pinstance;
pinstance=NULL;
}
I read somewhere that the OS should manage the destruction of the singleton instance and you *SHOULD* not write code
like what I have sampled above. That is you should not delete the instance of the singleton inside your destructor,
though...
Hi
Is it legal to declare a destructor for a class that follows the 'Singleton' pattern ?
I mean is there anything inherent in the pattern that prevents or rather discourages the programmer to prevent declaring a destructor for the singleton class...
Thanks
Anand pillai...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.