File: C:/Ruby27-x64/share/ri/2.7.0/system/WIN32OLE_RECORD/new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"WIN32OLE_RECORD::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"OReturns WIN32OLE_RECORD object. The first argument is struct name (String ;TI"or Symbol). ;TI"TThe second parameter obj should be WIN32OLE object or WIN32OLE_TYPELIB object. ;TI"@If COM server in VB.NET ComServer project is the following:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [
I",Imports System.Runtime.InteropServices
;TI"Public Class ComClass
;TI" Public Structure Book
;TI"/ <MarshalAs(UnmanagedType.BStr)> _
;TI"$ Public title As String
;TI"$ Public cost As Integer
;TI" End Structure
;TI"End Class
;T:@format0o;
; [I"Athen, you can create WIN32OLE_RECORD object is as following:;T@o;; [
I"require 'win32ole'
;TI".obj = WIN32OLE.new('ComServer.ComClass')
;TI"Jbook1 = WIN32OLE_RECORD.new('Book', obj) # => WIN32OLE_RECORD object
;TI"tlib = obj.ole_typelib
;TI"Jbook2 = WIN32OLE_RECORD.new('Book', tlib) # => WIN32OLE_RECORD object;T;
0:
@fileI"#ext/win32ole/win32ole_record.c;T:0@omit_headings_from_table_of_contents_below0I"BWIN32OLE_RECORD.new(typename, obj) -> WIN32OLE_RECORD object
;T0[ I"
(p1, p2);T@&FI"WIN32OLE_RECORD;TcRDoc::NormalClass00