473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

.net framework for other platforms?

Are there .net frameworks for other platforms? I am talking about Mac,
Linux/Unix, etc.?

A few months ago the president of our company read some PR that indicated
one of the benefits of the .net framework was that you could write an app
and it would run on any machine that had the framework. It specifically
mentioned Mac and Linux/Unix platforms.

I have been investigating .net and trying to learn it, and have even
converted some of our smaller apps.

Now I am ready to see if it is true. I have a couple of testers lined up
with Mac's and Linux systems, but where can I get the .net Framework for
Mac?
Jul 21 '05 #1
6 1312
I think your boss was probably referring to the Mono project see...

http://www.mono-project.com/Main_Page
"Fred Hebert" <fh*****@hotmail.com> wrote in message
news:Xn*******************************@207.46.248. 16...
Are there .net frameworks for other platforms? I am talking about Mac,
Linux/Unix, etc.?

A few months ago the president of our company read some PR that indicated
one of the benefits of the .net framework was that you could write an app
and it would run on any machine that had the framework. It specifically
mentioned Mac and Linux/Unix platforms.

I have been investigating .net and trying to learn it, and have even
converted some of our smaller apps.

Now I am ready to see if it is true. I have a couple of testers lined up
with Mac's and Linux systems, but where can I get the .net Framework for
Mac?

Jul 21 '05 #2
"Stelrad Doulton" <___@____.com> wrote in
news:Va*******************@newsfe1-gui.ntli.net:
I think your boss was probably referring to the Mono project see...

http://www.mono-project.com/Main_Page

I am aware of this project, but he sat us down in the conf room and went
through this .net overview or something from the Microsoft site. I will
see if he still has the URL, He is not my boss, he is my boss's boss, the
president of the company, but he will probably send me the link if I ask
him.

The point is, I think it is/was hype, because I remember distinctly the
claims that were made. We wouldn't even be interested if it weren't for the
promise of Mac support. Before we saw that article we were having serious
discussions about switching to Java for cross platform support...

It is going to be significant work to convert everything to .net and if we
can't pick up a few thousand Mac users it won't be worth the effort.
Jul 21 '05 #3
Hi, Hebert...

May be you'd like to take a look at this:
http://www.itwriting.com/dotnetmac.php

