|
-
Sep 14th, 2009, 01:27 PM
#1
Thread Starter
Fanatic Member
[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.
-
Sep 14th, 2009, 01:53 PM
#2
Thread Starter
Fanatic Member
Re: C# conversion shows "system" error
something to do with serialport differences in vb.net and c#.net ?
-
Sep 14th, 2009, 04:44 PM
#3
Re: C# conversion shows "system" error
 Originally Posted by mbarton
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;
-
Sep 15th, 2009, 08:52 AM
#4
Thread Starter
Fanatic Member
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 !
-
Sep 16th, 2009, 10:08 AM
#5
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|