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
R

rsandeepu

@rsandeepu
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • oleview could able create instance but cocreateinstance fails.
    R rsandeepu

    Hi, I could able to create instance of the com server using oleview. But when i do the same thing in code with cocreateinstance it gives the error E_NOINTERFACE or 0x80004002. By breaking cocreate instance if found that Queryinterface return this error. How could i resolve it? Please help many thanks in advance.

    COM help com sysadmin question

  • failed accessing COM method after successful cocreateinstance.
    R rsandeepu

    Hi all, thanks for your time. the problem is solved at my end. Problem lies in importing the type library (tlb) of the COM server in to my client application. Because of which, object gets a corrupted pointer. when a member function is called it gives ACCESS VOILATION error. I actually imported the typelibrary in my Visual C++ application using "CLASS WIZARD" as mentioned @ MSDN link: http://msdn.microsoft.com/en-us/library/aa279228(VS.60).aspx Which actually caused the above problem. Later I found by importing typelibrary using simple #import "xyz.tlb" it generates two files .tlh and .tli files which also contains all the classes and member function definitions. When i used these files in my project it worked. Sorry for bothering you...... thanks and regards sandeep r.

    COM help c++ com tutorial

  • failed accessing COM method after successful cocreateinstance.
    R rsandeepu

    Some updates which i verified. I could check the typelib registration process in REGISTRY and found it to be perfect according to the procedure shown @ link : http://blogs.msdn.com/larryosterman/archive/2006/01.aspx "Minimal COM object registration" "COM registration for cross process access" "COM registration if you need a typelib" "COM registration of PROGIDs." "What registry entries are needed to register a COM object." but still the problem persists please help

    COM help c++ com tutorial

  • failed accessing COM method after successful cocreateinstance.
    R rsandeepu

    Hi redCat, Actually there are around 10 to 20 member functions in that class. I couldn't able to call any one of the functions. even the one which doesn't have any arguments. The probable reason seems to me is like the class object pointer returned by cocreateinstance(returns successfully) is accessing a memory location which is not part of the process memory area. But iam not sure. even if this is the problem i don't know how to resolve it?. please help

    COM help c++ com tutorial

  • failed accessing COM method after successful cocreateinstance.
    R rsandeepu

    Hi, i checked coInitialize and cocreateinstance they return successfull... How could i check wheter the component created and being accessed are on same thread? please help.

    COM help c++ com tutorial

  • failed accessing COM method after successful cocreateinstance.
    R rsandeepu

    Hi this is the code segment: CLSIDFromString(L"{AF684922-D245-11D3-8DE8-00A024ACAB85}", &CLSID_MSDiscMasterObj); CLSIDFromString(L"{AF684924-D245-11D3-8DE8-00A024ACAB85}", &IID_IDiscMaster); hr = CoInitialize(NULL); if(SUCCEEDED(hr)) { hr = CoCreateInstance(CLSID_MSDiscMasterObj, NULL, CLSCTX_LOCAL_SERVER, IID_IDiscMaster, (void**)&IV2WObj); if(SUCCEEDED(hr)) { VARIANT ReturnValue; ReturnValue = IV2WObj->MakeConnection(1,"VPCI",65536,0); } } it fails at method call. CoInitialize successful, cocreateinstance is also successful. the COM object is obtained as an executable. Which is sucessfully launched after executing cocreateinstance. please help

    COM help c++ com tutorial

  • failed accessing COM method after successful cocreateinstance.
    R rsandeepu

    after successful cocreateinstance. When i access a method in class it returns the error: "First-chance exception in XYZ.exe (OLEAUT32.DLL): 0xC0000005: Access Violation". By step by step debugging i found it gives this error while calling // make the call SCODE sc = m_lpDispatch->Invoke(dwDispID, IID_NULL, 0, wFlags, &dispparams, pvarResult, &excepInfo, &nArgErr); in OLEDIST2.CPP file. please help

    COM help c++ com tutorial
  • Login

  • Don't have an account? Register

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