Click here to Skip to main content
15,896,456 members
Home / Discussions / C#
   

C#

 
AnswerRe: can i get bytes info from DC directly ? Pin
Christian Graus18-Apr-04 13:54
protectorChristian Graus18-Apr-04 13:54 
GeneralRe: can i get bytes info from DC directly ? Pin
fu019-Apr-04 21:17
fu019-Apr-04 21:17 
GeneralRe: can i get bytes info from DC directly ? Pin
Christian Graus20-Apr-04 10:44
protectorChristian Graus20-Apr-04 10:44 
GeneralApplication Global Properties Pin
John Baird18-Apr-04 1:42
John Baird18-Apr-04 1:42 
GeneralRe: Application Global Properties Pin
CWIZO18-Apr-04 1:53
CWIZO18-Apr-04 1:53 
GeneralRe: Application Global Properties Pin
John Baird18-Apr-04 1:56
John Baird18-Apr-04 1:56 
GeneralRe: Application Global Properties Pin
CWIZO18-Apr-04 2:12
CWIZO18-Apr-04 2:12 
GeneralRe: Application Global Properties Pin
John Baird18-Apr-04 2:31
John Baird18-Apr-04 2:31 
Thanks for replying, but I'm still lost. I'm trying to load the values into a static structure now. The values are loaded, but when I try to access them from the watchwindow, I get the "out of score" error.

Pardon me, but here is the code. Can you tell me what's wrong?

<font size = 1>using System;
using System;
using AMS.Profile;


namespace MySpace
{
	/// <summary>
	/// Summary description for AppStartUp.
	/// </summary>
	public class AppStartUp
	{
		public AppStartUp()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public struct AppDefaults
		{
			public static string server = "";
			public static string dataBase = "";
			
			public static string adminPath = "c:\vsdevelop";
			public static string sqlConn = "";		
		}

		public static void SetAppDefaults()
		{
			Registry profile = new Registry();
			AppDefaults.server = profile.GetValue("DBSettings","DBServer","");
			AppDefaults.dataBase = profile.GetValue("DBSettings","DBName","");
			
			AppDefaults.adminPath = "c:\vsdevelop";
			AppDefaults.sqlConn = "SERVER=" + AppDefaults.server.ToUpper().Trim() + ";UID=uid; PWD=pwd;DATABASE=database";
		}
		
		public static void LoadProgramSettings()
		{
			SetAppDefaults();
			
		}
	}
}

</code>

GeneralRe: Application Global Properties Pin
CWIZO18-Apr-04 3:51
CWIZO18-Apr-04 3:51 
GeneralRe: Application Global Properties Pin
John Baird18-Apr-04 3:55
John Baird18-Apr-04 3:55 
GeneralRe: Application Global Properties Pin
CWIZO18-Apr-04 4:32
CWIZO18-Apr-04 4:32 
GeneralRe: Application Global Properties Pin
Heath Stewart19-Apr-04 2:35
protectorHeath Stewart19-Apr-04 2:35 
GeneralRe: Application Global Properties Pin
Anonymous19-Apr-04 2:52
Anonymous19-Apr-04 2:52 
GeneralRe: Application Global Properties Pin
Heath Stewart19-Apr-04 3:12
protectorHeath Stewart19-Apr-04 3:12 
Questionwhat should I do? marhal or unsafe??? Pin
Paolo Ponzano18-Apr-04 0:51
Paolo Ponzano18-Apr-04 0:51 
AnswerRe: what should I do? marhal or unsafe??? Pin
Daniel Turini18-Apr-04 1:14
Daniel Turini18-Apr-04 1:14 
GeneralRe: what should I do? marhal or unsafe??? Pin
Paolo Ponzano18-Apr-04 1:30
Paolo Ponzano18-Apr-04 1:30 
GeneralRe: what should I do? marhal or unsafe??? Pin
leppie18-Apr-04 4:50
leppie18-Apr-04 4:50 
GeneralRe: what should I do? marhal or unsafe??? Pin
Paolo Ponzano18-Apr-04 8:37
Paolo Ponzano18-Apr-04 8:37 
AnswerRe: what should I do? marhal or unsafe??? Pin
Heath Stewart19-Apr-04 2:42
protectorHeath Stewart19-Apr-04 2:42 
GeneralRe: what should I do? marhal or unsafe??? Pin
Paolo Ponzano19-Apr-04 7:43
Paolo Ponzano19-Apr-04 7:43 
GeneralRe: what should I do? marhal or unsafe??? Pin
Heath Stewart19-Apr-04 8:45
protectorHeath Stewart19-Apr-04 8:45 
GeneralRe: what should I do? marhal or unsafe??? Pin
Paolo Ponzano19-Apr-04 9:14
Paolo Ponzano19-Apr-04 9:14 
QuestionWhat component should i use? Pin
hfuiew17-Apr-04 23:51
hfuiew17-Apr-04 23:51 
AnswerRe: What component should i use? Pin
Mazdak18-Apr-04 0:25
Mazdak18-Apr-04 0:25 

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.