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 HAA22452; Tue, 10 Sep 2002 07:53:01 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA22349 for ; Tue, 10 Sep 2002 07:53:00 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from www.duonix.com ([210.113.163.221]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g8A5qw116639 for ; Tue, 10 Sep 2002 07:52:59 +0200 (MET DST) Received: from hama ([192.168.0.254]) by www.duonix.com (8.12.5/8.11.6) with SMTP id g8A5s64c055387; Tue, 10 Sep 2002 14:54:06 +0900 (KST) (envelope-from shoh@duonix.com) X-Authentication-Warning: www.duonix.com: Host [192.168.0.254] claimed to be hama Message-ID: <001c01c2588e$7e673ad0$fe00a8c0@hama> From: "SooHyoung Oh" To: "Nicolas Cannasse" , "OCaml" References: <008c01c24aa3$ec837cc0$0700a8c0@warp> <005701c257d0$515a1f30$fe00a8c0@hama> <002301c257ec$4c663420$5200a8c0@warp> Subject: Re: [Caml-list] OCam'OLE pre.3b Date: Tue, 10 Sep 2002 14:54:14 +0900 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 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Actually, I'm a novice on Visual Basic for Applications as well as Visual Basic. I tried to make button and check_box in excel application, but I can't find any function in excel.ml, excel.mli which make buttons, and button (except of Buttons.add) And I guessed some function's usage and made the folloing programs. It makes an error Fatal error: exception Ocamole.Com_error("IDispatch.GetIDsOfNames") =================== let app = IApplication.application_ (IApplication.create()) let books = Application_.get_workbooks app let book = Workbooks.add books let sheets = Workbook_.get_worksheets (Workbook.workbook_ book) let sheet = Worksheet.query ~unsafe:true (Sheets.get_item sheets ~index:(VT_INT 1)) let isheet = Worksheet.worksheet_ sheet let cboxes = CheckBoxes.query ~unsafe:true (Worksheet_.idispatch isheet) let test1 () = let cbox = CheckBoxes.add cboxes 50.0 50.0 300.0 400.0 in () let buttons = Buttons.query ~unsafe:true (Worksheet_.idispatch isheet) let test2 () = let but = Buttons.add buttons 50.0 50.0 300.0 400.0 in () --- SooHyoung Oh tel: 02)583-8709, 042)861-8649 cell. phone: 011-453-4303 web: http://www.duonix.com ----- Original Message ----- From: "Nicolas Cannasse" To: "SooHyoung Oh" ; "OCaml" Sent: Monday, September 09, 2002 7:33 PM Subject: Re: [Caml-list] OCam'OLE pre.3b > > Can anyone give more complex example using Ocam'OLE > > which uses Excel's various components such as UserForm, Page, Text, Label, > > Button? > > You should look at Excel VBA samples/help. Then the OCaml usage should be > almost the same ( with an additional type-safety ). > > Regards, > 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