Click here to Skip to main content
16,010,268 members
Home / Discussions / C#
   

C#

 
GeneralRe: StreamReader/StreamWriter Pin
Vikram A Punathambekar20-May-08 3:07
Vikram A Punathambekar20-May-08 3:07 
GeneralRe: StreamReader/StreamWriter Pin
George_George20-May-08 3:15
George_George20-May-08 3:15 
GeneralRe: StreamReader/StreamWriter Pin
Vikram A Punathambekar20-May-08 4:43
Vikram A Punathambekar20-May-08 4:43 
GeneralRe: StreamReader/StreamWriter Pin
George_George20-May-08 23:52
George_George20-May-08 23:52 
GeneralRe: StreamReader/StreamWriter Pin
N a v a n e e t h20-May-08 3:09
N a v a n e e t h20-May-08 3:09 
GeneralRe: StreamReader/StreamWriter Pin
George_George20-May-08 3:13
George_George20-May-08 3:13 
Questionhandling browser events from windows application Pin
mihir raut20-May-08 1:37
mihir raut20-May-08 1:37 
Questioncalling C++ method from C# .net? Pin
cristi_alonso20-May-08 1:36
cristi_alonso20-May-08 1:36 
I wanted to access methods written in C++ from C# .net .For this i created DLL(dll is win32 library) which contain method and when i add through the add refrence option it gives me following error

"A reference to D:\program\DynamicLibrary\debug\Dynamiclibrary.dll couldnt be added .please make sure
that file is accessible and that it is a valid assembly or COM component. "



Where i builded the DLL successfully even i tried using other way also where i written following code to access method from DLL



[DllImport(@"D:\Program\DynamicLibrary\Debug\DynamicLibrary.dll", EntryPoint="goal")]
public static extern int goal();

public static void Main()
{
program.goal( );
}
}



In that code also i got error saying that couldn't load DynamicLibrary.dll .



can anyone help me out in this .Please tell me what is the procedure to call C++ function from C# .net it will be very usefull .



Any help will be appreciated .Thanks in advance .
AnswerRe: calling C++ method from C# .net? Pin
Laddie20-May-08 2:56
Laddie20-May-08 2:56 
GeneralRe: calling C++ method from C# .net? Pin
cristi_alonso20-May-08 18:03
cristi_alonso20-May-08 18:03 
QuestionProblem with CustomEventHandling. Pin
hdv21220-May-08 1:13
hdv21220-May-08 1:13 
AnswerRe: Problem with CustomEventHandling. Pin
buchstaben20-May-08 1:28
buchstaben20-May-08 1:28 
GeneralRe: Problem with CustomEventHandling. Pin
hdv21220-May-08 2:20
hdv21220-May-08 2:20 
Questionbrowser component Pin
asma_panjabi20-May-08 0:42
asma_panjabi20-May-08 0:42 
GeneralRe: browser component Pin
buchstaben20-May-08 1:26
buchstaben20-May-08 1:26 
QuestionWhy the exception "Could not save; currently locked by another user" raise? Pin
nicolus19-May-08 23:56
nicolus19-May-08 23:56 
AnswerRe: Why the exception "Could not save; currently locked by another user" raise? Pin
Christian Graus20-May-08 0:06
protectorChristian Graus20-May-08 0:06 
GeneralRe: Why the exception "Could not save; currently locked by another user" raise? Pin
nicolus20-May-08 1:08
nicolus20-May-08 1:08 
AnswerRe: Why the exception "Could not save; currently locked by another user" raise? Pin
Nouman Bhatti20-May-08 0:14
Nouman Bhatti20-May-08 0:14 
QuestionClient Installation problems.. Pin
ptr2void19-May-08 23:40
ptr2void19-May-08 23:40 
AnswerRe: Client Installation problems.. Pin
Christian Graus20-May-08 0:12
protectorChristian Graus20-May-08 0:12 
AnswerRe: Client Installation problems.. Pin
Nouman Bhatti20-May-08 0:13
Nouman Bhatti20-May-08 0:13 
GeneralRe: Client Installation problems.. Pin
ptr2void20-May-08 2:17
ptr2void20-May-08 2:17 
GeneralRe: Client Installation problems.. Pin
Nouman Bhatti20-May-08 5:06
Nouman Bhatti20-May-08 5:06 
AnswerRe: Client Installation problems.. Pin
Christian Wikander20-May-08 3:14
Christian Wikander20-May-08 3:14 

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.