473,320 Members | 1,883 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.

Doubts in Design Level. Desktop ->Web-Based in .NET TECH.

Hi all,

We have one product. It is client/server based application. We
have developed client application in VC++ 6.0. Our client is desktop based
application like dialog based application. Client application will connect to
server according to user requests. This is current scenario.

We would like to make this application as a web-based
application. I have core functionality in VC++ application in client
application. I can put this functionality in com dlls also.

To achieve this web-based approach, what technologies I have to
select? Can you please advise me? I am planning to select aspx pages for
web-page and com dll for core functionality in VC++. Is it correct approach?
I have to give compatibility for Microsoft Windows NT/ 2000, Professional 98
SE to Windows Vista and windows 2003 server.

I will implement everything in .NET if .NET is correct
technology for this web-based application. But, I need to reuse my client
code in web-based application.

Please suggest me.

Thanks in advance

--
Thanks & Regards,
John Prasad (dkds)
Mar 30 '07 #1
2 1499
John,

First, if this is going to be a web-based application, do you mean that
you are going to have a web-based front end (i.e. something in a browser) or
will you have a client app that performs operations over the web? If the
answer is the former, then you don't have to worry about the client
machines, as you are programming against the browser (not literally, but
that is what you have to worry about when it comes to platform
considerations). If you are going to have a client app, then I don't know
if you will be able to use .NET, since Windows 98 is a requirement (one I'd
seriously reconsider).

As for the server side, you can implement this in anything you want,
since you will be controlling the server. If all of your client code is in
C++, I wouldn't exactly rush to expose the functionality as COM components.
If you did this, and you were hosting in ASP.NET (one of the options, the
other is in WCF), then you would have to set ASPCompat to true on all of
your pages that call these COM components and it would cause a performance
hit.

I think the best bet would be to create managed wrappers for your code
using the CLI extensions for C++, and then use ASP.NET or WCF to make calls
to your components.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John" <Jo**@discussions.microsoft.comwrote in message
news:01**********************************@microsof t.com...
Hi all,

We have one product. It is client/server based application. We
have developed client application in VC++ 6.0. Our client is desktop
based
application like dialog based application. Client application will connect
to
server according to user requests. This is current scenario.

We would like to make this application as a web-based
application. I have core functionality in VC++ application in client
application. I can put this functionality in com dlls also.

To achieve this web-based approach, what technologies I have
to
select? Can you please advise me? I am planning to select aspx pages for
web-page and com dll for core functionality in VC++. Is it correct
approach?
I have to give compatibility for Microsoft Windows NT/ 2000, Professional
98
SE to Windows Vista and windows 2003 server.

I will implement everything in .NET if .NET is correct
technology for this web-based application. But, I need to reuse my client
code in web-based application.

Please suggest me.

Thanks in advance

--
Thanks & Regards,
John Prasad (dkds)

Mar 30 '07 #2
Nicholas,

How to create managed wrappers for C++ code (using the CLI
extensions)?

I created type library for TestDll.dll (ATL COM DLL) using tlbimp
from VS2005 command prompt. Output is TESTDLLLib.lib. It has only one
function which is CreateFileInCDrive(). It just creates one text file in C
Drive.
code snippet:
STDMETHODIMP CMyTest::CreateFileInCDrive()
{
// TODO: Add your implementation code here
FILE* fp = fopen("C:\\TestDll.txt","w");
if (fp != NULL)
{
fprintf(fp,"%s","welcome\n");
fclose(fp);
}

return S_OK;
}

I created asp.net project and selected code behind is visual c#. I
would like to use atl com dll (TestDll.dll) in Page_Load event. Is it
possible?

In Visual C#, (i mean page_load function) I am able to create object.
But, I cannot create the TestDll.txt file.

Please suggest me.

Is it correct approach?

--
Thanks & Regards,
John.
"Nicholas Paldino [.NET/C# MVP]" wrote:
John,

