Click here to Skip to main content
15,898,134 members
Home / Discussions / COM
   

COM

 
GeneralRe: Threading lockup Pin
Daniel Turini16-Oct-02 9:36
Daniel Turini16-Oct-02 9:36 
GeneralRe: Threading lockup Pin
Robin Cornelius16-Oct-02 11:21
Robin Cornelius16-Oct-02 11:21 
GeneralCOM Licensing Pin
Heath Stewart16-Oct-02 7:44
protectorHeath Stewart16-Oct-02 7:44 
Generaldo i need a buffered mouse for this.. Pin
lupus15-Oct-02 14:59
lupus15-Oct-02 14:59 
GeneralCComPtr.CoCreateInstance hangs Pin
tomc15-Oct-02 3:48
tomc15-Oct-02 3:48 
GeneralRe: CComPtr.CoCreateInstance hangs Pin
Stephane Rodriguez.15-Oct-02 4:34
Stephane Rodriguez.15-Oct-02 4:34 
QuestionWhere can I find the OLE for Retail POS(OPOS) sample codes? Pin
julio huang15-Oct-02 1:46
julio huang15-Oct-02 1:46 
GeneralNavigating the namespace Pin
Matt Eckerson14-Oct-02 11:49
Matt Eckerson14-Oct-02 11:49 
Hi all,

I'm having trouble getting information on how to enumerate a folder that I created. My folder is under the "System" directory, and I want to display the contents in a menu (much like the "Send To" menu). I found the "Navigating the Namespace" article on MSDN, but but that just finds the "first" folder to enumerate.

I have a an IShellFolder interface pointed to the system folder:

	hr = SHGetMalloc(&pMalloc);<br />
	hr = SHGetFolderLocation(NULL, CSIDL_SYSTEM, NULL, NULL, &pidlSystem);<br />
    hr = SHGetDesktopFolder(&psfDesktop);<br />
<br />
    hr = psfDesktop->BindToObject(pidlSystem, NULL, IID_IShellFolder, (LPVOID *) &psfSystem);<br />
<br />
	if (SUCCEEDED(hr))<br />
	{<br />
		hr = psfDesktop->QueryInterface(IID_IShellFolder, (LPVOID *) &psfSystem);<br />
		psfDesktop->Release();<br />
	}<br />
<br />
	hr = psfSystem->EnumObjects(NULL, SHCONTF_FOLDERS, &ppenum);<br />


Now how can I get an this pointed to my folder? I'm familiar with IShellFolder::ParseDisplayName, but I just don't know how to implement this (if this is in fact what I need).

Could someone point me in the right direction?

Thanks,

Matt
QuestionHow can I create a .tlb file for a MFC-base component? Pin
billdavid13-Oct-02 16:25
billdavid13-Oct-02 16:25 
AnswerRe: How can I create a .tlb file for a MFC-base component? Pin
Michael P Butler14-Oct-02 6:12
Michael P Butler14-Oct-02 6:12 
GeneralAbout Multi-IDispatch in MFC Pin
billdavid13-Oct-02 16:21
billdavid13-Oct-02 16:21 
GeneralStoring additional data in MsWord 2000/XP file Pin
mariuszpopiolek11-Oct-02 4:07
mariuszpopiolek11-Oct-02 4:07 
GeneralHelp with ADOCommand->Execute with Parameters Pin
ssirisha10-Oct-02 2:39
ssirisha10-Oct-02 2:39 
GeneralPass SafeArray to ACCESS using ADO Pin
ssirisha9-Oct-02 9:40
ssirisha9-Oct-02 9:40 
QuestionHow to retrieve information from MSWord Pin
Anonymous9-Oct-02 7:39
Anonymous9-Oct-02 7:39 
GeneralPassing CHUNKS of data. Pin
Bertrand Boichon7-Oct-02 11:47
Bertrand Boichon7-Oct-02 11:47 
GeneralRe: Passing CHUNKS of data. Pin
Chris Losinger7-Oct-02 12:06
professionalChris Losinger7-Oct-02 12:06 
GeneralAdding streams and storages into MSWord compound file Pin
Mariusz Popiolek7-Oct-02 5:36
sussMariusz Popiolek7-Oct-02 5:36 
QuestionWhy AddRef returns a long integer? Pin
Naresh25_cool7-Oct-02 1:39
Naresh25_cool7-Oct-02 1:39 
AnswerRe: Why AddRef returns a long integer? Pin
Iain Clarke, Warrior Programmer7-Oct-02 5:28
Iain Clarke, Warrior Programmer7-Oct-02 5:28 
GeneralUsing COM objects in Java Pin
dabs3-Oct-02 15:47
dabs3-Oct-02 15:47 
GeneralRe: Using COM objects in Java Pin
Jörgen Sigvardsson4-Oct-02 10:45
Jörgen Sigvardsson4-Oct-02 10:45 
GeneralRe: Using COM objects in Java Pin
David Karunaratne7-Oct-02 19:07
sussDavid Karunaratne7-Oct-02 19:07 
GeneralIXMLDOMNode as an idl parameter Pin
nlecren2-Oct-02 9:09
nlecren2-Oct-02 9: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.