Re: wxEuphoria: wxWidgets_Version() Function?

new topic     » goto parent     » topic index » view thread      » older message » newer message
euphoric said...
ghaberek said...

I tested against the same DLLs that you should be using from the 0.17.0 package I've provided.

What particular DLL tells me what version of wxWidgets I have? And what should those values be?

All of the DLL files have the same version assigned: 2.8.12, which is the latest in the 2.8 release. Here is an expanded example to show all the versions.

include std/convert.e 
 
sequence wxlibs = { 
    "wxbase28u_gcc_eu.dll", 
    "wxbase28u_net_gcc_eu.dll", 
    "wxbase28u_xml_gcc_eu.dll", 
    "wxmsw28u_adv_gcc_eu.dll", 
    "wxmsw28u_aui_gcc_eu.dll", 
    "wxmsw28u_core_gcc_eu.dll", 
    "wxmsw28u_html_gcc_eu.dll", 
    "wxmsw28u_media_gcc_eu.dll", 
    "wxmsw28u_qa_gcc_eu.dll", 
    "wxmsw28u_richtext_gcc_eu.dll", 
    "wxmsw28u_xrc_gcc_eu.dll" 
} 
 
for i = 1 to length( wxlibs ) do 
     
    atom info = GetFileVersionInfo( wxlibs[i] ) 
    if info != NULL then 
     
        atom lo_dword = VerQueryValue( info, dwFileVersionMS ) 
        atom hi_dword = VerQueryValue( info, dwFileVersionLS ) 
 
        sequence bytes = int_to_bytes(lo_dword) & int_to_bytes(hi_dword) 
 
        atom major = bytes_to_int( bytes[3..4] ) --  2 
        atom minor = bytes_to_int( bytes[1..2] ) --  8 
        atom patch = bytes_to_int( bytes[7..8] ) -- 12 
 
        printf( 1, "%s = %d.%d.%d\n", {wxlibs[i],major,minor,patch} ) 
     
    end if 
     
end for 

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu