Click here to Skip to main content
15,913,104 members
Home / Discussions / C#
   

C#

 
GeneralRe: Delegate on a MarshalByRefObject Pin
Tom Larsen6-Apr-05 4:45
Tom Larsen6-Apr-05 4:45 
GeneralRe: Delegate on a MarshalByRefObject Pin
PEK6-Apr-05 5:59
PEK6-Apr-05 5:59 
GeneralRe: Delegate on a MarshalByRefObject Pin
Tom Larsen11-Apr-05 6:47
Tom Larsen11-Apr-05 6:47 
GeneralRe: Delegate on a MarshalByRefObject Pin
S. Senthil Kumar6-Apr-05 20:04
S. Senthil Kumar6-Apr-05 20:04 
GeneralRe: Delegate on a MarshalByRefObject Pin
Tom Larsen11-Apr-05 6:27
Tom Larsen11-Apr-05 6:27 
Questionhow to get screen solution number? Pin
MJay5-Apr-05 23:56
MJay5-Apr-05 23:56 
AnswerRe: how to get screen solution number? Pin
Ray Hayes6-Apr-05 0:12
Ray Hayes6-Apr-05 0:12 
Questionhow to use dll created by C,C++ in C# project? Pin
Sachin Gedam5-Apr-05 23:32
Sachin Gedam5-Apr-05 23:32 
Hello Friends,

Our clients requirement is that we have to use their DLL which is created by C,C++ code.

What I am doing in my code is that :

1. using using System.Runtime.InteropServices;
2. [DllImport(@"g:\SampleDLL.dll",EntryPoint="test",
SetLastError=true,
CharSet=CharSet.Unicode,
CallingConvention=CallingConvention.Winapi)]

3. static extern int test(int lpLibName);

4. and in code calling test function with parmeter as 10.

But I am getting error that entry point "test" not found in SampleDll.dll, but this methods defination written in that dll itself.

Please help me out of this.

Or tell me is there any other way to use that dll?

Sachin Gedam
(Software Engg.)
Pune India
AnswerRe: how to use dll created by C,C++ in C# project? Pin
spif20015-Apr-05 23:42
spif20015-Apr-05 23:42 
GeneralRe: how to use dll created by C,C++ in C# project? Pin
Sachin Gedam6-Apr-05 0:25
Sachin Gedam6-Apr-05 0:25 
GeneralRe: how to use dll created by C,C++ in C# project? Pin
DavidNohejl6-Apr-05 0:33
DavidNohejl6-Apr-05 0:33 
GeneralStarting a new thread -help Pin
Anthony Mushrow5-Apr-05 23:04
professionalAnthony Mushrow5-Apr-05 23:04 
GeneralRe: Starting a new thread -help Pin
spif20016-Apr-05 0:01
spif20016-Apr-05 0:01 
GeneralRe: Starting a new thread -help Pin
S. Senthil Kumar6-Apr-05 1:23
S. Senthil Kumar6-Apr-05 1:23 
GeneralRe: Starting a new thread -help Pin
Anthony Mushrow6-Apr-05 8:41
professionalAnthony Mushrow6-Apr-05 8:41 
GeneralRe: Starting a new thread -help Pin
S. Senthil Kumar6-Apr-05 20:00
S. Senthil Kumar6-Apr-05 20:00 
GeneralMacromedia Flash with C# Pin
Sabry19055-Apr-05 21:57
Sabry19055-Apr-05 21:57 
GeneralRe: Macromedia Flash with C# Pin
S. Senthil Kumar5-Apr-05 22:06
S. Senthil Kumar5-Apr-05 22:06 
GeneralRe: Macromedia Flash with C# Pin
Pyro Joe6-Apr-05 1:09
Pyro Joe6-Apr-05 1:09 
GeneralRe: Macromedia Flash with C# Pin
Sabry19056-Apr-05 4:04
Sabry19056-Apr-05 4:04 
Questionauto versioning? Pin
zecodela5-Apr-05 20:35
zecodela5-Apr-05 20:35 
AnswerRe: auto versioning? Pin
leppie5-Apr-05 23:19
leppie5-Apr-05 23:19 
AnswerRe: auto versioning? Pin
Zdeslav Vojkovic6-Apr-05 0:48
Zdeslav Vojkovic6-Apr-05 0:48 
GeneralRe: auto versioning? Pin
zecodela7-Apr-05 0:30
zecodela7-Apr-05 0:30 
GeneralICQ Client/Protocol Pin
Moon Boy5-Apr-05 17:58
Moon Boy5-Apr-05 17:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.