Hi !
Could someone help me with DLL development ? While trying to import Nightinggale's code into our DLL to get "unicode" support, i've found some notations that i don't know how to read.
Q1:
About "&=", does that mean 0x7F is the pointer address of iID ?
Q2:
What does the "?" mean in that part of the code ?
Q3:
What is an "FAssert()" in the code ?
Q4:
Why some "CvGlobals" methods are prefixed with DLLExport ? What does that do in the code ?
Q5:
Same question for "friend class" ?
Q6:
I have some difficulties to understand how the bindings between python and the DLL work. In Nightinggale's code, there are no "cvInternalsGlobals" as he develops on Colonization, so prefixes "gc. " seem to make reference to CvGlobals. However, on our code, each time i reference "gc.", it seems to look for "CvInternalsGlobals". EDIT: "#define GC cvInternalGlobals::getInstance()"
Does this means all the variables in "CvInt..." are the ones usable in Python ? I've never studied language bindings before...
I have uploaded the full source code on github (rev870) but i can't compile it. It asks to define a function in CvInternalsGlobals, but if i do that, the dll won't link at the end of the compilation.
Thank you for any help.
Could someone help me with DLL development ? While trying to import Nightinggale's code into our DLL to get "unicode" support, i've found some notations that i don't know how to read.
Q1:
Code:
iID &= 0x7F
Q2:
Code:
i<GC.getNumLanguageInfos()) ? &GC.getLanguageInfo(i)
Q3:
What is an "FAssert()" in the code ?
Q4:
Why some "CvGlobals" methods are prefixed with DLLExport ? What does that do in the code ?
Q5:
Same question for "friend class" ?
Q6:
I have some difficulties to understand how the bindings between python and the DLL work. In Nightinggale's code, there are no "cvInternalsGlobals" as he develops on Colonization, so prefixes "gc. " seem to make reference to CvGlobals. However, on our code, each time i reference "gc.", it seems to look for "CvInternalsGlobals". EDIT: "#define GC cvInternalGlobals::getInstance()"
Does this means all the variables in "CvInt..." are the ones usable in Python ? I've never studied language bindings before...
I have uploaded the full source code on github (rev870) but i can't compile it. It asks to define a function in CvInternalsGlobals, but if i do that, the dll won't link at the end of the compilation.
Thank you for any help.