Click here to Skip to main content
15,893,337 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Radio Button groups Pin
act_x16-Jul-03 10:43
act_x16-Jul-03 10:43 
GeneralRe: Radio Button groups Pin
John R. Shaw16-Jul-03 11:16
John R. Shaw16-Jul-03 11:16 
GeneralRe: SHBrowseForFolder works only one time when connecting to SQL server in between when using a manifest file Pin
Jens Doose16-Jul-03 8:18
Jens Doose16-Jul-03 8:18 
GeneralRe: SHBrowseForFolder works only one time when connecting to SQL server in between when using a manifest file Pin
David Crow16-Jul-03 9:42
David Crow16-Jul-03 9:42 
GeneralRe: SHBrowseForFolder works only one time when connecting to SQL server in between when using a manifest file Pin
Jens Doose16-Jul-03 20:21
Jens Doose16-Jul-03 20:21 
GeneralRe: SHBrowseForFolder works only one time when connecting to SQL server in between when using a manifest file Pin
David Crow17-Jul-03 5:49
David Crow17-Jul-03 5:49 
GeneralRe: SHBrowseForFolder works only one time when connecting to SQL server in between when using a manifest file Pin
Jens Doose17-Jul-03 19:34
Jens Doose17-Jul-03 19:34 
GeneralRe: SHBrowseForFolder works only one time when connecting to SQL server in between when using a manifest file Pin
David Crow18-Jul-03 5:54
David Crow18-Jul-03 5:54 
Jens Doose wrote:
The problem is that with Windows XP

Have you tried this on another platform to see if it is OS related?

Jens Doose wrote:
That is why there is no error checking or why I don't use
the result value within bi.


That's fine, and is common practice. I just wanted to emphasize that omitting error checking might have been the crux of the problem.

If you commented out both calls to SHBrowseForFolder(), thus leaving only the SQL-related code, can Go() be called repeatedly?

Perhaps after you are done with SHBrowseForFolder(), you should call IMalloc::Free().

HRESULT hr;
LPMALLOC pMalloc;
LPITEMIDLIST pidlSelected = NULL;
hr = SHGetMalloc(&pMalloc);
pidlSelected = SHBrowseForFolder(&bi);
...
pMalloc->Free(pidlSelected);

GeneralWM_CONTEXTMENU Pin
pranavamhari16-Jul-03 7:34
pranavamhari16-Jul-03 7:34 
QuestionMFC - How to print ? Pin
Exim16-Jul-03 6:55
Exim16-Jul-03 6:55 
GeneralHeapValidate question Pin
Anonymous16-Jul-03 6:27
Anonymous16-Jul-03 6:27 
GeneralRe: HeapValidate question Pin
Mike Dimmick16-Jul-03 6:48
Mike Dimmick16-Jul-03 6:48 
GeneralRe: HeapValidate question Pin
Anonymous16-Jul-03 7:09
Anonymous16-Jul-03 7:09 
GeneralRe: HeapValidate question Pin
Peter Weyzen16-Jul-03 7:52
Peter Weyzen16-Jul-03 7:52 
GeneralRe: HeapValidate question Pin
Mike Dimmick16-Jul-03 22:28
Mike Dimmick16-Jul-03 22:28 
QuestionGetting the same value everytime?? Pin
johnstonsk16-Jul-03 6:01
johnstonsk16-Jul-03 6:01 
AnswerRe: Getting the same value everytime?? Pin
David Crow16-Jul-03 7:02
David Crow16-Jul-03 7:02 
AnswerRe: Getting the same value everytime?? Pin
Peter Weyzen16-Jul-03 7:58
Peter Weyzen16-Jul-03 7:58 
AnswerRe: Getting the same value everytime?? Pin
Ryan Binns16-Jul-03 17:33
Ryan Binns16-Jul-03 17:33 
GeneralEDID data, display driver Pin
oliver.hu16-Jul-03 5:19
oliver.hu16-Jul-03 5:19 
GeneralTemplates and functions Pin
Bernhard16-Jul-03 4:59
Bernhard16-Jul-03 4:59 
GeneralRe: Templates and functions Pin
Ryan Binns16-Jul-03 5:06
Ryan Binns16-Jul-03 5:06 
GeneralRe: Templates and functions Pin
Andrew Walker17-Jul-03 3:03
Andrew Walker17-Jul-03 3:03 
GeneralRe: Templates and functions Pin
Bernhard17-Jul-03 3:29
Bernhard17-Jul-03 3:29 
Generalmy solution (pretty neat i think) Pin
Bernhard17-Jul-03 4:14
Bernhard17-Jul-03 4:14 

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.