caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Nicolas Cannasse" <warplayer@free.fr>
To: "Samuel Lacas" <Samuel.Lacas@trusted-logic.fr>,
	<caml-list@pauillac.inria.fr>
Subject: Re: [Caml-list] [OCAMOLE] problem with guid
Date: Thu, 22 Aug 2002 13:54:54 +0200	[thread overview]
Message-ID: <001101c249d2$bae9f5d0$0700a8c0@warp> (raw)
In-Reply-To: <20020822133140.A4642@ouessant.trusted-logic.fr>

> I found the following problem with the last ocamole-pre library:
>
> # #load "ocamole.cma";;
> # open Ocamole;;
> # guid_of_string;;
> - : string -> Ocamole.guid = <fun>
>
> Then, guid_of_string "something" crashes the runtime interpreter.
> I have the log of the system, if that can be of any help.

Thanks for the report.
OCamole haven't yet been tested under the toplevel.

> The function add_label should allow to create a new label object to
> the (list of shapes of some) slide. However, I do not manage to find
> what are the "orientation:guid" parameter possible values ?

Note that ocamole can't really answer to theses questions. You should try to
figure out how you would to that in VB and then translate into OCaml ( if
find somewhere the PowerPoint VBScript Help )

> guid_of_string and string_of_guid seem to be the only available
> functions to manipulate guid, but then I discovered that the
> string_of_guid crashes.

True.
a GUID is an unique identifier ( something like this :
{DA936B63-AC8B-11D1-B6E5-00A0C90F2744} ) which can represent a COM class
or... something else... There is a also way to retreive the guid from an
name ( such as "Excel.Application" ) : "guid_of_progid"

> I tried to retrieve information on already created objects, but most
> of the call to functions with return types "guid" failed (some
> exception was thrown from the COM side, stating "Bad return type", or
> something similar). Other methods worked (that is, any that does not
> need or return a guid), by the way.
>
> I suspect that the olegen possibly created a wrong COM interface here.

Seems like it does not come from the the generated interface but from the
type checking of returned values.
I'll invistigate this point.

Bye
Nicolas Cannasse

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      reply	other threads:[~2002-08-22 11:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-22 11:31 Samuel Lacas
2002-08-22 11:54 ` Nicolas Cannasse [this message]

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='001101c249d2$bae9f5d0$0700a8c0@warp' \
    --to=warplayer@free.fr \
    --cc=Samuel.Lacas@trusted-logic.fr \
    --cc=caml-list@pauillac.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).