Main Menu

Some Errors?

Started by Frank Bruebach, September 17, 2025, 11:46:12 AM

Previous topic - Next topic

Frank Bruebach


hello jose, something is wrong with these files..

1) CW_CIOpenFilDialog_events.01.bas
about line 83 error mesage
'   COSFD_DP ("hOleWindow: " & WSTR(hOleWindow))
when I comment out this line the example runs

2) CW_CIOpenFilDialog__events.02.bas
line 69, 90.. much more errors

' TYPE CIFileDialogControlEventsImpl EXTENDS CIFileDialogControlEvents
' COSFD_DP("")

3) CW_CISaveFilDialog_01.bas
line 127
'OutputDebugStringW(psfd.GetResultString)
when I comment out these line, the example works

4) CW_CISaveFilDialog_01_events.bas
line 82
'   COSFD_DP ("hOleWindow: " & WSTR(hOleWindow))
line 165
'OutputDebugStringW(psfd.GetResultString)
when I comment out these lines, the example works

or my computer have a break ;-)

regards, frank

José Roca

#1
Which errors? I don't get any. Maybe you're using outdated include files.

hajubu

hi  Jose, can confirm the "glitches" inside the files of sdk-templates, inside the dowloads of the latest ( today ) github repository. (
Test trial was compiled with the new tiko 1.25
I do not repeat all errs , but I confirm all found as Frank described.

It seems there are some missing declarations or "includes" .
for 'COSFD' and  ....

b.r. Hajubu


1) -> CW_CIOpenFilDialog_Events_01.bas(83) error 42: Variable not declared,
   -> COSFD_DP in 'COSFD_DP ("hOleWindow: " & WSTR(hOleWindow))
2) -> CW_CIOpenFilDialog_Events_02.bas wit error in line
(69) error 14: Expected identifier, found 'CIFileDialogControlEvents' in 'TYPE CIFileDialogControlEventsImpl EXTENDS CIFileDialogControlEvents'
(76) error 256: An ENUM, TYPE or UNION cannot be empty, found 'END' in 'END TYPE'
(82) error 42: Variable not declared, COSFD_DP in 'COSFD_DP("")'
(90) error 3: Expected End-of-Line, found 'COSFD_DP' in 'COSFD_DP("")'
(98) error 3: Expected End-of-Line, found 'COSFD_DP' in 'COSFD_DP("")'
(106) error 3: Expected End-of-Line, found 'COSFD_DP' in 'COSFD_DP("")'
(130) error 3: Expected End-of-Line, found 'COSFD_DP' in 'COSFD_DP(AfxGuidText(riid))'
(144) error 18: Element not defined, AddRef in 'pIFileDialogControlEvents->AddRef'
(162) error 3: Expected End-of-Line, found 'COSFD_DP' in 'COSFD_DP ("hOleWindow: " & WSTR(hOleWindow))'
3) -->  CW_CISaveFilDialog_01.bas  line 127
4) --> CW_CISaveFilDialog_01_events.bas line 82

José Roca

Then I must have forgot to upload the latest files. I have done it now.

These are:


CIFileDialogCustomize.inc
CIFileDialogEvents.inc
CIOpenSaveFile.inc

Thanks for reporting it.

hajubu

Thanks Jose for your patience and fast reaction as ever. :)

Yes these are the missing links, it worked now for me with the 3 inc files ( put in the AfxNova Folder , all other are the same - checked via checksum)

b.r. Hajubu