Hi, I'm trying to use the out of process loader for a C++ server application. I've only found a C# example in the knowledge base. I've tried #import but am still having problems. Has anyone already done this?

asked 10 Jan '13, 21:13

ariscris's gravatar image

ariscris
314

edited 15 Jan '13, 12:52

Andrey%20Isaev's gravatar image

Andrey Isaev ♦♦
2835

Using #import should work. What specific problems do you face?

(11 Jan '13, 11:03) Dmitry Me ♦♦

I learned how to do this via a different support method. Here are the key lines in order to help the next person with a similar issue.

#import "FREngine.tlb"

const CLSID CLSID_InprocLoader = {0x100020D2,0x0000,0x1056,0x97,0x6E,0x00,0x80,0x48,0xD5,0x3A,0xE3};
const CLSID CLSID_OutprocLoader = {0x100020D3,0x0000,0x1056,0x97,0x6E,0x00,0x80,0x48,0xD5,0x3A,0xE3};
const IID IID_IEngineLoader = {0x100010EC,0x0000,0x1056,0x97,0x6E,0x00,0x80,0x48,0xD5,0x3A,0xE3};

IUnknown* pUnknown;
checkResult(CoCreateInstance(CLSID_OutprocLoader, NULL, CLSCTX_LOCAL_SERVER, IID_IUnknown, (void **)(&pUnknown)));

FREngine::IEngineLoaderPtr engineLoader;
checkResult(pUnknown->QueryInterface( IID_IEngineLoader, (void **)(&engineLoader)));

_engine = engineLoader->GetEngineObject(frengineLicenseKey, "", "");
_engine->LoadPredefinedProfile(FRENGINE_CONVERSION_SPEED))
link

answered 15 Jan '13, 01:06

ariscris's gravatar image

ariscris
314

edited 04 Feb '13, 21:39

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×39
×4

Asked: 10 Jan '13, 21:13

Seen: 2,186 times

Last updated: 04 Feb '13, 21:39

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal