Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

'insert' is not a member of TDeskTop

16 views
Skip to first unread message

Greg Andrzejewski

unread,
Jul 7, 2008, 1:02:19 AM7/7/08
to
Just getting started with TV, going through the borland manual "Turbo
Vision for C++". I don't have the original floppies with the
demonstration code, unfortunately. On p. 40, I'm trying to compile
TVGUID04, though I don't have the original file tvguid04.cpp. Most of
the source is listed in the text, the rest, so far, has been pretty
obvious.

I'm using BC5 on WinXP with Borland's Public Release of Turbo Vision
2.0. When compiling I get the error 'insert' is not a member of
TDeskTop for the line "deskTop->insert(window)". 'window' is a
TDemoWindow*, a pointer to a class which inherits TWindow.

I'm guessing things changed since the book was written. Any
suggestions?

Thanks,
Greg

Jonathan Wood

unread,
Jul 1, 2022, 6:45:53 PM7/1/22
to
I know it's been a long, long time. I'm just hitting the same error. I've checked several versions of Turbo Vision and they all get the same error. I've reviewed the sample code and I have it exactly as it is in the sample.

Just curious if you remember if you ever worked around it.

Franz Łotocki

unread,
Feb 13, 2023, 10:33:03 AM2/13/23
to
Just had the same problem and found the solution.

You have to add `#define Uses_TDeskTop`, then it works
0 new messages