Not Injecting RRS feed

  • Question

  • Hello,

    I can't seem to be able to inject a dll into a process when i get the dll path using GetOpenFileName();, However, If i set the dll path in my code (char szLibPath[260] = "C:\\the.dll";) it injects the dll fine. When i break point it i find GetOpenFileName() returns the path in unicode. Could that be my problem?

    Thanks in advance.
    Friday, May 8, 2009 1:16 AM


  • If it returns Unicode and you casted the compiler error away, then, yes, that would be your problem.  Don't use char, it's archaic.

    Hans Passant.
    • Marked as answer by Wesley Yao Thursday, May 14, 2009 2:40 AM
    Friday, May 8, 2009 1:35 AM