FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DSSS with DFL

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
zane.sims



Joined: 07 Aug 2007
Posts: 40

PostPosted: Wed Jan 28, 2009 10:30 am    Post subject: DSSS with DFL Reply with quote

Hello,

Is there a way to use DFL with DSSS? I don't know how to install/configure DFL with DSSS if there is. Can someone shed some light on this for me?

Thanks much!
Zane
_________________
わたしがプログラマだよ!
Back to top
View user's profile Send private message
HeiHon



Joined: 09 Aug 2008
Posts: 10

PostPosted: Thu Jan 29, 2009 4:08 am    Post subject: Reply with quote

Yes, there is.

I use dsss (0.7Cool for all my dfl (0.9Cool + tango (0.99.7) code.

Code:

// To compile:
//  dfl helloworld -gui
// or using dsss e.g.
//  dsss build -release -O -L/exet:nt/su:windows:5.0 helloworld.d

module helloworld;

import dfl.all;


int main()
{
    Form myForm;
    Label myLabel;

    myForm = new Form;
 version (Tango)
{
    myForm.text = "DFL Example (Tango)";
}
else
{
    myForm.text = "DFL Example";
}
    myLabel = new Label;
    myLabel.text = "Hello, World";
    myLabel.size = Size(100, 14);
    myLabel.parent = myForm;

    Application.run(myForm);

    return 0;
}
Back to top
View user's profile Send private message
zane.sims



Joined: 07 Aug 2007
Posts: 40

PostPosted: Mon Feb 02, 2009 5:11 pm    Post subject: Reply with quote

Sorry I took so long to respond. I have been pre-occupied with some other issues.

Thanks for your quick reply to my question and please excuse my ignorance, as I still seem to be confused. I understand how the command would be run to compile the program example that you gave, however, I need to know how to install DFL so that DSSS can find and use the files it needs.

Up until now, I have been using "dsss net install xyz" to install my libraries. How then do I install DFL so that DSSS can use it properly?

Thanks again Smile
_________________
わたしがプログラマだよ!
Back to top
View user's profile Send private message
gekkonier



Joined: 27 Mar 2007
Posts: 28

PostPosted: Tue Feb 03, 2009 1:17 am    Post subject: Reply with quote

Installation of DFL via DSSS is not available.
Install DFL "the manual" way and use dfl to compile the applications.
The other way would be using dmd and compile with the lib added.
If you just want to use dsss for absolutely everything Surprised you can make a dsss.conf in the project folder with the correct compile command that fits for you. I recommend using the dfl command, its the easiest way.

"The manual" way is simple.

Download DFL 0.9.8 zip archive from http://www.dprogramming.com/dfl.php

For Phobos:
just extract the zip and copy the whole dir/file structure into the dmd directory, then do dfl -dfl-build to create the lib. Then you can just use dfl to create the binaries of your dfl applications.

For Tango:
just extract the zip and copy the whole dir/file structure into the dmd directory, then do dfl -dfl-build to create the lib. Could be, that there comes a blabla.lib is missing in the directorys... just copy the lib from dm\bin to dmd\bin and run the command again. Repeat until the libs (for debug and release) are created, then youre done and can use dfl as compile command. I have testet this with:

current release as a zip (including DMD 1.033)
from http://www.dsource.org/projects/tango/wiki/DmdDownloads

Mybe it could be easier, but it works for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group