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
A

Ash_VCPP

@Ash_VCPP
About
Posts
105
Topics
39
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Com With multiple reference conflict
    A Ash_VCPP

    Ok let me explain you the problem in detail... i am using msscript.ocx to get script support, now i am using one com dll and using its interface and adding interface object in script object, now script is using these object without initializing it, now i have same application running multiple times on same machine repeating the process, but some times vbscript doesnt acknoledge the interface objects. Example:

    m_ScriptObj.AddObject("DataIn", DataIn, false);
    m_ScriptObj.AddObject("DataOut", DataOut, false);
    m_ScriptObj.AddObject("Parser", Parser, false);
    m_ScriptObj.AddObject("Setting", Setting, false);

    now suppose i am using DataIn object inside my vbscript, and here comes the Inconsistent behaviour.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC com tutorial

  • Com With multiple reference conflict
    A Ash_VCPP

    Actually i want to ask that can it cause any coflict... in my situation: Some times i am not able to use the method of the interface object. like application doesnt acknowledge the object and returns without performing the task.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC com tutorial

  • Com With multiple reference conflict
    A Ash_VCPP

    Hi All, I am using one com dll and have multiple clients on the same machine which are creating pointers for same interface, so is there can be any conflict. Example: SomeComComponentLib::IsomeInterface objInterfaceptr; .....create instance Now all the client applications are using objInterfaceptr in same way...Please provide me some suggestion to avoid conflict.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC com tutorial

  • Creating Multiple instances for com object problem
    A Ash_VCPP

    Hi All, I am using one com dll and have multiple clients on the same machine which are creating pointers for same interface, so is there can be any conflict. Example: SomeComComponentLib::IsomeInterface objInterfaceptr; .....create instance Now all the client applications are using objInterfaceptr in same way...Please provide me some suggestion to avoid conflict.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    COM com help tutorial

  • Calling javascript function from VBscript
    A Ash_VCPP

    How to call Javascript function in ASPX page through VBScript. I am using http stuff to get page from server, now on clicking some button on the page I am getting a popup which is not being requested through any URL. But is being called through javascript. Please see the example below: xmlhttp.post someurl xmlhttp.send writetodisk(xmlhttp.responsetext) Now in this how should i call that javascript function to handle the popup????

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    Visual Basic tutorial javascript sysadmin question

  • How to get Time difference
    A Ash_VCPP

    Hi all, i am using Coledatetime class to find out current time can anyone please tell me that how to get difference between two time values.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC tutorial

  • Using Zend library in vc++
    A Ash_VCPP

    Hi Frank, Can i use Zend library to do the same because i have done some rnd on it. so if u know anything about it yhen please let me know.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC php c++ tools tutorial

  • Using Zend library in vc++
    A Ash_VCPP

    Hi All, Can anyone provide me example for using zend library in vc++. I have to pass c++ object to php script is my requirement. looking ahead for reply.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC php c++ tools tutorial

  • Calling php script from vc++
    A Ash_VCPP

    yes i am actually looking for the second logic of yours.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC c++ java php tools question

  • Calling php script from vc++
    A Ash_VCPP

    Hi All, I have to call php script from my vc++ code, i have done this with java script and vb script through msscript.oct but i dont have any idea that how can i do the same with php script, if someone has any idea then please suggest me.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC c++ java php tools question

  • COM DLL ProgID is not created
    A Ash_VCPP

    Hi All, i have created one com component type library, after registring it it is showing entry in CLSID but ProgID has not been created(seen in regedit),and i am unable to create instance for this object.i am trying two possible ways:- HRESULT hres1 = CLSIDFromProgID(OLESTR("ScriptObj.ScriptObj"), &clsid); and HRESULT hres = sobj.CreateInstance("{7B10869E-824C-4BB4-B344-73AC5AF9E1E}"); but failing in both the cases.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC com

  • Using COM Object Invalid Pointer Error
    A Ash_VCPP

    Hi Jeff, I think the helpstring which we pass in idl file will be the progID please let me know if i am wrong,So here i am using below line to get the class id:- HRESULT hres1 = CLSIDFromProgID(OLESTR("ScriptObj 1.0 Type Library"), &clsid); But still i am getting the same error.I have seen registry entry for my dll and its there with the string i mentioned in above function.Please provide me some suggestions on this.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC com help

  • Using COM Object Invalid Pointer Error
    A Ash_VCPP

    But i think initializing COM object is different from normal class, and if not then can you please show me few lines of code to initialize COM object, Because i am wondering with google since last two dyas.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC com help

  • Using COM component invalid pointer error
    A Ash_VCPP

    But from the library i am getting two things: 1.IScriptObj 2.IScriptObjptr So what else i can try.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    COM com help

  • Using COM Object Invalid Pointer Error
    A Ash_VCPP

    Yes but i tried many ways as you can see it in commented code to initialize it, but getting error HRESULT value= -2147221164. can you please suggest me how can i initialize com object with example regards of my code.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC com help

  • Using COM component invalid pointer error
    A Ash_VCPP

    Hi KarstenK, I am getting value of hresult= -2147221164 Please find the code below: HRESULT hr = CoInitialize(0); //CoCreateInstance( SCRIPTOBJLib::IScriptObjPtr sobj; //sobj->QueryInterface(IId_,void* &vp); //HRESULT hRes = CComObject<CScriptObj>::CreateInstance(&sobj); //CreateInstance(NULL,IID_IUnknown,(void*)&vp); HRESULT hres = sobj.CreateInstance ( __uuidof(SCRIPTOBJLib::IScriptObj) ); //HRESULT hres = sobj.CreateInstance("ScriptObj 1.0 Type Library"); sobj->SetLanguage((unsigned short *)"VBScript"); CoUninitialize();

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    COM com help

  • Using COM component invalid pointer error
    A Ash_VCPP

    Hi All, I have created COM component(dll) and created one client to use it, Please finnd the code of client:-

    HRESULT hr = CoInitialize(0); //CoCreateInstance( SCRIPTOBJLib::IScriptObjPtr sobj; //sobj->QueryInterface(IId_,void* &vp); //HRESULT hRes = CComObject<CScriptObj>::CreateInstance(&sobj); //CreateInstance(NULL,IID_IUnknown,(void*)&vp); //HRESULT hres = sobj.CreateInstance ( __uuidof(SCRIPTOBJLib::IScriptObj) ); //HRESULT hres = sobj.CreateInstance("ScriptObj 1.0 Type Library"); //at this point i am getting the error sobj->SetLanguage((unsigned short *)"VBScript"); CoUninitialize();

    Please give me some solutions coz i tried every possible way.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    COM com help

  • Using COM Object Invalid Pointer Error
    A Ash_VCPP

    Hi All, I have created COM component(dll) and created one client to use it, Please finnd the code of client:-

    HRESULT hr = CoInitialize(0);
    //CoCreateInstance(
    SCRIPTOBJLib::IScriptObjPtr sobj;
    //sobj->QueryInterface(IId_,void* &vp);
    //HRESULT hRes = CComObject<CScriptObj>::CreateInstance(&sobj);
    //CreateInstance(NULL,IID_IUnknown,(void*)&vp);
    //HRESULT hres = sobj.CreateInstance ( __uuidof(SCRIPTOBJLib::IScriptObj) );

    	//HRESULT hres = sobj.CreateInstance("ScriptObj 1.0 Type Library");
    	//at this point i am getting the error
    	sobj->SetLanguage((unsigned short \*)"VBScript");
    	CoUninitialize();
    

    Please give me some solutions coz i tried every possible way.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC com help

  • COM DLL ERROR error LNK2001: unresolved external symbol "public: virtual long __stdcall
    A Ash_VCPP

    Yes Rajesh i was doing the same, but after removing these functions now i didnt get linking error. But now only i have created one client and importing the dll, but when i am trying to use methoda ( mylib:: ) i am not getting any methods, so can you please tell me what changes i should make in my dll. thanks for your support.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC com help question announcement

  • COM DLL ERROR error LNK2001: unresolved external symbol "public: virtual long __stdcall
    A Ash_VCPP

    Hi Rajesh, Yes is an ATL COM DLL.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C / C++ / MFC com help question announcement
  • Login

  • Don't have an account? Register

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