|
It can be done, and the general practice is to have a central server with 2 types of client:
web: pings for new messages (possibly using AJAX)
windows: gets messages pushed to it from server.
Start with an example of a straight windows forms chat application - there will be plenty online - and build the web client when you are more knowledgable on cthe chat software.
|
|
|
|
|
how windows app users know that there is a messge from web app users same problem for web users..
someone advice me to use socket programming. is it posible.
|
|
|
|
|
At the moment how does one windows app user know there is a message from another windows app user?
|
|
|
|
|
chat only will be done between aspx and win app. Not aspx to aspx or not win to win. only aspx to win or win to aspx
|
|
|
|
|
J4amieC answered this
If you are using SQL Server on the backend, look at SQLNotification
only two letters away from being an asset
|
|
|
|
|
i will use sql. what is sqlnotification. sth like catching sql triggers. can you explain a littler please
|
|
|
|
|
Do some research first, then ask questions
only two letters away from being an asset
|
|
|
|
|
i mke research and found some simple applications. but i have problem in aspx. when sqldepndecy.start(myconnString) code line is debug it takes to much time. i have a page to choose the person to chat. when i chose person and click ok button normally i go to chat with te code redirect("chat.aspx"). but it takes to much time and doesnt redirect me chat page. becaues in chat page load event sqldependecy.start(myconstrin) takes to much time. is there any setting to enable sth work sqldependc. for exmple we must enable service broker in sql. in asp.net is there any setting
|
|
|
|
|
i'm using sql server and sql server authentication to log the users , when the application connecting the db connection string carries the password and the username , what i want to do is encrypt the connection string when connecting the db ,
COULD you tell me how to do this ......
|
|
|
|
|
Try this one.
If that doesn't work, you should search Google like I did for that link.
Hogan
|
|
|
|
|
|
Can anyone help me with this error. It appears to happen when I try to create an istance of the UPnPDeviceFinderClass.
Creating an instance of the COM component with CLSID {E2085F28-FEB7-404A-B8E7-E659BDEAAA02} from the IClassFactory failed due to the following error: 80070422.
My application searches a LAN for uPnP devices, for some reason it works fine on most computers but there are a select few that I get the above error.
Freedom is the right to say that 2+2=5 if this is so everything else will follow.
|
|
|
|
|
...I would assume that you are using the 2.0 Framework? ...It has been suggested that that error is caused by a bug in the framework. There's a hotfix available here ...Apply it and see if your error disappears. If it does, come back and let everyone know. If it doesn't, then I'm out of ideas.
"I need build Skynet. Plz send code"
|
|
|
|
|
Hey Alaric_,
Your assumption is correct, I am using the 2.0 Framework.
I did install the update that you recommended, but it didn't change a thing unfortunately.
Thank you very much for your suggestion, at the minute I'm stuck between a rock and a hard place.
If anyone else has any suggestions I would be glad to hear them.
Freedom is the right to say that 2+2=5 if this is so everything else will follow.
|
|
|
|
|
hello
when i compiling this code its appended allthe lines in one line..
I want to keep the file as it is and want to add comment where there is assemblyVersionInfo string...
String strPathToFile = "Put here the path to the .cs file";
System.IO.StreamReader sr = new System.IO.StreamReader(strPathToFile);
System.Text.StringBuilder strAllText = new System.Text.StringBuilder();
bool AlreadyCommented = false;
do
{
if(sr.Peek() == -1) break;
String line = sr.ReadLine();
if(line.IndexOf("AssemblyVersion") > -1 && line.IndexOf("//") > -1) AlreadyCommented = true;
strAllText.Append(line);
}
sr.Close();
if(AlreadyCommented) return;
System.IO.FileInfo fi = new System.IO.FileInfo(strPathToFile);
fi.CopyTo(strPathToFile + ".bak"); //backup copy of the old file
int posOfAssemblyVersion = strAllText.ToString().IndexOf("AssemblyVersion");
//Look for the closing bracket "]"
int posOfClosingBracket = strAllText.ToString().IndexOf("]", posOfAssemblyVersion);
string strComments = "//Put there the desired comments";
strAllText = strAllText.Insert(posOfClosingBracket, strComments);
System.IO.StreamWriter sw = new System.IO.StreamWriter(strPathToFile, false); //overwrites the original
sw.Write(strAllText.ToString());
sw.Close();
if you have any ans then plz reply as soon as
thanks
|
|
|
|
|
instead of strAllText.Append(line);
you might want to look at strAllText.AppendLine(line);
Have Fun
|
|
|
|
|
hi,
I want to update the data part of a chart which is already there in my word docuement. I am working in C# 2.0 console application. I am using a word template which has a graph in it. I have a dataset and I want to update the data source of the graph at runtime. Is there any way to do this? I tried reflection but it does not work.
|
|
|
|
|
sealed class Class1
{
public int g=0;
}
class pan
{
Class1 d = new Class1();
}
i know i can't inherit the sealed class , but after instantiating the selaed class in another class , i am not getting the class name object.
eg after instantinating the class class1
Class1 d = new Class1();
in next line of code when i type the character d , the intellisence does not show the object d.
why this is happening ?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
definitely it should work. For clarification try with some default sealed class in the .Net framework.
Check if you are trying to access the class from any methods or not.
|
|
|
|
|
class object are not appearing while i try to access the member functions of that sealed class
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
check this,
<br />
sealed class A()<br />
{<br />
public string Add()<br />
{<br />
}<br />
public int id;<br />
}<br />
<br />
class B<br />
{<br />
A obj=new A()<br />
<br />
<br />
public void method()<br />
{<br />
obj.Add();<br />
}<br />
}
|
|
|
|
|
ok solved
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Hi,
In my application, i want to allow the user change their local time by a form. But I don't know how
Can you help me ?
Thank for support
|
|
|
|
|
Hello,
The kernel32.dll provides a method called SetLocalTime:
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public struct SystemTime
{
public short sYear;
public short sMonth;
public short sDayOfWeek;
public short sDay;
public short sHour;
public short sMinute;
public short sSecond;
public short sMilliSeconds;
}
[System.Runtime.InteropServices.DllImport("kernel32.dll")]
public static extern bool SetLocalTime(ref SystemTime time);
Or call the System Timesetting directly over a process:
using System.Diagnostics;
ProcessStartInfo TimeSetting = new ProcessStartInfo(@"C:\WINDOWS\system32\rundll32.exe","shell32.dll,Control_RunDLL timedate.cpl,,0");
TimeSetting.UseShellExecute = false;
TimeSetting.WorkingDirectory = @"C:\WINDOWS\system32";
Process TSet = Process.Start(TimeSetting);
TSet.Dispose();
TSet = null;
Hope it helps!
All the best,
Martin
|
|
|
|
|
In the OS? Or just for your application?
I wouldn't attempt the former.
|
|
|
|