NewObject and unregistered COM

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: George (SpamMyAss_at_Mailinator.com)
Date: 09/23/04


Date: Thu, 23 Sep 2004 08:52:04 -0400

Hey guys

Using:

oClass = NewObject(myclass,mylib,myexe)

I can access any class inside any library without registering it as COM,
just copy it locally and use it.

Works if I build an EXE or an APP, but not for DLLs ?

Why oh why ???

Try the simplest sample: new project 'realtime', new classlib 'timelib'
with one class 'timeclass' with one method 'getTime' that returns datetime()

Now build and try exe, app and dlls

In command line:
oTime = NewObject('timeclass','timelib','realtime.exe')
? oTime.getTime()

Btw, if anyone knows a way of using fox classes without registering as
COM, please let me know, I'd appreciate it.

Thanks



Relevant Pages

  • Re: C# Exceptions
    ... I did a runtime analysis of the exe and some important DLLs as ... > signature is valid then the app can decrypt the response and process it. ... > the source code of a managed app. ... NOT FOR THE MAIN PROGRAM EXE FILE. ...
    (Pen-Test)
  • Re: Remoting and ilmerge
    ... I am seeing my remoting app fail with this error when I use ilmerge ... to repackage the exe and dlls as one exe. ... I think once you merge the DLLs together, ...
    (microsoft.public.dotnet.framework.remoting)
  • Deploying files not in the project
    ... I have a generic "Wizard-like" app that I use to run my applications. ... except that the EXE doesn't directly use any of the DLLs ... only states which files to deploy and then specifies the EXE as the app to ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Static or Shared MFC DLLs?
    ... MFC app that does nothing. ... exe is about 50KB. ... put MFC related DLLs in your directory and expect it to work. ...
    (microsoft.public.vc.mfc)
  • Re: NewObject and unregistered COM
    ... Build EXE ou APP ... > I can access any class inside any library without registering it as COM, ... > Works if I build an EXE or an APP, but not for DLLs? ...
    (microsoft.public.fox.programmer.exchange)