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

Upgrade to 1.041 from 1.022 fails

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



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Fri Mar 13, 2009 5:11 pm    Post subject: Upgrade to 1.041 from 1.022 fails Reply with quote

Greetings.

just updated to DMD 1.041 from 1.022 and at the first compile I get,

Code:

19:01:31.41>build -I..;c:\dmd\import -version=gui -version=Phobos OpenProjs.d
c:\dmd\import\dfl\internal\utf.d(67): Error: identifier 'useWfuncs' of 'std.windows.charset.useWfuncs' is not defined


Any ideas how to get rid of this message?

thanks,

jose
Back to top
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Sat Mar 14, 2009 12:26 am    Post subject: Reply with quote

Ok, so I was running DFL096 and I upgraded to DFL .098. Now, a new error appears:
Quote:

2:15:09.63>build -I..;c:\dmd\import -version=gui -version=Phobos OpenProjs.d
OpenProjs.d(15678): class dfl.listbox.ListBox.SelectedObjectCollection member myOpApply is not accessible


line 15678 is:
Code:

    foreach(char[] s; AddLanguages.selectedItems)


the whole foreach code:
Code:

    foreach(char[] s; AddLanguages.selectedItems)
    {
      //str ~= s ~ "[" ~ Languages[s] ~ "]\n";
      str ~= Languages[s] ~ " ";
    }


AddLanguages was declared as:

Code:

ListBox AddLanguages = null;


at the beginning of the program. So, I don-t understand the error. Any help would be greatly appreciated.

thanks,

jic
Back to top
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Sat Mar 14, 2009 1:10 am    Post subject: Reply with quote

Ok, so I uninstalled everything, installed dmd 1.041 and DFL 0.9.8 with the windows installer. Now I get a new error, while trying to build the application that was working with DFL 0.9.6 and DMD 1.022:
Quote:

3:07:27.81>build -I..;c:\dmd\import -version=gui -version=Phobos OpenProjs.d
OpenProjs.d(3929): alias dfl.listview.ListView.SelectedItemCollection.count is deprecated


I will leave it as this one. Smile

thanks,

jose
Back to top
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Sat Mar 14, 2009 8:53 am    Post subject: Reply with quote

Alright, so I change count to length and now I have a new error:
Quote:

OpenProjs.d(15678): class dfl.listbox.ListBox.SelectedObjectCollection member myOpApply is not accessible



I should say that in order for me to get dfl to work, I had to move dfl.exe to

dmd/windows/bin

and I also had to move import and packages to dmd/windows. I don't know if that is correct, but both dfl098.zip and dfl098.exe still place the dfl.exe, import/dfl and packages/dfl in the dmd folder.

any help would be greatly appreciated.

thanks,

jic
Back to top
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Tue Mar 17, 2009 3:55 pm    Post subject: Reply with quote

By the way, this problem is also on dmd 1.033 and 1.036. So, I had to uninstall DFL 0.98 and reinstall .096. Any ideas?
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Tue Mar 17, 2009 5:13 pm    Post subject: Reply with quote

Match up supported versions. DFL versions specify supported DMD versions. Versions.
Back to top
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Tue Mar 17, 2009 10:56 pm    Post subject: Reply with quote

Ok, in your download URL http://www.dprogramming.com/dfl.php#download it says "Tested with DMD v1.030 and DMD v1.036.". This is the setup I have,
Quote:

0:46:25.47>dfl -dfl-ver
Using Phobos library
DFL version 0.9.8 (Beta)
Tested with DMD v1.030 and DMD v1.036.
DFL lib files compiled with Digital Mars D Compiler v1.036
Installed compiler is Digital Mars D Compiler v1.036

0:46:43.50>dmd -v
Digital Mars D Compiler v1.036
Copyright (c) 1999-2008 by Digital Mars written by Walter Bright
Documentation: http://www.digitalmars.com/d/1.0/index.html
Usage:
dmd files.d ... { -switch }

files.d D source files
@cmdfile read arguments from cmdfile
-c do not link
-cov do code coverage analysis
-D generate documentation
-Dddocdir write documentation file to docdir directory
-Dffilename write documentation file to filename
-d allow deprecated features
-debug compile in debug code
-debug=level compile in debug code <= level
-debug=ident compile in debug code identified by ident
-debuglib=name set symbolic debug library to name
-defaultlib=name set default library to name
-g add symbolic debug info
-gc add symbolic debug info, pretend to be C
-H generate 'header' file
-Hdhdrdir write 'header' file to hdrdir directory
-Hffilename write 'header' file to filename
--help print help
-Ipath where to look for imports
-ignore ignore unsupported pragmas
-inline do function inlining
-Jpath where to look for string imports
-Llinkerflag pass linkerflag to link
-lib generate library rather than object files
-man open web browser on manual page
-nofloat do not emit reference to floating point
-O optimize
-o- do not write object file
-odobjdir write object & library files to directory objdir
-offilename name output file to filename
-op do not strip paths from source file
-profile profile runtime performance of generated code
-quiet suppress unnecessary messages
-release compile release version
-run srcfile args... run resulting program, passing args
-unittest compile in unit tests
-v verbose
-v1 D language version 1
-version=level compile in version code >= level
-version=ident compile in version code identified by ident
-w enable warnings

0:46:53.31>build -I..;c:\dmd\import -version=gui -version=Phobos OpenProjs.d
OpenProjs.d(15848): class dfl.listbox.ListBox.SelectedObjectCollection member myOpApply is not accessible

0:47:10.50>


