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
K

KevinXLi

@KevinXLi
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to create a browse file dialog which can select files longer then MAX_PATH
    K KevinXLi

    Windows not support files longer than 259.

    TCHAR lpstrFilename[MAX_PATH]="";
    OPENFILENAME ofn;
    CString pathname;
    CString filename;
    int nTerm=0;
    char stemp[255]={0};
    TCHAR *p;
    memset(&ofn,0,sizeof(OPENFILENAME));
    ofn.lStructSize=sizeof(OPENFILENAME);
    ofn.lpstrFile=lpstrFilename;
    ofn.hwndOwner=m_hWnd;
    ofn.nMaxFile=MAX_PATH*2;
    ofn.lpstrFilter="All files(*.*)\0*.*\0";
    if(WINVER >= 0x0400)
    ofn.Flags=OFN_ALLOWMULTISELECT|OFN_EXPLORER|OFN_LONGNAMES|OFN_FILEMUSTEXIST;
    else ofn.Flags=OFN_FILEMUSTEXIST;
    ofn.lpstrTitle="GetOpenFileName";
    ofn.nFilterIndex=0;
    if(GetOpenFileName(&ofn))
    {
    pathname=lpstrFilename;
    if(pathname.Right(1)!="\\")pathname+="\\";
    for(int i=0;;i++)
    {
    if(lpstrFilename[i]==0)
    {
    nTerm++;
    if(lpstrFilename[i+1]==0)
    {
    if(nTerm==1)
    m_FileList.AddString(lpstrFilename);
    break;
    }
    else
    {
    p=&(lpstrFilename[i+1]);
    strcpy(stemp,p);
    m_FileList.AddString(pathname+stemp);
    }
    }
    }
    }

    C / C++ / MFC c++ com help tutorial question

  • [Message Deleted]
    K KevinXLi

    Paul Conrad wrote:

    Have you been able to do inline assembly with SSE instructions under VC6 before?

    Of course!

    C / C++ / MFC

  • [Message Deleted]
    K KevinXLi

    Paul Conrad wrote:

    Have you tried with the /arch:SSE flag set with full optimization?

    My compiler is VC6(SP5),not support this flag:doh: if like as "_asm{ movaps xmm1,xmm2 ...}" ,will Okey!(I'm sorry for my poor English)

    C / C++ / MFC

  • [Message Deleted]
    K KevinXLi

    Paul Conrad wrote:

    What parts of your code do you want to do this to?

    ConvertRGB2HSV(...) is too slow.I want to rewrite this function using SSE (C++ code with inline Assembly ,like as: _asm{ movaps xmm1,xmm2 ... })

    C / C++ / MFC

  • [Message Deleted]
    K KevinXLi

    [Message Deleted]

    C / C++ / MFC
  • Login

  • Don't have an account? Register

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