From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA11214; Thu, 22 Aug 2002 13:54:50 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA11159 for ; Thu, 22 Aug 2002 13:54:49 +0200 (MET DST) Received: from mel-rto6.wanadoo.fr (smtp-out-6.wanadoo.fr [193.252.19.25]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7MBsnX19527 for ; Thu, 22 Aug 2002 13:54:49 +0200 (MET DST) Received: from mel-rta10.wanadoo.fr (193.252.19.193) by mel-rto6.wanadoo.fr (6.5.007) id 3D6246E8000CC4C1; Thu, 22 Aug 2002 13:54:48 +0200 Received: from warp (80.15.42.179) by mel-rta10.wanadoo.fr (6.5.007) id 3D49FFDD00745548; Thu, 22 Aug 2002 13:54:48 +0200 Message-ID: <001101c249d2$bae9f5d0$0700a8c0@warp> From: "Nicolas Cannasse" To: "Samuel Lacas" , References: <20020822133140.A4642@ouessant.trusted-logic.fr> Subject: Re: [Caml-list] [OCAMOLE] problem with guid Date: Thu, 22 Aug 2002 13:54:54 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I found the following problem with the last ocamole-pre library: > > # #load "ocamole.cma";; > # open Ocamole;; > # guid_of_string;; > - : string -> Ocamole.guid = > > 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