Menu

#30 Fix actctx.c to check if OutputDebugStringW is defined as OutputDebugString or not.

None
closed
patch (1)
1
2017-08-04
2017-08-04
Sean Hunt
No

This makes sure that OutputDebugStringA is defined (for these 2 functions) as OutputDebugString even if UNICODE is defined in MSVC. (A project of mine uses py2exe's _memimporter as an external.

The diff below should be all the fix that is needed for this and should work on the python 2 and 3 versions of py2exe with no issues.

However even then I still need to figure out compiling my code that I hand written the embed for my projects to somehow properly use _memimporter.

Any assistance on that too is apreciated as well. (I dont want to lose any progress I had at manual embedding as I need to use _memimporter for an special import hook it uses for reading encrypted python scripts in an zip (on top of doing the same as zipextimporter.py does). This is so all pyd's it needs to load is in the zip file as well.

1 Attachments

Discussion

  • Thomas Heller

    Thomas Heller - 2017-08-04

    I changed your patch to explicitely use OutputDebugStringA; this should work as well.

     
  • Thomas Heller

    Thomas Heller - 2017-08-04
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.