|
Wow! Both very different things. Unless you are sure about your service, it is very difficult to decide on the correct solution.
|
|
|
|
|
The solution is to create a HashTable with the DateTime as the key (stripped of the seconds/milliseconds), and the message as the value . Each time you try to add it, the nature of the HashTable will prevent duplicate keys from being added. Problem solved.
".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
|
|
|
|
|
Hi,
I made a tool to read a .mdb File, everything works fine except on a 64Bit Machine...
To connect to the database I use OLEDB 4.0, but it seems that 64x does not provide this.
How could I compile this compatible??
OleDbConnection con = new OleDbConnection(
@"Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=" + lblDATABASE.Text);
con.Open();
|
|
|
|
|
You need to add the App.config file I believe.
V.
|
|
|
|
|
sry I don't know what you mean. 
|
|
|
|
|
I had a similar problem and strangly, by adding an App.Config file to my project (even if it is just empty) the connection then works.
Right click your project, choose add item --> new and find the template 'config', normally it should automatically name it App.config. Press OK. recompile and try again.
V.
|
|
|
|
|
Compile it to x86.
I cannot remember: What did I before google?
|
|
|
|
|
Yeah I already tried this, but doesn't work..
I tried "any cpu" / "x86" / "x64" to build.
|
|
|
|
|
You have to set it in the "project properties", in the "build" tab, "platform target". I had the same problem with an old application using access, and it worked fine for me.
I cannot remember: What did I before google?
|
|
|
|
|
Yeah I know!
I already tried this, without success! 
|
|
|
|
|
Thanks for your replies, it seems that the .exe need the manifest.
Now it works =)
/closed
|
|
|
|
|
ok, if this worsk for you it also fine.
I cannot remember: What did I before google?
|
|
|
|
|
OK, I don't know what you did that required a manifest, but this problem, as you decribed it, only needed to be compiled to target x86 CPUs. The reason why it doesn't work is because there are no 64-bit providers for Access databases. Since you can't mix 32-bit and 64-bit code in the same process, using an Access database will fail.
|
|
|
|
|
Hi
I want to learn MVC2 and have zero knowledge about it. please suggest some help (ebook, site or some thing else)
Regards
|
|
|
|
|
|
Have you tried msdn?
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
|
|
|
|
|
|
Start getting a feed from Scott Gu's Blog (Scott Guthrie). He is one of the Gu'rus on all things MVC
"You get that on the big jobs."
|
|
|
|
|
url = @"http://tests.com/video/network_(a).wmv";
client.DownloadFileAsync(new Uri(url), @"..\Video\network_(a).wmv");
Video.Source = new Uri(url);
Video.Play();
I would like to ask about the above coding, this is a download and play video coding correct,
is it consider as progressive streaming, or real time streaming, i am abit lost on this
|
|
|
|
|
Do you download the entire file and then play it?
In that case, you are doing neither of the two.
See here[^] for a discussion on this by MS.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
|
|
|
|
|
but is it possible to do the 2 streaming, in expression blend 4 collaborated with C# VS2010 event handler?
|
|
|
|
|
Below is a configuration for a 31x60 dialog I wanted for a small button column which I could load besides my main form. The Height works, but the Width does not go to 31, and although the Debug version says the Form's Width is 31, it still draws something much wider. Is there some minimum width a form can go to?
//
// Utilities
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.ClientSize = new System.Drawing.Size(32, 60);
this.ControlBox = false;
this.Controls.Add(this.btSettings);
this.Controls.Add(this.btEvents);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(32, 60);
this.MinimizeBox = false;
this.Name = "Utilities";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "Utilities";
this.TopMost = true;
this.ResumeLayout(false);
|
|
|
|
|
Not too sure, but is ClientSize the culprit?
|
|
|
|
|
All the property setting you already have plus MinimumSize = 1,1
Why you want to do it though is another question?
[edit] I forgot to add that the forms Text value needs to be empty.
"You get that on the big jobs."
modified on Monday, February 7, 2011 8:01 AM
|
|
|
|
|
Thanks!
It was the Min set to 1,1..I would have guessed the Text.
|
|
|
|