Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12530 > unrolled thread

Using .Net-DLL from VO

Started byfeusahrens@gmail.com
First post2019-06-18 00:57 -0700
Last post2019-07-09 04:56 -0700
Articles 4 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Using .Net-DLL from VO feusahrens@gmail.com - 2019-06-18 00:57 -0700
    Re: Using .Net-DLL from VO "Jamal" <nospam@example.com> - 2019-06-18 11:44 -0400
    Re: Using .Net-DLL from VO "Wolfgang Riedmann" <wriedmann@gmail.com> - 2019-06-18 18:23 +0200
    Re: Using .Net-DLL from VO jeanphilippe@igsoft.be - 2019-07-09 04:56 -0700

#12530 — Using .Net-DLL from VO

Fromfeusahrens@gmail.com
Date2019-06-18 00:57 -0700
SubjectUsing .Net-DLL from VO
Message-ID<9d5d2485-29b7-437a-998a-02d9d9e67a07@googlegroups.com>
I created a .Net-DLL with some Classes. 
In my VO-Application, I use this DLL by:
oABC := OleAutoObject{ “Silvio.abc” }

Anything is done according to http://www.elbe-data.se/sv/vografx/visualobjectsandcsharp.pdf.

On my programmers machine this works fine, no problem.

On then target machine I register this DDL by:
Regasm \<path>\<nameoftheDLL>.DLL /codebase
Response is: the types are registered.

The .Net.DLL resides in the same directory as my VO-Application.

.Net-Framework-version on the target machine is the same as in my programmers machine.

But after all, oABC:fInit still returns false.

Any idea? Thanks for help.

Silvio

[toc] | [next] | [standalone]


#12534

From"Jamal" <nospam@example.com>
Date2019-06-18 11:44 -0400
Message-ID<qeb0s6$o7s$1@gioia.aioe.org>
In reply to#12530
It's better to generate an automation server class and use it's generated 
class and public methods instead of using OleAutoObject class.

Also, make sure to copy all files in the \Bin\x86\Release folder of the C# 
project. You are most likely missing the the TLB file.

Jamal

wrote in message 
news:9d5d2485-29b7-437a-998a-02d9d9e67a07@googlegroups.com...

I created a .Net-DLL with some Classes.
In my VO-Application, I use this DLL by:
oABC := OleAutoObject{ “Silvio.abc” }

Anything is done according to 
http://www.elbe-data.se/sv/vografx/visualobjectsandcsharp.pdf.

On my programmers machine this works fine, no problem.

On then target machine I register this DDL by:
Regasm \<path>\<nameoftheDLL>.DLL /codebase
Response is: the types are registered.

The .Net.DLL resides in the same directory as my VO-Application.

.Net-Framework-version on the target machine is the same as in my 
programmers machine.

But after all, oABC:fInit still returns false.

Any idea? Thanks for help.

Silvio 

[toc] | [prev] | [next] | [standalone]


#12535

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2019-06-18 18:23 +0200
Message-ID<gmshfrFghilU1@mid.individual.net>
In reply to#12530
Hi Silvio,

you can follow this article here:

https://docs.xsharp.it/doku.php?id=com_module_sample
https://docs.xsharp.it/doku.php?id=com_module_sample_vs

hth

Wolfgang

feusahrens@gmail.com wrote:

> I created a .Net-DLL with some Classes. 
> In my VO-Application, I use this DLL by:
> oABC := OleAutoObject{ “Silvio.abc” }
> 
> Anything is done according to
> http://www.elbe-data.se/sv/vografx/visualobjectsandcsharp.pdf.
> 
> On my programmers machine this works fine, no problem.
> 
> On then target machine I register this DDL by:
> Regasm \<path>\<nameoftheDLL>.DLL /codebase
> Response is: the types are registered.
> 
> The .Net.DLL resides in the same directory as my VO-Application.
> 
> .Net-Framework-version on the target machine is the same as in my
> programmers machine.
> 
> But after all, oABC:fInit still returns false.
> 
> Any idea? Thanks for help.
> 
> Silvio



-- 

[toc] | [prev] | [next] | [standalone]


#12559

Fromjeanphilippe@igsoft.be
Date2019-07-09 04:56 -0700
Message-ID<77424532-bb11-44ed-a593-fb05eafa57c2@googlegroups.com>
In reply to#12530
You can also setup a manifest file for .net dll and your exe and you don't need regasm on production.

So that you don't need administrative rights on the PC to be able to run.

Le mardi 18 juin 2019 09:57:26 UTC+2, feusa...@gmail.com a écrit :
> I created a .Net-DLL with some Classes. 
> In my VO-Application, I use this DLL by:
> oABC := OleAutoObject{ “Silvio.abc” }
> 
> Anything is done according to http://www.elbe-data.se/sv/vografx/visualobjectsandcsharp.pdf.
> 
> On my programmers machine this works fine, no problem.
> 
> On then target machine I register this DDL by:
> Regasm \<path>\<nameoftheDLL>.DLL /codebase
> Response is: the types are registered.
> 
> The .Net.DLL resides in the same directory as my VO-Application.
> 
> .Net-Framework-version on the target machine is the same as in my programmers machine.
> 
> But after all, oABC:fInit still returns false.
> 
> Any idea? Thanks for help.
> 
> Silvio

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web