|
It's ok, I was only joking anyway!
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
This One[^]
does not do exactly what you want, but hope will be much helpful in the way.
|
|
|
|
|
What about ejecting from Explorer?
|
|
|
|
|
This tip[^] I posted sometime ago disables it, but not permanently.
You could make the app run at start up (perhaps a service) so it is effectively permanently disabled.
|
|
|
|
|
I have small number of GUI attribute that i need to save in my application.
The attribute are simple ( windows size, window color, ext... ) and they need to be store in file ( can be XML or binary ).
I don't sure i know what is the fest and best way to write the code ?
Is it simple XML or serialization ?
Is there some example ?
Thanks.
|
|
|
|
|
|
|
Dagnabit, I almost have that article ready...
|
|
|
|
|
My C# program was developed by the Visual Studio 2005, and i have set the prerequisites to .NET framework 2.0, and i have tested to install it on a Clean windows 7 it has included .NET framework 3.5, and it seems my program is working, but how could i force it to use .NET framework 2.0?
And also, there is .NET framework 2.0 SP3, how could i include it and force the client to install it manually?
Thanks
|
|
|
|
|
Hi,
.NET 3.0 and .NET 3.5 consist of .NET 2.0 plus functional extensions, however they don't replace what was in .NET 2.0, they just add to it; therefore an app built against .NET 2.0 will normally run just fine on .NET 3.0/3.5
.NET 4.0 is different, it is independent of .NET 2.0, and offers a totally new set of libraries.
linuxfedora wrote: force the client to install it manually?
you shouldn't force a client to do anything.
what is your real concern about all this?
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
If it is the case, then it is okey. Thanks
|
|
|
|
|
You're welcome.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Since all of the .Net versions are merely extensions of prior versions, you don't have to wrorry about it. What you DO have to worry about is using framework objects/methods that become deprecated, because evetually, these objects/methods will be removed from .Net, and your app will refuse to work. What tis means is that you should probably update your tools to the newest versions, and rebuuild your app with the newest version of .Net.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
|
Is this a WPF app? WPF uses URIs everywhere.
But anyways, somewhere you are specifying a URI in the wrong format. Or the control is. Did you try turn on all first chance exceptions? That might help you catch it when its really happening.
|
|
|
|
|
Thanks for the reply. It turns out it was getting into an unexpected part of the code after the Invoke (), so I have to dig deeper.
|
|
|
|
|
when you want to close the thread, rather than remove the question and leave a messy thread, I would suggest you just append "[solved]" or "[closed]" to its subject line.
TIA.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
|
i have a script in mql4 language in metatrader software that run this url:
http:
i want to insert this parameters('s' and 'd')in database.
so i build a webservice and a 'Default.asmx' page in visual studio.
what code i should write for inserting these in database?
Regards
modified on Wednesday, January 12, 2011 1:33 AM
|
|
|
|
|
roebuck-code wrote: what code i should write for inserting these in database?
An insert statement. Beyond that, I can't help as this is far too vague. We don't know what database, what version of the .NET runtime, etc, that you are using. One thing though - ensure it's not open to a SQL Injection attack.
|
|
|
|
|
Pete O'Hanlon wrote: We don't know what database, what version of the .NET runtime, etc, that you are using.
data base is sql2000.Visual Studio 2005
do i write a method(methodname) in "Default.asmx" page that get parameters from url and insert these to database?
|
|
|
|
|
If it's an asmx file, then it should be a web service, so you would write a WebMethod in there. Have a read up on traditional web services in .NET to see what you need to do.
|
|
|
|
|
like this?:
[WebMethod]
public void zakhire(string s,string d)
{
string sql = " insert into FX_Forecast2 (Symbol,A) values( '"+s+"','"+d+"')";
OpenDb();
cmd = new SqlCommand(sql, con);
cmd.ExecuteNonQuery();
con.Close();
}
do with writing this code and loading this url(http://aaaa.com/Default.asmx/zakhire?Symbol=+S+&A=+d;) these value will insert in database?
how can i run this url for test in visual studio?(not in mql4)
modified on Monday, January 17, 2011 2:07 AM
|
|
|
|
|
|
Is there a missing " at the end of that line?
|
|
|
|