|
You might be able to specify which framework should be used for the executable in a manifest file or something. However, it would not be able to work with Visual Studio integration of the controls/forms.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Hello all,
I need to know if a particular timer handler is already registered with a timer. I am using System.Windows.Forms.Timer.
Thanks
Sushma
|
|
|
|
|
Sushma K wrote: I need to know if a particular timer handler is already registered with a timer. I am using System.Windows.Forms.Timer.
And you thought we would know?
led mike
|
|
|
|
|
How about iterating through the Timer.Events property, using Delegate.Equals()
to compare each with your delegate?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
if the only reason you want to know is to avoid you add it again, then first remove it (this
does not harm if it was not there to begin with), hence:
event-=handler;
event+=handler;
|
|
|
|
|
Hi Team,
I have created a application in Visual Studio 2005.Its a Simple application with one master page and some static pages and I have Deployed this appication on server. But i am getting this error
"The codefile attribute on the page directive is not allowed in this page."
I am not getting why i am getting this error.
Please reply me.
I need to run the application as soon as possible.
Thanks and Regards
Avesh Agarwal
|
|
|
|
|
|
Hi,
I am using an unmanaged DLL in my code and am running into problems because it is difficult to get the structures in the DLL to reset their state properly.
If I put the DLL in an AppDomain and unload the AppDomain, will that release the unmanaged DLL? That way, I could just start another AppDomain with the same DLL and have the state reset that way. This would be great, but I am not yet sure if it is possible.
Any help is appreciated.
Thanks,
klk
madness ? this.isSparta = true : this.isSparta = false;
|
|
|
|
|
That sounds like a serious hack solution. I do not recommend doing that. You have not provided enough information about the situation for us to determine what else might be appropriate as a solution.
K.L.K wrote: it is difficult to get the structures in the DLL to reset their state properly.
You need to explain that in detail otherwise we cannot understand the problem.
led mike
|
|
|
|
|
Hi led mike,
Basically, there is a possibility that the dll can be given wrong input, and as a result, can get into a state that is tough to recover from. The dll wasn't designed for this kind of input, but it is a small probability and I don't want the user's application to crash as a result. Thus, if I could simply blow away the AppDomain and bring it up again without the user ever knowing, that would be phenomenal.
Is this any clearer?
Thanks,
klk
madness ? this.isSparta = true : this.isSparta = false;
|
|
|
|
|
Can you load a native DLL into an AppDomain? I don't believe so.
Do you have the DLL code?
It would work much better if the DLL is (or is a part of) a managed assembly.
If you have the code for the DLL, I would think proper error handling
in the DLL is a much better solution.
Otherwise, making the DLL a managed assembly will work fine, but you
may want to consider the implications - performance, marshaling across
the appdomain boundary, etc...
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: If you have the code for the DLL, I would think proper error handling
in the DLL is a much better solution.
Yes. And if you don't have, and since it sounds like it's a pile of garbage, the next thing to consider is replacing it with your own code.
led mike
|
|
|
|
|
K.L.K wrote: Is this any clearer?
No. Do you see Mark is still asking you questions?
led mike
|
|
|
|
|
hello sir,
i am using vs.2005 .how can i use msde 2000 deployment with vs.2005 because
it does not appear in tool>addinmanager .this works fine with vs2003
but i dont understand how to use it with vs2005
thanks in advance
|
|
|
|
|
I have an web application ,i want to introduce touch screen in the application which is in .net framework.
I have no idea about how to integrate touch screen concept in the web application...
can any one help me please.
Hope you may help with logic to integrate.
Atleast give me the links where i can get information.
i think ,it's embedded related, i need some external hardware is what i think!!!
Anyway please help me out...
Thank you in advance...
|
|
|
|
|
I think that all u have to do is to plug the touch screen and start browsing. Nothing to add to the code unless u want to use some additional feature from the vendor's APIs.
Off course your controls should be larger to suit human fingers
Hope this helps
Best Regards
3ala2
|
|
|
|
|
Hi all.
I've searched around and can't find a solution to a pickle i'm in.
I'm writing a type of auto-complete selection process. I would like the box to highlight the
closest match as a user types in text.
Given a list of strings such as
R05
R09
R087
R321
R3394
G5832
If the user types in R09
String.Compare will return R05, R09, R087, R321, R3394
I want to find the string that has the largest match (In this case R09)
I could write a routine that does this, but didn't know if one exists in an assembly somewhere...
Anyone have any thoughts?
Thanks,
Tom
|
|
|
|
|
Youll have to write a custom method that does this using the String.StartsWith() method:
And, considering the example you gave, I feel you should process your textbox text in a loop that will do the following:
str.StartsWith("R09");
str.StartsWith("R0");
str.StartsWith("R");
So, the loop would decrement the index of the textbox string and check each time with - "R09","R0" and "R".
|
|
|
|
|
You may want to look for articles on "natural string comparison".
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
I'm having a little trouble trying to complete a fairly simple C# remoting app I found in a tutorial.
The server includes a declaration of an event-handler delegate the server class uses and the event argument class for the event. The client is then supposed to associate its event handler to the server's event (e.g., server.eventname += new eventhandlername(client.handler) ), periodically do things to raise the event, and finally remove its handler from the server's handler list when the client closes.
When I try to run the client, however, the server throws the following exception:
"An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll
"Additional information: Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level."
I'm reading this as some sort of a code access permissions problem, but so far I haven't been able to quite chase it down, much less figure out how to correct the problem. The event argument class definition in the server is marked as Serializable, but the event-handler delegate isn't; should it be? That doesn't seem right to me, but I'm obviously not getting something....
Thanks,
Ron Ritchie
|
|
|
|
|
Hello? Anybody there?
Ron Ritchie
Ron Ritchie
|
|
|
|
|
I am not sure if this is the correct form, but as I think the problem is a result of something in .NET I am posting here.
Running a program (written in C# and using .NET 2.0) on a local machine. Using that program to access a file on a network drive, working on the file (the file is a SEGY file, like a JPEG, and lines are overlaid on the file, information about the lines get saved while the SEGY file is unchanged), and saving the work as a text file. It appears, depending on the size of the file trying to be written, the program hangs. A file of 900K can be written successfully, but when the program hangs it stops with about 230K written (working on a local machine only the save which hangs on a network drive works fine). Adding a flush after each write 'appears' to solve the problem (appearing to solve the problem isn't good enough). The writes are in a for loop, running in debug and adding a break point inside the loop, the break point is not tripped.
Has anyone had any experience with this or can they point me where I may be able to find an answer?
this thing looks like it was written by an epileptic ferret
Dave Kreskowiak
|
|
|
|
|
Looks like FTP problem to me.
What's the O.S. installed on the images server?
Best Regards
3ala2
|
|
|
|
|
I would like to know is there any release/build engineer related information is present here at CodeProject. I'm working as Technical support engineer and engaged into release of asp.net/sql server based files. I need to know any information/ group for this over here.
thanks
Raj
rajesh
|
|
|
|
|
I've read this three times and I am still not sure what you're asking for.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|