CWindow RC12

Started by José Roca, June 30, 2016, 09:37:43 PM

Previous topic - Next topic

James Fuller

Jose,
  I wrapped your IFileOpenDialog so it would return a Fb string. It worked fine.
I decided to do the same but with the new CBStr. Everything worked more than fine :) ??
At lines 72 & 73 of Dlg2CWin2.BAS I call Paul's FF_Parse with  CBStr variables sFileTypes and sFileSpecs.
The Function expects a Fb String??? Is the compiler doing the conversion or the CBStr class?

DLG2SRC.RC  and DLG2SRC2.RC are just files to be parsed by the app

compile Dlg2CWin2.bas as a console app.

James

José Roca

> The Function expects a Fb String??? Is the compiler doing the conversion or the CBStr class?

The compiler does the conversions. The class gives him the pointer to the string data.