RE: COM

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QnJpYW4gUG9z?=

    RE: COM

    I believe this is the COM system not being able to locate your DLL.
    Change your call to regasm to:
    regasm AlicjaKomax.dll /codebase:Alicja Komax.dll
    (running from command prompt in that path, or include the path in the call)
    Alternatively, install the dll in the GAC.
    Hope this helps
    Brian

    "Jacek Jurkowski" wrote:
    What do I have to do to make COM visible library?
    >
    I made a AlicjaKomax.dll with ComVisibility set to true
    in sollution properties. In some circumstances I cannot
    use "Register for COM" setting so I just build a dll with
    one class inside:
    >
    namespace Alicja.AlicjaKo max
    {
    [Guid("42149a77-cbd3-49ec-a58b-aedd7a71ea81")]
    public interface KomaxInterface
    {
    String Weryfikuj(Strin g pPlikDefinicji, String pSerwer, String
    pBazaDanych, Boolean pZintegrowaneLo gowanie,
    String pUzytkownik, String pHaslo, String pListaTabel, Boolean
    pCichyTryb, Boolean pBrakMozliwosci Przerwania);
    }
    >
    [Guid("27e83ebf-fa02-47db-a896-420324ffeb65"),
    InterfaceType(C omInterfaceType .InterfaceIsIDi spatch)]
    public interface KomaxEvents
    {
    }
    >
    [Guid("d07618ed-3126-46e5-ad92-9f333b7f85b8"),
    ClassInterface( ClassInterfaceT ype.None),
    ComSourceInterf aces(typeof(Kom axEvents))]
    public class Komax : KomaxInterface
    {
    public String Weryfikuj(Strin g pPlikDefinicji, String pSerwer,
    String pBazaDanych, Boolean pZintegrowaneLo gowanie,
    String pUzytkownik, String pHaslo, String pListaTabel, Boolean
    pCichyTryb, Boolean pBrakMozliwosci Przerwania)
    {
    }
    }
    }
    >
    I register that dll with regasm -tlb:AlicjaKomax .tlb AlicjaKomax.dll command
    and RegAsm returns
    a success of that operation. But every time I'm trying to use my new library
    from FoxPro i got
    message. COM ERROR: System Cannot find the file specified. What else do i
    have to do, to export
    my class to COM properly?
    >
    --
    ------------------------------------------
    Jacek Jurkowski - Datacomp
    >
Working...