有人export class from a dll 吗?# Programming - 葵花宝典
S*8
1 楼
1. Class is defined in the dll and labelled "export".
2. client application is linked to the lib of the dll and can access the dll.
3. The client create an object of that exported class in the heap (by "new
operator").
4. The client then use that object pointer to perform a series of work, with
no problem.
5. In the destructor of the client's class, if I try to delete that object,
I got a Assert failure: InvalidHeapPointer.
Anybody with any suggestion on this problem?
Thanks!!!!!
2. client application is linked to the lib of the dll and can access the dll.
3. The client create an object of that exported class in the heap (by "new
operator").
4. The client then use that object pointer to perform a series of work, with
no problem.
5. In the destructor of the client's class, if I try to delete that object,
I got a Assert failure: InvalidHeapPointer.
Anybody with any suggestion on this problem?
Thanks!!!!!