|
The problem is that the user will need to access the object in its after-save state before connecting to the server. Most clients will only connect daily, in the morning, or at close of business.
|
|
|
|
|
You can store all the method calls (which you would send to the server if there was a connection) to an "objectID.log" file, and the object itself to an "objectID.obj" file. When the client connects, you deserialize the object from "objectID.obj" and save it on the server, next you read and send the after-save actions from "objectID.log".
|
|
|
|
|
Yes, I am thinking of using SOAP objects to format the method calls in a standard way, without too much coding, and storing the SOAP method calls on top of the object state in a FIFO queue. When the queue is serviced, the first item off should be an object, and every subsequent item until the next object is a method call for the first object.
|
|
|
|
|
I have found a lot of information about how to import C functions from DLL's and use them in C# but nothing about how to use a static C++ lib or calling unmanaged C++ "directly". Is this not possible?
|
|
|
|
|
why do not you share your information
sdfasd
|
|
|
|
|
I want to read a char from console (like Console.Read) but I need to not wait the ENTER Key.
I know that it can be done using Windows API but this solution doesn't work for me since I'm not using the windows shell (cmd.exe). In fact, I'm running this appication through Cygwin telnet from a VT100 terminal.
I guess that it could be achieved creating a new class which inherits from TextReader and set it as a console stream reader (Console.SetIn), but I'm not sure (still looking ). Any suggestion/samples?
thanks.
|
|
|
|
|
You want to read a char from console but you need to not
wait the ENTER key,It is possible?
I do not think so.Please forgave my ignorance,you do not
enter the key how the computer know that when your inputing
is over.I think maybe you can change the ENTER key to another key .
sorry for my poor english and ignorance.
sdfasd
|
|
|
|
|
It's simple: the input is ready after reading one char. The ENTER key is like any other character and can be read so I could know when the user's input is over.
I just want to read characters one by one, byte by byte.
It can be easily done with C/C++, but I don't know how to do it with C#
In fact, "ReadConsoleInput" from kernel32.dll does what I need but I can't use it as I have explained before.
|
|
|
|
|
Oh,I know what is your means.
you want to do :while((c=getchar())=="key");
maybe you can do it in C# with the same way.
I will try it hurry up.
sorry for my poor English.
sorry for my poor English
|
|
|
|
|
|
The MSDN doc says that Console.Read()
reads the next Character from standard
input.
Thank You
Bo Hunter
|
|
|
|
|
I have gotten some information about it. It works in the Console but I still need to get it working in my particular environment. If anyone is interested:
http://www.dotnet247.com/247reference/msgs/1/5930.aspx
http://www.gotdotnet.com/community/usersamples/Default.aspx?query=ConsoleEx
http://www.mentalis.org/soft/class.qpx?id=2
regards.
|
|
|
|
|
I am getting a Stack Overflow Exception anytime I try to instantiate my custom class any ideas?
|
|
|
|
|
Any recursive method/contructor calls?
|
|
|
|
|
Um like reinstantiating the class in the constructor?
|
|
|
|
|
Did you trace the constructor call in single-step mode? Maybe it calls a neverending method, or it calls itself like that:
public MyClass(int x):this(x){}
|
|
|
|
|
Or just do it in DataGrid
|
|
|
|
|
Hi all,
I was wondering if anybody could help me figure how to make an icon appear on the tab part of the tab pages along with the text.
-Vish
|
|
|
|
|
Hello again,
My earlier post got results related to invoking a script within the context of a page. This is interesting but not what I was looking to do. The execScript() method referred to lets you pass in a script string and have it executed.
I need to invoke a script that is part of the downloaded page after it loads. An example script would be signalling a custom event. Can anyone out there help?
Thanks in advance and Happy Thanksgiving!
|
|
|
|
|
Me think the necesssary tool is already provided.
execScript(scriptcode) allows to execute arbitrary javascript code, so if we assume that the function you are willing to call from the web page is called myfunction() , why wouldn't you do just that :
execScript("<script>myfunction();</script>");
RSS feed
|
|
|
|
|
If this worked for me I'd be psyched. I've tried it and the code in NavigateComplete does not find the methods on the page. Odd thing is, I can set a variable value from the NavigateComplete method with code like:
scriptStr = "var scriptVal = \"this is the C sharp value\";";
try
{
Object retVal = iwnd.execScript(scriptStr, "JScript");
}
catch (Exception ex)
{
Console.WriteLine("SCRIPT EXC: " + ex.Message);
}
// The following is a snippet of script from a web page that displays the
// value of "scriptVal" that was set from the C# code in NavigateComplete.
var scriptVal;
alert("ScriptVal == " + scriptVal);
The "alert" in the html page displays the string value set with the execScript method. I've tried:
- changing the script language in the execScript method to "null"
(Object retVal = iwnd.execScript(scriptStr, null);) and this works.
- bracketed the script passed to execScript with the open/close script tags and this does NOT work.
- passed in the name of a valid script method to the execScript method and this does NOT work.
- bracketed the method with open/close script tags, passed it to the execScript method and this did NOT work.
(the prior two with explicitly specifying language in execScript and that did NOT work either)
I know I'm close to a solution here but I'm missing something fundamental.
Do I need to get the ScriptControl somehow and use the methods in there to solve this?
Thanks
|
|
|
|
|
Hiya I have a dataset filled with my data and need to write this dataset to my blank crystal report I have inserted into the project.
Because I want to then view the data in the Crystal Report Viewer.
How do I do this??
Thanks.
|
|
|
|
|
Try this. It might help! good luck!
http://www.tek-tips.com/gfaqs.cfm/pid/796/fid/3940
knvsolutions
|
|
|
|
|
Hey
I am about to make a Simple 2D game with tanks. A game where you will drive you tank around on a map an shoot on other tanks(simple).
I are thinking of using the regular Direct X, and have started to learn this, but i heard somthing about DirectX managed, and that sounds simple.
But what shold i go with ?
and if i shold go with DirectX manged is there any beginning turtotials on this subject?
Best regards
Jimmy
PS sorry for the bad english
|
|
|
|
|