CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: zvenny

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: DateTime weird

    by zvenny
    Replies
    5
    Views
    179

    DateTime weird

    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...
  2. Replies
    0
    Views
    1,142

    VS2008 Setup Project Dependencies bug ?

    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...
  3. Replies
    0
    Views
    834

    xaml resource image

    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...
  4. Replies
    0
    Views
    372

    Select specific resx file

    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...
  5. Replies
    1
    Views
    454

    Test for tunnel adapters

    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...
  6. Replies
    1
    Views
    1,127

    Re: taskkill *32 process

    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...
  7. Replies
    1
    Views
    1,127

    taskkill *32 process

    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 ......
  8. Thread: PathIsDirectory

    by zvenny
    Replies
    4
    Views
    883

    Re: PathIsDirectory

    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...
  9. Thread: PathIsDirectory

    by zvenny
    Replies
    4
    Views
    883

    PathIsDirectory

    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...
  10. Replies
    1
    Views
    396

    VS6 environment settings

    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, ...) ?
  11. Replies
    3
    Views
    1,854

    Re: QueueUserWorkItem

    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:
  12. Replies
    3
    Views
    1,854

    QueueUserWorkItem

    It appears I can also call QueueUserWorkItem without a WaitCallBack constructor in the parameter list ...
    static void Main(string[] args)
    {
    ThreadPool.QueueUserWorkItem(ThreadMethod);
    ...
  13. Replies
    2
    Views
    328

    Re: Regular expressions

    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...
  14. Replies
    2
    Views
    328

    Regular expressions

    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);...
  15. Thread: INT64 in IDL

    by zvenny
    Replies
    18
    Views
    2,208

    Re: INT64 in IDL

    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;)
  16. Thread: INT64 in IDL

    by zvenny
    Replies
    18
    Views
    2,208

    Re: INT64 in IDL

    Been looking into that, but couldn't quite figure out how to use VARIANTs for 64bit :blush:

    Will investigate this suggestion further !
  17. Replies
    6
    Views
    1,935

    Re: Reading CPU Temp

    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
  18. Thread: INT64 in IDL

    by zvenny
    Replies
    18
    Views
    2,208

    Re: INT64 in IDL

    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...
  19. Thread: INT64 in IDL

    by zvenny
    Replies
    18
    Views
    2,208

    Re: INT64 in IDL

    Exactly the 2 SDKs that I mentioned.

    Am I missing a crucial SDK for getting my IDL to compile correctly ?
  20. Thread: INT64 in IDL

    by zvenny
    Replies
    18
    Views
    2,208

    Re: INT64 in IDL

    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...
  21. Thread: INT64 in IDL

    by zvenny
    Replies
    18
    Views
    2,208

    Re: INT64 in IDL

    That's VS6 and if I remember well SP6 but can't find that in the about box :ehh:
  22. Thread: INT64 in IDL

    by zvenny
    Replies
    18
    Views
    2,208

    Re: INT64 in IDL

    Running your makefile gives me
    Processing .\589.idl
    Processing C:\Program Files\Microsoft Visual Studio\VC98\include\oaidl.idl
    Processing C:\Program Files\Microsoft Visual...
  23. Thread: INT64 in IDL

    by zvenny
    Replies
    18
    Views
    2,208

    Re: INT64 in IDL

    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...
  24. Replies
    5
    Views
    450

    Re: switch statement

    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...
  25. Thread: INT64 in IDL

    by zvenny
    Replies
    18
    Views
    2,208

    INT64 in IDL

    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 ?
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width