Original Post
Part 3 of my questions onabout the same topic. I''ve finally gotten C++ to (mostly)interact correctly with my VB ActiveX DLL. Problem is, string passing is kinda weird...
I''m using #import directive and Smart COM pointers. The VB funcs that take strings are asking for an object of type _bstr_t, which is a wrapper for the wide character BSTR. At least, That''s what it looks like. I haven''t got any experience with writing Unicode compatible stuff.
I''m trying to put basic text into this thing. I tried using swprintf with the second param as a string literal. It couldn''t make a string literal into a wchar_t. wchar_t is one of the types that I can give to the _bstr_t contructor and operator=. I can give it char* too, but I''m not sure that it is working, as my VB DLL does not seem to be getting the string.
Any general help?
____________________________________________________________
Direct3D vs. OpenGL