Click here to Skip to main content
16,006,594 members
Home / Discussions / C#
   

C#

 
Questionhow to use two appender based on the type in log4net Pin
Joe Rozario9-Dec-10 19:23
Joe Rozario9-Dec-10 19:23 
AnswerRe: how to use two appender based on the type in log4net Pin
Joe Rozario15-Dec-10 20:24
Joe Rozario15-Dec-10 20:24 
QuestionADO.Net Transaction Pin
satsumatable9-Dec-10 18:54
satsumatable9-Dec-10 18:54 
AnswerRe: ADO.Net Transaction Pin
thatraja9-Dec-10 19:48
professionalthatraja9-Dec-10 19:48 
GeneralRe: ADO.Net Transaction Pin
tauruswu9-Dec-10 22:16
tauruswu9-Dec-10 22:16 
AnswerRe: ADO.Net Transaction Pin
PIEBALDconsult10-Dec-10 2:41
mvePIEBALDconsult10-Dec-10 2:41 
QuestionCan't see methods in DLL... why? Pin
michaelsd9-Dec-10 12:10
michaelsd9-Dec-10 12:10 
AnswerRe: Can't see methods in DLL... why? Pin
GlobX9-Dec-10 12:46
GlobX9-Dec-10 12:46 
Why are you using a DLLImport and an external function declaration? Why not just add a reference in Visual Studio in your IWFHotkeyStarter by right-clicking the References folder and clicking Add Reference, then browsing for the DLL.

Better yet add both projects to the same solution and use a Project Reference.

Forgive me if you're doing this for a specific reason, but I'm guessing it doesn't work because C# DLLs are not machine code. I've only ever seen DLLImport and extern used for native DLLs, whereas .NET DLLs are in IL, not native code.

Then you will have something like:

using Kosmala.Michal.ActiveXTest;

namespace IWFHotkeyStarter
{
    class Program
    {
        
        static void Main(string[] args)
        {
            Program p = new Program();
            p.run();
        }

        private void run(){
            Console.WriteLine("run<<");

            ActiveXTest.setHooks();

            Console.WriteLine("run>>");    
        }
    }
}

AnswerRe: Can't see methods in DLL... why? Pin
Luc Pattyn9-Dec-10 13:21
sitebuilderLuc Pattyn9-Dec-10 13:21 
QuestionVisual Studio 2010 Web performance test password encryption question Pin
jboyd1119-Dec-10 10:56
jboyd1119-Dec-10 10:56 
QuestionFTP Connection Pin
MumbleB9-Dec-10 7:43
MumbleB9-Dec-10 7:43 
AnswerRe: FTP Connection Pin
Luc Pattyn9-Dec-10 8:02
sitebuilderLuc Pattyn9-Dec-10 8:02 
GeneralRe: FTP Connection Pin
Sunil G 310-Dec-10 2:04
Sunil G 310-Dec-10 2:04 
GeneralRe: FTP Connection Pin
Luc Pattyn10-Dec-10 2:20
sitebuilderLuc Pattyn10-Dec-10 2:20 
GeneralRe: FTP Connection Pin
Pete O'Hanlon10-Dec-10 3:05
mvePete O'Hanlon10-Dec-10 3:05 
AnswerRe: FTP Connection Pin
Luc Pattyn10-Dec-10 3:14
sitebuilderLuc Pattyn10-Dec-10 3:14 
GeneralRe: FTP Connection Pin
Pete O'Hanlon10-Dec-10 3:56
mvePete O'Hanlon10-Dec-10 3:56 
GeneralRe: FTP Connection Pin
Luc Pattyn10-Dec-10 4:13
sitebuilderLuc Pattyn10-Dec-10 4:13 
GeneralRe: FTP Connection Pin
Luc Pattyn10-Dec-10 4:34
sitebuilderLuc Pattyn10-Dec-10 4:34 
GeneralRe: FTP Connection Pin
Sunil G 317-Dec-10 1:47
Sunil G 317-Dec-10 1:47 
QuestionClearing the Y Labels correctly Pin
Rafone9-Dec-10 5:26
Rafone9-Dec-10 5:26 
QuestionWebClient DownliadFile Error Pin
yu-jian9-Dec-10 4:44
yu-jian9-Dec-10 4:44 
AnswerRe: WebClient DownliadFile Error Pin
Luc Pattyn9-Dec-10 5:12
sitebuilderLuc Pattyn9-Dec-10 5:12 
QuestionOpen Cash Drawer Pin
Jassim Rahma9-Dec-10 3:03
Jassim Rahma9-Dec-10 3:03 
AnswerRe: Open Cash Drawer Pin
Hiren solanki9-Dec-10 3:12
Hiren solanki9-Dec-10 3:12 

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.