Can anyone tell me why I'm getting the following error when I try to compile
my program?

Program c:\source\vbpf\prgs\procedures.prg has the following errors:
Unknown _WFINDTITL - Undefined
Unknown _WHTOHWND - Undefined


I have this line of code in my main program

SET LIBRARY TO SYS(2004) + "FOXTOOLS.FLL" ADDITIVE


I have this procedure in a different program

PROCEDURE TileVertically
LOCAL lnhWnd

* Get the Active Form's window handle
lnhWnd = _WhTohWnd(_WFindTitl(_SCREEN.ActiveForm.Caption))

* Get the form's parent window
lnhWnd = otile.GetParentWindow(lnhWnd)

otile.TileVertical(lnhWnd)
ENDPROC

Re: Unable to find an API by Mike

Mike
Thu Jan 06 12:04:39 CST 2005

Just declare the as Dummy variables in your main program.
Local _WFINDTITL ,_WHTOHWND

"Joaquin" <jlopezh@earthlink.net> wrote in message
news:uDHNVVB9EHA.1296@TK2MSFTNGP10.phx.gbl...
> Can anyone tell me why I'm getting the following error when I try to
compile
> my program?
>
> Program c:\source\vbpf\prgs\procedures.prg has the following errors:
> Unknown _WFINDTITL - Undefined
> Unknown _WHTOHWND - Undefined
>
>
> I have this line of code in my main program
>
> SET LIBRARY TO SYS(2004) + "FOXTOOLS.FLL" ADDITIVE
>
>
> I have this procedure in a different program
>
> PROCEDURE TileVertically
> LOCAL lnhWnd
>
> * Get the Active Form's window handle
> lnhWnd = _WhTohWnd(_WFindTitl(_SCREEN.ActiveForm.Caption))
>
> * Get the form's parent window
> lnhWnd = otile.GetParentWindow(lnhWnd)
>
> otile.TileVertical(lnhWnd)
> ENDPROC
>
>
>
>



Re: Unable to find an API by Rick

Rick
Thu Jan 06 12:15:00 CST 2005

Joaquin,
Interesting - if you compile that procedure separate, VFP doesn't =
complain. As long as it can find these references at runtime, you can =
make the compiler happy by using the EXTERNAL declaration. Do you have =
FoxTools.FLL in your project? (Note: All Library's are automatically =
marked excluded, so you will still have to distribute it.)

Rick

"Joaquin" <jlopezh@earthlink.net> wrote in message =
news:uDHNVVB9EHA.1296@TK2MSFTNGP10.phx.gbl...
> Can anyone tell me why I'm getting the following error when I try to =
compile=20
> my program?
>=20
> Program c:\source\vbpf\prgs\procedures.prg has the following errors:
> Unknown _WFINDTITL - Undefined
> Unknown _WHTOHWND - Undefined
>=20
>=20
> I have this line of code in my main program
>=20
> SET LIBRARY TO SYS(2004) + "FOXTOOLS.FLL" ADDITIVE
>=20
>=20
> I have this procedure in a different program
>=20
> PROCEDURE TileVertically
> LOCAL lnhWnd
>=20
> * Get the Active Form's window handle
> lnhWnd =3D _WhTohWnd(_WFindTitl(_SCREEN.ActiveForm.Caption))
>=20
> * Get the form's parent window
> lnhWnd =3D otile.GetParentWindow(lnhWnd)
>=20
> otile.TileVertical(lnhWnd)
> ENDPROC
>=20
>=20
>=20
>

Re: Unable to find an API by Joaquin

Joaquin
Thu Jan 06 13:07:08 CST 2005

Okay, I'll go ahead and add the EXTERNAL declaration and no I do not have
the FOXTOOLS.FLLS in my proejct. Do I need to add it?

Thanks

