HELP!! <please>

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • aze

    #1

    HELP!! <please>

    Hi,

    I have a 2 c files (pdfp.c, PrinterUtils.c) and 1 .h file
    (PrinterUtils.h ) and 1 .mak file (pdfp.mak). What I need to do is
    compile these files into a dll so I can use them in my asp.net
    application.

    Does anyone have any idea how I can compile these files into a dll??

    Thanks in advance for any help at all.

    Justin

  • Victor Bazarov

    #2
    Re: HELP!! &lt;please&g t;

    aze wrote:
    I have a 2 c files (pdfp.c, PrinterUtils.c) and 1 .h file
    (PrinterUtils.h ) and 1 .mak file (pdfp.mak). What I need to do is
    compile these files into a dll so I can use them in my asp.net
    application.
    You need to ask in the newsgroup that deals with your compiler. See
    the FAQ for a list of suggestions.
    Does anyone have any idea how I can compile these files into a dll??
    Somebody in the newsgroup that deals with your compiler does.

    V
    --
    Please remove capital 'A's when replying by e-mail
    I do not respond to top-posted replies, please don't ask


    Comment

    • Phlip

      #3
      Re: HELP!! &lt;please&g t;

      aze wrote:
      I have a 2 c files (pdfp.c, PrinterUtils.c) and 1 .h file
      (PrinterUtils.h ) and 1 .mak file (pdfp.mak). What I need to do is
      compile these files into a dll so I can use them in my asp.net
      application.
      >
      Does anyone have any idea how I can compile these files into a dll??
      Open Visual Studio and use New Project -DLL Project. You will get an empty
      source file, maybe with a DllMain in it.

      Add those two .c files to the file list, and compile.

      You should get a .LIB file.

      Use New Project -Console Application -Hello World, and build a Hello
      World program.

      Add the .LIB file to its file list. Then #include the .h file into your
      Hello World program. Try to call one of the functions in pdfp.c.

      If you can, you are ready to use ASP.NET. Investigate (on a .NET newsgroup)
      how to link to a DLL, and then call it.

      All that is my guess, from doing similar things. This newsgroup is only
      qualified to discuss the raw C++ language itself, so your questions will get
      much better help on some .NET newsgroup.

      --
      Phlip
      http://www.greencheese.us/ZeekLand <-- NOT a blog!!!


      Comment

      • aze

        #4
        Re: HELP!! &lt;please&g t;

        First off to Victor Bazarov: Thanks for that... I don't currently have
        a c compiler hence the vagueness of the question. I am a .net
        programmer. But thanks for you reply anyway :)


        Victor Bazarov wrote:
        aze wrote:
        I have a 2 c files (pdfp.c, PrinterUtils.c) and 1 .h file
        (PrinterUtils.h ) and 1 .mak file (pdfp.mak). What I need to do is
        compile these files into a dll so I can use them in my asp.net
        application.
        >
        You need to ask in the newsgroup that deals with your compiler. See
        the FAQ for a list of suggestions.
        >
        Does anyone have any idea how I can compile these files into a dll??
        >
        Somebody in the newsgroup that deals with your compiler does.
        >
        V
        --
        Please remove capital 'A's when replying by e-mail
        I do not respond to top-posted replies, please don't ask

        Comment

        • aze

          #5
          Re: HELP!! &lt;please&g t;

          Hi Philip,

          I really appreciate your response. I'll give it a go.

          Justin

          Phlip wrote:
          aze wrote:
          >
          I have a 2 c files (pdfp.c, PrinterUtils.c) and 1 .h file
          (PrinterUtils.h ) and 1 .mak file (pdfp.mak). What I need to do is
          compile these files into a dll so I can use them in my asp.net
          application.

          Does anyone have any idea how I can compile these files into a dll??
          >
          Open Visual Studio and use New Project -DLL Project. You will get an empty
          source file, maybe with a DllMain in it.
          >
          Add those two .c files to the file list, and compile.
          >
          You should get a .LIB file.
          >
          Use New Project -Console Application -Hello World, and build a Hello
          World program.
          >
          Add the .LIB file to its file list. Then #include the .h file into your
          Hello World program. Try to call one of the functions in pdfp.c.
          >
          If you can, you are ready to use ASP.NET. Investigate (on a .NET newsgroup)
          how to link to a DLL, and then call it.
          >
          All that is my guess, from doing similar things. This newsgroup is only
          qualified to discuss the raw C++ language itself, so your questions will get
          much better help on some .NET newsgroup.
          >
          --
          Phlip
          http://www.greencheese.us/ZeekLand <-- NOT a blog!!!

          Comment

          Working...