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
J

Javed Akhtar Ansari

@Javed Akhtar Ansari
About
Posts
6
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Calling .NET DLL from MFC App
    J Javed Akhtar Ansari

    You can do this. you just need to add a reference to the dll in the Proect\Property window under the COmmon Property\Refernece link. Click to the add new reference button and browse to the you .net dll. You can now use your dll in MFC. You should use gcnew insteasd of new for creating an object to a managed class.

    Javed A Ansari Software Developer Hyderabad, India

    C / C++ / MFC csharp c++ question

  • Problem while using IFilter for indexing
    J Javed Akhtar Ansari

    Hi Dear, I am trying to index metadata for doc file for indexing purpose using IFilter implementation. I have the OffFilter.dll which implements IFilter for office documents like .doc etc. I am able to load the filter but the problem is it is only retrieving the contents of the file. I want other data like size of the file etc which it is not returning. Below is the code snippet =============================== CComQIPtr pFilterText; //Initialize the COM LIB if ( FAILED( ::CoInitialize( NULL ) ) ) return ; HRESULT hr; CLSID clsId; IFilter * pFilter; WCHAR * cPath = _T("D:\\Projects\\NBS\\Development items for Oasys post release 1.0.0.46 (RasterX issues).doc"); hr = ::LoadIFilter(cPath, NULL, (void**)&pFilter ); //LoadIFilter uses a means such as CoCreateInstance() to create the filter and then calls IPersistFile::Load with the name of the specified file. if ( FAILED( hr ) ) { return ; } CComQIPtr pPersistFile( pFilter ); SCODE ret = 0; FULLPROPSPEC *fullPropSpec1, *fullPropSpec2; fullPropSpec1 = new FULLPROPSPEC; fullPropSpec2 = new FULLPROPSPEC; GUID guidPropSet = PSGUID_STORAGE; fullPropSpec1->guidPropSet = guidPropSet; fullPropSpec1->psProperty.ulKind = PRSPEC_PROPID; fullPropSpec1->psProperty.propid = PID_STG_CONTENTS ; fullPropSpec2->guidPropSet = guidPropSet; fullPropSpec2->psProperty.ulKind = PRSPEC_PROPID; fullPropSpec2->psProperty.propid = PID_STG_SIZE; FULLPROPSPEC* pArrFPS [] = {fullPropSpec1, fullPropSpec2}; ULONG flags = 0; ULONG grFlags = IFILTER_INIT_CANON_PARAGRAPHS | IFILTER_INIT_APPLY_INDEX_ATTRIBUTES | IFILTER_INIT_HARD_LINE_BREAKS | IFILTER_INIT_CANON_HYPHENS | IFILTER_INIT_CANON_SPACES; sizeof(FULLPROPSPEC); ret = pFilter->Init(grFlags ,2 , *pArrFPS, &flags ); ATLASSERT( SUCCEEDED( ret ) ); STAT_CHUNK statChunk; WCHAR szText[1024] =_T(""); ULONG lLength = 1024; ret = 0; CString str; bool bDone = false; while(1) { size_t s = sizeof(grFlags); ret = pFilter->GetChunk( &statChunk ); if(statChunk.attribute.psProperty.propid == 12) AfxMessageBox("Size retrived"); if(statChunk.attribute.psProperty.propid == 19) AfxMessageBox("Content retrived"); } I doubt I am passing wrong attributes to thr IFilter::Init() function. Can anybody please help me? Let me know if you need more info and a sample project also.

    Javed A Ansari Software Developer Hyderabad, India

    C / C++ / MFC help database com question announcement

  • How to enable Drag and Drop for tree view
    J Javed Akhtar Ansari

    Hi, I want to enable drag and drop for tree view. I used DragAcceptFile(TRUE) in the tree view and that worked fine for explorer folder. My other requirement is the drag and drop should also work for email attachments say for outlook or gmail account. To clarify I want to drag an attachement from an email to a node in the treeview. Unfortunately when I am trying to do this it is not enabling and no message is being fired. can anybody help me please?

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

  • Is there an equivalent to CString Format in std::string ?
    J Javed Akhtar Ansari

    One way is convert std::string to CString using marshalling

    C / C++ / MFC question

  • I Need to make the CListCtrl non sortable at run time
    J Javed Akhtar Ansari

    Hi Dear, I need to make the report view of the list control non sortable( Disable Sorting) at run time. But i could not find out any API. I tried to set LVS_NOSORTHEADER in PreCreateWindow() but it is making the list view non sortable all the time. I need to make it Non soratble only at run time. Like if I click on a particular node in a tree view then the list view dispalyed corrresponding to that should be non sortable. Can Any body help me

    C / C++ / MFC algorithms data-structures json help

  • I Need to make the CListCtrl non sortable at run time
    J Javed Akhtar Ansari

    Hi Dear, I need to make the report view of the list control non sortable( Disable Sorting) at run time. But i could not find out any API. Can Any body help me:(

    Managed C++/CLI algorithms json help
  • Login

  • Don't have an account? Register

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