Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

Tsuda Kageyu

@Tsuda Kageyu
About
Posts
32
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WinAmp
    T Tsuda Kageyu

    It lives forever in our hearts. http://jordaneldredge.com/projects/winamp2-js/[^]

    The Lounge question announcement

  • Bug on date/time? My posts are all an hour earlier
    T Tsuda Kageyu

    It looks fixed. Thanks!

    Site Bugs / Suggestions com help question

  • Bug on date/time? My posts are all an hour earlier
    T Tsuda Kageyu

    I always keep the checkbox off, because we don't have a DST law. (I'm in Japan)

    Site Bugs / Suggestions com help question

  • Bug on date/time? My posts are all an hour earlier
    T Tsuda Kageyu

    I changed my timezone setting from UTC+9 to UTC+8, UTC+10... the time stamps was changed according to the timezone, but always an hour earlier than my calculation. So I guess (just a guess) CodeProject adjusts time stamps according to each user's timezone and something is going wrong in the adjustment.

    Site Bugs / Suggestions com help question

  • Bug on date/time? My posts are all an hour earlier
    T Tsuda Kageyu

    I posted the message below around 11am JST (or 2am UTC) today. http://www.codeproject.com/Messages/4942218/My-vote-of.aspx However, I found that the time stamp is displayed like "12-Nov-14 10:09" when I checked "My Messages" page. I double-checked my time zone setting, but it was correct. I checked some of my messages and reputation events. They are all an hour earlier than I expected. Is it just a bug or is there some special reason? Now I'm going to post this message at 11:27am JST.

    Site Bugs / Suggestions com help question

  • Can I solicit donations for my project in CodeProject?
    T Tsuda Kageyu

    Thanks! I see your point and sorry for my lack of consideration.

    Site Bugs / Suggestions com json question

  • Can I solicit donations for my project in CodeProject?
    T Tsuda Kageyu

    I wrote this article several years ago to publish my library, and the library has became widely used. Currently, I need some funds to continue developing it. So I decided to solicit donations for the project. I got started a Pledgie campaign to collect donations. So CodeProject allows me to announce it in my article?

    Site Bugs / Suggestions com json question

  • A backslash in C++
    T Tsuda Kageyu

    Oops! It was like this:

    // Sometimes carry out the work \
    if (flag)
    {
    SomeWork();
    }

    The Weird and The Wonderful c++ help

  • A backslash in C++
    T Tsuda Kageyu

    My co-worker was struggling with a bug in an old C++ program.

    // Sometimes carry out the work \
    if (flag) {
    SomeWork();
    }

    SomeWork() was called regardless of the value of flag. It took her a few hours to find a backslash at the end of the comment.

    The Weird and The Wonderful c++ help

  • Does C++ long for VB?
    T Tsuda Kageyu

    Right. It's a kind of booby trap. But I was surprised rather than being angry when I found it.

    The Weird and The Wonderful c++ delphi question

  • Does C++ long for VB?
    T Tsuda Kageyu

    Or maybe Pascal.

    class A
    {
    private:
    // A lot of members.
    public:
    bool operator==(const A &rhs) const { return (this == &rhs); }

    bool operator=(const A &rhs) const 
    {
        // Compares the members.
    }
    
    bool operator!=(const A &rhs) const { return (!operator=(rhs)); }
    

    };

    The Weird and The Wonderful c++ delphi question

  • .NET 4 Rocks!
    T Tsuda Kageyu

    You're right as long as MFC stays away from us.

    The Lounge csharp css performance lounge

  • A P/Invoke mystery [modified]
    T Tsuda Kageyu

    No. I made doubly sure that the process was running in x64 mode. By the way, your articles have helped me much for years. Thanks :-D

    Clever Code csharp c++ css data-structures performance

  • Tokyos oldest man
    T Tsuda Kageyu

    You're right. I've actually seen such a mummie deified at a temple. It was a really sacred experience. But in this case, it's just a fraud for his pension, we think.

    The Lounge announcement

  • A P/Invoke mystery [modified]
    T Tsuda Kageyu

    Electron Shepherd wrote:

    That contradicts the WINAPI calling convention

    I think it's not a contradiction. The calling convention on x64 system is different from the ones on x86 system. Here is the overview about it. http://msdn.microsoft.com/en-us/library/ms235286%28VS.80%29.aspx[^]

    Clever Code csharp c++ css data-structures performance

  • A P/Invoke mystery [modified]
    T Tsuda Kageyu

    A few days ago, I looked through a C# program that didn't run well on x64 system. Finally I fixed it, but faced a mysterious fact. First, I had suspected that its P/Invoke declarations are wrong, and found the one like this.

    // MEMORY_BASIC_INFORMATION is defined separately.
    [DllImport("kernel32.dll")]
    static extern int VirtualQuery(IntPtr lpAddress, out MEMORY_BASIC_INFORMATION lpBuffer, int dwLength);

    I thought it was surely incorrect. The native definition of the function is like this...

    SIZE_T WINAPI VirtualQuery(LPCVOID lpAddress, PMEMORY_BASIC_INFORMATION lpBuffer, SIZE_T dwLength);

    ...and SIZE_T is platform dependent, so that its corresponding P/Invoke declaration might be like this.

    [DllImport("kernel32.dll")]
    static extern IntPtr VirtualQuery(IntPtr lpAddress, out MEMORY_BASIC_INFORMATION lpBuffer, IntPtr dwLength);

    But the thing confused me is that the function itseif seemd to run well even on x64 system. I think that 'incorrect' one runs well because dwLength is passed with a register (not stack) on x64 system. If the parameter is 64bit or less, it would be passed apparently. Does somebody have an idea about it?

    modified on Monday, August 2, 2010 10:07 PM

    Clever Code csharp c++ css data-structures performance

  • Most owned CDs
    T Tsuda Kageyu

    I have three copies of Ram It Down and Painkiller each. For listening, storage, and propagation! I think we can become friends... :)

    The Lounge com tools question announcement

  • Google Translate
    T Tsuda Kageyu

    What a terrible translation! It makes no sense at all. (but a little funny ;P )

    The Lounge ios com tools question

  • [Fifa] Germany on a roll...
    T Tsuda Kageyu

    I'm excited very much. The game reminds me I watched Klose's first WC goal in the stadium.

    The Lounge

  • [FIFA] Best match so far: Portugal vs Spain
    T Tsuda Kageyu

    Surely they are so out of Asian league so far. All the survived teams deserve to be best 8.

    The Lounge visual-studio regex
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups