error C2027: use of undefined type 'IActiveDesktop'
-
Hi all, I am trying to use IActiveDesktop interface in my code. I have included
#include "shlobj.h"
and defined this in stdafx.h
#import "shell32.dll"
but it is giving error error C2027: use of undefined type 'IActiveDesktop' how to resolve this Can anybody help me in this thanks in advance
-
Hi all, I am trying to use IActiveDesktop interface in my code. I have included
#include "shlobj.h"
and defined this in stdafx.h
#import "shell32.dll"
but it is giving error error C2027: use of undefined type 'IActiveDesktop' how to resolve this Can anybody help me in this thanks in advance
You could try #include <wininet.h> #include <shlobj.h> as I believe there are things in shlobj.h that rely on wininet.h being included first. After that, you might also consider that by default, #import generates definitions inside a namespace, so if that was where IActiveDesktop was being defined, it wouldn't be in the global namespace. You can look at the generated tli/tlh files to see what the namespace is called.
Steve S Developer for hire
-
Hi all, I am trying to use IActiveDesktop interface in my code. I have included
#include "shlobj.h"
and defined this in stdafx.h
#import "shell32.dll"
but it is giving error error C2027: use of undefined type 'IActiveDesktop' how to resolve this Can anybody help me in this thanks in advance
See Introduction to COM - What It Is and How to Use It. [^] on that article Michael used of IActiveDesktop.
WhiteSky
-
Hi all, I am trying to use IActiveDesktop interface in my code. I have included
#include "shlobj.h"
and defined this in stdafx.h
#import "shell32.dll"
but it is giving error error C2027: use of undefined type 'IActiveDesktop' how to resolve this Can anybody help me in this thanks in advance
See here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
See here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
thanku all, it solved my problem....