On 10/30/2011 20:13, Kai Tietz wrote:
> 2011/10/30 JonY <[email protected]>:
>> On 10/30/2011 19:07, Kai Tietz wrote:
>>>>
>>>> IIRC there is no foolproof way to deal with this issue, libmsvcr100.a
>>>> only has the __lc_codepage_func version, no __lc_codepage, so that goes
>>>> both ways if you want to link to msvcrXX instead of msvcrt.
>>>>
>>>> Anybody know if GetProcAddress works on data exports?
>>>
>>> Sure, it does.
>>>
>>> Kai
>>
>> OK, next is how do we determine which version of runtime is used by the
>> program? Just loop through a known list with GetModuleHandle?
>>
> 
> This issue is already solved and part of this routine.  We have a
> helper-method, which determines used msvcr*.dll by application.  Feel
> free to read the code.
> 
> To walk through module-list is a pretty bad idea, as it might show you
> a runtime loaded by some different DLL etc.  And so, if there are more
> then one msvcrt loaded within one app space, you couldn't determine,
> which one is the static-bound one.
> 
> Regards,
> Kai
> 

OK, I didn't know about init_codepage_func, nicely done.


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps 
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to