Login  
Search All Forums
Dart Home | PowerSNMP for ActiveX | Custom Development Reply | PowerSNMP for ActiveX Topics | Forums   
AuthorForum: PowerSNMP for ActiveX
Topic: Distribution problem
JR

From: Paris, France
Posts: 14
Member Since: 12/02/04
posted November 28, 2006 6:23 AM

Hi,

I have developped with Powerbuilder an application with your snmp agent. I have the licence in my development computer. When I distribute the software, the message below appeares.

PowerSNMP licence not found
A licence for the PowerSNMP Mib Component was not found on this machine.
If you .....trial ...

All the dart files are distributed (dartsock.dll and dartsnmp2.dll).
I tried also to put a new dart object in my window and delete the older. It 's the same thing.

What happens ?

Regards,
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted November 28, 2006 9:22 AM

Hi,
Some dev environments (such as PB) have a problem with licensed objects that are not placed on a form (such as the SnmpMib object).

Instead of creating a new SnmpMib object, you can work around the problem by placing an Agent control on the form (window in PB), and using the Agent.Mib property instead.

Hope it helps,
-ken
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 28, 2006 9:23 AM

Most likely you are trying to create your Mib object via the CREATE method. Since PB does not properly support ActiveX control licensing in that scenario, you will have to put an Agent control on a form, then use the Mib property of the agent. This is the technique we use in the sample Agent (see ole_mibholder control on w_main)

I justed tested the sample agent and did not receive an error.

JR

From: Paris, France
Posts: 14
Member Since: 12/02/04
posted November 28, 2006 9:51 AM

Hi,

I did what you told me before. I put an agent control on the window object.

I only write this.

-------------------------------------------
// Create List Entries Object
io_MibList = CREATE OLEobject
io_MibList.ConnectToNewObject("Dart.DartStrings")
io_Mib = CREATE OLEobject
io_Mib.ConnectToNewObject("Dart.SnmpMib")
io_trap = CREATE OLEobject
io_trap.ConnectToNewObject("Dart.SnmpTrap")

for i = 1 to nb_files
io_MibList.Add(gs_path_snmp + "\" + lnv_dirlist[i].is_filename)
next

io_Mib = ole_snmp.object.Mib
io_Mib.Compile(io_MibList)
-----------------------------------

The problem exists.
In my development computer, i don't have any problem. It's only on machines where i distribute the soft.

An interesting thing i can add. On these computers, i distribute a sofware using your mail tool product written in PB and developped in my computer. It works.

Regards
JR

From: Paris, France
Posts: 14
Member Since: 12/02/04
posted November 28, 2006 9:55 AM

Oh, i forgot to tell you that the messagebox appearing does not abort the program. It continues to function after (so i have the mibs and all my process functions)
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 28, 2006 10:01 AM

You can't create a licensed object like that in PowerBuilder. Since SnmpMib is licensed (unlike dartstrings and snmptrap) you will need to do as I said in my original post:

"put an Agent control on a form, then use the Mib property of the agent. This is the technique we use in the sample Agent (see ole_mibholder control on w_main)"
JR

From: Paris, France
Posts: 14
Member Since: 12/02/04
posted November 28, 2006 10:33 AM

Hi,

Thanks, now putting a second snmp agent to work with the mib property in the window, it works.

Regards
Reply | PowerSNMP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX