ทำไมโค๊ดในบทความนี้ถึง Error???

Last post 19 Jan 2010 13:07 by nantcom. 38 replies.
Page 4 of 5 (39 items) < Previous 1 2 3 4 5 Next >
Sort Posts: Previous Next
  • 18 Jan 2010 11:06 In reply to

    Re: ทำไมโค๊ดในบทความนี้ถึง Error???

    ต้องขอโทษคุณpandula ด้วยนะครับ ที่ผมเอาcode มาใช้โดยไม่ได้ขออณุญาต

  • 18 Jan 2010 13:03 In reply to

    Re: ทำไมโค๊ดในบทความนี้ถึง Error???

    varavut:

    ต้องขอโทษคุณpandula ด้วยนะครับ ที่ผมเอาcode มาใช้โดยไม่ได้ขออณุญาต

     

    ไม่เป็นไรเลยครับผม ยินดีมากๆ ครับผม

  • 18 Jan 2010 13:04 In reply to

    Re: ทำไมโค๊ดในบทความนี้ถึง Error???

    แล้วFunc กับAction นี่ต่างกันอย่างไรครับ รบกวนช่วยอธิบายหน่อยครับ ขอบคุณครับ

  • 18 Jan 2010 13:19 In reply to

    Re: ทำไมโค๊ดในบทความนี้ถึง Error???

    Func หมายถึง Function ครับ Func<int, int, int> คือ Function รับ int 2 ตัว return int

    Action คือ Function Return Void ครับ Action<int, int, int> คือ Function รับ int3 ตัว ไม่ return อะไรเลย

  • 18 Jan 2010 13:29 In reply to

    Re: ทำไมโค๊ดในบทความนี้ถึง Error???

    coreadmin:

    Func หมายถึง Function ครับ Func<int, int, int> คือ Function รับ int 2 ตัว return int

    Action คือ Function Return Void ครับ Action<int, int, int> คือ Function รับ int3 ตัว ไม่ return อะไรเลย

     

    ขอบคุณครับ

    คือข้อนี้ยังไงก็ต้องใช้ delegate ใช่ไหมครับ

  • 18 Jan 2010 14:03 In reply to

    Re: ทำไมโค๊ดในบทความนี้ถึง Error???

      แวะมาตอบอีกทีคับ อิ อิ 

     

    When working with the .NET Compact Framework and using P/Invoke on a native function, this exception may be thrown if:
    - The declaration in managed code is incorrect.
    - The .NET Compact Framework does not support what you are trying to do.
    - The DLL names are mangled on export.
    - In such a case, check:
    - For any violations of the .NET Compact Framework P/Invoke restrictions.
    - For any arguments that require pre-allocated memory. If these exist, you should pass a reference to an existing variable.
    - That the names of the exported functions are correct. This can be verified with DumpBin.exe.
    - That you are not attempting to pass too many arguments.

     

    เป็นคำตอบสุดท้ายคับ

  • 18 Jan 2010 14:59 In reply to

    Re: ทำไมโค๊ดในบทความนี้ถึง Error???

     

    giffy2499:

      แวะมาตอบอีกทีคับ อิ อิ 

     

    When working with the .NET Compact Framework and using P/Invoke on a native function, this exception may be thrown if:
    - The declaration in managed code is incorrect.
    - The .NET Compact Framework does not support what you are trying to do.
    - The DLL names are mangled on export.
    - In such a case, check:
    - For any violations of the .NET Compact Framework P/Invoke restrictions.
    - For any arguments that require pre-allocated memory. If these exist, you should pass a reference to an existing variable.
    - That the names of the exported functions are correct. This can be verified with DumpBin.exe.
    - That you are not attempting to pass too many arguments.

     

    เป็นคำตอบสุดท้ายคับ

    Big Smile ถ้าเปลี่ยนอันนี้เป็น Action และใช้ C#3.0 ก็ถูกเลยคับ

  • 18 Jan 2010 15:17 In reply to

    Re: ทำไมโค๊ดในบทความนี้ถึง Error???

    เอ้ ... ใช้ยังไงน้อ.... Action และใช้ฟีเจอร์ C#3.0 เคยได้ยิน แว่วๆๆ แต่ไม่เคย งัดมาใช้เลยคับ ช่วยขยายความหน่อยคับ "Action และใช้ C#3.0 " ใชัยังไงคับ แนะนำหน่อยคับพี่นัน (ไม่เคยใช้คับ) หรือว่าเอ้..เคยใช้ แต่จำไม่ได้...แต่คุ้นๆๆ. ???
Page 4 of 5 (39 items) < Previous 1 2 3 4 5 Next >