Changeset 204

Show
Ignore:
Timestamp:
01/12/07 02:08:40 (2 years ago)
Author:
Ant
Message:

fix on windows, added setup.exe

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/installer/ui/Main.d

    r203 r204  
    5757private import std.stdio; 
    5858 
     59private import std.c.stdlib; 
     60private import std.string; 
     61 
    5962interface InstallerUI 
    6063{ 
     
    715718                version(Win32) char[] dmd = std.path.join(std.path.join(dir ,"bin"), "dmd.exe"); 
    716719                else  char[] dmd = std.path.join(std.path.join(dir ,"bin"), "dmd"); 
     720                writefln("validDMDHome dmd = %s", dmd); 
    717721                std.file.isfile(dmd); 
    718722                version(Win32) 
    719723                { 
    720                     char[] dm = std.path.join(std.path.join(dir,".."),"bin"); 
     724                    char[] dm = std.path.join(std.path.join(dir,"..\\dm"),"bin"); 
     725                    writefln("validDMDHome dm = %s", dm); 
    721726                    char[] link = std.path.join(dm, "link.exe"); 
     727                    writefln("validDMDHome link = %s", link); 
    722728                    std.file.isfile(link); 
    723                     char[] link = std.path.join(dm, "lib.exe"); 
    724                     std.file.isfile(link); 
     729                    char[] lib = std.path.join(dm, "lib.exe"); 
     730                    writefln("validDMDHome lib = %s", lib); 
     731                    std.file.isfile(lib); 
    725732                } 
    726733                else  char[] link = std.path.join(std.path.join(dir ,"bin"), "dmd"); 
     
    736743    } 
    737744     
    738 private import std.c.stdlib; 
    739 private import std.string; 
    740  
    741745//  class GuessFile 
    742746//  { 
     
    855859            { 
    856860                completed = validDMDHome(); 
     861                writefln("Local.selected 1 completed = %s", completed); 
    857862            } 
    858863        } 
     
    862867            { 
    863868                completed = installerUI.getDirectory("duitDevHome").length > 0; 
     869                writefln("Local.selected 2 completed = %s", completed); 
    864870            } 
    865871        } 
     
    869875            { 
    870876                completed = installerUI.getDirectory("ledsHome").length > 0; 
     877                writefln("Local.selected 3 completed = %s", completed); 
    871878            } 
    872879        } 
     
    875882        { 
    876883            completed = installerUI.getDirectory("gtkHome").length > 0; 
     884                writefln("Local.selected 4 completed = %s", completed); 
    877885        } 
    878886        if ( completed ) 
    879887        { 
    880888            completed = installerUI.getDirectory("duitLibHome").length > 0; 
     889                writefln("Local.selected 5 completed = %s", completed); 
    881890        } 
    882891         
     
    967976int main(char[][] args) 
    968977{ 
    969     Duit.initMultiThread(args); 
     978    version(Win32) 
     979    { 
     980        Duit.init(args); 
     981    } 
     982    else 
     983    { 
     984        Duit.initMultiThread(args); 
     985    } 
    970986    mainInstaller = new MainInstaller(); 
    971987    Duit.main(); 
  • trunk/src/lib/Loader.d

    r203 r204  
    163163        version(Windows) 
    164164        { 
    165             handle = LoadLibraryA( this.libraryName ~ "\0" ); 
     165            handle = LoadLibraryA( (this.libraryName ~ "\0").ptr ); 
    166166            if ( alternateLibraryName !is null ) 
    167167            { 
    168                 alternateHandle = LoadLibraryA( this.alternateLibraryName ~ "\0" ); 
     168                alternateHandle = LoadLibraryA( (this.alternateLibraryName ~ "\0").ptr ); 
    169169            } 
    170170        }  
  • trunk/wrap/Loader.d

    r201 r204  
    163163        version(Windows) 
    164164        { 
    165             handle = LoadLibraryA( this.libraryName ~ "\0" ); 
     165            handle = LoadLibraryA( (this.libraryName ~ "\0").ptr ); 
    166166            if ( alternateLibraryName !is null ) 
    167167            { 
    168                 alternateHandle = LoadLibraryA( this.alternateLibraryName ~ "\0" ); 
     168                alternateHandle = LoadLibraryA( (this.alternateLibraryName ~ "\0").ptr ); 
    169169            } 
    170170        }