The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Access CPlusPlus(.Net) And CSharp DLL
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Seven-X

Germany
2 Posts

Posted - 09/04/2012 :  1:31:30 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.6G
Operating System: Win7 64bit

Does anybody know, how do I have to include the DLL in this example?

http://ocwiki.originlab.com/index.php?title=OCGuide:Access_CPlusPlus%28.Net%29_And_CSharp_DLL

Do I have to put the DLL into a specific folder and/or do I have to use the include commands or #pragma directives?

I always get a runtime error: COM object could not be created...


Matthias

Penn

China
644 Posts

Posted - 09/04/2012 :  11:37:12 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Matthias,

Please refer to this page.

Penn
Go to Top of Page

Seven-X

Germany
2 Posts

Posted - 09/05/2012 :  03:39:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Penn,

thank you for your reply.

I'm not quite familiar with these function prototypes.

Do you have a complete header file for this DDL example?

Matthias
Go to Top of Page

Penn

China
644 Posts

Posted - 09/07/2012 :  05:25:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Matthias,

Header file is not needed for .NET COM object. However, you need to register it. Please refer to the step 4 of the first example in this page. You can try again to see whether it works fine or not.

Penn
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000