A
Ali Syed
1) Am I able to do this
long __stdcall TestResult(long SelectNum,char* sTime)
inside c++ dll as one of my dll functions without a memory leak
I pass a VB string variable for sTime. Will this work?
2)Do I need to delete or free existing memory from a dll function
if I do how do I do this?
3) I use char buffer[256] to retrieve info from an ini file
Do I have to free or delete this?
I tried
delete [] buffer;
but this doesn't seem right
4)DO I need to delete or free a CString after I am done with it?
If so how?
5) What is the scope of variables declared inside a function
accessible to my vb program?
Sorry but I am puzzled why I am getting very little back from the
memory I used when I call a dll function.....
Any valid suggestions appreciated
Ali
long __stdcall TestResult(long SelectNum,char* sTime)
inside c++ dll as one of my dll functions without a memory leak
I pass a VB string variable for sTime. Will this work?
2)Do I need to delete or free existing memory from a dll function
if I do how do I do this?
3) I use char buffer[256] to retrieve info from an ini file
Do I have to free or delete this?
I tried
delete [] buffer;
but this doesn't seem right
4)DO I need to delete or free a CString after I am done with it?
If so how?
5) What is the scope of variables declared inside a function
accessible to my vb program?
Sorry but I am puzzled why I am getting very little back from the
memory I used when I call a dll function.....
Any valid suggestions appreciated
Ali