Click here to Skip to main content
15,917,610 members
Home / Discussions / C#
   

C#

 
QuestionUnbound DataGridView copy to Unbound DataGridView Pin
Lodeclaw28-Jan-09 4:36
Lodeclaw28-Jan-09 4:36 
QuestionRe: Unbound DataGridView copy to Unbound DataGridView Pin
led mike28-Jan-09 4:43
led mike28-Jan-09 4:43 
GeneralRe: Unbound DataGridView copy to Unbound DataGridView Pin
Lodeclaw28-Jan-09 4:48
Lodeclaw28-Jan-09 4:48 
GeneralRe: Unbound DataGridView copy to Unbound DataGridView Pin
led mike28-Jan-09 4:57
led mike28-Jan-09 4:57 
GeneralRe: Unbound DataGridView copy to Unbound DataGridView Pin
Lodeclaw28-Jan-09 5:09
Lodeclaw28-Jan-09 5:09 
QuestionRe: Unbound DataGridView copy to Unbound DataGridView Pin
led mike28-Jan-09 5:38
led mike28-Jan-09 5:38 
AnswerRe: Unbound DataGridView copy to Unbound DataGridView Pin
Lodeclaw28-Jan-09 5:45
Lodeclaw28-Jan-09 5:45 
QuestionDLL Entry Point Pin
mahmoud babli28-Jan-09 4:25
mahmoud babli28-Jan-09 4:25 
Hello everyone,

1- Assuming the following DLL
<br />
  namespace test_dll<br />
  {<br />
    public class test<br />
    {<br />
        public static int test_add(int a, int b)<br />
        {<br />
             return (a+b);<br />
        }<br />
    }<br />
  }<br />

2- After compiling, I get (test_dll.dll)

3- I copy the dll and paste it in (test_program) (bin/debug) -test_program is a different project-

4- From the test_program program logic I do the following
<br />
   namespace test_program<br />
   {<br />
         // my form class code here <br />
<br />
         public class test_dll_user<br />
         {<br />
           [DllImport("test_dll.dll",EntryPoint="test_add")]<br />
           extern static int test_add(int x, int y);<br />
<br />
           public int MyAdd(int a, int b)<br />
           {<br />
               return test_add(a,b);<br />
           }<br />
         }<br />
   }<br />

Now! The code compiles fine!

Once I would like to use the MyAdd function
<br />
Line 1:         test_dll_user obj = new test_dll_user();<br />
Line 2:         obj.test_add(1,2);<br />


I get a compiler Error (Unable to find an entry point named 'test_add' in DLL 'test_dll.dll')!
I been looking all over the place for a solution with no luck!

Moreover, for business reasons, I don't want to add the dll as a reference! What can I do? Any help would be exteremly appreciated. Thanks
AnswerRe: DLL Entry Point [modified] Pin
Luc Pattyn28-Jan-09 5:02
sitebuilderLuc Pattyn28-Jan-09 5:02 
JokeRe: DLL Entry Point Pin
mahmoud babli28-Jan-09 5:23
mahmoud babli28-Jan-09 5:23 
AnswerRe: DLL Entry Point [modified] Pin
Luc Pattyn28-Jan-09 6:46
sitebuilderLuc Pattyn28-Jan-09 6:46 
GeneralRe: DLL Entry Point Pin
mahmoud babli29-Jan-09 3:42
mahmoud babli29-Jan-09 3:42 
GeneralRe: DLL Entry Point Pin
mahmoud babli30-Jan-09 21:37
mahmoud babli30-Jan-09 21:37 
AnswerRe: DLL Entry Point Pin
J4amieC28-Jan-09 5:48
J4amieC28-Jan-09 5:48 
GeneralRe: DLL Entry Point Pin
mahmoud babli29-Jan-09 3:43
mahmoud babli29-Jan-09 3:43 
Question.NET Serialization question Pin
Ennis Ray Lynch, Jr.28-Jan-09 3:53
Ennis Ray Lynch, Jr.28-Jan-09 3:53 
AnswerRe: .NET Serialization question Pin
Mark Churchill28-Jan-09 12:02
Mark Churchill28-Jan-09 12:02 
GeneralRe: .NET Serialization question Pin
Ennis Ray Lynch, Jr.28-Jan-09 12:37
Ennis Ray Lynch, Jr.28-Jan-09 12:37 
GeneralRe: .NET Serialization question Pin
Mark Churchill28-Jan-09 13:34
Mark Churchill28-Jan-09 13:34 
GeneralRe: .NET Serialization question Pin
Ennis Ray Lynch, Jr.28-Jan-09 15:27
Ennis Ray Lynch, Jr.28-Jan-09 15:27 
GeneralRe: .NET Serialization question Pin
Mark Churchill28-Jan-09 16:06
Mark Churchill28-Jan-09 16:06 
GeneralRe: .NET Serialization question Pin
Ennis Ray Lynch, Jr.29-Jan-09 2:35
Ennis Ray Lynch, Jr.29-Jan-09 2:35 
QuestionHow to Change DataGridBoolColumn's greyed state and checked to DataGridBoolColumn's greyed state and unchecked ? Pin
JuergenLissmann28-Jan-09 3:49
JuergenLissmann28-Jan-09 3:49 
Question[newbie] function to return MAX + 1 from primary key Pin
jon-8028-Jan-09 3:38
professionaljon-8028-Jan-09 3:38 
AnswerRe: [newbie] function Pin
SeMartens28-Jan-09 3:45
SeMartens28-Jan-09 3:45 

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.