Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
GeneralCountries and towns database Pin
machocr10-Jul-04 9:05
machocr10-Jul-04 9:05 
GeneralRe: Countries and towns database Pin
Colin Angus Mackay10-Jul-04 16:20
Colin Angus Mackay10-Jul-04 16:20 
GeneralWindows Services Pin
RFickling10-Jul-04 7:07
RFickling10-Jul-04 7:07 
GeneralRe: Windows Services Pin
Mike Dimmick10-Jul-04 8:35
Mike Dimmick10-Jul-04 8:35 
GeneralProblems converting my C++ code to C# Pin
DieFuSiON10-Jul-04 6:39
DieFuSiON10-Jul-04 6:39 
GeneralRe: Problems converting my C++ code to C# Pin
DieFuSiON10-Jul-04 6:40
DieFuSiON10-Jul-04 6:40 
GeneralRe: Problems converting my C++ code to C# Pin
Werdna10-Jul-04 11:12
Werdna10-Jul-04 11:12 
GeneralRe: Problems converting my C++ code to C# Pin
Nick Parker10-Jul-04 18:40
protectorNick Parker10-Jul-04 18:40 
Classes are passed by reference. The following works. Please post your code so we can see what the problem is.

using System;

public class test
{
    class one
    {
        public one()
	{
	     Console.WriteLine("one's constructor");
	}
    }
	
    class two
    {
       public two()
       {
	     Console.WriteLine("two's constructor");   
       }
       public two(one o)
       {
             Console.WriteLine("two's constructor");   
       }
    }
    
    public test()
    {
       one o = new one();
       two t = new two(o);
    }

   [STAThread]
   public static void Main()
   {
       test t = new test();
       Console.Read();
   }
}




- Nick Parker
My Blog | My Articles

GeneralRe: Problems converting my C++ code to C# Pin
DieFuSiON11-Jul-04 0:46
DieFuSiON11-Jul-04 0:46 
GeneralSerial Communication Problems... Pin
Randy2410-Jul-04 5:17
Randy2410-Jul-04 5:17 
GeneralRe: Serial Communication Problems... Pin
Mike Dimmick10-Jul-04 8:39
Mike Dimmick10-Jul-04 8:39 
GeneralRe: Serial Communication Problems... Pin
Randy2412-Jul-04 7:53
Randy2412-Jul-04 7:53 
Generalpinvoke and winmm.dll Pin
Oldmate10-Jul-04 4:35
Oldmate10-Jul-04 4:35 
Generallogin code Pin
Member 12278839-Jul-04 23:57
Member 12278839-Jul-04 23:57 
GeneralRe: login code Pin
Michael P Butler10-Jul-04 0:24
Michael P Butler10-Jul-04 0:24 
GeneralRe: login code Pin
Member 122788310-Jul-04 0:26
Member 122788310-Jul-04 0:26 
GeneralRe: login code Pin
Michael P Butler10-Jul-04 0:33
Michael P Butler10-Jul-04 0:33 
GeneralWMI Access - Help Pin
wakkerjack9-Jul-04 23:28
wakkerjack9-Jul-04 23:28 
QuestionIn StringBuilder copied from richTextBox fast way to findout end of line ? Pin
evdoxos9-Jul-04 23:23
evdoxos9-Jul-04 23:23 
AnswerRe: In StringBuilder copied from richTextBox fast way to findout end of line ? Pin
mav.northwind9-Jul-04 23:42
mav.northwind9-Jul-04 23:42 
GeneralRe: In StringBuilder copied from richTextBox fast way to findout end of line ? Pin
evdoxos10-Jul-04 0:34
evdoxos10-Jul-04 0:34 
GeneralRe: In StringBuilder copied from richTextBox fast way to findout end of line ? Pin
mav.northwind10-Jul-04 5:22
mav.northwind10-Jul-04 5:22 
AnswerRe: In StringBuilder copied from richTextBox fast way to findout end of line ? Pin
leppie10-Jul-04 1:05
leppie10-Jul-04 1:05 
AnswerRe: In StringBuilder copied from richTextBox fast way to findout end of line ? Pin
partyganger10-Jul-04 4:09
partyganger10-Jul-04 4:09 
GeneralRe: In StringBuilder copied from richTextBox fast way to findout end of line ? Pin
evdoxos10-Jul-04 7:23
evdoxos10-Jul-04 7:23 

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.