Click here to Skip to main content
16,014,613 members
Home / Discussions / C#
   

C#

 
QuestionHow to get an running object instance Pin
Leesen25-Apr-02 3:51
Leesen25-Apr-02 3:51 
AnswerRe: How to get an running object instance Pin
Leesen25-Apr-02 16:23
Leesen25-Apr-02 16:23 
Generalwhy it displays following error message?and how to solve it?thanks! Pin
zhoujun25-Apr-02 2:39
zhoujun25-Apr-02 2:39 
GeneralRe: why it displays following error message?and how to solve it?thanks! Pin
Nick Parker25-Apr-02 2:50
protectorNick Parker25-Apr-02 2:50 
GeneralRe: why it displays following error message?and how to solve it?thanks! Pin
zhoujun25-Apr-02 14:30
zhoujun25-Apr-02 14:30 
GeneralDataGrid Scroll Pin
Prash24-Apr-02 23:59
Prash24-Apr-02 23:59 
GeneralRe: DataGrid Scroll Pin
Nick Parker25-Apr-02 5:27
protectorNick Parker25-Apr-02 5:27 
QuestionCOM Interoperability In C#?????? Pin
Leesen24-Apr-02 23:19
Leesen24-Apr-02 23:19 
Hi,
all

I come accross a problem again.
Firstly,I make a ActiveX Dll(myDll.dll) in Visual Basic 6.0. And in myDll.dll there is only one function as follow:
Public Function show ( )
MsgBox ( "Hello world!" )
End Function
Then, I type this command in dos:
TlbImp mydll.dll /out: my.Dll
According the reference ,then I can invoke the method "show" in my C# console apllication.
My C# application(try.cs) as follows:

using my ;
using System ;
namespace Hello
{
public class Activex
{
public static void Main ( )
{
Class1 s = new Class1 ( ) ;
s.show ( ) ;
}
}
}

Finally,I type such command :
csc /r:my.dll try.cs
But errors ocurres, and details are showed as follows:
Try.cs(10,25): error CS0246: The type or namespace name 'Class1' could not
be found (are you missing a using directive or an assembly reference?)
Try.cs(11,25): error CS0246: The type or namespace name 's' could not be
found (are you missing a using directive or an assembly reference?)

who can tell me why ?
regards.
GeneralDOH!!!! Pin
Ollie24-Apr-02 23:10
Ollie24-Apr-02 23:10 
GeneralRe: DOH!!!! Pin
James T. Johnson24-Apr-02 23:12
James T. Johnson24-Apr-02 23:12 
GeneralRe: DOH!!!! Pin
Ollie24-Apr-02 23:23
Ollie24-Apr-02 23:23 
GeneralRe: DOH!!!! Pin
Nick Parker25-Apr-02 1:44
protectorNick Parker25-Apr-02 1:44 
GeneralDefault Color values in a Control Pin
James T. Johnson24-Apr-02 22:38
James T. Johnson24-Apr-02 22:38 
QuestionAssembly ?????? Pin
Leesen24-Apr-02 22:11
Leesen24-Apr-02 22:11 
AnswerRe: Assembly ?????? Pin
James T. Johnson24-Apr-02 22:15
James T. Johnson24-Apr-02 22:15 
GeneralMouse Move Problem... Pin
Nick Parker24-Apr-02 17:25
protectorNick Parker24-Apr-02 17:25 
GeneralRe: Mouse Move Problem... Pin
David Wengier24-Apr-02 17:30
David Wengier24-Apr-02 17:30 
GeneralRe: Mouse Move Problem... Pin
Nick Parker24-Apr-02 17:42
protectorNick Parker24-Apr-02 17:42 
Generalwhen i click the form's minimizebox,how i can avoid the form to be minimized! Pin
zhoujun24-Apr-02 15:21
zhoujun24-Apr-02 15:21 
GeneralRe: when i click the form's minimizebox,how i can avoid the form to be minimized! Pin
Neil Van Note24-Apr-02 17:50
Neil Van Note24-Apr-02 17:50 
GeneralRe: when i click the form's minimizebox,how i can avoid the form to be minimized! Pin
zhoujun24-Apr-02 19:13
zhoujun24-Apr-02 19:13 
GeneralRe: when i click the form's minimizebox,how i can avoid the form to be minimized! Pin
Neil Van Note24-Apr-02 19:31
Neil Van Note24-Apr-02 19:31 
GeneralRe: when i click the form's minimizebox,how i can avoid the form to be minimized! Pin
zhoujun25-Apr-02 2:33
zhoujun25-Apr-02 2:33 
GeneralC# Detecting if in IDE Pin
24-Apr-02 7:31
suss24-Apr-02 7:31 
GeneralRe: C# Detecting if in IDE Pin
James T. Johnson24-Apr-02 11:29
James T. Johnson24-Apr-02 11:29 

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.