1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hi

Discussion in 'Meet and Greet' started by kahari, Mar 13, 2008.

  1. kahari

    kahari New Member

    Joined:
    Mar 13, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    hi all,

    i have joined in group newly.

    Thanks
    Hari
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    Hi and welcome to the forum and Please do not jump into any other thread with your query as that may not be seen by all.
     
  3. pyn

    pyn New Member

    Joined:
    Mar 19, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Dear Folks,
    I read the posts regarding creating DLL. I followed those steps. but its working on
    VC 6.0. but i cant access the functions which resides in the DLL using Microsoft .Net 2003.

    Here i mentioned the code

    MY.CPP
    Code:
    #include "stdafx.h"
    #include "Today.h"
    BOOL APIENTRY DllMain( HANDLE hModule, 
                           DWORD  ul_reason_for_call, 
                           LPVOID lpReserved
    					 )
    {
        return TRUE;
    }
    
    int __stdcall add(int a , int b)
    {
    	return a+b;
    }
    
    MY.h
    
    #include "stdafx.h"
    int __stdcall add(int a , int b);
    
    MY.Def
    
    LIBRARY Today
    EXPORTS
      add @1

    please clarify, if i did any mistakes.....

    Thanks n Advance


    regards,
    Pyn
     
    Last edited by a moderator: Mar 20, 2008
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    pyn, do not jump in any thread with your query, Either use the same thread where you found the article or create a new thread providing link to thread you would like to discuss the issue
     
  5. pyn

    pyn New Member

    Joined:
    Mar 19, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi Shabbir,
    I found the solution yesterday. Thks



     

Share This Page