Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Get groups and the number of associated users in that group in a system ? Pin
Madhu Nair12-May-09 20:50
Madhu Nair12-May-09 20:50 
QuestionProblem in using toolbar. Pin
Le@rner12-May-09 19:47
Le@rner12-May-09 19:47 
Question[Message Deleted] Pin
lek25812-May-09 19:22
lek25812-May-09 19:22 
JokeRe: Creating ISO9660 Image File(URGENT PLEASE) Pin
Michael Schubert13-May-09 0:15
Michael Schubert13-May-09 0:15 
GeneralRe: Creating ISO9660 Image File(URGENT PLEASE) [modified] Pin
enhzflep13-May-09 5:15
enhzflep13-May-09 5:15 
QuestionTo read a complete string Pin
Pankaj D.Dubey12-May-09 18:52
Pankaj D.Dubey12-May-09 18:52 
AnswerRe: To read a complete string Pin
Chandrasekharan P12-May-09 19:10
Chandrasekharan P12-May-09 19:10 
AnswerRe: To read a complete string Pin
Madhu Nair12-May-09 19:20
Madhu Nair12-May-09 19:20 
AnswerRe: To read a complete string Pin
«_Superman_»12-May-09 19:31
professional«_Superman_»12-May-09 19:31 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 19:50
Pankaj D.Dubey12-May-09 19:50 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 20:03
professional«_Superman_»12-May-09 20:03 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 20:16
Pankaj D.Dubey12-May-09 20:16 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 21:05
professional«_Superman_»12-May-09 21:05 
GeneralRe: To read a complete string Pin
Madhu Nair12-May-09 21:14
Madhu Nair12-May-09 21:14 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 21:28
Pankaj D.Dubey12-May-09 21:28 
GeneralRe: To read a complete string Pin
Chandrasekharan P12-May-09 21:54
Chandrasekharan P12-May-09 21:54 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 21:55
professional«_Superman_»12-May-09 21:55 
GeneralRe: To read a complete string Pin
Rajesh R Subramanian12-May-09 22:39
professionalRajesh R Subramanian12-May-09 22:39 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 22:49
professional«_Superman_»12-May-09 22:49 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 22:40
Pankaj D.Dubey12-May-09 22:40 
GeneralRe: To read a complete string Pin
«_Superman_»12-May-09 22:56
professional«_Superman_»12-May-09 22:56 
GeneralRe: To read a complete string Pin
Pankaj D.Dubey12-May-09 23:04
Pankaj D.Dubey12-May-09 23:04 
QuestionCustomised Browse for folder dialog problem Pin
VC++Maniac12-May-09 18:47
VC++Maniac12-May-09 18:47 
QuestionCut and Drag and Drop File/Folder Path Pin
MsmVc12-May-09 18:19
MsmVc12-May-09 18:19 
AnswerRe: Cut and Drag and Drop File/Folder Path Pin
enhzflep12-May-09 19:46
enhzflep12-May-09 19:46 
In a project from some time back, I used the following code. You'll have to modify it so that all of the filenames are retrieved. (This code only retrieved the first one)

// called after a WM_DROPFILES event to determine the number of files
// that were dropped
UINT getDroppedFilesCount(HANDLE hdrop)
{
 UINT queryIndex = -1;
 char returnBuffer[MAX_PATH] = "";
 int bufferSize = MAX_PATH;
 return DragQueryFile((HDROP)hdrop, queryIndex, returnBuffer, bufferSize);
}

// only retrieves the first filename from a list of
// files that have been dragged-and dropped. We can only
// open 1 project file (AXT) at a time, so to retrieve more
// than 1 name is unneccesary
void getDroppedFileName(HANDLE hdrop, char *DestBuffer)
{
 UINT queryIndex = 0;
 char returnBuffer[MAX_PATH] = "";
 int bufferSize = MAX_PATH;
 DragQueryFile((HDROP)hdrop, queryIndex, returnBuffer, bufferSize);
 strcpy(DestBuffer, returnBuffer);
}

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.