Hi

kahari's Avatar, Join Date: Mar 2008
Newbie Member
hi all,

i have joined in group newly.

Thanks
Hari
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.
0
pyn's Avatar, Join Date: Mar 2008
pyn
Newbie Member
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 shabbir; 20Mar2008 at 12:04.. Reason: Code block
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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
0
pyn's Avatar, Join Date: Mar 2008
pyn
Newbie Member
Hi Shabbir,
I found the solution yesterday. Thks



Quote:
Originally Posted by shabbir
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