Results 1 to 2 of 2

Thread: importing a function from a dll in vc.net

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2013
    Location
    vermont usa
    Posts
    72

    importing a function from a dll in vc.net

    although this is a vc.net question, someone here might know the answer.

    I have a function in a dll called import10.

    it is:
    void FAR PASCAL junk(long&jj)
    {
    long j;
    j=999;
    jj=j;


    //end of junk
    }
    and I include junk in the def file


    I am trying to call junk from another dll --called mfdm

    I write:
    __declspec(dllimport) void _stdcall junk(long&x);
    above the function that includes a call to junk

    and I have gone into the properties of mfdm and set the c/c++ general\additional library directories to
    c:\davids\vcnet\import10\debug\
    which is where the import10.lib exist

    upon compiling it doesn't find junk

    if you can help thanks!!

    follys

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: importing a function from a dll in vc.net

    Moved to the C and C++ forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width