Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

daniel madden

@daniel madden
About
Posts
9
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • list of most recently used files in file menu
    D daniel madden

    Ok - sorry the path is shown at the bottom of the File Menu where it usually shows the most recently used files.

    C / C++ / MFC announcement

  • list of most recently used files in file menu
    D daniel madden

    thanks 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

    C / C++ / MFC announcement

  • list of most recently used files in file menu
    D daniel madden

    Hi 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

    C / C++ / MFC announcement

  • list of most recently used files in file menu
    D daniel madden

    Hi, 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

    C / C++ / MFC announcement

  • UDP Packet Creation???? - H E L P ! ! !
    D daniel madden

    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

    C / C++ / MFC database sysadmin help question

  • UDP Packet Creation????
    D daniel madden

    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

    C / C++ / MFC help sysadmin question

  • Encrypt/Decrypting Files (CR & LF chars not correct in .exes)
    D daniel madden

    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

    C / C++ / MFC help question

  • HitTest on CTreeCtrl (Dialog Based)
    D daniel madden

    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

    C / C++ / MFC data-structures help question

  • HitTest on CTreeCtrl (Dialog Based)
    D daniel madden

    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

    C / C++ / MFC data-structures help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups