Hey
I'm having some issues with a user-registration dialog calling a DLL File to
check the inputed data. The problem is the OrganizationEdit editbox. To
check I have inserted a MessageBox into my DLL to verify inputed data. What
happens is the following:
If I enter any data into any of the editboxes _after_ entering data into the
OrganizationEdit the DLL only gets the first 5 letters of the editbox (even
though it requests text upto MAX_PATH (sorry I don't have the DLL code
handy)). All the other data (username, licenses and CD-key) is fetched
correct, all data is fetched with the exact same call to the exact same
variabletype ( char var[MAX_PATH] )
Here is the dialog in question:
<Dialog Id="UserRegistrationDlg" Width="370" Height="270"
Title="[ProductName] [Setup]" NoMinimize="yes">
<Control Id="NameLabel" Type="Text" X="45" Y="73" Width="100"
Height="15" TabSkip="no" Text="&User Name:" />
<Control Id="NameEdit" Type="Edit" X="45" Y="85" Width="220"
Height="15" Property="USERNAME" Text="{80}" />
<Control Id="OrganizationLabel" Type="Text" X="45" Y="110"
Width="100" Height="15" TabSkip="no" Text="&Organization:" />
<Control Id="CDKeyLabel" Type="Text" X="45" Y="147" Width="50"
Height="10" TabSkip="no">
<Text>CD &Key:</Text>
</Control>
<Control Id="CDKeyEdit" Type="MaskedEdit" X="45" Y="159" Width="250"
Height="15" Property="PIDKEY" Text="[PIDTemplate]" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56"
Height="17" Text="[ButtonText_Back]">
<Publish Event="NewDialog"
Value="LicenseAgreementDlg"><![CDATA[1]]></Publish>
</Control>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="[ButtonText_Next]">
<Publish Event="ValidateProductID"
Value="0"><![CDATA[0]]></Publish>
<Publish Event="SpawnWaitDialog"
Value="WaitForCostingDlg"><![CDATA[CostingComplete = 1]]></Publish>
<Publish Value="Custom" Property="InstallMode">1</Publish>
<Publish Value="CA_CheckingPID" Event="DoAction">1</Publish>
<Publish Value="CustomizeDlg" Event="NewDialog">ProductID AND
PIDACCEPTED = "1"</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56"
Height="17" Cancel="yes" Text="[ButtonText_Cancel]">
<Publish Event="SpawnDialog"
Value="CancelDlg"><![CDATA[1]]></Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="374"
Height="44" TabSkip="no" Text="[BannerBitmap]" />
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374"
Height="0" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="374"
Height="0" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280"
Height="15" Transparent="yes" NoPrefix="yes">
<Text>Please enter your customer information</Text>
</Control>
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15"
Transparent="yes" NoPrefix="yes">
<Text>[DlgTitleFont]Customer Information</Text>
</Control>
<Control Type="Text" Width="50" Height="17" X="45" Y="184"
Id="LicensesText" Transparent="yes">
<Text>Licenses:</Text>
</Control>
<Control Type="Edit" Width="50" Height="15" X="45" Y="196"
Id="LicensesEdit" Property="LICENSECOUNT" />
<Control Type="Edit" Width="220" Height="15" X="45" Y="124"
Id="OrganizationEdit" Property="COMPANYNAME" Text="{80}" />
</Dialog>
Sincerely
Thomas
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users