Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: detect connection to internet without popping up dial-up Pin
Jason Henderson24-Apr-03 5:25
Jason Henderson24-Apr-03 5:25 
GeneralRe: detect connection to internet without popping up dial-up Pin
David Crow24-Apr-03 5:37
David Crow24-Apr-03 5:37 
GeneralSet Directory to save to Pin
rbeat10024-Apr-03 4:14
rbeat10024-Apr-03 4:14 
GeneralRe: Set Directory to save to Pin
Rickard Andersson2024-Apr-03 4:27
Rickard Andersson2024-Apr-03 4:27 
GeneralRe: Set Directory to save to Pin
Maximilien24-Apr-03 4:31
Maximilien24-Apr-03 4:31 
GeneralRe: Set Directory to save to Pin
rbeat10024-Apr-03 4:40
rbeat10024-Apr-03 4:40 
GeneralRe: Set Directory to save to Pin
basementman24-Apr-03 6:39
basementman24-Apr-03 6:39 
GeneralRe: Set Directory to save to Pin
Rickard Andersson2024-Apr-03 11:46
Rickard Andersson2024-Apr-03 11:46 
basementman wrote:
try this code:

Do you mean it doesn't work?
Can't try it but here is my code:

BROWSEINFOA bi;
memset(&bi, 0, sizeof(bi));
bi.hwndOwner = this->GetSafeHwnd();
bi.lpszTitle = "Select your dir";
	
LPITEMIDLIST itemList = SHBrowseForFolder(&bi);
if(!itemList) // pressed 'Cancel'
	return;

char* pathName = new char[1024];

if(!SHGetPathFromIDList(itemList, pathName))
{
	::MessageBox(NULL, "AAARRGH!! Invalid path!!!", "Error", MB_OK | MB_ICONERROR);
	return;
}


Rickard Andersson8
Here is my card, contact me later!

UIN: 50302279
E-Mail: nikado@pc.nu
Interests: C++, ADO, SQL, Winsock, 0s and 1s


GeneralCObject derived classes and Memory Leaks Pin
zakkum24-Apr-03 3:55
zakkum24-Apr-03 3:55 
GeneralADO and big tables Pin
ilgale24-Apr-03 3:54
ilgale24-Apr-03 3:54 
GeneralRe: ADO and big tables Pin
Rickard Andersson2024-Apr-03 4:24
Rickard Andersson2024-Apr-03 4:24 
GeneralRe: ADO and big tables Pin
ilgale24-Apr-03 4:35
ilgale24-Apr-03 4:35 
GeneralRe: ADO and big tables Pin
Rickard Andersson2024-Apr-03 5:33
Rickard Andersson2024-Apr-03 5:33 
GeneralRe: ADO and big tables Pin
Toni7825-Apr-03 8:01
Toni7825-Apr-03 8:01 
QuestionHow to draw a transparent icon on top of another Pin
Salvador Dali24-Apr-03 3:50
Salvador Dali24-Apr-03 3:50 
AnswerRe: How to draw a transparent icon on top of another Pin
basementman24-Apr-03 6:43
basementman24-Apr-03 6:43 
GeneralWorking Set Tuner Pin
Anonymous24-Apr-03 3:11
Anonymous24-Apr-03 3:11 
GeneralCreate a Window without lose my focus Pin
Ricky_TheBard24-Apr-03 3:10
Ricky_TheBard24-Apr-03 3:10 
GeneralRe: Create a Window without lose my focus Pin
valikac24-Apr-03 6:54
valikac24-Apr-03 6:54 
QuestionHow to embed one dialog resource to another? Pin
kydfru24-Apr-03 3:03
kydfru24-Apr-03 3:03 
AnswerRE: only a suggestion... Pin
Joan M24-Apr-03 3:18
professionalJoan M24-Apr-03 3:18 
GeneralYes! That's exactly what I want! Thanks! Pin
kydfru24-Apr-03 3:42
kydfru24-Apr-03 3:42 
GeneralWSNMP32.DLL Pin
David Cunningham24-Apr-03 2:56
cofounderDavid Cunningham24-Apr-03 2:56 
GeneralRe: WSNMP32.DLL Pin
obmit24-Apr-03 5:01
obmit24-Apr-03 5:01 
GeneralUNZDLL.DLL Pin
Dave_24-Apr-03 2:47
Dave_24-Apr-03 2:47 

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.