dll/ActiveX issue
-
I'm trying to build a library of specialized helper functions I can move from project to project. I'm currently building an ActiveX control, and linking with this "helper" library (dll). This is the first time I've built my own dll, and I'm having some problems. Here's the problem I'm having... I have a class I export in my dll, and can successfully import it into my control, but if I change the arguments in one of the member functions to a CString reference, the ActiveX control crashes when it executes that function. If I change the argument to pass by value, everything is OK, but I can't modify data in my control. I realize this is a brief explanation, but I'm hoping there's something that comes to mind as far as exporting classes that try to modify data in the calling application (ActiveX control in this case) with a reference to an object (CString) in the calling application. Thanks.