PDA

Click to See Complete Forum and Search --> : [RESOLVED] C# conversion shows "system" error


mbarton
Sep 14th, 2009, 01:27 PM
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.

mbarton
Sep 14th, 2009, 01:53 PM
something to do with serialport differences in vb.net and c#.net ?

Pradeep1210
Sep 14th, 2009, 04:44 PM
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.

using system;
using system.IO;
using system.IO.ports;

mbarton
Sep 15th, 2009, 08:52 AM
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 !

mbarton
Sep 16th, 2009, 10:08 AM
Actually getting help on this in another post folks.

This thread closed.