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

Recommended Answers

All 2 Replies

Like this?

virtual void **ReturnArrayOfPointers() = 0;

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.