Click here to Skip to main content
15,895,084 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralGroup box resizing problem using standard WTL resizing mechanism Pin
Daniel K.2-Oct-02 9:59
Daniel K.2-Oct-02 9:59 
GeneralRe: Group box resizing problem using standard WTL resizing mechanism Pin
Ed Gadziemski3-Oct-02 4:20
professionalEd Gadziemski3-Oct-02 4:20 
GeneralATL Web Service on NT 4.0 Pin
Alexandru Savescu1-Oct-02 21:53
Alexandru Savescu1-Oct-02 21:53 
GeneralRe: ATL Web Service on NT 4.0 Pin
Ed Gadziemski3-Oct-02 4:07
professionalEd Gadziemski3-Oct-02 4:07 
GeneralRe: ATL Web Service on NT 4.0 Pin
Alexandru Savescu3-Oct-02 4:13
Alexandru Savescu3-Oct-02 4:13 
QuestionHow do I call the choose folder dialog Pin
Jose Cruz1-Oct-02 5:18
Jose Cruz1-Oct-02 5:18 
AnswerRe: How do I call the choose folder dialog Pin
Michael Dunn1-Oct-02 15:12
sitebuilderMichael Dunn1-Oct-02 15:12 
GeneralRe: How do I call the choose folder dialog Pin
Jose Cruz2-Oct-02 3:47
Jose Cruz2-Oct-02 3:47 
Yes, I have the following Function wich calls the BROWSEINFO API, but when I run this on Win98 I get an exception, but on winME everything works OK. Can somebody help me solve this problem.Confused | :confused:


BOOL folderDialog(const HWND parent, const char *topic, char *result, const bool allowNew, const int extraFlags)
{
// CoInitialize must be called to support BIF_USENEWUI.
OleInitialize(NULL);

LPMALLOC pMalloc = NULL;
LPITEMIDLIST pidl = NULL;
BROWSEINFO bi;
ZeroMemory(&bi, sizeof(BROWSEINFO));

// set the bi's default values
bi.hwndOwner = parent;
bi.lpszTitle = topic;

bi.ulFlags = BIF_STATUSTEXT | extraFlags;
if (!allowNew)
{
bi.ulFlags = bi.ulFlags;
}

pidl = SHBrowseForFolder(&bi);

if(pidl != NULL)
{
SHGetPathFromIDList(pidl, result);

// free memory
if (FAILED(SHGetMalloc(&pMalloc)))
{
throw "SHGetMalloc Failed!";
}
pMalloc->Free(pidl);
pMalloc->Release();

OleUninitialize();
return (BOOL)strlen(result);
}
OleUninitialize();
return FALSE;
}
GeneralRe: How do I call the choose folder dialog Pin
Gary R. Wheeler12-Oct-02 2:04
Gary R. Wheeler12-Oct-02 2:04 
GeneralCWindow::IsWindow // testing the member hWnd Pin
Phil.Benson1-Oct-02 3:33
professionalPhil.Benson1-Oct-02 3:33 
GeneralRe: CWindow::IsWindow // testing the member hWnd Pin
Joaquín M López Muñoz1-Oct-02 10:11
Joaquín M López Muñoz1-Oct-02 10:11 
GeneralRe: CWindow::IsWindow // testing the member hWnd Pin
Phil.Benson1-Oct-02 21:43
professionalPhil.Benson1-Oct-02 21:43 
GeneralRe: CWindow::IsWindow // testing the member hWnd Pin
Gary R. Wheeler12-Oct-02 2:12
Gary R. Wheeler12-Oct-02 2:12 
QuestionHow to creat an Object from with a pointer Pin
Jose Cruz30-Sep-02 7:51
Jose Cruz30-Sep-02 7:51 
AnswerRe: How to creat an Object from with a pointer Pin
Paul M Watt30-Sep-02 9:57
mentorPaul M Watt30-Sep-02 9:57 
GeneralRe: How to creat an Object from with a pointer Pin
Jose Cruz1-Oct-02 3:43
Jose Cruz1-Oct-02 3:43 
GeneralCombo heigth problem Pin
Jose Cruz30-Sep-02 7:46
Jose Cruz30-Sep-02 7:46 
GeneralRe: Combo heigth problem Pin
Paul M Watt30-Sep-02 10:00
mentorPaul M Watt30-Sep-02 10:00 
GeneralRe: Combo heigth problem Pin
Jose Cruz1-Oct-02 3:51
Jose Cruz1-Oct-02 3:51 
GeneralRe: Combo heigth problem Pin
Ed Gadziemski1-Oct-02 4:06
professionalEd Gadziemski1-Oct-02 4:06 
GeneralRe: Combo heigth problem Pin
Jose Cruz1-Oct-02 5:16
Jose Cruz1-Oct-02 5:16 
QuestionSTL reference? Pin
User 988527-Sep-02 6:53
User 988527-Sep-02 6:53 
AnswerRe: STL reference? Pin
RedZenBird27-Sep-02 8:18
RedZenBird27-Sep-02 8:18 
Generalatl full control Pin
Anonymous23-Sep-02 18:05
Anonymous23-Sep-02 18:05 
GeneralRe: atl full control Pin
Todd Smith24-Sep-02 7:03
Todd Smith24-Sep-02 7:03 

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.