Ok - sorry the path is shown at the bottom of the File Menu where it usually shows the most recently used files.
daniel madden
Posts
-
list of most recently used files in file menu -
list of most recently used files in file menuthanks for the suggestion Iain. It does indeed get quite knotty down there. For now, I have a simple workaround of setting the CRecentFileList's member variable m_nMaxDisplayLength to show longer length filenames and paths, Cheers, Daniel
-
list of most recently used files in file menuHi David, c:\my documents\my long directory\my file.doc was a simple example that gets an abreviated path of c:\my documents\...my file.doc. Thererefore c:\my documents\... is the abbreviated path of c:\my documents\my long directory\. Daniel
-
list of most recently used files in file menuHi, I am using LoadProfileSettings(5) in InitInstance to open the 5 most recently used files when my application is loaded and AddToRecentFilename(szLoadFilename) to update the MRU list with the last file loaded. It all works fine except it abbreviates the full file path e.g. c:\my documents\my long directory\my file.doc becomes c:\my documents\...my file.doc Is there a way please of preventing it from abbreviating the full file path so I get c:\my documents\my long directory\my file.doc instead of c:\my documents\...my file.doc Thanks, Daniel
-
UDP Packet Creation???? - H E L P ! ! !I need to create a UDP Packet to send to about 50 (anti-virus) Servers simultaneously. The UDP Packet will basically act as if it is sending a virus, which will trigger the anti-virus Server to Alarm us (at HQs). By the notifications we receive from the servers, we will be able to determine which Servers need immediate attention (basically the ones that didn't alert us of the virus). This is currently being done with a batch file (sending a dummy virus to the Servers), which takes entirely too long to run and get the Stats! I am new at Socket programming (obviously), but do other programming (data/file en(de)cryption, etc...). Can anyone help me??? Dan
-
UDP Packet Creation????Hi All, I need to create a UDP Packet and send it to multiple Servers (and monitor the replies that the program (Anti-Virus) will return. Basically it is to test if the servers are working correctly (basically a test virus). Replies mean its working fine...if no reply we have a problem with the server reporting the viruses. Currently being done via an ms-dos batch file and takes 45 min. (with human intervention) to complete...Thats a big waste of time!!!! I have seen a spoofing program at CodeGuru, but don't see where I can insert the proper message to make this happen... Can anyone help??? Dan
-
Encrypt/Decrypting Files (CR & LF chars not correct in .exes)Hi folks, I am writting a program that Encrypts/Decrypts files (using CFile). It works fine when I do Text files, but when I do an .exe (Decrypting), it puts a different char?? could this have to do with the way I'm reading in the File (mode)? I have tried using it in Binary Mode and still the same! NOTE: All of the characters (placement) are correct, its just that in the .exe there is NOT all of the little rectangular chars...its empty (visually) space (see below). =========================================================== MZÿÿ¸@躴 Í!¸LÍ!This program cannot be run in DOS mode. =========================================================== Here is some code: // Open the file to be read if( cfEnFile.Open( LPCTSTR(csFileName), CFile::modeReadWrite | CFile::typeBinary, &e ) ) { // Get the length of the file DWORD dwSize = cfEnFile.GetLength(); cfEnFile.SeekToBegin(); // fill the buffer with the information from file UINT nBytesRead = cfEnFile.Read( szBufRead, (UINT)dwSize); //(UINT) dwSize ); ... ... ... for (int n=0; n<(int)nBytesRead; n++) { CString csEnByte = szBufRead[n]; m_AESCrypt.TransformString(csRegUPPRead, csEnByte); csBufBytes += csEnByte; } sprintf(szBufWrite, "%s", csBufBytes); cfEnFile.SeekToBegin(); // Write the buffer to the file cfEnFile.Write( szBufWrite, (UINT)dwSize); } Is there anyone who can help!!!!! Thanks in advance! Dan
-
HitTest on CTreeCtrl (Dialog Based)Thanks Mike...That was it, I guess sometimes it takes a new set of eyes to see clearly. I actually used this before but had commented out the "GetCursorPos()" instead of leaving it there??? Thanks again, Dan
-
HitTest on CTreeCtrl (Dialog Based)I am trying to capture the Tree Item the cursor is over and when I use the below code in the "Right-Click"...It always returns NULL??? Can anyone help me??? CPoint MousePosition; GetCursorPos(&MousePosition); TVHITTESTINFO HitInfo; HitInfo.pt = MousePosition; if (m_ctrlTree.HitTest(&HitInfo) != NULL) { int Mask = TVHT_ONITEM | TVHT_ONITEMRIGHT; if (HitInfo.flags & Mask) { m_ctrlTree.Select(HitInfo.hItem, TVGN_CARET); CString csTest = m_ctrlTree.GetItemText(HitInfo.hItem); MessageBox(csTest); } } Dan