Hi!

Using the sample code in the tutorial
"http://www.tramontana.co.hu/wix/lesson10.php"; I have managed to fill a
listbox with values from a c++ dll. I would like to use a ComboBox instead
but can not get it to work.

I have tried the following:

  <Dialog Id="InstallDlg" Width="370" Height="270" Title="[ProductName]
[Setup]" NoMinimize="yes">
    ...
      <Control Id="FillListbox" Type="ListBox" X="8" Y="68" Width="300"
Height="60" Property="LISTBOXVALUES" TabSkip="no" Indirect="no">
  </Control>
  </Dialog>

(That is changing the Type to ComboBox)

and in the c++ code

extern "C" UINT __stdcall FillPackageList (MSIHANDLE hInstall) {
  HRESULT hResult = WcaInitialize (hInstall, "FillPackageList");
  if (FAILED (hResult)) return ERROR_INSTALL_FAILURE;

  MSIHANDLE hTable = NULL;
  MSIHANDLE hColumns = NULL;

  hResult = WcaAddTempRecord (&hTable, &hColumns, L"ComboBox", 0, 3,
L"LISTBOXVALUES", 1, L"C:\\Program Files\\Common Files\\GeoSE\\Norden\\");
  hResult = WcaAddTempRecord (&hTable, &hColumns, L"ComboBox", 0, 3,
L"LISTBOXVALUES", 2, L"C:\\Program Files\\Common Files\\GeoSE\\Sverige\\");

  if (hTable)
    MsiCloseHandle (hTable);
  if (hColumns)
    MsiCloseHandle (hColumns);
  return WcaFinalize (hResult);
} // FillPackageList


(Changing the third parameter in the WcaAddTempRecord from ListBox to
ComboBox)
When a run the MSI there is an error and the log says

Action start 13:21:40: FillPackageList.
MSI (c) (04:08) [13:21:40:489]: Invoking remote custom action. DLL:
C:\DOCUME~1\haol\LOCALS~1\Temp\MSI14C8.tmp, Entrypoint: FillPackageList
MSI (c) (04:2C) [13:21:40:489]: Cloaking enabled.
MSI (c) (04:2C) [13:21:40:489]: Attempting to enable all disabled priveleges
before calling Install on Server
MSI (c) (04:2C) [13:21:40:489]: Connected to service for CA interface.
MSI (c) (04!D8) [13:21:40:582]: Note: 1: 2205 2:  3: ComboBox 
MSI (c) (04!D8) [13:21:40:582]: Note: 1: 2228 2:  3: ComboBox 4: SELECT *
FROM `ComboBox` 
FillListbox:  Error 0x8007064f: failed to open view on database
FillListbox:  Error 0x8007064f: failed to openexecute temp view with query
SELECT * FROM `ComboBox`
MSI (c) (04!D8) [13:21:40:582]: Note: 1: 2205 2:  3: ComboBox 
MSI (c) (04!D8) [13:21:40:582]: Note: 1: 2228 2:  3: ComboBox 4: SELECT *
FROM `ComboBox` 
FillListbox:  Error 0x8007064f: failed to open view on database
FillListbox:  Error 0x8007064f: failed to openexecute temp view with query
SELECT * FROM `ComboBox`
Action ended 13:21:40: FillPackageList. Return value 3.
Action ended 13:21:40: INSTALL. Return value 3.
MSI (c) (04:BC) [13:21:40:582]: Destroying RemoteAPI object.
MSI (c) (04:2C) [13:21:40:582]: Custom Action Manager thread ending.

Have I missed something basic here? I thought that filling a ListBox and a
ComboBox would be almost identical...

Best regards Hans
-- 
View this message in context: 
http://www.nabble.com/ListBox-vs-ComboBox-tf4304757.html#a12253311
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to