|
Hi
I have created a Setup and Deployment Winform Application.
While installation the setup routine asks the user for the Folder in which the application should be installed in.
I want to read the Folder name chosen by the user in my application.
Is there any way to read the Folder name from the application.
regards
rt7.
rt7
|
|
|
|
|
Uhhh Didn't you write the application? What do you mean you want to "read the Folder name chosen by the user in my application"? If you asked the user for the folder, what's stopping you from reading what the user typed?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
I wrote the app.
I used the Setup and Deployment Project type, that displays the Folder Name to which app should be installed automatically.
Any more questions ?
thanks..rt7.
rt7
|
|
|
|
|
|
That makes alot more sense than what you originally posted. What you said before sounded like you made a your own custom Setup and Deployment application that is used to install other applications.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi there! I have a question regarding .NET C#. I have read that globals are no longer a element of .NET C# that instead they call them static variables. However I was wondering is it possible to share static variables between different classes that are within the same project. If so please let me know. I am trying to figure out a efficient way of passing this array[200] of structs, that I have created between two classes. Any help you could pass my way would be great.
-C# Newbie
|
|
|
|
|
C# .NET Newbie wrote:
I have read that globals are no longer a element of .NET C# that instead they call them static variables.
No, that is wrong. Globals have been bad programming practice for a long time, but they were available in C++, which also had/has static variables.
C# .NET Newbie wrote:
However I was wondering is it possible to share static variables between different classes that are within the same project
If a class has a public static variable, then any other class can access it. I've worked on excrable VB.NET code with a class called 'Globals' that does this.
C# .NET Newbie wrote:
I am trying to figure out a efficient way of passing this array[200] of structs, that I have created between two classes.
The most logical thing I would suspect is that the array needs to sit in a third class that these two classes commonly access. It sounds like it belongs to neither one class or the other. If this is not the case ( it belongs to one, but the other needs to use it ), then you need to pass it to this class, either in the method that uses it ( if it's commonly used in class two, see my first suggestion ), or perhaps via a delegate that can be called to retrieve it as needed.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
HI!
I was wondering if it is possible to create a chat application using web services? i want to be able to chat via lan and internet.. and with an application or with a web page, is it possible?
THANKS!!
|
|
|
|
|
Hello All,
I working with a SIP phone Com Component. I use it in weba application but i got this error when i use it.
Catastrophic failure <br />
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br />
<br />
Exception Details: System.Runtime.InteropServices.COMException: Catastrophic failure
Please help...
Regards,
Hay
|
|
|
|
|
Your COM component has blown up. This means that either
a/ it's crap
b/ you've passed in invalid data AND it's crap.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Could it be that the component won't work in a web page? It's entirely possible it will only work in a Windows Forms application.
... and it's crap!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am new to C# and still learning…so for you pros out there, I’m sure this is a piece of cake.
Using Windows 2000 Server ( .NET Framework 1.1 )
#1. I need to (uncheck) not allow inheritable permissions from a parent to propagate to this object & copy previously inherited permission to this object.
#2. Add a user from Active Directory to the folders permission with Modify, Read & Execute, List Folder Content, Read and Write allowed permission.
Any help would be greatly appreciate
Thank you,
Mark
markaelkins@gmail.com
|
|
|
|
|
|
I could only find information on file permission, not folder permission?
|
|
|
|
|
Hi,
I built a windows form client app in c# that access a db on a network. Now I was wondering how can I set it up so that the app can accesses the database through the web? I don't want to rebuild the client app into an asp.net app. Maybe I could or should use Web Services that sits on a web server with database and do my updating through this route. What do you guys/gals think?
Thanks,
JJ
|
|
|
|
|
Help ~
I am currently working on a project that will create Word documents. Everything was going great until I tried to run the application on a machine w/ Office 2003. This is where I found out about PIA's.
I have taken the MSWORD9.OLB file and generated an assembly for it and move the new Microsoft.MSWORD9.dll file to the machine w/ Word 2003 everything works great - accept that my machine (which has Word 2000) is now throwing the following error **
System.InvalidCastException QueryInterface for interface Microsoft.MSWORD9._Application failed
I have add the assembly to the GAC and registered it - the lines of code where the error is thrown are as follows:
_WordApp = new Microsoft.MSWORD9.ApplicationClass();<br />
_WordDoc = _WordApp.Documents.Add(ref Missing, ref Missing, ref Missing, ref IsVisible);
Any help will be greatly appreicated
Michele
Mercer Engineering Research Center
mstusak@merc.mercer.edu
|
|
|
|
|
As you probably are aware of, there is a big difference between Office 2000 PIAs and Office 2003 PIAs. If Office 2000 PIAs can be redistributed with the application setup, well Office 2003 PIAs can not.Except ifyou want to corrupt the Office installed on the deployment machine. Office 2003 PIAs should be installed using the Office's setup add/remove function. You can find more information on: http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/dno2k3ta/html/officeprimaryinteropassembliesfaq.asp[^].
The bottom line is if you want your application to support both Office 2000 and Office 2003 you should create two separate applications, one for each version of office and distribute them according to the installed Office on the deployment machine
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up when they still are.
|
|
|
|
|
I am trying to parse a string into seperate values and am drawing a blank.
I want to fill an array with each value so that I can loop through each item later to fill out a form.
Here is what I have, followed by the error message.
<br />
string apps = "Computers,Servers,Laptops,Routers";<br />
string []arr = apps.Split(",");<br />
error msg: Argument '1': cannot convert from 'string' to 'char[]'
Any thoughts or suggestions would be appriciated. I know it should be easy, I just can't think of the right syntax.
|
|
|
|
|
apps.Split(','); // notice the single quote characters, which imply System.Char, whereas double quote characters imply System.String
or
apps.Split(new char[] {','});
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: He has a funny face. And he's my son.
Judah Himango
|
|
|
|
|
|
|
I can't get access to the reader in
private void btnLogin_Click(object sender, System.EventArgs e)
here is the whole program. I know it is somethinge very basic. Please point it out to me.
Thanks Brian
private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
<br />
}<br />
<br />
#region Web Form Designer generated code<br />
override protected void OnInit(EventArgs e)<br />
{<br />
InitializeComponent();<br />
base.OnInit(e);<br />
}<br />
<br />
private void InitializeComponent()<br />
{ <br />
this.oleDbDataAdapter1 = new System.Data.OleDb.OleDbDataAdapter();<br />
this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();<br />
this.oleDbConnection1 = new System.Data.OleDb.OleDbConnection();<br />
<br />
this.dbLoginInfo1 = new dbLoginInfo();<br />
((System.ComponentModel.ISupportInitialize)(this.dbLoginInfo1)).BeginInit();<br />
this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);<br />
this.lblMessageTextBox1.TextChanged += new System.EventHandler(this.lblMessageTextBox1_TextChanged);<br />
this.oleDbDataAdapter1.SelectCommand = this.oleDbSelectCommand1;<br />
this.oleDbDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] <br />
{<br />
new System.Data.Common.DataTableMapping("Table", "tblEmployee", new System.Data.Common.DataColumnMapping[] <br />
{<br />
new System.Data.Common.DataColumnMapping("EmployeeID", "EmployeeID"),<br />
new System.Data.Common.DataColumnMapping("FName", "FName"),<br />
new System.Data.Common.DataColumnMapping("LName", "LName"),<br />
new System.Data.Common.DataColumnMapping("Password", "Password"),<br />
new System.Data.Common.DataColumnMapping("Username", "Username")<br />
})});<br />
this.oleDbSelectCommand1.CommandText = "SELECT EmployeeID, FName, LName, [Password], Username FROM tblEmployee";<br />
this.oleDbSelectCommand1.Connection = this.oleDbConnection1;<br />
this.oleDbConnection1.ConnectionString = @"Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database Locking Mode=0;Data Source=""D:\MGDevelopment\SIMDAC Viewer\DB\simdac_be.mdb"";Jet OLEDB:Engine Type=5;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet OLEDB:System database=;Jet OLEDB:SFP=False;persist security info=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Create System Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1";<br />
this.dbLoginInfo1.DataSetName = "dbLoginInfo";<br />
this.dbLoginInfo1.Locale = new System.Globalization.CultureInfo("en-US");<br />
this.Load += new System.EventHandler(this.Page_Load);<br />
((System.ComponentModel.ISupportInitialize)(this.dbLoginInfo1)).EndInit();<br />
try <br />
{<br />
this.oleDbConnection1.Open();<br />
}<br />
catch (OleDbException ex) <br />
{<br />
}<br />
OleDbDataReader OleDbReader = this.oleDbSelectCommand1.ExecuteReader(CommandBehavior.CloseConnection);<br />
while(OleDbReader.Read())<br />
{<br />
string sUserName = OleDbReader["UserName"].ToString();<br />
string sPassword = OleDbReader["Password"].ToString();<br />
<br />
}<br />
<br />
}
|
|
|
|
|
|
Sorry for onitting this.
private void btnLogin_Click(object sender, System.EventArgs e)<br />
{<br />
if (Page.IsValid) <br />
<br />
{<br />
while(OleDbReader.Read())<br />
{<br />
if(txtUserName.Text==OleDbReader["UserName"].ToString()&&<br />
(txtPassword.Text==OleDbReader["Password"].ToString()))<br />
{<br />
Response.Redirect("SelArptFrmSet.htm");<br />
}<br />
else<br />
{<br />
lblMessageTextBox1.Text = "Invalid Login!";<br />
lblMessageTextBox1.Visible=true;<br />
}<br />
}<br />
}<br />
}
|
|
|
|
|
Thank you very much!
I removed the code from the Initial component area and placed it in the btn.
Works fine.
Brian
|
|
|
|