Type: Posts; User: zvenny
Search took 0.02 seconds.
April 29th, 2013, 06: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, 06: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.
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, 06: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, 05: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 .
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)
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);
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
February 3rd, 2011, 03:02 AM
Despite the warning, I can now indeed pass 64bit values between COM dll and client app :)
Just 1 more question about the oleautomation attribute for the interface.
By just saying the interface is...
February 1st, 2011, 04:34 AM
Exactly the 2 SDKs that I mentioned.
Am I missing a crucial SDK for getting my IDL to compile correctly ?
February 1st, 2011, 04:23 AM
Thx for the registry hint ! It tells me I indeed installed SP6.
SDKs for VS6 ? None I think ... can I also check that in registry ?
The only SDKs I have installed are 2.0 for .Net and 6.0A for...
February 1st, 2011, 02:56 AM
That's VS6 and if I remember well SP6 but can't find that in the about box :ehh:
January 31st, 2011, 10:18 AM
Running your makefile gives me
Processing C:\Program Files\Microsoft Visual Studio\VC98\include\oaidl.idl
Processing C:\Program Files\Microsoft Visual...
January 31st, 2011, 05:03 AM
Thx for the hint but when using LONGLONG I get
warning MIDL2039 : interface does not conform to [oleautomation] attributeThe code in IDL is
[id(5), helpstring("method ParamTest")] HRESULT...
January 28th, 2011, 07:50 AM
switch in C++ is only allowed for integral types (numeric values without decimal part) ! So what you put behind switch and case should be of integral type or convertible without question to integral...
January 27th, 2011, 09:03 AM
I have a COM library project and now would like to pass an INT64 argument in an interface method.
When compiling the IDL however I get ...Any suggestion ?
Click Here to Expand Forum to Full Width