Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] [OCAMOLE] problem with guid
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-22 (11:31)
From: Samuel Lacas <Samuel.Lacas@t...>
Subject: [Caml-list] [OCAMOLE] problem with guid

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.

By the way, I'm quite confused by these guid, due to my lack of deep
konwledge of COM automation/interface. For instance, olegen on
PowerPoint gave me ml-interface like the following:

   module Shapes : sig
      sigtype t = shapes [...]
      val guid : guid


      shapeval add_label : t -> orientation:guid
	 -> left:float -> top:float
	 -> width:float -> height:float -> shape



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 ?
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.

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.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: