Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
AnswerRe: Focus on Child Form Pin
Jakub Mller25-Feb-07 23:53
Jakub Mller25-Feb-07 23:53 
GeneralRe: Focus on Child Form Pin
idreesbadshah25-Feb-07 23:59
idreesbadshah25-Feb-07 23:59 
GeneralRe: Focus on Child Form Pin
idreesbadshah26-Feb-07 0:03
idreesbadshah26-Feb-07 0:03 
Questionhow to make a dll COM visible? Pin
kzoly25-Feb-07 23:48
kzoly25-Feb-07 23:48 
AnswerRe: how to make a dll COM visible? Pin
Jakub Mller25-Feb-07 23:55
Jakub Mller25-Feb-07 23:55 
GeneralRe: how to make a dll COM visible? Pin
kzoly25-Feb-07 23:58
kzoly25-Feb-07 23:58 
GeneralRe: how to make a dll COM visible? Pin
Jakub Mller26-Feb-07 0:02
Jakub Mller26-Feb-07 0:02 
GeneralRe: how to make a dll COM visible? Pin
kzoly26-Feb-07 0:07
kzoly26-Feb-07 0:07 
This is the code:

using System;
using System.Collections.Generic;
using System.Text;
using System.Management;
using System.Runtime.InteropServices;

namespace register
{
public interface reg_inter
{
string procId();
}

[ComVisible(true)]
public class reg:reg_inter
{
public reg()
{
}

public string procId()
{
ManagementObjectSearcher search =
new ManagementObjectSearcher("select * from win32_processor");
foreach (ManagementObject wmi in search.Get())
{
PropertyDataCollection prC = wmi.Properties;
foreach (PropertyData pr in prC)
{
if (pr.Name == "ProcessorId")
{
return pr.Value.ToString();
}
}
}
return "0";
}
}
}

and this is assemblyinfo.cs:
.
.
.
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(true)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3ea648c1-75cf-4d96-9978-d615378e027c")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Where am I wrong?

Questionplease check the code.. there's an error in adding a record in the database... Pin
icesha25-Feb-07 23:42
icesha25-Feb-07 23:42 
AnswerRe: please check the code.. there's an error in adding a record in the database... Pin
Colin Angus Mackay25-Feb-07 23:50
Colin Angus Mackay25-Feb-07 23:50 
QuestionSimple Alarm in c# Pin
iamdking25-Feb-07 23:42
iamdking25-Feb-07 23:42 
AnswerRe: Simple Alarm in c# Pin
Colin Angus Mackay25-Feb-07 23:48
Colin Angus Mackay25-Feb-07 23:48 
GeneralRe: Simple Alarm in c# Pin
iamdking25-Feb-07 23:59
iamdking25-Feb-07 23:59 
GeneralRe: Simple Alarm in c# Pin
Colin Angus Mackay26-Feb-07 0:31
Colin Angus Mackay26-Feb-07 0:31 
QuestionBiztalk Pin
Chandana Subasinghe25-Feb-07 23:27
Chandana Subasinghe25-Feb-07 23:27 
AnswerRe: string[][] to string[] Pin
Christian Graus25-Feb-07 23:15
protectorChristian Graus25-Feb-07 23:15 
GeneralRe: string[][] to string[] Pin
Pete O'Hanlon26-Feb-07 1:53
mvePete O'Hanlon26-Feb-07 1:53 
QuestionVs2005 ToolBox incremental search/filter Pin
delta7x25-Feb-07 22:22
delta7x25-Feb-07 22:22 
Questionlocalization dll destination Pin
remi145625-Feb-07 21:53
remi145625-Feb-07 21:53 
AnswerRe: localization dll destination Pin
Stefan Troschuetz25-Feb-07 22:08
Stefan Troschuetz25-Feb-07 22:08 
QuestionRe: localization dll destination Pin
remi145625-Feb-07 23:21
remi145625-Feb-07 23:21 
AnswerRe: localization dll destination Pin
Stefan Troschuetz26-Feb-07 1:23
Stefan Troschuetz26-Feb-07 1:23 
Question[ANN] VTD-XML 2.0 Pin
Jimmy Zhang25-Feb-07 21:39
Jimmy Zhang25-Feb-07 21:39 
QuestionCurrentCell of DataGrid questions Pin
MachineMonk25-Feb-07 21:36
MachineMonk25-Feb-07 21:36 
AnswerRe: CurrentCell of DataGrid questions Pin
alex.almeida26-Feb-07 6:52
alex.almeida26-Feb-07 6:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.