954,173 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to declare this function?

I am trying to create a pure virtual function returning an array of pointers, without success! :cry: I would appreciate help greatly.

sinB
Newbie Poster
11 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

Like this?

virtual void **ReturnArrayOfPointers() = 0;

Replace void with the array of pointer's type (like int, float, MyRec, whatever)

Chainsaw
Posting Pro in Training
436 posts since Jun 2004
Reputation Points: 36
Solved Threads: 11
 

IF u r using void *...then u have to typecast ur returning value as per ur requirements...

harshchandra
Junior Poster in Training
68 posts since Nov 2004
Reputation Points: 7
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You