Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: map<string,string> just won't work Pin
Michael Dunn9-Jan-04 17:20
sitebuilderMichael Dunn9-Jan-04 17:20 
GeneralRe: map<string,string> just won't work Pin
Garth J Lancaster9-Jan-04 17:24
professionalGarth J Lancaster9-Jan-04 17:24 
GeneralRe: map<string,string> just won't work Pin
luddet9-Jan-04 17:24
luddet9-Jan-04 17:24 
GeneralRe: map<string,string> just won't work Pin
Prakash Nadar10-Jan-04 1:02
Prakash Nadar10-Jan-04 1:02 
GeneralRe: map<string,string> just won't work Pin
Jörgen Sigvardsson10-Jan-04 7:30
Jörgen Sigvardsson10-Jan-04 7:30 
Generalshortcut using installshield Pin
Anonymous9-Jan-04 12:56
Anonymous9-Jan-04 12:56 
GeneralRe: shortcut using installshield Pin
Stefan Pedersen9-Jan-04 13:53
Stefan Pedersen9-Jan-04 13:53 
GeneralCATEGORYINFO & ICatRegister Pin
suiram409-Jan-04 11:25
suiram409-Jan-04 11:25 
I try to register a categoty using ATL/COM
After registering the registry looks pretty OK.
OleView diaplays the categoty
In Left Tree Pane: Grouped by Ccategory (child tree list)
I cannot se muy category, but in detailed right pane list-view
I can see my category beeing there.
The bad thing is when I enumerate the category info
I cannot find it.
All COM calls returrn S_OK;

// here Is the registration code
--------------------------------------------------
USES_CONVERSION;

CComPtr<icatregister> catInfo;
HRESULT hr = catInfo.CoCreateInstance(CLSID_StdComponentCategoriesMgr);
if(FAILED(hr))return hr;

// ensure the category registration
CATEGORYINFO catinfo;
catinfo.catid = MY_CATID;
catinfo.lcid = 0x0409 ;
::wcscpy(catinfo.szDescription, T2W (catDescription));
catInfo->RegisterCategories(1, &catinfo);

CComPtr<icatregister> catInfo;
HRESULT hr = catInfo.CoCreateInstance(CLSID_StdComponentCategoriesMgr);
if(FAILED(hr))return hr;

CATID catid = catidIn;
catInfo->RegisterClassImplCategories(CLSID_MyDLL,1,&catid);


// here is the enumaration code
--------------------------------------------------
CComPtr<icatinformation> ci;
HRESULT hr = ci.CoCreateInstance(CLSID_StdComponentCategoriesMgr);
if(FAILED(hr)) return;
CComPtr<ienumcategoryinfo> spEci;

if(SUCCEEDED(ci->EnumCategories(GetUserDefaultLCID(), &spEci)))
{
ULONG nRet = 0;
CATEGORYINFO cif;

while(SUCCEEDED(spEci->Next(1,&cif,&nRet)) && nRet==1)
{
if (cif.catid == NY_CATID)
{
TRACE("found \r\n");
}
}
}
GeneralRe: CATEGORYINFO & ICatRegister Pin
K ARUN KUMAR29-Apr-11 4:09
K ARUN KUMAR29-Apr-11 4:09 
GeneralProblem with VB DLL to use with VC++ Pin
Chirag Chauhan9-Jan-04 10:27
Chirag Chauhan9-Jan-04 10:27 
GeneralRe: Problem with VB DLL to use with VC++ Pin
Stefan Pedersen9-Jan-04 13:59
Stefan Pedersen9-Jan-04 13:59 
GeneralRe: Problem with VB DLL to use with VC++ Pin
Chirag Chauhan9-Jan-04 14:47
Chirag Chauhan9-Jan-04 14:47 
GeneralMouse Hook Problem Pin
Zee man9-Jan-04 9:45
Zee man9-Jan-04 9:45 
GeneralRe: Mouse Hook Problem Pin
Joel Lucsy12-Jan-04 4:05
Joel Lucsy12-Jan-04 4:05 
GeneralCIntArray in a structure Pin
(Steven Hicks)n+19-Jan-04 9:38
(Steven Hicks)n+19-Jan-04 9:38 
GeneralRe: CIntArray in a structure Pin
Gary R. Wheeler10-Jan-04 9:25
Gary R. Wheeler10-Jan-04 9:25 
QuestionHow to convert CString to int Pin
mr20039-Jan-04 9:11
mr20039-Jan-04 9:11 
AnswerRe: How to convert CString to int Pin
(Steven Hicks)n+19-Jan-04 9:33
(Steven Hicks)n+19-Jan-04 9:33 
AnswerRe: How to convert CString to int Pin
(Steven Hicks)n+19-Jan-04 9:33
(Steven Hicks)n+19-Jan-04 9:33 
AnswerRe: How to convert CString to int Pin
Michael Dunn9-Jan-04 17:07
sitebuilderMichael Dunn9-Jan-04 17:07 
GeneralRe: How to convert CString to int Pin
Jagadeesh VN9-Jan-04 18:19
Jagadeesh VN9-Jan-04 18:19 
GeneralRe: How to convert CString to int Pin
Tim Smith10-Jan-04 4:43
Tim Smith10-Jan-04 4:43 
GeneralRe: How to convert CString to int Pin
Jagadeesh VN11-Jan-04 8:42
Jagadeesh VN11-Jan-04 8:42 
GeneralWindow Background color Pin
yuvald9-Jan-04 8:39
yuvald9-Jan-04 8:39 
GeneralRe: Window Background color Pin
Michael Dunn9-Jan-04 17:09
sitebuilderMichael Dunn9-Jan-04 17:09 

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.