Click here to Skip to main content
15,903,854 members
Home / Discussions / C#
   

C#

 
AnswerRe: Have a question, it is a little difficult. Pin
David Domingues22-Jan-07 4:35
David Domingues22-Jan-07 4:35 
QuestionIs Code running in Windows App or Web Pin
Jeffrey Scott Flesher21-Jan-07 14:36
Jeffrey Scott Flesher21-Jan-07 14:36 
AnswerRe: Is Code running in Windows App or Web Pin
Christian Graus21-Jan-07 14:53
protectorChristian Graus21-Jan-07 14:53 
GeneralRe: Is Code running in Windows App or Web Pin
Jeffrey Scott Flesher21-Jan-07 19:22
Jeffrey Scott Flesher21-Jan-07 19:22 
GeneralRe: Is Code running in Windows App or Web Pin
H. Neville III21-Jan-07 22:24
H. Neville III21-Jan-07 22:24 
GeneralRe: Is Code running in Windows App or Web Pin
Jeffrey Scott Flesher22-Jan-07 7:13
Jeffrey Scott Flesher22-Jan-07 7:13 
AnswerRe: Is Code running in Windows App or Web Pin
Guffa21-Jan-07 19:19
Guffa21-Jan-07 19:19 
GeneralRe: Is Code running in Windows App or Web Pin
Jeffrey Scott Flesher21-Jan-07 19:33
Jeffrey Scott Flesher21-Jan-07 19:33 
I just posted answer seconds after you posted this (please read); in short in have a library of code (non-controls) that has logic that I use in both windows and web apps; the problem is that if I need to notify the user; or gather information; I need to know if I'm running in a Windows app or web app; pre-compilers (#if) are not a good solution since the main solution contains both Windows and Web app and I deploy them at the same time. It sounds odd that code should know what environment it is running; apps generally written for the web or windows; but when you have common libraries then the need is great and it seems that there should be a function to return that information without having to poke around with a hack like looking for folder names like "Program Files" or something even stupider; I have looked for this answer to no avail and my next step is to ask MS; which for a guy is like asking for directions when I'm lost; I have a map; just no clue as to what state I'm in.

Lessons learned from 911:

1. United We Stand.

2. United’s We Fall.

Gulf War Syndrome survivors never have a good day. http://www.vetshelpcenter.com/

AnswerRe: Is Code running in Windows App or Web Pin
Guffa21-Jan-07 22:07
Guffa21-Jan-07 22:07 
AnswerRe: Is Code running in Windows App or Web [modified] Pin
Abisodun22-Jan-07 2:18
Abisodun22-Jan-07 2:18 
Questionprotect database Pin
ahujap21-Jan-07 13:15
ahujap21-Jan-07 13:15 
AnswerRe: protect database Pin
Christian Graus21-Jan-07 13:29
protectorChristian Graus21-Jan-07 13:29 
GeneralRe: protect database Pin
ahujap21-Jan-07 13:34
ahujap21-Jan-07 13:34 
GeneralRe: protect database Pin
Christian Graus21-Jan-07 14:15
protectorChristian Graus21-Jan-07 14:15 
GeneralRe: protect database Pin
ahujap21-Jan-07 14:27
ahujap21-Jan-07 14:27 
GeneralRe: protect database Pin
Christian Graus21-Jan-07 14:55
protectorChristian Graus21-Jan-07 14:55 
GeneralRe: protect database Pin
ahujap21-Jan-07 14:57
ahujap21-Jan-07 14:57 
GeneralRe: protect database Pin
ahujap21-Jan-07 19:11
ahujap21-Jan-07 19:11 
GeneralRe: protect database Pin
Christian Graus21-Jan-07 21:28
protectorChristian Graus21-Jan-07 21:28 
GeneralRe: protect database Pin
ahujap22-Jan-07 11:37
ahujap22-Jan-07 11:37 
GeneralRe: protect database Pin
Christian Graus22-Jan-07 18:16
protectorChristian Graus22-Jan-07 18:16 
GeneralRe: protect database Pin
ahujap22-Jan-07 18:21
ahujap22-Jan-07 18:21 
GeneralRe: protect database Pin
Christian Graus22-Jan-07 18:30
protectorChristian Graus22-Jan-07 18:30 
GeneralRe: protect database Pin
ahujap22-Jan-07 18:33
ahujap22-Jan-07 18:33 
GeneralRe: protect database Pin
Christian Graus22-Jan-07 18:42
protectorChristian Graus22-Jan-07 18:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.