Line 15848 is,
Code:

    foreach(char[] s; AddLanguages.selectedItems)



AddLanguages is declared as a ListBox,
Code:

  ListBox AddLanguages;



Is there a different way to iterate through the selected items of a ListBox?

thanks for the help.

jic
Back to top
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Tue Mar 17, 2009 11:30 pm    Post subject: Reply with quote

Here is a small program that shows the problem in compiling:
Code:

private import dfl.all;

Form EmailForm;
ListBox AddLanguages;

private void AddMultiLang_click(Object sender, EventArgs ea)
{
  char[] str;
  foreach(char[] s; AddLanguages.selectedItems)
  {
    //str ~= s ~ "[" ~ Languages[s] ~ "]\n";
    str ~= s ~ " ";
  }
  msgBox(str);
}

void main()
{
  with(EmailForm = new Form)
  {
    TextBox myTextBox;
    Button Done, Add;
    clientSize = dfl.all.Size(360, 317);
    AddLanguages = new dfl.listbox.ListBox();
    AddLanguages.name = "AddLanguages";
    AddLanguages.selectionMode = dfl.all.SelectionMode.MULTI_SIMPLE;
    AddLanguages.bounds = dfl.all.Rect(8, 32, 344, 238);
    AddLanguages.parent = EmailForm;
    //~DFL dfl.button.Button=AddLang
    Button AddLang = new dfl.button.Button();
    AddLang.name = "AddLang";
    AddLang.bounds = dfl.all.Rect(16, 280, 72, 24);
    AddLang.parent = EmailForm;
    AddLang.click ~= &AddMultiLang_click;
    //~DFL dfl.label.Label=label1
    Label label1 = new dfl.label.Label();
    label1.name = "label1";
    label1.font = new dfl.all.Font("Microsoft Sans Serif", 9f, dfl.all.FontStyle.REGULAR);
    label1.text = "Choose One Or More Target Language(s)";
    label1.textAlign = dfl.all.ContentAlignment.MIDDLE_LEFT;
    label1.bounds = dfl.all.Rect(10, 4, 340, 23);
    label1.parent = EmailForm;

    //width = 600;
    startPosition = FormStartPosition.CENTER_SCREEN;
    formBorderStyle = FormBorderStyle.FIXED_DIALOG; // Don't allow resize.
    maximizeBox = false;
    AddLanguages.sorted = true;
    AddLanguages.items.add("lang0");
    AddLanguages.items.add("lang1");
    AddLanguages.items.add("lang2");
    AddLanguages.items.add("lang3");
    AddLanguages.items.add("lang4");
    AddLanguages.items.add("lang5");
    AddLanguages.items.add("lang6");
    AddLanguages.items.add("lang7");
    AddLanguages.items.add("lang8");
    AddLanguages.items.add("lang9");
    show();
  }
}



here is the compile error:
Quote:

1:26:43.79>dmd -v
Digital Mars D Compiler v1.036
Copyright (c) 1999-2008 by Digital Mars written by Walter Bright
Documentation: http://www.digitalmars.com/d/1.0/index.html
Usage:
dmd files.d ... { -switch }

files.d D source files
@cmdfile read arguments from cmdfile
-c do not link
-cov do code coverage analysis
-D generate documentation
-Dddocdir write documentation file to docdir directory
-Dffilename write documentation file to filename
-d allow deprecated features
-debug compile in debug code
-debug=level compile in debug code <= level
-debug=ident compile in debug code identified by ident
-debuglib=name set symbolic debug library to name
-defaultlib=name set default library to name
-g add symbolic debug info
-gc add symbolic debug info, pretend to be C
-H generate 'header' file
-Hdhdrdir write 'header' file to hdrdir directory
-Hffilename write 'header' file to filename
--help print help
-Ipath where to look for imports
-ignore ignore unsupported pragmas
-inline do function inlining
-Jpath where to look for string imports
-Llinkerflag pass linkerflag to link
-lib generate library rather than object files
-man open web browser on manual page
-nofloat do not emit reference to floating point
-O optimize
-o- do not write object file
-odobjdir write object & library files to directory objdir
-offilename name output file to filename
-op do not strip paths from source file
-profile profile runtime performance of generated code
-quiet suppress unnecessary messages
-release compile release version
-run srcfile args... run resulting program, passing args
-unittest compile in unit tests
-v verbose
-v1 D language version 1
-version=level compile in version code >= level
-version=ident compile in version code identified by ident
-w enable warnings

1:28:35.63>dfl -dfl-ver
Using Phobos library
DFL version 0.9.8 (Beta)
Tested with DMD v1.030 and DMD v1.036.
DFL lib files compiled with Digital Mars D Compiler v1.036
Installed compiler is Digital Mars D Compiler v1.036

1:28:38.16>build -I..;c:\dmd\import -version=gui -version=Phobos listbox.d
listbox.d(9): class dfl.listbox.ListBox.SelectedObjectCollection member myOpApply is not accessible

Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Wed Mar 18, 2009 8:00 pm    Post subject: Reply with quote

Looks like a bug, thanks for letting me know about this. Here's a workaround:
Code:

void AddMultiLang_click(Object sender, EventArgs ea)
{
  char[] str;
  for(int i = 0; i < AddLanguages.selectedItems.length; i++)
  {
   char[] s = AddLanguages.selectedItems[i].toString();
   //str ~= s ~ "[" ~ Languages[s] ~ "]\n";
   str ~= s ~ " ";
  }
  msgBox(str);
}
Back to top
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Wed Mar 18, 2009 8:34 pm    Post subject: Reply with quote

thanks.
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