Re: NewObject and unregistered COM

From: Thierry (tper_NOSPAM_at_vfemail.net)
Date: 09/23/04


Date: Thu, 23 Sep 2004 15:07:39 +0200

Build EXE ou APP

oTime = NewObject('timeclass','timelib.vcx','realtime.exe')

-- 
Thierry
"George" <SpamMyAss@Mailinator.com> a écrit dans le message de news: 
O8ipkwWoEHA.2636@TK2MSFTNGP09.phx.gbl...
> 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: Mobile Service & Auto Start
    ... SYSTEMTIME is declared wrong. ... have never needed to write an app like this and I just figured ... just very dumb about the CeRunAppAtTime call and why it may not ... So I have an exe that I start 5 min after I push a button. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Mobile Service & Auto Start
    ... registry Init key is not going to work reliably. ... have never needed to write an app like this and I just figured ... I just played with what exe inits ... just very dumb about the CeRunAppAtTime call and why it may not ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Mobile Service & Auto Start
    ... The RegRestoreFile API is only supported by the object store-based registry. ... have never needed to write an app like this and I just figured ... So I have an exe that I start 5 min after I push a button. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Manifests and requestedExecutionLevel
    ... The existing app is a single executable, ... Since you already have the small .exe running, ... And Admin user priviledge is High MIC. ... The manifest has the capability of telling Vista that it needs to be started ...
    (microsoft.public.vc.mfc)