Charles,
I need some clarification.
I am seeing windows function winmain and windows callback functions without byval in the param list.
What is the best practice method for porototypes or function parameters. Remember I am a verbose person and don't mind a lot of typing if it helps my old brain grasp functionality.
I am also a bit of a encapsulation freak where I shun globals as much as possible.
How do I assign to a static var a pointer passed to a callback function as in this:
I have a type
Type DlgInfoType
int Index
int IsRecModified
int IsFileModified
int StartRec
sys hInst
sys hParent
sys hStatus
char findtext[1024]
int MaxRecs
char dbfile[2048]
End Type
In Winmain:
Dim As DlgInfoType DlgInfo
DlgInfo.hInst = hInst
DlgInfo.dbfile = "CardFile50.bin"
hDlg = CreateDialogParam(hInst,IDD_DLG1,0,@DlgProc,@DlgInfo)
And in my callback I want to assign InfoPtr the address of DlgInfo from winmain
Function DlgProc(byval hDlg As sys,byval uMsg As uint,byval wParam As sys,byval lParam AS sys) As sys callback
static InfoPtr As DlgInfoType*
Select Case uMsg
Case WM_INITDIALOG
InfoPtr = lParam
Also one Folder I must have missed is the examples\Image where it appears all code is for rtl32 but they also fail to compile.
James