|
After adding ATL Aupport to MRFC application, then i added ATL COM object ,but this object is not registering.... how can i register?
|
|
|
|
|
kiranin wrote: After adding ATL Aupport to MRFC application, then i added ATL COM object ,but this object is not registering.... how can i register?
what error is it giving~
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
no error, just it cant registered in registry, for example when i add context menu items to textfiles it cannot displayed when create through MFC. Now what i want is how can i register ATL COM object in MFC Application
|
|
|
|
|
how can i Add context menu item through MFC Application,
i saw many examples, in all examples context menu item is added through ATL COM wizard,
but my application is MFC, when i launch my application context menu item will be added .
|
|
|
|
|
kiranin wrote: i saw many examples, in all examples context menu item is added through ATL COM wizard,
but my application is MFC, when i launch my application context menu item will be added .
Handle OnLButtonDown Message and generate your own context menu there
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
i want to add shell context menu item to explorer not to my application items.
|
|
|
|
|
I think I saw examples of this object on codeproject did you search?
|
|
|
|
|
|
Hi all.
In my application I am calling a SHGetFolderLocation() function to load a browse Folder dialog.
I have included Shlobj.h and also I have added shell32.lib file in
Project->Settings->Lib tab.
The version of shell32.dll is 6.0.2900.2180.
But when I tried to compile a program, it gives me a compile time error
" error C2065: 'SHGetFolderLocation' : undeclared identifier "
Can anybody help?
Thanks
Rakesh Thakur
|
|
|
|
|
Try to#define _WIN32_IE 0x0500
|
|
|
|
|
Thanks for reply.
I tried adding #define _WIN32_IE 0x0500
but didn't worked-out.
Thanks
Rakesh Thakur
|
|
|
|
|
|
In the same file in which I am calling that function.
Rakesh Thakur
|
|
|
|
|
Do you insert it to stdafx.h
|
|
|
|
|
Yes I have
#include "stdafx.h"
#include "shlobj.h"
#define _WIN32_IE 0x0500
Rakesh Thakur
|
|
|
|
|
If you insert this line on StdAfx.h I think it must solve
|
|
|
|
|
Rakesh_Thakur wrote: #define _WIN32_IE 0x0500
You must define it before anything else.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Try it like this:
#define _WIN32_IE 0x0500
#include "stdafx.h"
#include "shlobj.h"
If you want, you can put _WIN32_IE=0x500 into the PreProcessor Definitions on the Project Properties page
Scott
|
|
|
|
|
Perhaps you meant to respond to Rakesh.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Try it like this:
#define _WIN32_IE 0x0500
#include "stdafx.h"
#include "shlobj.h"
If you want, you can put _WIN32_IE=0x500 into the PreProcessor Definitions on the Project Properties page
Scott
|
|
|
|
|
|
Wireless data transfer from handheld to wireless printer or system
Subhash jain (Sundyne Technologies pvt. ltd.- 604,B wing,Trade world Lower parel Mumbai)
|
|
|
|
|
And you need help with ???
|
|
|
|
|
Got wired?
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
I have just come across and resolved a pretty serious bug in my code, I am now wondering if there is a better way to prevent this sort of thing from happening altogether.
I have a class which has a dynamic array as a member. One of the functions of this class returns a const pointer to the array. My bug was that I called delete on this pointer outside of the class (and didn't set the pointer to NULL), which caused later calls to read the array to spit out errors. Is there a method of preventing a pointer from being deleted outside of the class it was created?
|
|
|
|