Search:
Type: Posts; User: zvenny
Search:
Search took 0.38 seconds.
-
January 22nd, 2014, 03:48 AM
Experimenting with the SHA256 class and now struggling with the Create method overload that takes the hashname as a parameter
SHA256 alg1 = SHA256.Create(); // returns a default SHA256Managed...
-
January 15th, 2014, 03:43 AM
No, it's different ! And meanwhile I found out what's causing the different behavior.
My first way of starting the task, note the '() =>'
Task t = Task.Factory.StartNew(() =>...
-
January 14th, 2014, 02:56 PM
I had already figured out the :this() solution ;)
Thanks for your explanation on the CS0188 , the specific struct behavior is clear to me now !
-
January 14th, 2014, 01:58 PM
No mistake ! Please note the x as a parameter to the delegate in the 2nd way of starting the task.
-
January 14th, 2014, 10:06 AM
Given following
static void Main(string[] args)
{
try
{
CancellationTokenSource cts = new CancellationTokenSource();
Task t = Task.Factory.StartNew(() =>...
-
January 14th, 2014, 02:09 AM
It's not a question wether to use struct or class.
I'd just like to know why struct gives me a compile error and class doesn't ?
-
January 13th, 2014, 08:14 AM
public struct FullName
{
public string FirstName;
public string LastName;
public FullName(string First)
{
this.FirstName = First;
this.LastName = Demo();
}
-
January 8th, 2014, 06:25 AM
Ok, assertions are only performed when DEBUG constant is defined (debug config typically), but if I define this constant
in my release config and hit CTRL+F5, stack trace in the assertion dialog is...
-
April 29th, 2013, 05:35 AM
Trying to estimate when a test will end
DateTime EndTime = new DateTime(DateTime.Now.Ticks + NTests * 20000000);This gives me an end time lower than DateTime.Now !?!? Thought it was caused by long...
-
September 27th, 2012, 05:03 AM
My solution contains an app project, dll project and 2 setup projects. The app is dependent on the dll and both come in 2 build configurations, let's say Config1 and Config2. When I switch between...
-
In my xaml I have an image on a button with following code
<Image Source="/MyAssembly;Component/Resources/MyImage.png" Width="32" />I'm now wondering if I can do this without the fully qualified...
-
A form in my app contains a button with an image , so the frmMyform.resx file contains btnMyButton.image ... that's clear ! Now, I want to add another button to the form with the same image. Ok, I...
-
March 3rd, 2012, 04:39 PM
In my application I list all available network adapters...
..
foreach (NetworkInterface ni in NetworkInterface.GetAllNetworkInterfaces())
{
//add it to UI combobox
}
..As my app is now...
-
January 31st, 2012, 05:39 AM
Apparently it has nothing to do with the *32 ! Tried it with taskkill from the command prompt
and there noticed Access Denied. Ran the command prompt as administrator and then it works.
No idea...
-
January 31st, 2012, 04:07 AM
In Win 7 64bit (and other 64bit OSes also probably) , the process I'm trying to kill is listed as "AppToKill.exe *32".
Following code works in 32bit XP but in Win7 64bit it doesn't kill it ......
-
March 30th, 2011, 05:36 AM
My workspace has an app and dll project. I've included shlwapi.h in the dll stdafx.h and linked shlwapi.lib in the dll project settings.
The call to PathIsDirectory is at application level. Does...
-
March 30th, 2011, 04:46 AM
I'm trying to use PathIsDirectory in a unicode build but always get
error LNK2001: unresolved external symbol __imp__PathIsDirectoryW@4I've included shlwapi.h and link to shlwapi.lib .
Can anyone...
-
February 22nd, 2011, 02:41 AM
Is there an easy way to transfer my VS6 settings (Tools > Options...) to a new pc ?
Or should I manually re-enter everything (include file dirs, lib file dirs, ...) ?
-
February 20th, 2011, 02:10 PM
Until yesterday, I did not know about delegate inference in C# :blush:
The comment in the MSDN article indeed made me think this was a VB feature.
Thx all :thumb:
-
February 19th, 2011, 10:11 AM
It appears I can also call QueueUserWorkItem without a WaitCallBack constructor in the parameter list ...
static void Main(string[] args)
{
ThreadPool.QueueUserWorkItem(ThreadMethod);
...
-
February 11th, 2011, 07:22 AM
Ok, so basicaly the Groups property returns the first match and all parenthesized subexpressions of this first match.
My approach was incorrect ! I should have used the Regex.Matches property...
-
February 11th, 2011, 04:55 AM
The code below...
string sInput = @"from 2010 to 2011";
Regex reg1 = new Regex(@"\d+");
Regex reg2 = new Regex(@"(\d+)");
Match m = reg1.Match(sInput);
Console.WriteLine(sInput);...
-
February 4th, 2011, 05:52 AM
That would have been too easy ! I'm using VS6 and llVal is not defined in my oaidl.h :cry:
That's more or less what I meant with;)
-
February 4th, 2011, 05:11 AM
Been looking into that, but couldn't quite figure out how to use VARIANTs for 64bit :blush:
Will investigate this suggestion further !
-
February 3rd, 2011, 03:43 AM
Just a wild guess ...
You're comparing return values with S_OK whereas MSDN documentation lists WBEM_S_NO_ERROR
http://msdn.microsoft.com/en-us/library/aa391769(v=vs.85).aspx
|
Click Here to Expand Forum to Full Width
|