Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have several apps written in Turbo C for DOS Point of sales.

I have to retouch most of the code there. and that's a real nightmare.

 

Questions:

1 can the console Apps in .Net evolve in DOS environment.

2 if yes, i couldnt find any type of graphics library for the console.

is there any ?(I need to design some interface)

 

please help....

Auto-suggestion: "I have a life"

Uncontroled thinking: "So what the.."

Posted

Divil, this is bad news for me.

what about the crossplatform, machine independent language claim...???? Are u sure u can't develop for DOS in the .NET environment at all?

Auto-suggestion: "I have a life"

Uncontroled thinking: "So what the.."

Posted

A lot of POSs are DOS based. A nice portion of my income still comes from old DOS programs I wrote long ago.

You just cant ask a 20 stores retail chain to replace their POSs in this kind of economic atmosphere. Thats a nasty investment.

 

Divil, i have another question.

im trying to add reference sto dlls to check what they expose (spy).

the 'Add reference" dialog accepts only refs to the ones existing in the the listview. if I browse for another one i get:

"a reference to the xxx.dll could not be added. This is not a valid assembly or COM component..." etc.

is there a turnaround?

Auto-suggestion: "I have a life"

Uncontroled thinking: "So what the.."

  • *Experts*
Posted

The DLLs that .NET wants must be COM DLLs. A COM DLL is a special DLL that contains objects and interfaces. The important part is that a COM DLL is self-describing as it is meant to be interfaced to, even more than a standard C-style DLL. A C-style DLL exposes functions (and a little more), but isn't self-describing.

 

To use a C-style DLL in .NET you'll have to use DllImport (see the help) and expose the functions yourself. For example, to expose the function SendMessage in the windows DLL "user32.dll", you use:

[DllImport("user32")]
private static extern int SendMessage(int hwnd, int msg, int wparam, int lparam);

 

If you want to mainting (not re-write) your old DOS-based programs, you're likely stuck with Turbo-C, Turbo-Pascal, etc. Borland, as far as I know, is the only one who made a good DOS-based compiler for writing robust "windows"-like apps.

 

.NET is for Windows applications though there are ports for other OS's. I can almost guarantee that there will *never* be a port for DOS as MS owns DOS and won't take the time to do it.

 

For $600, the retail clients can buy a PIII 700 and upgrade to some version of Windows. The UI enhancements over DOS are well worth it in terms of screen space alone. But if they have their amber screens and like them, I wouldn't try to change it and that means staying with Turbo-C.

 

-Nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted

Nerseus, that was very helfull. thanx for ur time. here and my other thread.

concerning upgrades, an intergrated back office- Point Of Sale solution can cost 50 grands my friend not including setup and of course not maintenance. Its not about upgrading to windows.

If it was that simple id be unemployed!

Auto-suggestion: "I have a life"

Uncontroled thinking: "So what the.."

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...