caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [OCAMOLE] problem with guid
@ 2002-08-22 11:31 Samuel Lacas
  2002-08-22 11:54 ` Nicolas Cannasse
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Lacas @ 2002-08-22 11:31 UTC (permalink / raw)
  To: caml-list

Hello,

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

      [...]

      end

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.

Sincerely,

sL
-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-22 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-22 11:31 [Caml-list] [OCAMOLE] problem with guid Samuel Lacas
2002-08-22 11:54 ` Nicolas Cannasse

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