As of today, .NET Framework runs only on Windows (besides the Mono
Project that's great :)...

I'm hoping that with Apple starting to use Intel processors we could be
seen a more easily platform conversion. Who knows?...

We guys in Open Source community are crazy. :P

Regards,

Paulo

Fred Hebert wrote:
"Stelrad Doulton" <___@____.com> wrote in
news:Va*******************@newsfe1-gui.ntli.net:
I think your boss was probably referring to the Mono project see...

http://www.mono-project.com/Main_Page

I am aware of this project, but he sat us down in the conf room and went
through this .net overview or something from the Microsoft site. I will
see if he still has the URL, He is not my boss, he is my boss's boss, the
president of the company, but he will probably send me the link if I ask
him.

The point is, I think it is/was hype, because I remember distinctly the
claims that were made. We wouldn't even be interested if it weren't for the
promise of Mac support. Before we saw that article we were having serious
discussions about switching to Java for cross platform support...

It is going to be significant work to convert everything to .net and if we
can't pick up a few thousand Mac users it won't be worth the effort.


Jul 21 '05 #4
this is totally unrelated...but ive been searching help on p/invoke for
HAI_NetLib and your name came up Fred, im just wondering if you ever figured
out how to replicate R_OMNI_LINK_MESSAGE in .NET

thanks

"Fred Hebert" wrote:
Are there .net frameworks for other platforms? I am talking about Mac,
Linux/Unix, etc.?

A few months ago the president of our company read some PR that indicated
one of the benefits of the .net framework was that you could write an app
and it would run on any machine that had the framework. It specifically
mentioned Mac and Linux/Unix platforms.

I have been investigating .net and trying to learn it, and have even
converted some of our smaller apps.

Now I am ready to see if it is true. I have a couple of testers lined up
with Mac's and Linux systems, but where can I get the .net Framework for
Mac?

Jul 21 '05 #5
You can get a mono runtime for Linux, Mac and windows.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Fred Hebert" <fh*****@hotmail.com> wrote in message
news:Xn*******************************@207.46.248. 16...
Are there .net frameworks for other platforms? I am talking about Mac,
Linux/Unix, etc.?

A few months ago the president of our company read some PR that indicated
one of the benefits of the .net framework was that you could write an app
and it would run on any machine that had the framework. It specifically
mentioned Mac and Linux/Unix platforms.

I have been investigating .net and trying to learn it, and have even
converted some of our smaller apps.

Now I am ready to see if it is true. I have a couple of testers lined up
with Mac's and Linux systems, but where can I get the .net Framework for
Mac?

Jul 21 '05 #6
=?Utf-8?B?c2F2YWdl?= <sa****@discussions.microsoft.com> wrote in
news:42**********************************@microsof t.com:
this is totally unrelated...but ive been searching help on p/invoke
for HAI_NetLib and your name came up Fred, im just wondering if you
ever figured out how to replicate R_OMNI_LINK_MESSAGE in .NET

thanks

The R_OMNI_LINK_MESSAGE works in .net, the problem is a syntax difference
between C++ and C#. Not being a C# programmer I don't know the exact
changes that must be made. I was looking at it this morning and found
some examples of structure and union declarations in C#.

If you are an experienced C# programmer you could probably do this faster
than me.

This is how I developed the structure in the first place:

All Omni Messages are of the format:

Start character (1 byte)
Message length (1 byte)
Message type (1 byte)
Data (Zero or more bytes, depending on the specific "message type")
CRC 1 (1 byte)
CRC 2 (1 byte)

Basically, for backward compatibility, we are wrapping the serial packet
inside a net packet. For this reason the CRC can be ignored, and besides
I have already verified the CRC in my dll. If you get the packet it is
OK.

Likewise the start character is always the same and can also be ignored.
For your purposes the "useful" data begins with the length byte. And
looks like this:

Message length (1 byte)
Message type (1 byte)
Data (Zero or more bytes, depending on the specific "message type")

This is what my dll returns, and this is the basic record structure.
Since structure the "Data" portion can vary depending on "type" I created
a union of all of the currently known record types where the "Data"
portion of the record exists. It so happens that there are no duplicate
element/field names so naming the sub structures was not necessary and
simplifies things a bit.

I also defined a generic "unsigned char Data[255];" union so you could
also refer the the various parts of the "Data" block as Data[n], like in
the documentation.

You may notice that a few substructures are missing. This is because
messages like "logout" have no data.

Here is a fragment to see if I can meke it clearer:

struct R_OMNI_LINK_MESSAGE {
unsigned char MessageLength;
union {
unsigned char Data[255];
struct {
unsigned char MessageType;
union {
struct /* olmNAME_DATA (8 bit) */ {
unsigned char ItemType8;
unsigned char ItemNumber8;
unsigned char ItemName8[16];
};
struct /* olmNAME_DATA (16 bit) */ {
unsigned char ItemType16;
unsigned char ItemNumber16MSB;
unsigned char ItemNumber16LSB;
unsigned char ItemName16[16];
};
}; // union
}; // struct
}; // union
};

Look at the structure and try to think in terms of columns:

First there's "unsigned char MessageLength;" which begins in column 0.

Then there is a union that means that the array "Data" and the rest of
the structure, BOTH begin in column 1. This means that Data[0] and
MessageType are both located at the same location, column 1.

This is really the only oddity in the structure. You might wonder why I
put Data in union with Message type, and not where the data actually
begins in column 2. Well I didn't really like it, but throughout the
documentation all references to data begin with data 1. Since all arrays
in C start at subscript 0, I shifted the array to start one byte earlier,
so "Data[x]" would match up with "Data x" in the existing documentation.
Remember we have 10's of thousands of customers and need to maintain that
backward compatibility.

The next 2 structures BOTH begin in column 2.

Also watch those "unsigned char Something[16]" strings. I don't think
they are compatible with the ByValTStr type in C#?

Hopefully you can see the pattern. It gets a little tricky in a few of
these sub structures, because some of them are arrays of sub-sub-
structures. If you break it down it really isn't that bad.

If you really don't like the complex looking structure then don't use it.
You can always define the 30 or 40 individual record structures then use
a case statement based on the record type to decide which record
structure to use. Or as some users do, and did before the structure was
created, pick the record apart byte by byte. The documentation brakes it
down for each record like this:

Start character 0x5A
Message length 0x1E
Message type 0x12 (SYSTEM INFORMATION)
Data 1 model number
Data 2 major version
Data 3 minor version
Data 4 revision
Data 5-29 local phone number
CRC 1 varies
CRC 2 varies

Finally do you have the latest API kit? I provided a VC++ .NET example a
while back, but I think it never made it to the web site because we were
overhauling it. You may have noticed that the new site went up last
night. Go to the site and get the latest documentation and examples. It
may help.

Well that's more than I intended to say...
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: darkrats | last post by:
I'm running Windows XP at the moment, and occasionally Windows ME. I've downloaded the following Net Framework installers, and I'd like to know which ones are necessary, and whether I'm...
5
by: Alx | last post by:
Hello everybody... I got a question about porting my application to other operating systems. I'm very comfortable writing applications with VS.NET 2003 (VS .NET 2005 looks even much better), but...
6
by: Fred Hebert | last post by:
Are there .net frameworks for other platforms? I am talking about Mac, Linux/Unix, etc.? A few months ago the president of our company read some PR that indicated one of the benefits of the...
12
by: XShadow | last post by:
Hi, I'm working on a new cross platform c++ framework, I principally wrote it for fun in my spare time. The project becomes rather large so I decided to make it available on the web in the hope...
28
by: Peter Olcott | last post by:
I want to double check my understanding about how the .NET framework works. From what I understand every call to the .NET framework is ultimately translated into one of more API calls, is this...
2
by: g | last post by:
we are evaluating CRM packages and are looking for information on the differences/simliarities, pros and cons of these architectures used by various CRM Vendors. We have been searching for more...
16
by: Rob R. Ainscough | last post by:
Or for that matter any version of .NET framework? What I find ironic is the push for "portability and flexibility" yet I don't actually see it in the real world. Is anyone (not just Microsoft)...
2
by: =?Utf-8?B?T3Jlbg==?= | last post by:
Hi, I have a question: How to build a web service without the use of .Net Framework? For an instance how to do it with C++? I have used web services based on ASP.NET in the past and it is...
66
by: Jon Skeet [C# MVP] | last post by:
I'm sure the net will be buzzing with this news fairly soon, but just in case anyone hasn't seen it yet: Microsoft are going to make the source code for the .NET framework (parts of it,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.