The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: RuiLoureiro on August 25, 2010, 03:42:08 PM

Title: Help about C++
Post by: RuiLoureiro on August 25, 2010, 03:42:08 PM
Hi,
    I wrote a dll file:  File1.dll

    It contains some procedures:
     
                    ProcA  proto  DWORD, DWORD, DWORD
                    ProcB  proto  DWORD
                    ProcC  proto  DWORD, DWORD, DWORD, DWORD

    When i compiled File1.asm to dll i got:

                    File1.dll
                   File1.LIB

    Well, i know how to use it in assembler.

    My problem is how to use it with C++.

    If iam correct, to call ProcA we use something like this:

                   ProcA(Var1, Var2, Var3);

    What i need to do to compile it with a program in C++.

    Could you help me ?
    Thanks
    RuiLoureiro
Title: Re: Help about C++
Post by: MichaelW on August 25, 2010, 05:10:11 PM
Demo in the attachment, and hopefully I did everything right.
Title: Re: Help about C++
Post by: RuiLoureiro on August 25, 2010, 09:49:33 PM
Quote from: MichaelW on August 25, 2010, 05:10:11 PM
Demo in the attachment, and hopefully I did everything right.
Thank you Michael !
I am trying to test and ...
Rui