No I don't have the FoxTools.fll in my project bu
"Rick Bean" <rgbean@unrealmelange-inc.com> wrote in message
news:OrdgjuB9EHA.3320@TK2MSFTNGP10.phx.gbl...
Joaquin,
Interesting - if you compile that procedure separate, VFP doesn't complain.
As long as it can find these references at runtime, you can make the
compiler happy by using the EXTERNAL declaration. Do you have FoxTools.FLL
in your project? (Note: All Library's are automatically marked excluded, so
you will still have to distribute it.)

Rick

"Joaquin" <jlopezh@earthlink.net> wrote in message
news:uDHNVVB9EHA.1296@TK2MSFTNGP10.phx.gbl...
> Can anyone tell me why I'm getting the following error when I try to
> compile
> my program?
>
> Program c:\source\vbpf\prgs\procedures.prg has the following errors:
> Unknown _WFINDTITL - Undefined
> Unknown _WHTOHWND - Undefined
>
>
> I have this line of code in my main program
>
> SET LIBRARY TO SYS(2004) + "FOXTOOLS.FLL" ADDITIVE
>
>
> I have this procedure in a different program
>
> PROCEDURE TileVertically
> LOCAL lnhWnd
>
> * Get the Active Form's window handle
> lnhWnd = _WhTohWnd(_WFindTitl(_SCREEN.ActiveForm.Caption))
>
> * Get the form's parent window
> lnhWnd = otile.GetParentWindow(lnhWnd)
>
> otile.TileVertical(lnhWnd)
> ENDPROC
>
>
>
>



Re: Unable to find an API by Rick

Rick
Thu Jan 06 14:54:21 CST 2005

Joaquin,
Yes, you should add any librarys you use, so the PM can resolve these =
kind of references (it'll assume you've done the SET LIBRARY).
As stated before these are marked Excluded, so they are really part of =
your application's code file.

Rick

"Joaquin" <jlopezh@earthlink.net> wrote in message =
news:uorLsLC9EHA.2032@tk2msftngp13.phx.gbl...
> Okay, I'll go ahead and add the EXTERNAL declaration and no I do not =
have=20
> the FOXTOOLS.FLLS in my proejct. Do I need to add it?
>=20
> Thanks
>=20
> No I don't have the FoxTools.fll in my project bu
> "Rick Bean" <rgbean@unrealmelange-inc.com> wrote in message=20
> news:OrdgjuB9EHA.3320@TK2MSFTNGP10.phx.gbl...
> Joaquin,
> Interesting - if you compile that procedure separate, VFP doesn't =
complain.=20
> As long as it can find these references at runtime, you can make the=20
> compiler happy by using the EXTERNAL declaration. Do you have =
FoxTools.FLL=20
> in your project? (Note: All Library's are automatically marked =
excluded, so=20
> you will still have to distribute it.)
>=20
> Rick
>=20
> "Joaquin" <jlopezh@earthlink.net> wrote in message=20
> news:uDHNVVB9EHA.1296@TK2MSFTNGP10.phx.gbl...
>> Can anyone tell me why I'm getting the following error when I try to=20
>> compile
>> my program?
>>
>> Program c:\source\vbpf\prgs\procedures.prg has the following errors:
>> Unknown _WFINDTITL - Undefined
>> Unknown _WHTOHWND - Undefined
>>
>>
>> I have this line of code in my main program
>>
>> SET LIBRARY TO SYS(2004) + "FOXTOOLS.FLL" ADDITIVE
>>
>>
>> I have this procedure in a different program
>>
>> PROCEDURE TileVertically
>> LOCAL lnhWnd
>>
>> * Get the Active Form's window handle
>> lnhWnd =3D _WhTohWnd(_WFindTitl(_SCREEN.ActiveForm.Caption))
>>
>> * Get the form's parent window
>> lnhWnd =3D otile.GetParentWindow(lnhWnd)
>>
>> otile.TileVertical(lnhWnd)
>> ENDPROC
>>
>>
>>
>>=20
>=20
>