473,383 Members | 1,818 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,383 software developers and data experts.

A business case and calling managed (!) code

Hi,

We are in a situation where we have a Win32 application which is
currently deployed to about 15000 desktop machines and want to rewrite
the back end (business logic) in a modern language. At the moment there
is no change for changing the front end (GUI) because it's far to
complex to rewrite it now.

Thus, we are currently evaluating several alternatives for programming
languages and one very favourite candidate is C#.

Please could anybody give me good hints for:
- how to write managed DLLs (in C#) and call them from a Win32 process?
The only valuable information I could found was about the reverse
direction.
- Are there any good studies about how to write components on a large
environment so that they are interchangable easily? (something like
plugins to customize the software for customers)
- Are there informations how .NET applications behave if, say, 4000
classes are involved in a project (over many components, of course)?
Thanks for any help!

FM
Nov 16 '05 #1
1 1323
>
We are in a situation where we have a Win32 application which is
currently deployed to about 15000 desktop machines and want to rewrite
the back end (business logic) in a modern language. At the moment there
is no change for changing the front end (GUI) because it's far to
complex to rewrite it now.

I know this feeling... BOY do I know this feeling...
Please could anybody give me good hints for:
- how to write managed DLLs (in C#) and call them from a Win32 process?
The only valuable information I could found was about the reverse
direction.
Hmmm, There might be a way to expose .NET as WIN32 though I doubt it highly. I recommend consulting the Interoperability Bible:

http://www.amazon.com/exec/obidos/tg...glance&s=books

When you find nothing of help in there you can do a full round trip from unmanaged to managed and back again. I've gone from C# to Managed C++ to Unmanaged C++ and back:

Managed C++ classes are managed: they can see, use, and be seen by C# or any other .NET language. Managed C++ classes can also see and use unmanaged C++ classes. KEY--> Unmanaged C++ can see and use managed C++. Here are some MSDN search keywords: "gcroot template", "pinning", "boxing", "DllImport", "MarshalAs"...
- Are there any good studies about how to write components on a large
environment so that they are interchangable easily? (something like
plugins to customize the software for customers)


"Service Oriented Architecture" - live it, learn it, love it - it will be the Oop of the 2010s... By the 2020s people will be over it {hungover it} - but for now its SOA or bust... If you're a Microsoft lover be advised that BizTalk and SharePoint are all moving toward SOA... Longhorn will be a platform for SOA... .NET is and will continue to be a platform for SOA... Bill Gates is giving a $50 billion+ dividend and I guarantee it's somehow related to SOA...

--Richard

Nov 16 '05 #2

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

Similar topics

5
by: Virajitha Sarma | last post by:
Hi, Can u plz help me out with how to call a C# DLL from C... I tried to find out by searching in net..but i couldnot find anything on it.... Thanku Virajitha *** Sent via Developersdex...
9
by: Hasan O. Zavalsiz | last post by:
Hi , i am trying to figure out which approach is better to use . let me explain the scenario. i am using the "Nortwind" database . in this database i have "Customers " table .The following is the...
4
by: Bae,Hyun-jik | last post by:
Hi, What is the best case for accessing managed code from unmanaged C++ code, considering that the unmanaged code doesn't have managed extension? Please reply. Thanks in advance. Regards,...
1
by: H.B. | last post by:
Hi, I need to make a function that can display data on my Managed C++ app and be called by an unmanaged C++ DLL. Something like : void Form1::Form1_Load(System::Object * sender,...
5
by: G. Stewart | last post by:
The word "Business" in the term implies some sort of commercial aspects or connotations. But from what I can see, that is not necesserially the case at all? So what is the reasoning behind the...
6
by: Nate | last post by:
I am in a slight predicament trying to determine the most efficient and effective way to connect/disconnect from a database within a business object (c# dll). I'm also keeping in mind the concept...
25
by: Penelope Dramas | last post by:
Hello, I'm in a front of very serious .net redesign/rewrite of an old VB6 application. I had been asked to make it .NET 2.0 and would like to ask couple of questions regarding data access as...
3
by: Klaus | last post by:
Hi, I have an existing VC 6 MFC application which communicates asynchronly with a VC 2005 managed code dll. I use an unmanaged base class with virtual functions to access methods in the MFC...
5
by: jehugaleahsa | last post by:
Hello: I am trying to find what is the very best approach to business objects in Windows Forms. Windows Forms presents an awesome opportunity to use DataTables and I would like to continue doing...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.