Serving the Quantitative Finance Community

 
User avatar
Val
Posts: 23
Joined: June 5th, 2002, 12:51 pm

non-constant array size (vba/c++)

May 28th, 2003, 7:55 am

That's why one should allocate and free up the memory in the same programming environment.Say allocate/free up in VB;allocate/free up in C/C++and never allocate (very dangerous) VB and free up in C/C++ or vice versa.
 
User avatar
DominicConnor
Posts: 41
Joined: July 14th, 2002, 3:00 am

non-constant array size (vba/c++)

May 29th, 2003, 7:16 am

Wise words.
 
User avatar
Vlasoff
Posts: 0
Joined: December 13th, 2002, 9:43 am

non-constant array size (vba/c++)

May 29th, 2003, 10:40 am

SindrebWhy don't you use Linked Lists? It allows you to add/remove any number of members and doesn't restrain you on the dimensional side.Have a look at any C++ book ;-)
 
User avatar
sindreb
Topic Author
Posts: 0
Joined: February 5th, 2003, 1:05 pm

non-constant array size (vba/c++)

May 31st, 2003, 11:56 am

Thank you all for plenty of useful tips!!regards,sindreb