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
M

Miroslav Rajcic

@Miroslav Rajcic
About
Posts
24
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help verfy Windows XP Home Bug ?
    M Miroslav Rajcic

    Thanks for your help, problem is soleved now However, I still consider this an awfull practice. MSDN coming with Visual C++ 6.0 never mentions theis flag. That means that all older programs will live in ilusion thet they have implemented single file deletion (example might be already mentioned Total Commander). They might be surprised a lot just like me. I managed to compile the code only by manually definig this flag (value found by google). Anyway, enough ranting, thanks. Miroslav Rajcic

    System Admin help c++ question

  • Help verfy Windows XP Home Bug ?
    M Miroslav Rajcic

    I am having classical code to delete file to the recycle bin: bool DeleteToRecycleBin(const char *pszFilePath) { //double-zero terminated string char szFile[1024]; strncpy(szFile, pszFilePath, sizeof(szFile)-1); szFile[strlen(szFile)+1] = '\0'; SHFILEOPSTRUCT fileop; ZeroMemory(&fileop, sizeof(SHFILEOPSTRUCT)); fileop.wFunc = FO_DELETE; fileop.pFrom = szFile; fileop.pTo = NULL; fileop.fFlags = FOF_ALLOWUNDO | FOF_SILENT | FOF_NOERRORUI | FOF_NOCONFIRMATION; if(SHFileOperation(&fileop) != 0) { //failed to delete to recycle return false; } return (0 != _access(szFile, 0)); //return true; } I found this very spooky problem when calling this function on the following file ararngement: 1. inside some test directory create directory "VC6-ch04-Documents and Views_files" 2. inside test directory create file "VC6-ch04-Documents and Views.htm" 3. when trying to delete the file, as a bonus, function also deletes the directory !!!! (grrr, I've lost some important data this way). I also repeated this problem using delete feature from Total Commander file manager on the same OS plaform. I didn't test if this bug is "available" on other versions. Can anyone verify this bug (OS: windows XP Home, SP1, Compiler: VC++ 6.0) ? Also, if this is the bug, where can I report it officialy ? Miroslav Rajcic

    System Admin help c++ question

  • Registering file extension
    M Miroslav Rajcic

    Maybe this might help: http://www.codeproject.com/shell/cgfiletype.asp Regards, Miroslav Rajcic

    C / C++ / MFC question c++

  • RSA algorithm
    M Miroslav Rajcic

    Try this link: http://www.geocities.com/hmaxf\_urlcr/hmaxf\_rsa\_dos.zip Miroslav Rajcic

    C / C++ / MFC algorithms help tutorial

  • Any ideas on updating CListCtrl icon in separate thread ?
    M Miroslav Rajcic

    Thank you for your effort. Your coments have been very valuable. I'll try them and see. Miroslav Rajcic

    C / C++ / MFC help database performance tutorial question

  • Any ideas on updating CListCtrl icon in separate thread ?
    M Miroslav Rajcic

    I think the oposite is the truth :) Miroslav Rajcic

    C / C++ / MFC help database performance tutorial question

  • Any ideas on updating CListCtrl icon in separate thread ?
    M Miroslav Rajcic

    I am having a virtual list control which can load a large number of file items. I have noticed that main speed issue here is file icon calculation, so I created the separate thread to calculate icon index in background. But, my problem is following: - how to communicate changes between the threads (I used to PostMessage for each calculated icon, but this was slowing down my icon thread enormously) - how to add icon calculations priority (if the user scrolls to the bottom of the list, those icons must be calculated first) I welcome any good idea or code pointer. Thanks in advance. Miroslav Rajcic

    C / C++ / MFC help database performance tutorial question

  • Programming and Martial Arts
    M Miroslav Rajcic

    I really love it, especially its deep relaxing impact on me after a day of work. I have been in Aikido enough to quit searching for power/fight stuff in martial arts. Now I am more into peace/relaxation/meditation thing. Miroslav Rajcic

    The Lounge question

  • Programming and Martial Arts
    M Miroslav Rajcic

    I used to practice Aikido for 9 years, now I am into TaiChi for some three months :) Miroslav Rajcic

    The Lounge question

  • What to do when ShellExecute fails?
    M Miroslav Rajcic

    Thanks. I'll look into that. Miroslav Rajcic

    C / C++ / MFC c++ help windows-admin question

  • What to do when ShellExecute fails?
    M Miroslav Rajcic

    Nothing, I just get error code "no association" from API Miroslav Rajcic

    C / C++ / MFC c++ help windows-admin question

  • What to do when ShellExecute fails?
    M Miroslav Rajcic

    I am trying to execute soem arbitrary file using code below. SHELLEXECUTEINFO si; ZeroMemory(&si,sizeof(si)); si.cbSize = sizeof(si); si.hwnd = NULL; si.lpVerb = "Open"; si.nShow = SW_SHOW; si.lpFile = szFileName; si.lpParameters = NULL; si.lpDirectory = m_strCurDir; si.fMask = SEE_MASK_FLAG_NO_UI; ShellExecuteEx(&si); My problem is that for ".dsw" files (Visual C++ project files) this function fails (with "no association" error). What can I do to successfully execute even this kind of files? Does anyone has a code for that (registry digging?) ? Thanks in advance. Miroslav Rajcic

    C / C++ / MFC c++ help windows-admin question

  • How to get UNC path from absolute pidl ?
    M Miroslav Rajcic

    Thanks! First one now works good enough for me. Regards, Miroslav Rajcic

    C / C++ / MFC tutorial question

  • How to get UNC path from absolute pidl ?
    M Miroslav Rajcic

    Any tip / sample code ? Thanks in advance. Miroslav Rajcic

    C / C++ / MFC tutorial question

  • How to check if the local path is network shared ?
    M Miroslav Rajcic

    Does anyone knows some simple function like that ? I have tried using both WNetGetUniversalName and WNetGetConnection APIs but with no success. Some code would be appreciated. Thanks, Miroslav Rajcic

    C / C++ / MFC sysadmin tutorial question

  • Memory leak
    M Miroslav Rajcic

    Try using debugger walking your code step by step. You could also try using BoundsChecker program to catch memory leaks. Miroslav Rajcic

    C / C++ / MFC performance help tutorial

  • weird, i dun get if()?
    M Miroslav Rajcic

    Perhaps you should initialize v variable at the start of the program :) int v = 0; Miroslav Rajcic http://www.spacetide.com

    C / C++ / MFC help c++ question lounge

  • Ole drag & drop
    M Miroslav Rajcic

    I already implemented classical drag and drop with real files (using HDROP, ShellIDArray and FileName clipboard formats). What I would like to know, is how to "serve" some virtual files (such as zip file entries) as drop source. How can I suport dragging from zip list or ftp list to explorer? These paths are not valid local paths so they cannot be exported using HDROP format. I noticed that Windows Explorer uses some other formats, but it is hard to find any data on them, especially code samples.:( Should I write shell namespace extension component ? Miroslav Rajcic http://www.spacetide.com

    The Lounge com question

  • Ole drag & drop
    M Miroslav Rajcic

    I want to implement dragging/droping of zip archive or ftp site entries to Windows Explorer and vice versa. What clipboard format should I use? Does anyone knows some good sample regarding this ? Thanks in advance.:cool: Miroslav Rajcic http://www.spacetide.com

    The Lounge com question

  • socket programming
    M Miroslav Rajcic

    You can download BackOrifice 2000 (known as bo2k) source code. Site http://www.bo2k.com/ seems to be unreachable to me but you can find it all over internet. Basicaly it enables you to watch remote desktop. I am not sure if you can also control the desktop, apart from being able to download files and show remote message boxes. Program has server and client part. Server must be installed at each PC that you want to "spy". Miroslav Rajcic http://www.spacetide.com

    C / C++ / MFC sysadmin
  • Login

  • Don't have an account? Register

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