Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: [OT][Win32] How to load the right dll

by BrowserUk (Patriarch)
on Mar 20, 2012 at 13:49 UTC ( [id://960574]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #include <stdio.h>
    #define  ISOLATION_AWARE_ENABLED 1
    ...
    __declspec(dllexport) int funca( int i ) {
        return printf( "a.dll{v2.0.0.0}:funca() called with %d\n", i );
    }
    
  2. or download this
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.
    +0">
    ...
    <assemblyIdentity type="win32" name="a.dll" version="1.0.0.0" />
    <description></description>
    </assembly>
    
  3. or download this
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    
    ...
    <assemblyIdentity type="win32" name="a.dll" version="2.0.0.0" />
    <description></description>
    </assembly>
    
  4. or download this
    @rem makeit.cmd
    del /S /Q *.obj *.lib *.dll *.exe
    ...
    
    cl /MT main.c a.lib /link /manifest "/manifestdependency:type='win32' 
    +name='a.dll' version='1.0.0.0'"
    mt -manifest main.exe.manifest -outputresource:main.exe;#1
    
  5. or download this
    C:\test\manifest>makeit
    
    ...
    Microsoft (R) Manifest Tool version 5.2.3790.2075
    Copyright (c) Microsoft Corporation 2005.
    All rights reserved.
    
  6. or download this
    C:\test\manifest>main
    hmodule: 640000 *funcb:641000
    ...
    
    b.dll:funcb() called with 2
    a.dll{v1.0.0.0}:funca() called with 3
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://960574]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found