SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > Operating Systems > Windows XP
User Name
Password


how to inherit from instrument class in another assembly

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes

  #1  
Old 08-31-2003, 01:53 AM
orencs Offline
Junior Member
 
Join Date: Aug 2003
Posts: 1
how to inherit from instrument class in another assembly

I have define an Instrumentation class in assebley A

[InstrumentationClass(InstrumentationType.Abstract) ]
public class WMIBase: System.Management.Instrumentation.Instance
{
}


and I want to inherit from it in assembly B.

when I ran InstallUtil the inhrit class does not apear to be installed does anyone have and idea why?

[if I define the base class in the derived assembly it works fine.]
Reply With Quote

  #2  
Old 08-31-2003, 02:50 AM
LooseChippings's Avatar
LooseChippings Offline
Registered User
 
Join Date: Apr 2003
Location: Conisbrough, Yorkshire. England
Posts: 2,436
Send a message via Yahoo to LooseChippings
orencs

Is this question really Windows XP?

It might help if you told people which programming language you are using ...

C++

Pearl

Java

Delphi

What?
__________________
Learn from other peoples mistakes not your own.
Reply With Quote

  #3  
Old 02-24-2005, 04:20 PM
gbelzile Offline
Registered User
 
Join Date: Feb 2005
Posts: 1
You must add [assembly: Instrumented("root/YOURPATH")] in the base assembly and register it to WMI using Installutil.exe or Instrumentation.RegisterAssembly.
By the way, the way you formulated your question helped me found what was wrong with my code... Thanks!



Quote:
Originally Posted by orencs
I have define an Instrumentation class in assebley A

[InstrumentationClass(InstrumentationType.Abstract) ]
public class WMIBase: System.Management.Instrumentation.Instance
{
}


and I want to inherit from it in assembly B.

when I ran InstallUtil the inhrit class does not apear to be installed does anyone have and idea why?

[if I define the base class in the derived assembly it works fine.]
Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Update Class File!!! Sanko Windows XP 0 12-04-2004 11:42 PM



All times are GMT -5. The time now is 09:21 AM.


Designed by eXtremepixels. Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.