|
Definition from MSDN for interactive processes:
"Interactive Processes
- A service that can communicate with the desktop."
Does that mean if a "Win32OwnProcess" or a "Win32SharedProcess" is not an "InteractiveProcess", some sort of mechanism prevents that process from interacting with Desktop.
I just wrapped up some code in Windows Services - didn't configure it specifically as interactive process, but when I query ServiceController object, it tells me that it's an Interactive Win32OwnProcess. My service does nothing more than listening on a Tcp port and spits out a block of byte in return when connection is accepted. Any client can interact with desktop in response to the byte sent out by my Windows Service. Is that what makes it "Interactive"?
Thanks.
|
|
|
|
|
Hi !
Can anybody please help me?!
I have an object which holds a System.Timers.Timer .
Unfortunately the GC doesn't collect the Object when the timer is running.
any ideas what I can do?!?
thanks.
andi
|
|
|
|
|
|
oh.... nope.
thank you.
andi
|
|
|
|
|
Hi , im trying to use MS Script Control (com) in my app.
it works wonderful but when a script has a syntax error , windows either shows a msgbox or a "do you wish to debug the script blabla"
is there ANY way to turn off this feature (i want to turn it off for my app ONLY , not for entire windows)
any ideas?
if this is impossible , does anyone know of any good VSA samples?
can i use VSA to evaluate expressions the same way as the scriptcontrol? (i only need to evaluate a expression ,no methods/functions or anything)
//Roger
|
|
|
|
|
|
i solved it.
i use jscript.net now instead.
very cool stuff
//Roger
|
|
|
|
|
Hi.
I'm currently working on a deployment package for a .NET Windows Application. The application use Windows Media Player 9 to pre-view media content. I've read trough many of the articles on MSDN about redistributing WMP with your applications, but most of the examples on how to do this code-vice is in C++. We allso found documentation on how to run the setup.exe file with command line switches to install it in silent mode (no gui for the user, it just gets installed).
Our application allso need MDAC 2.8 to run, so we're deploying that as well. Deploying MDAC was a charm, since we found a pre-made merge module we could include in our MSI.
So, question 1: Anyone know if there exist a merge module for WMP9?
If we don't find a merge module for WMP9, we'll have to go for the commandline install in silent mode. The problem is that in our installer class, that is inheriting System.Configuration.Install.Installer, we cant "find" the file. Caouse, once the MSI installer kicks in, then current path is set to c:\windows\system32. I'm 99% sure that the reason is that once the MSI runs, it starts the MSI runtime that's in the system32 folder.
So, question 2: How can i find files inside the MSI / find out where the MSI is started?
My third alternative is to write a setup boot strapper .exe that starts the MSI. Since our app is a .NET windows application, the computer need the .NET framework installed. Therefore we need to write a Delphi/C++/VB6 app to check if the .NET framework is installed, and if not install .NET before launching our MSI. We could check for WMP9 after checking for .NET.
And, some might wonder if you're allowed to redistribute WMP. The answer is yes, if you gain a redistributing licence from MS...
Hope some one could give me a few pointers on how to solve this problem.
Best regards,
Jonas Follesø
|
|
|
|
|
Jonas Follesø wrote:
So, question 2: How can i find files inside the MSI / find out where the MSI is started?
You can use GetModuleFileName() unmanaged API which return the path of current process. I think .NET must have something like this too but I don't have MSDN installed on this machine and my connection is too slow to check online MSDN.
For your third question I think when you create setup for your C# project and you add Installer class to it, this setup need .NET framework to run itself so I don't think you can check it inside the setup.
Mazy
No sig. available now.
|
|
|
|
|
I'd recommend you leave windows media player and in turn use Managed DirectX9 for playing your Audio and Videos.
In this case, you do not need to do anything special when deploying your project. The interesting thing is that the target machine doesn't need DirectX9 installed, any installed version of DirectX is acceptable(at least I remember that directX 7 was enough)
Don't forget, that's Persian Gulf not Arabian gulf!
|
|
|
|
|
I create a htm file for my helprovider class and asossiate this file to HelpNamespace,now my question is what actually happend when I use SetHelpNavigator() method,I use different properties for its second parameter but nothing happend.Can somebody give some point about it?
Thanks
Mazy
No sig. available now.
|
|
|
|
|
I am currently developing a remoting object for my wbsite (www.play47.net) and am experiencing the following problem. If you have any ideas, they would be greatly appreciated...
The remoting object has the following method:
public void MailQueueItemsSet(MailQueueItem job)
This returns a custom object which I have defined back to the DB (ie deletes / updates and needed).
This object (MailQueueItem) has the following definition:
[Serializable()]
public class MailQueueItem : DataItem, ISerializable
Now, from my client application I call the following method:
coordination.MailQueueItemsSet(job);
And receive this exception:
System.Runtime.Serialization.SerializationException: Because of security restrictions, the type play47.mail.RemotingInterfaces.MailQueueItem cannot be accessed. ---> System.Security.SecurityException: Request failed.
at System.Security.SecurityRuntime.FrameDescSetHelper(FrameSecurityDescriptor secDesc, PermissionSet demandSet, PermissionSet& alteredDemandSet)
at System.Runtime.Serialization.FormatterServices.nativeGetSafeUninitializedObject(RuntimeType type)
at System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(Type type)
--- End of inner exception stack trace ---
Server stack trace:
at System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(Type type)
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObject(ParseRecord pr)
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord pr)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.UnsafeDeserialize(Stream serializationStream, HeaderHandler handler)
at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel)
at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at play47.mail.RemotingInterfaces.CoordinationServer.MailQueueItemsSet(MailQueueItem job)
at play47.mail.SMTPClient.SMTPClient.DoJob(MailQueueItem job) in C:\Inetpub\wwwroot\play47\SMTPClient\SMTPClient.cs:line 257
at play47.mail.SMTPClient.SMTPClient.DoWork() in C:\Inetpub\wwwroot\play47\SMTPClient\SMTPClient.cs:line 132
If you have any ideas regarding this problem they would be greatly appreciated...
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
Have you added the remoting object to your web config under the well known objects? If not then the .Net security will not let you use the object. I think there are a few examples of how to set up Remoting on CP. Just search for Remoting and you will find some good articles on how to set up and use remoting.
See:
http://www.codeproject.com/useritems/iishostedremoting.asp?target=remoting
|
|
|
|
|
Ok, I thought you only had to include it in the config to get an instance, then from there on it just got whatever objects it needed.
Thanks for your help... Most appreciated - it works now!
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
I want to learn about snmp soure code with c#,where can find it?
|
|
|
|
|
Can someone convince me to crossover from visual c++ 6 to c#. What's so good in it anywhy, does it have a future of some sort, or is it like basic and qbasic other than the difference in name...
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
nobody can convince you...
If you are interested in C# go and read a few articles or a book...
Then think for yourself and tell us what you think about it...
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
One is new, simple, and has a promising future. The other is old, complex, and has a questionable future.
Regards,
Alvaro
Hey! It compiles! Ship it.
|
|
|
|
|
I have two apps on the same machine, one has to check and see if the other's Remoting server is running, beofore it tries to connect. If it's not running, then the (client) app should launch the other app, and wait for it to finish loading, and then try again to connect.
Two questions:
1. How do I check to see if it's running or not? I can just try and catch an exception but I'm wondering if there's a better way.
2. How do you recommend I wait until it starts (with a timeout so I don't wait forever)?
thank you
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
If it's hosted as a service use a service controller component...
However, what you are trying to do implies that the server is always on the client - why use remoting?
"Enterprise Solution Patterns using Microsoft .NET" says that remoting calls can be at least 1000 times slower than a local call in the CLR.
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
Tathan thanks for your response,
I am using remoting to communicate between my BHO and a C# application. The BHO's are loaded by each instance of Internet Explorer, each seperate from one another, and relay information to the application. The nature of a BHO is that it runs in the same process as the IE instance, and therefore isn't in the same CLR as the application (each BHO is in it's own CLR instance).
I looked at the ServiceController class, but it seems to be for the purposes of starting and stoppig a windows service. I don't have any services- it's all apps (well and BHO's). (Also btw, a service could be running but have it's remoting server turned off...) Am I missing something?
thanks
bog
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
I'm developing my first useful C# application, and I've come to quite a few points where I'm thinking "There has to be a better way to do this than what I'm doing", and this is one of those cases.
Often times when I load a dialog, I'll need information/objects from the main form in the new loaded dialog. Right now when I load a custom dialog from the main form, I do something like this:
CustomDialog dlgName = new CustomDialog();
dlgName.Loader = this;
dlgName.ShowDialog();
...
And then to access the main form's data in the CustomDialog example:
Loader.DataINeed;
Is there a special variable or other way I can access the main dialog's public objects from a new dialog without passing a reference to that main dialog's object?
|
|
|
|
|
Delegates/Events will do the trick, there are many articles here on CP discussing this. You should also look into creating your own EventArgs class which can be tied to your delegate . HTH
-Nick Parker
|
|
|
|
|
Hi,
I'm using a BindableListview for which I found the code on the web:
http://www.interact-sw.co.uk/utilities/bindablelistview/source
and I'm also using the ListViewSortManager found on Code Project:
http://www.codeproject.com/cs/miscctrl/lvsortmanager.asp
I have found a funny interaction between the two. After binding the ListView to the DataSource, when the ListView is re-sorted the data gets out of sync.
For testing purposes, I added a few simple controls which also bind to the same DataTable, for instance a TextBox and a CheckBox (one of the column is Boolean).
After setting the ListView and the Controls' DataSource to the same DataTable, the data is synced such that if I select an entry in the ListView, the TextBox and CheckBox show the proper values.
Now, after sorting the data using different columns, the data in the textBox and CheckBox doesn't show the same value as the selected item in the ListView.
I'm assuming this is because the DataBindings are using an index, and that re-sorting the ListView differently doesn't necessarly affect that index.
How would I proceed to "re-index" the data such that clicking an item in the ListView brings up the proper data in the textBox and CheckBox ?
Thanks.
Luc Morin
|
|
|
|
|
in the code behind page for my web application i enter newline characters (\n) but the label that i want to display the text ignores the newlines and prints as one long line
thanks all
gil s
|
|
|
|