none
SetWindowLong(...) in Win7 RRS feed

  • Domanda

  • Hi, Dear All,

    Please HELP!

    One of my self-made input method software (using the E-language with system call in C++) runs well on WinXP but fails on Win7(32bit) without any error message, and I've found that one line (SetWindowLong(...)) is to blame. After removing the function call its window can appear but with no output to text editor box because of the absence of the call (that function call is used to output text to cursor location in other programme).

    It seems that SetWindowLong(...) goes conflict with Win7. Is it that? If yes, any solution?

    Thank you all!!

    The original Chinese post is here:

    http://social.technet.microsoft.com/Forums/zh-CN/1761/thread/071020d6-ddd8-45cd-bff5-25a83431d86e


    WBB

    • Spostato Jesse Jiang venerdì 19 ottobre 2012 07:28 (From:Visual C++ MFC and ATL)
    domenica 7 ottobre 2012 01:43

Tutte le risposte

  • Did you checked GetLastError(). Also read MSDN of SetWindowLong() Return value and remarks sections. Also need to check whether first parameter is a valid handle.

    Thanks, Renjith V R

    domenica 7 ottobre 2012 08:15
  • Show the line of code exactly as you have it so we can understand better what you are doing.

    Also note that you should be using SetWindowLongPtr() instead to be compatible with 64-bit environments.


    Jose R. MCP
    Code Samples

    domenica 7 ottobre 2012 13:17
  • Show the line of code exactly as you have it so we can understand better what you are doing.

    Also note that you should be using SetWindowLongPtr() instead to be compatible with 64-bit environments.


    Jose R. MCP
    Code Samples

    Thanks for your reply first!

    1. It is 32bit Win7.

    2. It is a E-language(易语言) programme and it just has one line of this system call so it is nothing to do with the other code lines.

    Any other hints?


    WBB

    lunedì 8 ottobre 2012 07:26
  • Hello,

    Thanks for your participation.

    According to your description, your issue is related to a third party product. Please go to the forum for the third party product to ask for help. (You can refer to this link: http://bbs.eyuyan.com/)

    This thread will be moved to Off-topic, your understanding will be appreciated.

    Regards,


    Damon Zheng [MSFT]
    MSDN Community Support | Feedback to us

    venerdì 19 ottobre 2012 07:29