Click here to Skip to main content
15,889,200 members
Home / Discussions / C#
   

C#

 
AnswerRe: Look and Feel of Winforms Applications Pin
PIEBALDconsult30-Aug-07 11:32
mvePIEBALDconsult30-Aug-07 11:32 
AnswerRe: Look and Feel of Winforms Applications Pin
Patrick Etc.30-Aug-07 18:19
Patrick Etc.30-Aug-07 18:19 
AnswerRe: Look and Feel of Winforms Applications Pin
kaminem30-Aug-07 22:34
kaminem30-Aug-07 22:34 
QuestionBinding A StaticResource to a XPath expression Pin
User 309585930-Aug-07 8:36
User 309585930-Aug-07 8:36 
QuestionMy C#&micro based project Pin
shaikhooo30-Aug-07 8:03
shaikhooo30-Aug-07 8:03 
AnswerRe: My C#&micro based project Pin
Luc Pattyn30-Aug-07 8:14
sitebuilderLuc Pattyn30-Aug-07 8:14 
GeneralRe: My C#&micro based project Pin
ChrisKo31-Aug-07 13:24
ChrisKo31-Aug-07 13:24 
QuestionHelp using C++ DLL.. Pin
Dio2230-Aug-07 7:51
Dio2230-Aug-07 7:51 
I keep getting the error "Unable to find entry point named "FindUser" in DLL.
Even though dumpbin says it exists.. as entry point 1

C++ DLL Declaration (WN_USER_SECURITY.dll):
extern "C" BOOL FindUser(CString csPassword,
                             CString &csUserName,
                             CString &csUserPriveledge,
                             BOOL &bUserActive)
{
   //bunch of code..
    return bFound;
}



C++ .def file:
; WN_USER_SECURITY.def : Declares the module parameters for the DLL.

LIBRARY      "WN_USER_SECURITY"
DESCRIPTION  'WN_USER_SECURITY Windows Dynamic Link Library'

EXPORTS
		  FindUser @1



C# Declaration:
namespace Material_OIT
{
    public class RijndaelDLL
    {

        [DllImport("WN_USER_SECURITY.dll")]
        static public extern bool FindUser(StringBuilder password,
                                       ref StringBuilder username,
                                       ref StringBuilder userPriveledge,
                                       ref StringBuilder userID,
                                       ref StringBuilder userComments,
                                       ref bool userActive);


    }
}




C# Call:
RijndaelDLL.FindUser(password1,
                     ref username,
                     ref userPriv,
                     ref userID,
                     ref userCom,
                     ref userActive);

AnswerRe: Help using C++ DLL.. Pin
leppie31-Aug-07 3:44
leppie31-Aug-07 3:44 
GeneralRe: Help using C++ DLL.. Pin
Dio2231-Aug-07 9:52
Dio2231-Aug-07 9:52 
Questionc# Pin
lankaudaranga30-Aug-07 7:29
lankaudaranga30-Aug-07 7:29 
AnswerRe: c# Pin
pmarfleet30-Aug-07 8:01
pmarfleet30-Aug-07 8:01 
GeneralRe: c# Pin
seeitsharper30-Aug-07 10:07
seeitsharper30-Aug-07 10:07 
GeneralRe: c# Pin
Colin Angus Mackay30-Aug-07 12:08
Colin Angus Mackay30-Aug-07 12:08 
QuestionTextBox in menustrip Pin
topksharma198230-Aug-07 7:10
topksharma198230-Aug-07 7:10 
AnswerRe: TextBox in menustrip Pin
Judah Gabriel Himango30-Aug-07 17:30
sponsorJudah Gabriel Himango30-Aug-07 17:30 
QuestionDatagrid sort Pin
ramdil30-Aug-07 6:26
ramdil30-Aug-07 6:26 
AnswerRe: Datagrid sort Pin
J$30-Aug-07 13:55
J$30-Aug-07 13:55 
GeneralRe: Datagrid sort Pin
ramdil30-Aug-07 23:14
ramdil30-Aug-07 23:14 
QuestionSaving string in resources file .... Question [modified] Pin
Yanshof30-Aug-07 5:40
Yanshof30-Aug-07 5:40 
QuestionHow to get wan ip? Pin
Opa Knack30-Aug-07 5:05
Opa Knack30-Aug-07 5:05 
AnswerRe: How to get wan ip? Pin
Judah Gabriel Himango30-Aug-07 5:08
sponsorJudah Gabriel Himango30-Aug-07 5:08 
GeneralRe: How to get wan ip? Pin
Opa Knack30-Aug-07 5:25
Opa Knack30-Aug-07 5:25 
Questionhow to create array of string?? Pin
Situ1430-Aug-07 5:04
Situ1430-Aug-07 5:04 
AnswerRe: how to create array of string?? Pin
Judah Gabriel Himango30-Aug-07 5:07
sponsorJudah Gabriel Himango30-Aug-07 5:07 

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.