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

Jahnson K

@Jahnson K
About
Posts
18
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to Rreference COM object(tlb file) in VC++
    J Jahnson K

    Thank you all, I am able to get the COM object. There was couple of mistates I was doing while creating CoCreateInstance. Now it works fine. Thanks JK

    COM com c++ tutorial

  • How to Rreference COM object(tlb file) in VC++
    J Jahnson K

    Hi All, I found out the solution for error C2504: 'AnyObject' : base class undefined My tlb is dependent on some other tlb so, what i did is I #import the base tlb before importing my tlb. It complies fine. There are no errors. But, I am not able to get pointer to my COM object, when I am running following sample code CoInitialize(NULL); IMyComObject pObject(_uuidof(MyComObjectName)); I am getting following error in CoCreateInstance method 0x80040154 Class Not Registered I checked the registry, there is an entry for my typelib. I am not sure why it is not able find the class. Any suggestions/help please.. Thanks in advance JK

    COM com c++ tutorial

  • How to reference tlb file in VC++
    J Jahnson K

    Hi Arman, I found out the solution for error C2504: 'AnyObject' : base class undefined My tlb is dependent on some other tlb so, what i did is I #import the base tlb before importing my tlb. It complies fine. There are no errors. But, I am not able to get pointer to my COM object, when I am running following sample code CoInitialize(NULL); IMyComObject pObject(_uuidof(MyComObjectName)); I am getting following error in CoCreateInstance method 0x80040154 Class Not Registered I checked the registry, there is an entry for my typelib. I am not sure why it is not able find the class. Any suggestions/help please.. Thanks in advance JK

    C / C++ / MFC com c++ tutorial

  • How to reference tlb file in VC++
    J Jahnson K

    Hi Arman, Thanks for the sample code I did import my tlb file with rename_namespace("MYNAMESPACE") option I got following two compilation errors 1) error C2664: '_com_issue_errorex' : cannot convert parameter 2 from MYNAMESPACE::MYCLASS *const ' to 'IUnknown *' 2) error C2504: 'AnyObject' : base class undefined I tried import using following command #import "C:\temp\Mytlb.tlb" rename_namespace("MYNAMESPACE") raw_interface_only The first compliation error went off but the second error error C2504: 'AnyObject' : base class undefined still exists. When I see my tlh file my class is deriving from AnyObject base class. I am not sure why it is deriving from AnyObject? Is there any base class called "AnyObject" in C++? If yes what are the include files i need to include? Please help me. Thanks in advance. Regards JK

    C / C++ / MFC com c++ tutorial

  • How to Rreference COM object(tlb file) in VC++
    J Jahnson K

    Hi Sohail, Thanks for the good article. And thanks to pnp for giving the sample code. I did import my tlb file with raw_interface_only option. #import "C:\temp\Mytlb.tlb" raw_interface_only I am facing following compilation error in *.tlh file. error C2504: 'AnyObject' : base class undefined When I see my tlh file my class is deriving from AnyObject base class. I am not sure why it is deriving from AnyObject? Is there any base class "AnyObject" in C++? If yes what are the include files i need to include? Please help me. Thanks in advance. Regards JK

    COM com c++ tutorial

  • How to Rreference COM object(tlb file) in VC++
    J Jahnson K

    Thanks Sohail, Thanks for the good article. I will implement and see. Thanks JK

    COM com c++ tutorial

  • How to reference tlb file in VC++
    J Jahnson K

    Hi All, I have generated a tlb file through idl for the implementation of COM. I want to use this COM object in my VC++ code. Anybody know how to reference tlb file in VC++ code. For VB I can directly reference the tlb file, but I dont dont know is there any way we can reference tlb file in my VC++ code and start using the methods inside COM object Thanks in Advance JK Reply·

    C / C++ / MFC com c++ tutorial

  • How to Rreference COM object(tlb file) in VC++
    J Jahnson K

    Hi All, I have generated a tlb file through idl for the implementation of COM. I want to use this COM object in my VC++ code. Anybody know how to reference tlb file in VC++ code. For VB I can directly reference the tlb file, but I dont dont know is there any way we can reference tlb file in my VC++ code and start using the methods inside COM object Thanks in Advance JK

    COM com c++ tutorial

  • What is the SafeArrayGetElement Equalent method in Unix
    J Jahnson K

    Hi, I am getting error while compling my C++ code when I am using SafeArrayGetElement method in Unix.It is complining successfully in Windows. Is there any equalent method for SafeArrayGetElement for getting each element from safearray in Unix enviroment? Thanks in Advance JK

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

  • Ho to generate *.chm file from html files
    J Jahnson K

    Hi All, I have list of html files for online documentation of VBA. Can any one tell me how to generate *.chm file from html files. I am trying to get Dynamic Help using Ctrl+F1 using chm file. Also how to link the chm file to Ctrl+F1 key? Thanks In Advance.

    Visual Basic html help tutorial question

  • How to Get Dynamic Help using using Ctrl+F1 for VBA APIs
    J Jahnson K

    Hi All, I have developed some methods in VBA. I am trying to get Dynamic Help using Ctrl+F1 for these methods. I am not getting how to develop Dymanic Help for these APIs Can any one help me on this. Thanks and Regards Jahnson

    Visual Basic help tutorial

  • How to Convert LPTSTR to string class in VC++
    J Jahnson K

    Hi Mark, Thanks for the reply. I have checked the ID number its correct. And I have included resource file in the workspace and I have included resource header in my *.cpp. I could complie successfully. When I debug and see the return type of findresource() it is NULL. Do u any idea how to fix this. Thanks in advance. JK

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

  • How to Convert LPTSTR to string class in VC++
    J Jahnson K

    Hi Arman and Mark, Thanks a lot. Its working fine with wstring for me.There are no compilation errors now. But I am having one more problem. I am using text resource file in my VC++ workspace. I have included *.rc and *.h file. but I am not able to get the handle to resource file. Following is the sample code. TCHAR sResName[5] = _T("#103"); TCHAR sRestype[12] = _T("MY_RESOURCE"); HRSRC hres = FindResource(NULL, sResName, sRestype); HGLOBAL hbytes = LoadResource(NULL, hres); LPVOID pdata = LockResource(hbytes); LPBYTE sData = (LPBYTE)pdata; LPTSTR sXml = (LPTSTR)sData; wstring strXml(sXml); In the above code i am not getting hres pointer. The address of hres is null. Do u have any idea why I am not getting the pointer to resource file using FindResource(). I have included the resource file in the header files folder. Is there any better way of doing the same? Thanks in advance JK

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

  • How to Convert LPTSTR to string class in VC++
    J Jahnson K

    Hi All, Can any one tell me how to convert LPRSTR data type to string date type in VC++. I am doing in the following way. LPTSTR testLpt; // this I am getting from some method string testStr = string(testLpt); I am getting type cast error. Can any tell me how to do this? Thanks in advance. Regards, JK

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

  • How to Complile *.bas file in VB.NET
    J Jahnson K

    Hi All, Thank you very much for all your help.. I think its good idea to rewrite the code in VB.NET. Thank you all JN

    Visual Basic csharp tutorial question workspace

  • How to Complile *.bas file in VB.NET
    J Jahnson K

    Thank you very much for response. The *.bas file contains VB code. When I copy *.bas file content to my VB.NET workspace *.vb file and compile it shows many error.I am not able to resolve those error. Is there any otherway we can compile *.bas file and use it VB.NET. I dont have previous version of VB, can you please tell me how to compile *.bas file to generate exe and run it has standalone utility? Thanks in Advance JN

    Visual Basic csharp tutorial question workspace

  • How to Complile *.bas file in VB.NET
    J Jahnson K

    Hi All, I have vb code in the form of temp.bas file. I want to use that in my VB.NET workspace. Can any one tell me how to do this? Thanks in Advance JN

    Visual Basic csharp tutorial question workspace

  • Unable to Stat Debugging - Microsoft Development Environment
    J Jahnson K

    Hi All, I have created a sample workspace using Microsoft Visual C++ .Net( Version 1.0). I could compile the programe successfully but when i am trying to debug/run the programe i am getting the following error. Unable to Start Debugging. Access is denied. Verify that you are an administartor or member of "Debuggers user group" on the machine you are trying to debug. Please let me know if any one have solution to overcome this problem. Thanks Nalla

    C / C++ / MFC c++ help workspace csharp debugging
  • Login

  • Don't have an account? Register

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