#1 2014-06-05 11:53:18

pszawa
Member
Registered: 2014-06-05
Posts: 10

TDocVariant and external DLL

Is it possible that external DLL return JSON object (TDocVariant)?
At this moment I get an exception ESynException: Unhandled variant type 271.
I noticed that SynRegisterCustomVariantType method is called twice (once by the DLL and once by the main program, I presume) and once the returned value is VarType = 271 and the second time the VarType = 274.

Can it be solved somehow?

Offline

#2 2014-06-05 18:17:20

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,947
Website

Re: TDocVariant and external DLL

You have to register the variant type on DLL side, or use json transmission only.

Offline

Board footer

Powered by FluxBB