Click here to Skip to main content
16,005,826 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Read JPEG file Pin
David Crow17-Aug-07 4:12
David Crow17-Aug-07 4:12 
QuestionActiveX Dll in ASP.NET Pin
Sinoop Sundar16-Aug-07 20:04
Sinoop Sundar16-Aug-07 20:04 
QuestionFile Monitoring Pin
GauranG Shah16-Aug-07 19:46
GauranG Shah16-Aug-07 19:46 
AnswerRe: File Monitoring Pin
Abdellatif_El_Khlifi18-Aug-07 6:46
Abdellatif_El_Khlifi18-Aug-07 6:46 
QuestionHow to Monitor the single File. Pin
GauranG Shah16-Aug-07 19:35
GauranG Shah16-Aug-07 19:35 
AnswerRe: How to Monitor the single File. Pin
Naveen16-Aug-07 20:16
Naveen16-Aug-07 20:16 
GeneralRe: How to Monitor the single File. Pin
GauranG Shah16-Aug-07 22:47
GauranG Shah16-Aug-07 22:47 
GeneralRe: How to Monitor the single File. Pin
Naveen16-Aug-07 23:44
Naveen16-Aug-07 23:44 
Gaurang Shah 033 wrote:
I dont know what to use in as the size in Buffersize parameter. so I just took 64.


some pblms in the code. i have corrected it. Check it. the pBuffer->FileName will be having the file name.

char* path = "C:\\DOCUME~1\\gaurang\\LOCALS~1\\Temp";<br />
    BOOL Success;<br />
    DWORD dwByteReturned;<br />
    int size = sizeof(FILE_NOTIFY_INFORMATION) + (MAX_PATH * 2);<br />
    FILE_NOTIFY_INFORMATION* pBuffer = (FILE_NOTIFY_INFORMATION*) new BYTE[ size ] ;<br />
    HANDLE hDir =CreateFile (   path,<br />
                                GENERIC_READ,<br />
                                FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE,<br />
                                NULL,<br />
                                OPEN_EXISTING,<br />
                                FILE_FLAG_BACKUP_SEMANTICS,<br />
                                NULL<br />
                             );<br />
    Success = ReadDirectoryChangesW( hDir,pBuffer,size,FALSE,FILE_NOTIFY_CHANGE_FILE_NAME, &dwByteReturned,NULL,NULL);<br />
    delete pBuffer;



QuestionCMenu's handle Pin
prithaa16-Aug-07 19:18
prithaa16-Aug-07 19:18 
AnswerRe: CMenu's handle Pin
Naveen16-Aug-07 21:38
Naveen16-Aug-07 21:38 
QuestionRe: CMenu's handle Pin
David Crow17-Aug-07 4:18
David Crow17-Aug-07 4:18 
QuestionApplication crashes please help. Pin
shivditya16-Aug-07 19:08
shivditya16-Aug-07 19:08 
GeneralLNK2005 Error Pin
Shajeel16-Aug-07 19:07
Shajeel16-Aug-07 19:07 
GeneralRe: LNK2005 Error Pin
shivditya16-Aug-07 19:17
shivditya16-Aug-07 19:17 
GeneralRe: LNK2005 Error Pin
Shajeel16-Aug-07 19:20
Shajeel16-Aug-07 19:20 
GeneralRe: LNK2005 Error Pin
shivditya16-Aug-07 19:25
shivditya16-Aug-07 19:25 
GeneralRe: LNK2005 Error Pin
prithaa16-Aug-07 19:33
prithaa16-Aug-07 19:33 
GeneralRe: LNK2005 Error Pin
shivditya16-Aug-07 20:01
shivditya16-Aug-07 20:01 
GeneralRe: LNK2005 Error Pin
prithaa16-Aug-07 20:48
prithaa16-Aug-07 20:48 
GeneralRe: LNK2005 Error Pin
David Crow17-Aug-07 4:20
David Crow17-Aug-07 4:20 
GeneralRe: LNK2005 Error Pin
Mark Salsbery17-Aug-07 5:18
Mark Salsbery17-Aug-07 5:18 
GeneralRe: LNK2005 Error Pin
prithaa17-Aug-07 21:10
prithaa17-Aug-07 21:10 
GeneralRe: LNK2005 Error Pin
Mark Salsbery18-Aug-07 6:57
Mark Salsbery18-Aug-07 6:57 
QuestionHow to expose bitmap from active x control Pin
yaminisridaran16-Aug-07 18:43
yaminisridaran16-Aug-07 18:43 
QuestionExcel sheet Pin
__yash__16-Aug-07 18:25
professional__yash__16-Aug-07 18:25 

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.