|
Thanks for you help...
I have got it started, just putting it together.
G
|
|
|
|
|
hi all.
in my server application there are some variables that have to be changed during setup my application on the webserver like the ip address of that server and the port address i suceeded to override the install class to modify the configuration of the setup process to pass these variables from dialogs i added during deployment but the question is
i need to make my user to provide the ip address and port and then the dialog take these variables and modify it and then the setup.exe is created with the new variables values and then other users can double click the setup.exe file and installing it with the new values and the installation don't ask them for new variables
did you get me or not i can explain it in more details
-----------------------------------------------------
when i override my install class to pass variables to the application during installation time it is ok it passes these variables with the new values but each time the user press the setup.exe file it gives him the same dialog to enter the new values of the variables like the ip address and port number but i need to make the user provide it once and then click change values buttons and then it creates setup.exe file with the new embedded values and create that file on the hard desk of the user pc and then he can give the setup.exe file to other users and they click and install the application without asking them to give the values again something like creating server in subseven or prorat or any remote administration tool please any help in that
Miss With The Best And Die Like The Rest
|
|
|
|
|
snouto wrote:
did you get me or not i can explain it in more details
Nope. Figure out what punctation is first. We then might be able to figure out what your saying.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i need to provide file.exe to enable the user to put values in the text boxes and then write these values to the installer.exe file which i will pass these custom data to it and then the file.exe create for me the installer.exe with the new values entered and then i can send this installer.exe to users and install my program safely with the new values changed internally.
Miss With The Best And Die Like The Rest
|
|
|
|
|
|
|
Yeah, yeah, I know the difference. I just missed that one.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i need to store the network stream of the user into mysql i succeeded to connect my server with mysql database but i don't find good column type to store the network stream in and then retrieve it when i need it to send messages for the specific user with that network stream i need to store it as object to retrieve it and cast it with networkstream class to change it to the corresponding network stream any help in that
Miss With The Best And Die Like The Rest
|
|
|
|
|
Does MySQL not support BLOBs (BinaryLargeObject) like the rest of the DBs?
|
|
|
|
|
First, use punctuation because I really can't underatnd what your trying to do.
Second, you can't store a NetworkStream object in a database. The underlying unmanaged resources will be lost when the NetworkStream object goes out of scope and your connection will be closed and torn down. Simply casting the object you retrieve from the database back to a NetworkStream object will not work.
What are you really trying to do with this?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for Reply my friend.
iam developing chat application server /client tools
i need when the user enter after signing in successfully to let my server store the networkstream object in the database instead of storing it in hashtable and then when i need to send him a message, I can retrieve the networkstream again from the database by his username and then write to its retrieved stream.
Yes my friend i used that idea to cast the object come from the database back to networkstream but it didn't work i don't know why my friend. like the below code
<br />
object retrievedstream = this.getstream();<br />
system.io.streamwriter mywriter = new system.io.streamwriter((networkstream)retrievedstream));<br />
mywriter.write("the message here");<br />
mywriter.flush();<br />
any help with that
Miss With The Best And Die Like The Rest
|
|
|
|
|
I just got done telling you that you CAN'T do that and why.
If you're going to hold onto a NetworkStream, you MUST hold it in memory. You can't ship it off to a database and forget about it because the underlying unmanaged resource will not get saved to the database and will not be retained for later use in a reconstituted NetworkStream object.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i am trying to get all teh text content from a web page, (text only, no HTML)
so i am using this regex
<code>
private void ExtractPageContent(string HTMLString)
{
try
{
Regex regexObj = new Regex("<[^>]*>|\\\\n|(&\\w+;)|[0-9.,]|[;:,.'\"\\[\\]!@#$%^&*()-]\r\n");
string resultString = regexObj.Replace(HTMLString, "");
this.words = resultString.Split(' ');
}
catch (ArgumentException ex)
{
// Syntax error in the regular expression
}
}
</code>
but this is not giving me spaces between the words so i can then split on the space to populate a word array.
is there a way to acheive this while the regex is iterating the string ?
or am i taking th ewrong approach to this ?
kind regards,
g00fy
|
|
|
|
|
How do you define "text content". Any text between any html tags?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
yes, but i am also excluding the text between the 'a' tags
its a 'spider' bot program that crawls the net looking for words that meet certain criteria, then it looks them up in an online dictionary and maps the word to its meaning
so im just trying to get the words from the page then i do the criteria checks
i already have a regex to extract the href's
here is that one:
<code>
string href = Regex.Match(link, "href=\\\"(.*?)\\\"").Value;
</code>
only downside to that regex is it only gets 'legal' href's like href="fsdfs" not href=fsdfs but thats ok
regs,
g00fy
|
|
|
|
|
|
thank you for that,
i did search though for about an hour, as i always do but i couldnt fine anything substantial, but my searches where for regex not for a complete solution
thank you again
g00fy
|
|
|
|
|
you're welcome
David
|
|
|
|
|
keep a lookout for a dictionary builder article on here in a while,
funcitonality will (initially) include:
* recursively follow links from a starting URI, (to a limit)
* build dictionary based on words from the browsed pages, word and several meanings
* generate word files for MS Word and the like
* build thesarus from generated dictionary
* merged dictionary database table to recursivley build bigger dictioanry with meaning comparisons
* multilingual translations, for word and meaning
* run from desktop client or login to web frontend
* print a formatted dictionary by word prefix
all this will hopefully be achieved using online dictionaries and translators that are already in place.
also, does anyone know how MS query string looks like for searching clip art from within office, i have a clip art library builder, using similar concept and i would like to access the clipart from microsoft. im not sure they do licence checking on there clipart as you can search them from thier webpage. perhaps i will start another thread on this soon
regs
g00fy
|
|
|
|
|
Hy,
I'm trying to create a class which sends files (common file formats - xls, pdf, txt, jpg) to
a specified printer and a specified paper slot.
My problems are:
- Doing it with Process.Start (verb "print" or "printto") is a good and quick method,
but i have to set the paper slot for each document. (Is there another possibility?)
- The function should be dynamic for all file types, that means, I do not want to make a class
for every file type (PDFDocument, TXTDocument etc...)
The best solution for me would be a function like this:
public void PrintFile(string FileName, string PrinterName, string PaperSlot)
{
...
}
Maybe there's a component or something else which is solving my problem. I'm already sick of searching...
I'm thankful for every answer.
Greez && Thx
DukeII
|
|
|
|
|
Hello,
When l got to update my database l get this error message "Missing the datacolumn 'DepartmentName' in the DataTable 'Employee' for the sourceColumn 'DepartmentName' ".
I have a database application. 2 tables. Department and Employee.
Department -> DepartmentCode (PK)
DepartmentName
Employee -> EmployeeID (PK)
Name
Surname
DepartmentCode (FK)
I have create this relationship in code using relationships in the form load event. see below:
<br />
private void frmEmployees_Load(object sender, System.EventArgs e)<br />
{<br />
try<br />
{<br />
cnn.Open();<br />
OleDbCommand cmd = cnn.CreateCommand();<br />
cmd.CommandType = CommandType.Text;<br />
cmd.CommandText = "SELECT * FROM Employee";<br />
da.SelectCommand = cmd;<br />
da.FillSchema(ds,SchemaType.Source,"Employee");<br />
da.Fill(ds,"Employee");<br />
<br />
cmd.CommandText = "SELECT * FROM Department";<br />
da.SelectCommand = cmd;<br />
da.FillSchema(ds,SchemaType.Source,"Department");<br />
da.Fill(ds,"Department");<br />
<br />
DataColumn parentColumn = ds.Tables["Department"].Columns["DepartmentCode"];<br />
DataColumn childColumn = ds.Tables["Employee"].Columns["DepartmentCode"];<br />
<br />
ds.Relations.Clear();<br />
drEmployees = new DataRelation("EmployeeDetails",parentColumn,childColumn);<br />
ds.Relations.Add(drEmployees);<br />
<br />
txtEmployeeID.Text = ds.Tables["Employee"].Rows[0]["EmployeeNumber"].ToString();<br />
txtFirstName.Text = ds.Tables["Employee"].Rows[0]["FirstName"].ToString();<br />
txtSurname.Text = ds.Tables["Employee"].Rows[0]["Surname"].ToString();<br />
txtDateOfBirth.Text = ds.Tables["Employee"].Rows[0]["DateOfBirth"].ToString();<br />
txtAddress1.Text = ds.Tables["Employee"].Rows[0]["Address1"].ToString();<br />
txtAddress2.Text = ds.Tables["Employee"].Rows[0]["Address2"].ToString();<br />
cboDepartment.Text = ds.Tables["Employee"].Rows[0]["DepartmentCode"].ToString();<br />
<br />
string departmentCode = ds.Tables["Employee"].Rows[0]["DepartmentCode"].ToString();<br />
DataRow[] departmentRow = ds.Tables["Department"].Select("DepartmentCode = '" + departmentCode + "' ");<br />
string departmentName = departmentRow[0]["DepartmentName"].ToString();<br />
<br />
<br />
this.UpdateDepartments();
} <br />
catch ( OleDbException ex )<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
catch ( Exception ex )<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
}<br />
When l click the update button, l run this code and get an error on the update.
<br />
ds.Tables["Employee"].Rows[0]["FirstName"] = txtFirstName.Text;<br />
ds.Tables["Employee"].Rows[0]["Surname"] = txtSurname.Text;<br />
ds.Tables["Employee"].Rows[0]["DepartmentCode"] = departmentCode;<br />
<br />
da.Update(ds,"Employee");
I hope someone can help me with this question. very important.
Thanks in advance,
Steve
|
|
|
|
|
I would like to know how can I design MS Money like software in C#?
|
|
|
|
|
|
Make this into a patent and you could make billions....
|
|
|
|
|