Highlighted
Absent Member.
Absent Member.
203 views

[archive] Creating and finding NetEvents.ini

[Migrated content. Thread originally posted on 15 December 2006]

We are using a .NET control from within our Cobol application. The dlls will not be held in the Global cache.

I have a couple of queries.

Is there any way to know where the WRUN32 was launched from? I would like to be able to create NetEvents.INI in the Cobol Install directory.

Where would you expect to find NetEvents.ini when running ThinClient? On the server, or on the Client, sharing a directory with ACUTHIN.EXE?

Thanks

Linda
0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

RE: [archive] Creating and finding NetEvents.ini

As you apparently is targeting Windows, you can use the GetCommandLine function from the Windows API, this will give you a memory pointer, for which the first will be the full path to the runtime. To be able to use this you will have to copy the data to a cobol variable first.¨

As for netevents.ini, generally speaking, assembly dlls that are not in the GAC should be located together with the runtime. For thin client this will then imply acuthin.exe. Thus, also the NetEvents.ini file should reside with the executable.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.