martinB
@martinb
New Member
Joined: Feb 14, 2024
Topics: 35 / Replies: 187
Topic
Forum
Replies: 8
Views: 16
Reply
RE: Help needed with OLE/COM problem

Run this code on a machine that has Microsoft Excel installed: — create Excel sheet through OLE x = createOLEObject “Excel.Sheet” Sheet = x.ActiveSh…

15 years ago
Forum
Reply
RE: Help needed with OLE/COM problem

Thanks man, but again this errors: — Runtime error: Attempt to place unsupported value type into OLE SAFEARRAY: dotNetObject:System.Double I think …

15 years ago
Forum
Reply
RE: Help needed with OLE/COM problem

Thanks once more Mike! Yes. VB can call PutFullMatrix just fine. The example from works right out of the box. biddle: Once you know the pro…

15 years ago
Forum
Reply
RE: Help needed with OLE/COM problem

Any more ideas? I really would like to use OLE/COM, but so far I have not been able to pass on any array data through OLE. Am I looking at a limitat…

15 years ago
Forum
Reply
RE: Help needed with OLE/COM problem

Thanks Mike! Unfortunately, our code also gives me an error. Here’s the output: SafeArrayWrapper #(#(4.59825, 4.48692, 5.19677, 5.80181, 2.25653), #…

15 years ago
Forum
Topic
Forum
Replies: 9
Views: 20
Reply
RE: Random position on surface

Nice! How’d you go about if you want to guarantee a minimum distance between all the random positions? So, say you have that irregularly tesselated pl…

15 years ago
Forum
Reply
RE: Again dotNet help needed – How to deal with structs and call this (new) method?

Small update to this problem: Larry Minton from Autodesk pointed out to me that the problem in this case is that the struct does not declare a constr…

15 years ago
Forum
Reply
RE: Again dotNet help needed – How to deal with structs and call this (new) method?

Jeeeeeez. I assume talks about what you just said? I would NEVER have found that solution… Thank you very much indeed, again! – MartinB

15 years ago
Forum
Reply
RE: Again dotNet help needed – How to deal with structs and call this (new) method?

=8-) Wow! What on earth made you try that?! Is there any logic in that I can create an array of the struct, but not the struct itself? Another dotNet…

15 years ago
Forum
Reply
RE: Again dotNet help needed – How to deal with structs and call this (new) method?

Yes, that seems to be the problem. I can create a dotNetClass value for the struct using dnc = dotNetClass “alglib.lbfgs+lbfgsstate” but I don’t now…

15 years ago
Forum
Reply
RE: dotNet help needed! How to call this method?

OK, Mike, you’re now the official hero of the day!! After removing a stupid mistake in my script this works just beautifully. And it is a great showc…

15 years ago
Forum
Page 7 / 15