phnxSetReturnValue

Reports of bugs and issues with Phoenix.
Ray King
Member
Posts: 26
Joined: Sat Sep 18, 2004 8:10 pm
Location: Connecticut USA
Contact:

phnxSetReturnValue

Postby Ray King » Wed Oct 06, 2004 5:47 am

Hi Dominic,

I am getting an Error on this function!

UTILITY.INC - missing declaration PHNXSETRETURNVALUE

I do not see this function in the utility.inc file at all.

Code: Select all


FUNCTION phnxCloseForm _
  ( _
  BYVAL hWnd      AS DWORD, _ ' reference handle (handle of form or any control on form)
  BYVAL lRetVal   AS LONG _   ' value to return if form is modal
  ) AS LONG

  hWnd = phnxGetFormHandle(hWnd)

  IF ISTRUE GetProp(hWnd, "KEYBOARDFOCUS") THEN
    phnxSetReturnValue hWnd, lRetVal <-- ERROR HERE DOMINIC!
  END IF

  SendMessage hWnd, %WM_CLOSE, 0, 0

END FUNCTION


Enjoy
Ray

TechSupport
Site Admin
Posts: 809
Joined: Tue Sep 14, 2004 7:55 pm
Location: Mississauga ON, Canada

Postby TechSupport » Wed Oct 06, 2004 9:06 am

Thanks.
I have uploaded an update of the CodeGen.dll in Phoenix version 1.0.4.0 that fixes this problem.
Download CodeGen.dll fix(~97KB)
and unzip to the \bin subdirectory.

Ray King
Member
Posts: 26
Joined: Sat Sep 18, 2004 8:10 pm
Location: Connecticut USA
Contact:

Postby Ray King » Wed Oct 06, 2004 2:08 pm

Thank you Dominic,

Also I changed the Window mode to modeless_window and get a similar Error:

UTILITY.INC - missing declaration LSTRCAT

Code: Select all


FUNCTION phnxGoToURL _
  ( _
  BYVAL sUrl  AS STRING _
  ) AS LONG

    lstrcat szValue, "\shell\open\command" <-- ERROR HERE DOMINIC!

END FUNCTION




Still will not work error above on both window modes.
Seems to be a lot of declarations missing from the utility.inc file.

Enjoy
Ray

P.S.
From what I see here Dominic it looks like the utility.inc file is being loaded before the win32api.inc file.

TechSupport
Site Admin
Posts: 809
Joined: Tue Sep 14, 2004 7:55 pm
Location: Mississauga ON, Canada

Postby TechSupport » Wed Oct 06, 2004 4:43 pm

Did the last update fix the phnxSetReturnValue problem? If not, I probably uploaded the wrong CodeGen.dll.

As for lstrcat, the parser is at fault. It is flagging the underscore character as a line continuation when it is in quotes.
Will upload a fix a soon as possible.

TechSupport
Site Admin
Posts: 809
Joined: Tue Sep 14, 2004 7:55 pm
Location: Mississauga ON, Canada

Postby TechSupport » Wed Oct 06, 2004 6:06 pm

I have uploaded an update of the AppData.dll in Phoenix version 1.0.4.0 that fixes the problem where aliases that are prefixed with an underscore were being skipped.
Download AppData.dll fix(~101KB)
and unzip to the \bin subdirectory.

Ray King
Member
Posts: 26
Joined: Sat Sep 18, 2004 8:10 pm
Location: Connecticut USA
Contact:

Postby Ray King » Thu Oct 07, 2004 3:34 am

Hi Dominic,

Ok now I have a new ERROR!

UTILITY.INC - string operand expected.
GetClassName hWnd, VARPTR(szClassName), %MAX_PATH

Code: Select all


FUNCTION phnxEnabledWindowEnumProc _
  ( _
  BYVAL hWnd    AS DWORD, _ ' handle of top-level window
  BYVAL lParam  AS LONG _   ' Address of variable for window handle
  ) EXPORT AS LONG

GetClassName hWnd, VARPTR(szClassName), %MAX_PATH

END FUNCTION



Enjoy
Ray

P.S.
I can not get pass this Error to see if the others are gone Dominic.

TechSupport
Site Admin
Posts: 809
Joined: Tue Sep 14, 2004 7:55 pm
Location: Mississauga ON, Canada

Postby TechSupport » Thu Oct 07, 2004 5:48 pm

I have uploaded an update of the vpbtpl1.dll in Phoenix version 1.0.4.0 that fixes the "string operand expected" error. The error was caused by the omission of the BYVAL keyword (GetClassName).
Download vpbtpl1.dll fix(~62KB)
and unzip to the \bin subdirectory.

Ray King
Member
Posts: 26
Joined: Sat Sep 18, 2004 8:10 pm
Location: Connecticut USA
Contact:

Postby Ray King » Fri Oct 08, 2004 3:23 am

Hi Dominic,

Ok the last upload seems to have fixed everything, it will now compile without errors.

Thank you
Ray


Return to “Phoenix Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest