Clipboard Example

Ty Tower tytower at hotmail.com.au
Mon Mar 10 04:45:06 PDT 2008



> yidabu Wrote:
> 
> > build TextEditor step by step:
> > 
> > 1. added to TextEditor.d and Images:
> > 	pragma(lib, "dwt.lib");
> > 	pragma(lib, "advapi32");
> > 	pragma(lib, "comctl32.lib");
> > 	pragma(lib, "comdlg32.lib");
> > 	pragma(lib, "gdi32.lib");
> > 	pragma(lib, "kernel32.lib");
> > 	pragma(lib, "shell32.lib");
> > 	pragma(lib, "ole32.lib");
> > 	pragma(lib, "oleaut32.lib");
> > 	pragma(lib, "olepro32.lib");
> > 	pragma(lib, "oleacc.lib");
> > 	pragma(lib, "user32.lib");
> > 	pragma(lib, "usp10.lib");
> > 	pragma(lib, "msimg32.lib");
> > 	pragma(lib, "opengl32.lib");
> > 
> > 2. run
> > dmd TextEditor.d Images.d -Jyour\path\dwtexamples\texteditor -release -L/SUBSYSTEM:windows:5



I think this is what you meant . Tell me if position or other should be otherwise, thanks


import dwtexamples.texteditor.Images;

version( JIVE ){
    import jive.stacktrace;
}
version(linux){
        pragma(lib, "dwt.lib");
        pragma(lib, "advapi32");
        pragma(lib, "comctl32.lib");
        pragma(lib, "comdlg32.lib");
        pragma(lib, "gdi32.lib");
        pragma(lib, "kernel32.lib");
        pragma(lib, "shell32.lib");
        pragma(lib, "ole32.lib");
        pragma(lib, "oleaut32.lib");
        pragma(lib, "olepro32.lib");
        pragma(lib, "oleacc.lib");
        pragma(lib, "user32.lib");
        pragma(lib, "usp10.lib");
        pragma(lib, "msimg32.lib");
        pragma(lib, "opengl32.lib");  } 
/**
 */
public class TextEditor {



More information about the Digitalmars-d-dwt mailing list