First, if this is going to be a web-based application, do you mean that
you are going to have a web-based front end (i.e. something in a browser) or
will you have a client app that performs operations over the web? If the
answer is the former, then you don't have to worry about the client
machines, as you are programming against the browser (not literally, but
that is what you have to worry about when it comes to platform
considerations). If you are going to have a client app, then I don't know
if you will be able to use .NET, since Windows 98 is a requirement (one I'd
seriously reconsider).

As for the server side, you can implement this in anything you want,
since you will be controlling the server. If all of your client code is in
C++, I wouldn't exactly rush to expose the functionality as COM components.
If you did this, and you were hosting in ASP.NET (one of the options, the
other is in WCF), then you would have to set ASPCompat to true on all of
your pages that call these COM components and it would cause a performance
hit.

I think the best bet would be to create managed wrappers for your code
using the CLI extensions for C++, and then use ASP.NET or WCF to make calls
to your components.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John" <Jo**@discussions.microsoft.comwrote in message
news:01**********************************@microsof t.com...
Hi all,

We have one product. It is client/server based application. We
have developed client application in VC++ 6.0. Our client is desktop
based
application like dialog based application. Client application will connect
to
server according to user requests. This is current scenario.

We would like to make this application as a web-based
application. I have core functionality in VC++ application in client
application. I can put this functionality in com dlls also.

To achieve this web-based approach, what technologies I have
to
select? Can you please advise me? I am planning to select aspx pages for
web-page and com dll for core functionality in VC++. Is it correct
approach?
I have to give compatibility for Microsoft Windows NT/ 2000, Professional
98
SE to Windows Vista and windows 2003 server.

I will implement everything in .NET if .NET is correct
technology for this web-based application. But, I need to reuse my client
code in web-based application.

Please suggest me.

Thanks in advance

--
Thanks & Regards,
John Prasad (dkds)


Apr 4 '07 #3

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

Similar topics

12
by: David | last post by:
I am a full-time freelance writer. I am seeking an established, professional web designer who has designed more than one successful website for freelance writers. The individual needs to be able...
4
by: Neal | last post by:
I'm thinking about so many posts I've read and answered in the past month - here's where my brain is at. Feel free to add and comment as you see fit. The biggest problem in web design is choosing...
0
by: Maroller | last post by:
I have a WiFi network comprising a Netgear router, a desktop and a laptop. An ASP web service is set up on the desktop IIS. But when I try to add a web reference to an ASP web application developed...
4
by: Sarita Sai Bhushan | last post by:
Hi, While I was developing a active desktop web page in ASP.Net using server controls I faced a problem with the autopostback property of server control. The sever control I used in my aspx page...
0
by: Sukh | last post by:
I am looking for a free tool for designing the menus, images and some kind of flash things for my personal site. I found couple of tool through google but all are demo version so I can't use all...
0
by: mracuraintegra | last post by:
I'm stuck on a pretty big problem, and can't seem to find a solution, so any help would be greatly appreciated! I'm working with the default page generated for remote desktop web clients (in the...
3
by: fredo | last post by:
How to design a tragically poor and inaccessible site: http://www.risd.edu/ http://www.risd.edu/ce_courselist_summer.cfm?choice=PHOTO&field=subCategory RISD is (claims to be) one of the...
1
by: umeshpotdar | last post by:
what are the differences between Mobile Web Site and Desktop Web Site? which are the Accessibility can i give to Web Site for blind poeple? can I access Desktop Web Site in Mobile device or...
1
by: umeshpotdar | last post by:
what are the differences between Mobile Web Site and Desktop Web Site? which are the Accessibility can i give to Web Site for blind poeple? can I access Desktop Web Site in Mobile device or...
0
by: umeshpotdar | last post by:
what are the differences between Mobile Web Site and Desktop Web Site? which are the Accessibility can i give to Web Site for blind poeple? can I access Desktop Web Site in Mobile device or...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: 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.