Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Aug 6, 1997

SS3D2.VBX And Win95 GPF

Running applications written in VB3 in the WIN95 OS is not always a clean conversion. This code would work fine in Windows for Workgroups 3.11, but would GPF in WIN95. SS3D2.VBX, which is from Sheridan Software and contains SSCombo and SSList, among others. I got a GPF crash from Win95 when I placed the SSCombo on top of the SSIDXTAB.VBX upon exit. The workaround is to type in the Form_Unload event:
 Dim rc as integer
rc = setparent(sscombo1.hwnd, form1.hwnd)
The workaround makes the combo a child of the form, not of the index tab, during the unload. In addition to, add in the General Declarations:
 Declare Function Setparent Lib "User.exe" _
	(Byval hwndchild as integer, byval _
	hwndparent as integer) as integer. 
Douglas Haynes
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date