C++ class instance in ASP.NET

S

svx

greetings,
I have a C++ class, which I want to compile as a .DLL to run as
codebehind from ASP.NET.
The problem is that the instance gets constructed & destructed
everytime a class method is called from ASP. I need the instance to
keep "running" until I destruct it upon some specific event.
I wanted the constructor to create a DataTable with the appropriate
collumns, and then provide a method to add new rows to this DataTable,
another to search the DataTable etc. But as I mentioned, the instance
gets destructed so I loose the data I entered into the DataTable.
The code runs (with minor modifications of course) as a .NET C++
console project so Im convinced my problem concerns ASP.NET & C++
interaction.
I would greatly appreciate any suggestions, links etc...
.... and yes, Im a .NET newbie :(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top