c++ - Why are 32-bit values exported from OCX as 64 bits? -


we have 32-bit c++ ocx exports property:

lpitemidlist cmyclass::getcurrentpidl()

in 32-bit binary, lpitemidlist of course 32-bit pointer.

the 32-bit c++ client app .uses #import import ocx. generated .tlh file contains this:

__declspec(property(get=getcurrentpidl,put=putcurrentpidl)) __int64 currentpidl; 

the client can't access property without typecast because compiler complains can't convert __int64 lpitemidlist.

it works, still i'd know why ocx exports property __int64 rather lpitemidlist. doesn't seem should have cast it.

am doing wrong in ocx code, or way is?

tia


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -