Use Native COM Servers with CRCWs ??

Hello Everyone,

I'm trying to get this thing working for long time now....

I have read this article many hundred times now......without any use.....

http://msdn2.microsoft.com/en-us/library/f31k2c87(VS.80).aspx

......

First Question : How to create a tlb file.......I add the COM component it adds as a Interop.something....Now when I try to say #import "something.tlb" no_namespace doesnt work....

Even I tried adding the Quartz.dll to my project and still that cant even find

#import "quartz.tlb" no_namespace

Can someone please explain the correct way to do it, rather then forwarding to different sites.. I understand MSDN is the best resource available......but is not helping me......

I'm 100%, its my fault somewhere...so hopefully somebody can tell me where

Really appreciate...

Thanks,

Harsimrat



Answer this question

Use Native COM Servers with CRCWs ??

  • Tarquin

    Harsimrat wrote:
    thanks for the answer, as I guess I ended myself in a hole starting converting my stuff to .NET, thinking will benefit but I guess not......

    Ayman wasn't being rude to you - your questions are outside the scope of these forums, and you'll have much better chances of getting useful answers if you posted in the newsgroups.



  • Lauren Lavoie

    Then If you can please let me know the way to generate tlb.....
  • Jorryt

    A simple search on msdn revealed the following link(http://msdn.microsoft.com/library/default.asp url=/library/en-us/midl/midl/_tlb.asp). Please don't depend on the forums for general issues or for learning.

    BTW, most of the questions you are asking are general win32 ones which you should use the newsgroups at http://msdn.microsoft.com/newsgroups for.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Tjeez

    I'm not being rude, just being realistic here...not to mention I love to work on MS technologies....

    The more I try to move my COM stuff I'm ending in problems....For past 3 weeks I'm trying to get a USB going, Issues arise one after another.I wanted everything in .NET way and I dont know maybe lack of my knowledge this is a painful path....

    Sometimes when you post a question, you look for an exact answer rather than being redirected to MSDN....

    If you can read everything and learn then you dont need to go to school....One Example and when you read after you understand more. As far my understanding goes.....

    I really appreciate the help, you guys provide here....and my posts are not to offend anyone or the efforts everyone has put up to get this kind of forum going....

    I'm sorry if someone found my posts offensive........

    Thanks,

    Harsimrat


  • craigclow

    Harsimrat wrote:

    It cant even find the .tlb file...I read on the MSIL Compiler still can't get to work...I was hoping somebody can give me steps to figure that out....

    Even I tried using tblimp way....same thing I cannot get through with it either....

    Thanks,

    Harsimrat

    I think you have understood this the wrong way. tlbimp.exe does not generate a tlb for you - it reads a tlb file and generates a managed wrapper DLL for you.



  • Lolik

    What are the errors you are seeing

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Yolande

    thanks for the answer, as I guess I ended myself in a hole starting converting my stuff to .NET, thinking will benefit but I guess not......
  • leok

    It cant even find the .tlb file...I read on the MSIL Compiler still can't get to work...I was hoping somebody can give me steps to figure that out....

    Even I tried using tblimp way....same thing I cannot get through with it either....

    Thanks,

    Harsimrat


  • Use Native COM Servers with CRCWs ??