Results 1 to 8 of 8

Thread: [2008] Common code for Web and Windows Apps?

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2008
    Posts
    31

    [2008] Common code for Web and Windows Apps?

    All:

    Is it feasible (or even desirable...) to write one set of dll's that can be referenced both by windows apps and web apps.

    How do I test to set the boolean of I_am_web_app

    Code:
    If I_am_web_app=True then
    
         myapppath = HttpContext.Current.Request.ApplicationPath 
    
         'and other web code
    
    elseif I_am_windows_vb_app=True then
    
        'do something else
         myapppath = System.Windows.Forms.Application.ProductName
         'not strictly a path, but you get the idea.....
    
    End If
    I'm sure its simple, fundamental and i've plain missed it in the doc....
    Last edited by jono2000; May 27th, 2008 at 11:47 AM. Reason: forgot title...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width