www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DFL Wrong,please give me a help

reply "jinheking" <caoqi bgi.net.cn> writes:
which reason can't use:
class xxxxForm: Form{
}


why? 
Apr 24 2007
parent reply Max Samukha <samukha voliacable.com> writes:
On Tue, 24 Apr 2007 17:37:24 +0800, "jinheking" <caoqi bgi.net.cn>
wrote:

which reason can't use:
class xxxxForm: Form{
}


why? 
It is difficult to tell from your example what's wrong. The code above compiles for me. Better places for questions about DFL: DFL forum - http://dsource.org/forums/viewforum.php?f=39 IRC channel #DFL at freenode
Apr 24 2007
next sibling parent reply "jinheking" <caoqi bgi.net.cn> writes:
My source

===  insert_phonetic.d  ===
import dfl.all;
import std.string;
class MyForm: Form{}
int main(){
 return 0;
 }


dfl -gui insert_phonetic.d
Error checking versions; use switch -ver for details
Compiling in debug mode; use -release to compile in release mode
c:\dmd\bin\dmd.exe 
insert_phonetic.d -version=DFL_EXE -debug -Ic:\dmd\import
-L/exet:nt/su:windows:4.0 
c:\dmd\lib\DFL_D
c:\dmd\bin\..\..\dm\bin\link.exe 
insert_phonetic,,,c:\dmd\lib\DFL_DE~1.LIB+user32+kernel32/noi/exet:nt/su:windows:4.0;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

insert_phonetic.obj(insert_phonetic)
 Error 42: Symbol Undefined 
_D3dfl7control17ScrollableControl14onControlAddedMFC3dfl7control16ControlEventArgsZv
--- errorlevel 1

Returned status code 1




"Max Samukha" <samukha voliacable.com> 
??????:9pkr23h1g1l0kvnvirpgpkdn9m3lh10avf 4ax.com...
 On Tue, 24 Apr 2007 17:37:24 +0800, "jinheking" <caoqi bgi.net.cn>
 wrote:

which reason can't use:
class xxxxForm: Form{
}


why?
It is difficult to tell from your example what's wrong. The code above compiles for me. Better places for questions about DFL: DFL forum - http://dsource.org/forums/viewforum.php?f=39 IRC channel #DFL at freenode
Apr 24 2007
next sibling parent Max Samukha <samukha voliacable.com> writes:
On Tue, 24 Apr 2007 18:18:08 +0800, "jinheking" <caoqi bgi.net.cn>
wrote:

My source

===  insert_phonetic.d  ===
import dfl.all;
import std.string;
class MyForm: Form{}
int main(){
 return 0;
 }


dfl -gui insert_phonetic.d
Error checking versions; use switch -ver for details
Compiling in debug mode; use -release to compile in release mode
c:\dmd\bin\dmd.exe 
insert_phonetic.d -version=DFL_EXE -debug -Ic:\dmd\import
-L/exet:nt/su:windows:4.0 
c:\dmd\lib\DFL_D
c:\dmd\bin\..\..\dm\bin\link.exe 
insert_phonetic,,,c:\dmd\lib\DFL_DE~1.LIB+user32+kernel32/noi/exet:nt/su:windows:4.0;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

insert_phonetic.obj(insert_phonetic)
 Error 42: Symbol Undefined 
_D3dfl7control17ScrollableControl14onControlAddedMFC3dfl7control16ControlEventArgsZv
--- errorlevel 1

Returned status code 1
You are trying to link with a wrong dfl_debug.lib, I guess. The one in your c:\dmd\lib\ does not have the definition of the control.ScrollableControl.onControlAdded function. Seems like you are trying to use an old library and newer source.
Apr 24 2007
prev sibling parent "Chris Miller" <chris dprogramming.com> writes:
Notice the line "Error checking versions; use switch -ver for details"
Try typing "dfl -ver".

Somehow it seems you don't have it installed correctly.

If -ver doesn't help, try reinstalling DFL or all your D stuff (and  =

deleting the current files is recommended to rid of unintentional old  =

versions).

- Chris


On Tue, 24 Apr 2007 06:18:08 -0400, jinheking <caoqi bgi.net.cn> wrote:

 My source

 =3D=3D=3D  insert_phonetic.d  =3D=3D=3D
 import dfl.all;
 import std.string;
 class MyForm: Form{}
 int main(){
  return 0;
  }


 dfl -gui insert_phonetic.d
 Error checking versions; use switch -ver for details
 Compiling in debug mode; use -release to compile in release mode
 c:\dmd\bin\dmd.exe
 insert_phonetic.d -version=3DDFL_EXE -debug -Ic:\dmd\import  =
 -L/exet:nt/su:windows:4.0
 c:\dmd\lib\DFL_D
 c:\dmd\bin\..\..\dm\bin\link.exe
 insert_phonetic,,,c:\dmd\lib\DFL_DE~1.LIB+user32+kernel32/noi/exet:nt/=
su:windows:4.0;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

 insert_phonetic.obj(insert_phonetic)
  Error 42: Symbol Undefined
 _D3dfl7control17ScrollableControl14onControlAddedMFC3dfl7control16Cont=
rolEventArgsZv
 --- errorlevel 1

 Returned status code 1




 "Max Samukha" <samukha voliacable.com>
 ??????:9pkr23h1g1l0kvnvirpgpkdn9m3lh10avf 4ax.com...
 On Tue, 24 Apr 2007 17:37:24 +0800, "jinheking" <caoqi bgi.net.cn>
 wrote:

 which reason can't use:
 class xxxxForm: Form{
 }


 why?
It is difficult to tell from your example what's wrong. The code abov=
e
 compiles for me.

 Better places for questions about DFL:

 DFL forum -  http://dsource.org/forums/viewforum.php?f=3D39
 IRC channel #DFL at freenode
Apr 24 2007
prev sibling next sibling parent "jinheking" <caoqi bgi.net.cn> writes:
My DFL version is :dfl09503


"Max Samukha" <samukha voliacable.com> 
??????:9pkr23h1g1l0kvnvirpgpkdn9m3lh10avf 4ax.com...
 On Tue, 24 Apr 2007 17:37:24 +0800, "jinheking" <caoqi bgi.net.cn>
 wrote:

which reason can't use:
class xxxxForm: Form{
}


why?
It is difficult to tell from your example what's wrong. The code above compiles for me. Better places for questions about DFL: DFL forum - http://dsource.org/forums/viewforum.php?f=39 IRC channel #DFL at freenode
Apr 24 2007
prev sibling parent "jinheking" <caoqi bgi.net.cn> writes:
my dmd version is dmd 1.012
"Max Samukha" <samukha voliacable.com> 
??????:9pkr23h1g1l0kvnvirpgpkdn9m3lh10avf 4ax.com...
 On Tue, 24 Apr 2007 17:37:24 +0800, "jinheking" <caoqi bgi.net.cn>
 wrote:

which reason can't use:
class xxxxForm: Form{
}


why?
It is difficult to tell from your example what's wrong. The code above compiles for me. Better places for questions about DFL: DFL forum - http://dsource.org/forums/viewforum.php?f=39 IRC channel #DFL at freenode
Apr 24 2007