Results 1 to 5 of 5

Thread: [RESOLVED] C# conversion shows "system" error

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Posts
    751

    Resolved [RESOLVED] C# conversion shows "system" error

    Ok -- me again -- getting my head back into this (possible) vb.net to linux
    process.

    Alright, so I have Sharp develop installed and it loaded my VB project file fine.

    Also, it converted it to C# in a flash -- couldn't be simpler, just do it from a pull down menu and click -- it even creates a myprojectconverted folder.

    So then, I ran my program with sharp develop, just like I would with visual studio (run compiled exe) -- everything hunky dory.

    I then opened my "converted" folder and opened the C# project -- it's all there, very cool -- can see the code differences in the Form1.cs

    BUT --

    getting errors that relate to the "system" namespace when I try to run
    the C# version.

    the errors are showing up on 2 lines --

    using system; (no error on this line)
    using.system.IO
    using.system.IO.ports

    the VB version, like I say is fine --

    imports.system
    imports.system.io
    imports.system.io.ports

    Please educate me on this one.

    Thanks.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Posts
    751

    Re: C# conversion shows "system" error

    something to do with serialport differences in vb.net and c#.net ?

  3. #3
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: C# conversion shows "system" error

    Quote Originally Posted by mbarton View Post
    using system; (no error on this line)
    using.system.IO
    using.system.IO.ports

    the VB version, like I say is fine --

    imports.system
    imports.system.io
    imports.system.io.ports

    Please educate me on this one.

    Thanks.
    There should be no dots between "using" and rest part of it.

    e.g.
    Code:
    using system;   
    using system.IO;
    using system.IO.ports;
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Posts
    751

    Re: C# conversion shows "system" error

    Yeah -- my mistake -- I put that in the post, they're not really in there.

    Not familiar with C# but it looks like this may be a simple syntax thing.

    I'll look closer and get back.

    THANKS !

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Posts
    751

    Re: C# conversion shows "system" error

    Actually getting help on this in another post folks.

    This thread closed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width