How to declare this function?

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2004
Posts: 11
Reputation: sinB is an unknown quantity at this point 
Solved Threads: 0
sinB sinB is offline Offline
Newbie Poster

How to declare this function?

 
0
  #1
Dec 20th, 2004
I am trying to create a pure virtual function returning an array of pointers, without success! :cry: I would appreciate help greatly.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 436
Reputation: Chainsaw is an unknown quantity at this point 
Solved Threads: 10
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: How to declare this function?

 
0
  #2
Dec 20th, 2004
Like this?

virtual void **ReturnArrayOfPointers() = 0;

Replace void with the array of pointer's type (like int, float, MyRec, whatever)
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 68
Reputation: harshchandra is an unknown quantity at this point 
Solved Threads: 1
harshchandra harshchandra is offline Offline
Junior Poster in Training

Re: How to declare this function?

 
0
  #3
Dec 27th, 2004
IF u r using void *<functionname><arguements>...then u have to typecast ur returning value as per ur requirements...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC