Click here to Skip to main content
15,893,266 members
Home / Discussions / C#
   

C#

 
GeneralRe: Which is better and why? Pin
Hum Dum16-Jun-10 0:31
Hum Dum16-Jun-10 0:31 
AnswerRe: Which is better and why? Pin
Abhinav S16-Jun-10 0:36
Abhinav S16-Jun-10 0:36 
AnswerRe: Which is better and why? Pin
Eddy Vluggen16-Jun-10 1:15
professionalEddy Vluggen16-Jun-10 1:15 
AnswerRe: Which is better and why? Pin
PIEBALDconsult16-Jun-10 3:06
mvePIEBALDconsult16-Jun-10 3:06 
AnswerNeither approach is appropriate Pin
Ennis Ray Lynch, Jr.16-Jun-10 6:14
Ennis Ray Lynch, Jr.16-Jun-10 6:14 
GeneralRe: Neither approach is appropriate Pin
Hum Dum16-Jun-10 17:49
Hum Dum16-Jun-10 17:49 
GeneralRe: Neither approach is appropriate Pin
Ennis Ray Lynch, Jr.17-Jun-10 5:19
Ennis Ray Lynch, Jr.17-Jun-10 5:19 
Questionc++ dll in C# Pin
kk.tvm15-Jun-10 22:49
kk.tvm15-Jun-10 22:49 
hi friends

i have a c++ dll which contains function and class.

c++ dll code
class __declspec(dllexport) MyClass
{
public:
 MyClass(void);
~MyClass(void);
 void GetName()
 {
   .......
 }
};

_declspec(dllexport) void MyFun()
{

}


My c# code follows
public partial class Form1 : Form
 {
     [DllImport("CPPDLL.dll", EntryPoint="MyFun")]
     static extern void MyFun();

     [DllImport("CPPDLL.dll", EntryPoint="MyClass")]
     static class MyClass;

     public Form1()
     {
         InitializeComponent();

     }
 }


but DllImport for class(MyClass) shows syntax error.

how can i solve this problem

thanks in advance
-kk.tvm-

AnswerRe: c++ dll in C# Pin
Pete O'Hanlon15-Jun-10 22:58
mvePete O'Hanlon15-Jun-10 22:58 
GeneralRe: c++ dll in C# Pin
kk.tvm15-Jun-10 23:15
kk.tvm15-Jun-10 23:15 
GeneralRe: c++ dll in C# Pin
Pete O'Hanlon15-Jun-10 23:39
mvePete O'Hanlon15-Jun-10 23:39 
Questionhow to create your own skin for win forms Pin
jainiraj15-Jun-10 22:48
jainiraj15-Jun-10 22:48 
AnswerRe: how to create your own skin for win forms Pin
Bigdeak15-Jun-10 23:30
Bigdeak15-Jun-10 23:30 
GeneralRe: how to create your own skin for win forms Pin
jainiraj15-Jun-10 23:31
jainiraj15-Jun-10 23:31 
GeneralRe: how to create your own skin for win forms Pin
Johnny J.16-Jun-10 0:47
professionalJohnny J.16-Jun-10 0:47 
GeneralRe: how to create your own skin for win forms Pin
Bigdeak16-Jun-10 1:38
Bigdeak16-Jun-10 1:38 
GeneralRe: how to create your own skin for win forms Pin
Johnny J.16-Jun-10 1:48
professionalJohnny J.16-Jun-10 1:48 
GeneralRe: how to create your own skin for win forms Pin
Bigdeak16-Jun-10 2:23
Bigdeak16-Jun-10 2:23 
AnswerRe: how to create your own skin for win forms Pin
Pete O'Hanlon15-Jun-10 23:42
mvePete O'Hanlon15-Jun-10 23:42 
GeneralRe: how to create your own skin for win forms Pin
jainiraj16-Jun-10 0:03
jainiraj16-Jun-10 0:03 
GeneralRe: how to create your own skin for win forms Pin
Pete O'Hanlon16-Jun-10 0:47
mvePete O'Hanlon16-Jun-10 0:47 
GeneralRe: how to create your own skin for win forms Pin
Johnny J.16-Jun-10 1:18
professionalJohnny J.16-Jun-10 1:18 
GeneralRe: how to create your own skin for win forms Pin
Wes Aday16-Jun-10 2:43
professionalWes Aday16-Jun-10 2:43 
GeneralRe: how to create your own skin for win forms Pin
mustang8616-Jun-10 7:01
mustang8616-Jun-10 7:01 
QuestionStoring path of appData folder in app.config file [modified] Pin
rg.waw15-Jun-10 22:30
rg.waw15-Jun-10 22:30 

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.