Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problems with VirtualMode of the DataGridView Pin
SquallNaruto10-Nov-09 21:39
SquallNaruto10-Nov-09 21:39 
GeneralRe: Problems with VirtualMode of the DataGridView Pin
SquallNaruto10-Nov-09 22:44
SquallNaruto10-Nov-09 22:44 
Questionproblem with socket programing for image transformation Pin
mehrdad33310-Nov-09 20:40
mehrdad33310-Nov-09 20:40 
AnswerRe: problem with socket programing for image transformation Pin
Paulo Zemek11-Nov-09 9:28
Paulo Zemek11-Nov-09 9:28 
GeneralRe: problem with socket programing for image transformation Pin
mehrdad33311-Nov-09 19:58
mehrdad33311-Nov-09 19:58 
GeneralRe: problem with socket programing for image transformation Pin
Paulo Zemek12-Nov-09 12:24
Paulo Zemek12-Nov-09 12:24 
GeneralRe: problem with socket programing for image transformation Pin
mehrdad33313-Nov-09 7:19
mehrdad33313-Nov-09 7:19 
QuestionHow to call unmanaged C++ DLL in C#.NET Pin
Pranav Thakur10-Nov-09 19:36
Pranav Thakur10-Nov-09 19:36 
Hi,

I have coded few methods in C++ language. These methods are to be used in C#.NET . I guess I need to convert the .CPP file(C++ code) into DLL and then import the methods in C#.

I made a Win32 project and converted the exe(C++ code) into unmanaged C++ DLL.

Then I tried to call its method in C#.NET as :

using System.Runtime.InteropServices;

public partial class CDLL : System.Web.UI.Page
{

[DllImport("C:\\Project1\\TestProject\\Debug\\TestProject.dll", EntryPoint = "testMethod", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
public static extern void testMethod();

protected void Page_Load(object sender, EventArgs e)
{
testMethod();
}
}

After running the above code i am getting error like : Unable to find an entry point named 'testMethod' in DLL 'C:\Project1\TestProject\Debug\TestProject.dll'. Can any one suggest how to run the above code successfully.


Thanks.
AnswerRe: How to call unmanaged C++ DLL in C#.NET Pin
Christian Graus10-Nov-09 20:21
protectorChristian Graus10-Nov-09 20:21 
AnswerRe: How to call unmanaged C++ DLL in C#.NET Pin
Nicholas Butler11-Nov-09 1:24
sitebuilderNicholas Butler11-Nov-09 1:24 
GeneralRe: How to call unmanaged C++ DLL in C#.NET Pin
suzalinda3-Dec-09 12:50
suzalinda3-Dec-09 12:50 
QuestionWindows Form updating problem Pin
MathewPV10-Nov-09 19:06
MathewPV10-Nov-09 19:06 
AnswerRe: Windows Form updating problem Pin
Christian Graus10-Nov-09 19:35
protectorChristian Graus10-Nov-09 19:35 
QuestionListView annoying Pin
Xmen Real 10-Nov-09 19:00
professional Xmen Real 10-Nov-09 19:00 
QuestionOpening file with in its application Pin
Hum Dum10-Nov-09 18:21
Hum Dum10-Nov-09 18:21 
AnswerRe: Opening file with in its application Pin
Christian Graus10-Nov-09 18:32
protectorChristian Graus10-Nov-09 18:32 
GeneralRe: Opening file with in its application Pin
Hum Dum10-Nov-09 20:25
Hum Dum10-Nov-09 20:25 
AnswerRe: Opening file with in its application Pin
dan!sh 10-Nov-09 19:00
professional dan!sh 10-Nov-09 19:00 
GeneralRe: Opening file with in its application Pin
Hum Dum10-Nov-09 20:26
Hum Dum10-Nov-09 20:26 
AnswerRe: Opening file with in its application Pin
Luc Pattyn11-Nov-09 1:31
sitebuilderLuc Pattyn11-Nov-09 1:31 
GeneralRe: Opening file with in its application Pin
hollismarek11-Nov-09 11:00
hollismarek11-Nov-09 11:00 
GeneralRe: Opening file with in its application Pin
Hum Dum11-Nov-09 20:20
Hum Dum11-Nov-09 20:20 
GeneralRe: Opening file with in its application Pin
hollismarek12-Nov-09 2:34
hollismarek12-Nov-09 2:34 
GeneralRe: Opening file with in its application Pin
Hum Dum11-Nov-09 20:17
Hum Dum11-Nov-09 20:17 
QuestionProblem with BCP in C# Pin
sudhirBirlapur10-Nov-09 18:02
sudhirBirlapur10-Nov-09 18:02 

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.