caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Dexterity Technologies Limited" <sender@dexteritytech.com>
To: <caml-list@inria.fr>
Subject: [Caml-list] COMer - Programming Language for Component Development
Date: Sun, 11 May 2003 05:28:36 +0800	[thread overview]
Message-ID: <200305102128.h4ALSaH12520@concorde.inria.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 2351 bytes --]

COMer - Programming Language for Component Development 



If you are a Windows Programmer, I would like to introduce something
interesting to you.
COMer is a native programming language for COM component development.
A COM component can be easily made in COMer as follow: [File:MyCom.cm]
#ifndef _MYCOM_CM
#define _MYCOM_CM

/*
 * A COM Class
 */
[ clsid = "{EF6CD47E-B844-4219-B582-6F9FE16D45F6}",
  progid = "Dexterity.MyCom1.1",
  helpstring = "Dexterity Com1 Class",
  export, unhandle ]
com CMyCom1
{
  /*
   * An Interface implemented in this class
   */
  [iid="{A123799B-1D8B-4efb-8D43-42AE582767C1}"]
  interface IMyInterface
  {
    method SetValue(int dVal)
    {
      m_dValue = dVal;
      done;
    }
    
    method GetDoubleValue(int &dVal)
    {
      dVal = m_dValue << 1;
      done;
    }  
  }
  
  /*
   * Instance variables
   */
  instvars
  {
    int m_dValue;
  }
}

#endif
The design of COMer is native to the concept of the Component Object Model
(COM) mechanism. COM classes are defined as in the way that COM specifies.
Interfaces are specified or defined within a COM class and the methods of
the interfaces are defined within the interfaces. It is simple.
A special characteristic of COMer is that the COMer compiler generates C++
source code files as its final outputs. Therefore, you can use C++ code
within the COMer classes, like Lex, Yacc or MIDL. To build the component,
what you need to do is to specify one more file only to indicate the module
of the component to build.
E.g: [File:MyCom.cmdef]
module: inprocsvr
source { MyCom.cm }
Then, by the following command line (cmc is the COMer compiler program):
> cmc MyCom.cmdef
COMer compiler will generate the following C++ files:
Main.cpp
MyCom.h
MyCom.cpp
MyCom.def
Makefile
Finally, you only need to build these C++ files by using the generated
makefile by C++ build tools. The component 'MyCom.dll' will then be made.
It's so simple!
Lets try it! You will like it!
Home Page: 
http://www.dexterity.com.hk/COMer/
Download Trial Version: 
http://www.dexterity.com.hk/COMer/Download/Download.asp
Dexterity Technologies Limited
http://www.dexterity.com.hk/


 



If you don't want to receive any more message from us, please send an
e-mail to comer@dexteritytech.com to unsubscribe. 
Please don't reply this e-mail. 
We apologize for any inconvenience caused.

[-- Attachment #2: Type: text/html, Size: 6768 bytes --]

             reply	other threads:[~2003-05-10 21:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-10 21:28 Dexterity Technologies Limited [this message]
2003-05-10 21:49 ` Paul Steckler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200305102128.h4ALSaH12520@concorde.inria.fr \
    --to=sender@dexteritytech.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).