🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages Started by Maverick Koe Tue, 03 Nov 1998 00:00
TDBGrid as a parameter
#1897
Author: Maverick Koe
Date: Tue, 03 Nov 1998 00:00
16 lines
943 bytes
Hi,

        I want to create a function and pass "TDBGrid" as a parameter.
i.e.  void __fastcall DBGridCut(TDBGrid *DBGrid); However, I received errors
as follows.

[C++Error] ADMClipboard.cpp(26): Undefined symbol 'TDBGrid'.
[C++Error] ADMClipboard.cpp(49): 'TDBGrid' cannot start a parameter
declaration.
[C++Error] ADMClipboard.cpp(50): '_fastcall TAClipboard::DBGridCut(int &)'
is not a member of 'TAClipboard'.

I have included dbcgrid.hpp in my c++ file already.  Any idea??

Regards,
Maverick
Re: TDBGrid as a parameter
#1898
Author: Jeff Garrett
Date: Tue, 03 Nov 1998 00:00
35 lines
1796 bytes
I would first guess that there is an error before the line where
you get the error. I try and figure these things out by block
commenting out the function. Since I usually have methods, I
then make the method an inline empty method just so that I should
get no compile errors. I'd guess you can do the same with a
function....

Another thing is that another error indicates that you are declaring
a method called DBGridCut. Are you making both a function and a 
method with the same name ?

Perhaps you can post a message where you cut and past the
exact declarations and implimentations of the functions/methods
in question.


Maverick Koe wrote:
> 
> Hi,
> 
>         I want to create a function and pass "TDBGrid" as a parameter.
> i.e.  void __fastcall DBGridCut(TDBGrid *DBGrid); However, I received errors
> as follows.
> 
> [C++Error] ADMClipboard.cpp(26): Undefined symbol 'TDBGrid'.
> [C++Error] ADMClipboard.cpp(49): 'TDBGrid' cannot start a parameter
> declaration.
> [C++Error] ADMClipboard.cpp(50): '_fastcall TAClipboard::DBGridCut(int &)'
> is not a member of 'TAClipboard'.
> 
> I have included dbcgrid.hpp in my c++ file already.  Any idea??
> 
> Regards,
> Maverick
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads