U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Creating a com object
Creating a com object [message #32782] Thu, 09 June 2011 09:16 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Hello All.

Now I'm trying to create a com object.
If I do not use Upp::String class then all works fine.
Midl compile without errors, the generated library loaded in other system without error and can use.

But when I try to use Upp::String then the created com object (dll) does not load into other system.

The Upp:String I use internly only:
like this:
Upp::String test("Some examples");


Any hints are welcome!

Add:

forgot to say:
I add in link option:
/DEF:".\AddIn.def"


where .def file contains:
; AddIn.def : Declares the module parameters.

LIBRARY      "1CAddIn_test.dll"

EXPORTS
	DllCanUnloadNow     PRIVATE
	DllGetClassObject   PRIVATE
	DllRegisterServer   PRIVATE
	DllUnregisterServer	PRIVATE


If I use CString or char* then it work without any problem.

[Updated on: Thu, 09 June 2011 09:35]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What does this compiling error mean exactly?
Next Topic: Change in <Core/Sort.h> breaks my code
Goto Forum:
  


Current Time: Sat Sep 05 12:40:51 GMT+2 2026

Total time taken to generate the page: 0.00652 seconds