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

C / C++ / MFC

 
GeneralRe: dynamic_cast and AfxGetMainWnd() failing where it shouldn't fail Pin
Daniel 'Tak' M.22-Mar-04 10:13
Daniel 'Tak' M.22-Mar-04 10:13 
GeneralRe: dynamic_cast and AfxGetMainWnd() failing where it shouldn't fail Pin
David Crow22-Mar-04 10:47
David Crow22-Mar-04 10:47 
GeneralRe: dynamic_cast and AfxGetMainWnd() failing where it shouldn't fail Pin
Nitron22-Mar-04 13:30
Nitron22-Mar-04 13:30 
GeneralRe: dynamic_cast and AfxGetMainWnd() failing where it shouldn't fail Pin
David Crow23-Mar-04 2:17
David Crow23-Mar-04 2:17 
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 
You'd do it the same way you call any COM method. First you need to get a hold of the COM object, and then you can call its method. There are several alternatives:

- Import the DLL's type library into your project. Look at the #import directive.

- Use the Class Wizard to add a class wrapper for the COM object. Open Class Wizard/Add Class/From a type library.

- Use one of the template classes like CComQIPtr (ATL), or com_ptr_t.

- Use the CoCreateInstance API.

If my memory serves me right the first option is the easiest -- look into it. Good luck!

Regards,
Alvaro


Give a man a fish, he owes you one fish. Teach a man to fish, you give up your monopoly on fisheries.
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 
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 

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.