Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / September 2007

Tip: Looking for answers? Try searching our database.

Need Interfacing options to Windows App

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sippyuconn - 22 Sep 2007 13:58 GMT
Hi

I have a windows app that users use as a standalone product but some want to
embed the functionality into there system.
Basically they want a gateway to call my form or forms with parameters
then I will return data to them so they can continue in there larger system.

Curious is anyone has experience with this and any ideas??
This is what I am considering so far

1)Call exe command line with parameters and write text file for user to read
on output - only issue with this is that Dotnet Windows apps starts really
slow- startup of framework??? - so to embed in system the user would see a
lag time on every call to exe

2)Remoting - would this be a possibility ??? If I make sure my pgm is on
user pc or mapped drive???  I am playing with this and have questions in a
separate post

3)COM interface - can I expose methods in my Exe solution to call my forms

Any other possibilities???

Thanks
Michael Nemtsev, MVP - 22 Sep 2007 15:11 GMT
Hello sippyuconn,

Do u have the source code for your standalone app or not?
If u do, the simplest way is to wrap the reusable functionality into user
controls, which can be consumed by the different clients, and consider to
move the logic to external services - making your controls like gateways.

If u don't have the source code, then I suppose the screen scraping the only
way to reuse functionality

---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour 

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

s> Hi
s>
s> I have a windows app that users use as a standalone product but some
s> want to
s> embed the functionality into there system.
s> Basically they want a gateway to call my form or forms with
s> parameters
s> then I will return data to them so they can continue in there larger
s> system.
s> Curious is anyone has experience with this and any ideas?? This is
s> what I am considering so far
s>
s> 1)Call exe command line with parameters and write text file for user
s> to read on output - only issue with this is that Dotnet Windows apps
s> starts really slow- startup of framework??? - so to embed in system
s> the user would see a lag time on every call to exe
s>
s> 2)Remoting - would this be a possibility ??? If I make sure my pgm is
s> on user pc or mapped drive???  I am playing with this and have
s> questions in a separate post
s>
s> 3)COM interface - can I expose methods in my Exe solution to call my
s> forms
s>
s> Any other possibilities???
s>
s> Thanks
s>
Nicholas Paldino [.NET/C# MVP] - 22 Sep 2007 15:13 GMT
sippyuconn,

   You could always just refactor your app into components that aren't tied
to the UI.  Then you can choose to expose that functionality through
remoting, COM interop, or whatever mechanism suits you.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi
>
[quoted text clipped - 23 lines]
>
> Thanks
sippyuconn - 23 Sep 2007 02:58 GMT
Thanks Nicholas

The UI is an integral part of the process - so I need to keep some UI with the
fuctionality of the code

> sippyuconn,
>
[quoted text clipped - 29 lines]
> >
> > Thanks
Linda Liu [MSFT] - 24 Sep 2007 11:09 GMT
Hi,

In my opinion, you may build the reusable functions into a Web Service,
then your WinForm application and other applications can call these
functions from the Web Service.

FYI, the following link discusses "Getting Started with Web Services":
http://msdn2.microsoft.com/en-us/webservices/aa740678.aspx

Hope this helps.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
sippyuconn - 24 Sep 2007 13:16 GMT
Hi Linda

Thanks for the response - I new webservices probably would be the best way
to go but was staying away from it because it caused more of a support issue
when I distribute the app - customers may not want iis on there system and
also need people to know about iis

I was trying to leave a small footprint on the customers pc and easy to
support

Thanks

> Hi,
>
[quoted text clipped - 30 lines]
>  
> This posting is provided "AS IS" with no warranties, and confers no rights.
Linda Liu [MSFT] - 26 Sep 2007 11:40 GMT
Hi Sippyuconn,

Thank you for your reply!

Since Web Service is appropriate to your practice, you may make use of
remoting.

BTW, I have replied to your another post "Call Form from Library thru
remoting" in this newsgroup. If you have any question, please reply to me
on that thread and I will follow up with you in time.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support
Mike Blake-Knox - 27 Sep 2007 21:55 GMT
> customers may not want iis on there system

You might want to investigate Web Services Enhancements 3.0. It allows
you to offer web services without IIS.

Mike

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.