Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

plz help ! Nightmare with _isuser.dll and WaitOnDi


1 reply to this topic

sandeep

sandeep
  • Members
  • 5 posts

Posted 07 March 2004 - 21:05

Hi Folks,

I am suffering form a real nightmare with regards to the _isuser.dll
I am using Installshield Dev 9.0 and I make use of a custom dialog
that I store in _isuser.dll . I use the EzDefineDialog which seem to not return any error, but the WaitOnDialog seems to always
return DLG_ERR.
The same _isuser.dll DLL use to work perfectly fine with IS6.0
I also tried to make use of "ISUSER" variable as documented in
the help for EzDefineDialog, but still no success.
Any clues will be highly appreciated, because I am really stuck..
Below is my code, for refrence...

thx in advance,
Sandeep !
...
...

/*EzDefineDialog ( szDialogName , szDLL , "" , DlgID);*/
EzDefineDialog ( szDialogName , ISUSER , "" , nDlgID);
while (nStatus = FALSE)
nCmdValue = WaitOnDialog(szDialogName);
NumToStr (szCmd, nCmdValue);
MessageBox ("Dialog Command: "+szCmd, INFORMATION);
switch (nCmdValue)
case DLG_CLOSE:
nStatus = TRUE;
case DLG_ERR:
MessageBox(@ERROR_ISUSER_DIALOG_FAILED_1+" "+
@ERROR_ISUSER_DIALOG_FAILED_2+"\n : "+
szComponent, SEVERE);
nStatus = TRUE;
case DLG_INIT:
InitFields(szComponent);


my further investigation found that the above scenario works
if I build my _isuser.dll using the VC++6 complier , but when its build with VC++7/VC++.Net compiler it does not work. I have to use VC++7/VC++.Net compiler as VC 6.0 is going out of market.
HAs installshield folks tested thsi scenario with VC7 compiler...
Is there anyother way..plz help

thx much
Sandeep




sandeep

sandeep
  • Members
  • 5 posts

Posted 09 March 2004 - 18:08

Solution of the _isuser.dll to make it work when built on VC7/VC.Net is that you should have the following compiler and linker flags ( some of which are not needed when built via VC6)
cl.exe /O2 /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "_ISUSER_EXPORTS" /FD /EHsc /MT /YX"stdafx.h" /Fp /Fo /Fd /W3 /c /TC -I S:\Vc7\PlatformSDK\Include -I S:\Vc7\include ..\..\..\..\..\src\win-nls\enus1252\_isuser\_isuser.c

S:\Vc7\bin\rc.exe /d NDEBUG -Fo"_isuser.res" -I S:\Vc7\PlatformSDK\Include -I S:\Vc7\include D:\nas1.4\krb5dev\src\win-nls\enus1252\_isuser\_isuser.rc

link.exe /out:_isuser.dll /INCREMENTAL:NO /NOLOGO /DLL /IMPLIB:".\Debug/_IsUser.lib" /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "_isuser.obj" "_isuser.res"

smile.gif ..sandeep