c++ - VBA Declare Function containing VARIANT types to 64 bit DLLs -


i have function in c++

extern "c" {     variant __stdcall foo(const variant far& p1, const variant far& p2)     {         ...     } } 

it compiles bar.dll using .def file specifies entry points , ordinals. (yes, quite old fashioned , i'm aware far obsolete).

its primary usage in excel, , i'm wanting port dll x64 can use 64 bit excel. within vba, define

public declare ptrsafe function foo lib "bar.dll" (optional byref p1 variant, optional byref p2 variant) variant 

this (without ptrsafe) works in 32 bit , have. in x64, p1 , p2 not hold readable memory when c++ function.

either i'm missing or no longer supported. can help?


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -