Hi

Newbie Member
13Mar2008,21:11   #1
kahari's Avatar
hi all,

i have joined in group newly.

Thanks
Hari
Go4Expert Founder
13Mar2008,21:27   #2
shabbir's Avatar
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.
pyn
Newbie Member
19Mar2008,12:48   #3
pyn's Avatar
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
Go4Expert Founder
20Mar2008,12:06   #4
shabbir's Avatar
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
pyn
Newbie Member
20Mar2008,14:14   #5
pyn's Avatar
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