Dart Home | PowerTCP Telnet for .NET | Custom Development | Reply | PowerTCP Telnet for .NET Topics | Forums |
Author | Forum: PowerTCP Telnet for .NET Topic: Build error "The type or namespace name 'segment could not be found... |
moket From: Meise, Belgium Posts: 3 Member Since: 05/10/06 |
posted June 14, 2006 3:59 AM I am trying PowerTCP for .NET because it would be very usefull for my project. But when I follow the steps shown in the online help file named "Creating An Instance Of A Component Using Visual Studio .NET", I get the error message "Build error "The type or namespace name 'segment could not be found...". Maybe I'm missing something here? Could somebody please help me? This is the source code: private void button1_Click(object sender, System.EventArgs e) { // Connect to a server telnet1.Connect("172.16.61.111"); // Receive data (probably a login prompt) Segment seg = telnet1.Receive(); Debug.WriteLine("Here is the data: " + seg.ToString()); telnet1.Close(); } |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 14, 2006 6:45 AM When using classes in .NET without referencing the full namespace (this is true with any class, not just ours), you need to add a 'using' clause to the top of the code: using Dart.PowerTCP.Telnet; Hope this helps! |
moket From: Meise, Belgium Posts: 3 Member Since: 05/10/06 |
posted June 16, 2006 9:42 AM That's it thanks |
Reply | PowerTCP Telnet for .NET Topics | Forums |
This site is powered by
![]() |