Click here to Skip to main content
15,924,507 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Service App Pin
Heath Stewart28-Jun-04 4:55
protectorHeath Stewart28-Jun-04 4:55 
GeneralRe: Windows Service App Pin
Xiangyang Liu 刘向阳28-Jun-04 5:17
Xiangyang Liu 刘向阳28-Jun-04 5:17 
GeneralFolderBrowserDialog external machine selection Pin
fozzwald28-Jun-04 4:29
fozzwald28-Jun-04 4:29 
GeneralRe: FolderBrowserDialog external machine selection Pin
Heath Stewart28-Jun-04 4:46
protectorHeath Stewart28-Jun-04 4:46 
GeneralProblem with EnvDTE Pin
Johan Van Antenaeken28-Jun-04 4:25
Johan Van Antenaeken28-Jun-04 4:25 
GeneralDynamic Create Class Pin
savaskulah28-Jun-04 4:07
savaskulah28-Jun-04 4:07 
GeneralRe: Dynamic Create Class Pin
Heath Stewart28-Jun-04 4:28
protectorHeath Stewart28-Jun-04 4:28 
GeneralCreation of DLL library Pin
Ronald Boucher28-Jun-04 3:41
sussRonald Boucher28-Jun-04 3:41 
I'm trying to create my own DLL as a part of interpreter. I'm having trouble to load the dll...

The DLL source code is (TestDLL.dll in system32 directory):

using System;
namespace StringDLL
{
public class DllStringTest
{
public string StringReturn(int value)
{
switch (value)
{
case 0: return "Zero";
case 1: return "One";
case 2: return "Two";
case 3: return "Three";
default: return "Unknown";
}
}
}
}

and in the main code I use to load the DLL is:
[DllImport("DllTest")] public static extern string StringReturn(int value);

then to call the function in the event handler:
MessageBox.Show(StringReturn(0));

I'm trying to return the string value from DLL library. I have been getting the error "unable to find the entry point in TestDLL dll."

I want to load dll only when needed. Can anyone help?
GeneralRe: Creation of DLL library Pin
Serge Lobko-Lobanovsky28-Jun-04 4:19
Serge Lobko-Lobanovsky28-Jun-04 4:19 
GeneralRe: Creation of DLL library Pin
Heath Stewart28-Jun-04 4:22
protectorHeath Stewart28-Jun-04 4:22 
GeneralRe: Creation of DLL library Pin
Ronald Boucher28-Jun-04 6:41
sussRonald Boucher28-Jun-04 6:41 
QuestionDoubleClick a TreeView Node? Pin
j1e1g128-Jun-04 3:08
j1e1g128-Jun-04 3:08 
AnswerRe: DoubleClick a TreeView Node? Pin
Nick Parker28-Jun-04 3:41
protectorNick Parker28-Jun-04 3:41 
AnswerRe: DoubleClick a TreeView Node? Pin
Dave Kreskowiak28-Jun-04 3:43
mveDave Kreskowiak28-Jun-04 3:43 
GeneralRe: DoubleClick a TreeView Node? Pin
j1e1g128-Jun-04 4:05
j1e1g128-Jun-04 4:05 
GeneralRe: DoubleClick a TreeView Node? Pin
Dave Kreskowiak28-Jun-04 4:34
mveDave Kreskowiak28-Jun-04 4:34 
GeneralRe: DoubleClick a TreeView Node? Pin
j1e1g128-Jun-04 4:46
j1e1g128-Jun-04 4:46 
GeneralRe: DoubleClick a TreeView Node? Pin
Heath Stewart28-Jun-04 4:36
protectorHeath Stewart28-Jun-04 4:36 
GeneralRe: DoubleClick a TreeView Node? Pin
j1e1g128-Jun-04 4:51
j1e1g128-Jun-04 4:51 
GeneralRe: DoubleClick a TreeView Node? Pin
Heath Stewart28-Jun-04 5:07
protectorHeath Stewart28-Jun-04 5:07 
AnswerRe: DoubleClick a TreeView Node? Pin
Serge Lobko-Lobanovsky28-Jun-04 4:28
Serge Lobko-Lobanovsky28-Jun-04 4:28 
QuestionHow to set ActiveWindow in PowerPoint 2003...?? Pin
Member 94012528-Jun-04 2:56
Member 94012528-Jun-04 2:56 
AnswerRe: How to set ActiveWindow in PowerPoint 2003...?? Pin
Heath Stewart28-Jun-04 5:04
protectorHeath Stewart28-Jun-04 5:04 
GeneralAtributes Pin
Sharpoverride28-Jun-04 2:01
Sharpoverride28-Jun-04 2:01 
GeneralRe: Atributes Pin
Corinna John28-Jun-04 2:37
Corinna John28-Jun-04 2:37 

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.