Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get a function from an ATL COM dll. Pin
HAHAHA_NEXT22-Mar-04 8:31
HAHAHA_NEXT22-Mar-04 8:31 
AnswerRe: How to get a function from an ATL COM dll. Pin
Alvaro Mendez22-Mar-04 8:46
Alvaro Mendez22-Mar-04 8:46 
GeneralRe: How to get a function from an ATL COM dll. Pin
HAHAHA_NEXT22-Mar-04 8:52
HAHAHA_NEXT22-Mar-04 8:52 
GeneralRe: How to get a function from an ATL COM dll. Pin
Alvaro Mendez22-Mar-04 9:33
Alvaro Mendez22-Mar-04 9:33 
GeneralRe: How to get a function from an ATL COM dll. Pin
HAHAHA_NEXT22-Mar-04 11:48
HAHAHA_NEXT22-Mar-04 11:48 
Generalmysql help Pin
BlackDice22-Mar-04 8:00
BlackDice22-Mar-04 8:00 
GeneralHelp with a function that returns a vector.. Pin
RobJones22-Mar-04 7:52
RobJones22-Mar-04 7:52 
GeneralRe: Help with a function that returns a vector.. Pin
Nick Parker22-Mar-04 8:21
protectorNick Parker22-Mar-04 8:21 
Include a method signature in your header file for the class, something like the following:


std::vector<RSS_struct> GetData();


Write your function in the .cpp file:

std::vector<RSS_struct> GetData()
{
    std::vector<RSS_struct> vect;
    RSS_struct data;
    // populate RSS_struct here.
    vect.push_back(data);

    return vect;
}


Don't forget to #include <vector> and using namespace std;.

- Nick Parker
My Blog | My Articles

GeneralRe: Help with a function that returns a vector.. Pin
RobJones22-Mar-04 8:42
RobJones22-Mar-04 8:42 
GeneralRe: Help with a function that returns a vector.. Pin
Alvaro Mendez22-Mar-04 8:39
Alvaro Mendez22-Mar-04 8:39 
GeneralRe: Help with a function that returns a vector.. Pin
Christian Graus22-Mar-04 9:14
protectorChristian Graus22-Mar-04 9:14 
GeneralRe: Help with a function that returns a vector.. Pin
Curi0us_George22-Mar-04 9:22
Curi0us_George22-Mar-04 9:22 
GeneralRe: Help with a function that returns a vector.. Pin
Christian Graus22-Mar-04 9:27
protectorChristian Graus22-Mar-04 9:27 
GeneralRe: Help with a function that returns a vector.. Pin
Curi0us_George22-Mar-04 13:44
Curi0us_George22-Mar-04 13:44 
GeneralRe: Help with a function that returns a vector.. Pin
Christian Graus22-Mar-04 15:01
protectorChristian Graus22-Mar-04 15:01 
GeneralRe: Help with a function that returns a vector.. Pin
Curi0us_George22-Mar-04 17:00
Curi0us_George22-Mar-04 17:00 
GeneralRe: Help with a function that returns a vector.. Pin
Christian Graus22-Mar-04 17:07
protectorChristian Graus22-Mar-04 17:07 
GeneralRe: Help with a function that returns a vector.. Pin
Curi0us_George22-Mar-04 17:17
Curi0us_George22-Mar-04 17:17 
GeneralRe: Help with a function that returns a vector.. Pin
Christian Graus22-Mar-04 17:23
protectorChristian Graus22-Mar-04 17:23 
GeneralRe: Help with a function that returns a vector.. Pin
Alvaro Mendez22-Mar-04 9:42
Alvaro Mendez22-Mar-04 9:42 
GeneralRe: Help with a function that returns a vector.. Pin
Christian Graus22-Mar-04 9:45
protectorChristian Graus22-Mar-04 9:45 
GeneralRe: Help with a function that returns a vector.. Pin
Alvaro Mendez22-Mar-04 10:26
Alvaro Mendez22-Mar-04 10:26 
GeneralRe: Help with a function that returns a vector.. Pin
Christian Graus22-Mar-04 10:30
protectorChristian Graus22-Mar-04 10:30 
GeneralGetting control coordinates Pin
monrobot1322-Mar-04 7:32
monrobot1322-Mar-04 7:32 
GeneralRe: Getting control coordinates Pin
Brian D22-Mar-04 7:50
Brian D22-Mar-04 7:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.