Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 VB6 .NET VB.NET
I have the following code which needs to be converted to c# .net .
 

dim server
set server = CreateObject("DSServerMap.Server")
 

dim root
set root = server.CreateObject("Server")
 

the first statement converted was as
DSServerMap.Server server = new DSServerMap.Server();
 
i Dont if the code is in vb6 or vb.net
 
but i cant seem to convert the 2 nd line to c#
I using the dll which has all the functionalities
 
can anyone help me with this . Thank u
Posted 25-Sep-12 1:01am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

try this
object server = null;
server = Interaction.CreateObject("DSServerMap.Server");
object root = null;
root = server.CreateObject("Server");
 

Some of vb-c# converters
http://www.carlosag.net/tools/codetranslator/[^]
http://converter.telerik.com/[^]
  Permalink  
Comments
gaurish thakkar at 25-Sep-12 6:21am
   
Thank u very much
Santhosh Kumar J at 25-Sep-12 6:24am
   
welcome
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
use following link to convert your code from C# to Vb and From Vb to C#
 
http://converter.telerik.com/[^]
  Permalink  
Comments
gaurish thakkar at 25-Sep-12 6:12am
   
I am getting error at line1 col1
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hi,
 
Please see the below link. It might be help you.
 
http://www.developerfusion.com/tools/convert/vb-to-csharp/[^]
http://converter.telerik.com/[^]
 
Thanks,
Viprat
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Marcin Kozub 295
1 OriginalGriff 273
2 Richard MacCutchan 229
3 Praneet Nadkar 197
4 Sergey Alexandrovich Kryukov 190
0 OriginalGriff 7,913
1 Sergey Alexandrovich Kryukov 7,232
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,865


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 25 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100