Click here to Skip to main content
15,881,852 members
Home / Discussions / C#
   

C#

 
QuestionAccess controls from Thread Pin
tray_gator21-Jan-06 23:37
tray_gator21-Jan-06 23:37 
AnswerRe: Access controls from Thread Pin
CWIZO21-Jan-06 23:43
CWIZO21-Jan-06 23:43 
GeneralRe: Access controls from Thread Pin
tray_gator21-Jan-06 23:58
tray_gator21-Jan-06 23:58 
AnswerRe: Access controls from Thread Pin
mav.northwind22-Jan-06 0:02
mav.northwind22-Jan-06 0:02 
JokeRe: Access controls from Thread Pin
tray_gator22-Jan-06 0:28
tray_gator22-Jan-06 0:28 
GeneralRe: Access controls from Thread Pin
CWIZO22-Jan-06 2:23
CWIZO22-Jan-06 2:23 
GeneralRe: Access controls from Thread Pin
tray_gator22-Jan-06 3:25
tray_gator22-Jan-06 3:25 
QuestionHow to pass reference parameter to unmanaged dll Pin
Sriinii21-Jan-06 20:41
Sriinii21-Jan-06 20:41 
Hi I have a function in unmanaged(VC++) dll which is accepting a refernce parameter
void check(UInt32& c)<br />
		{<br />
			c=20;<br />
		}

I want to call this function from my managed code(C#)
so i used the following code
class Program<br />
    {<br />
        [DllImport("samp.dll")]<br />
        public static extern void check(ref UInt32 c);<br />
        static void Main(string[] args)<br />
        {<br />
            <br />
            UInt32 s = 0;<br />
            check(ref s);<br />
         <br />
            Console.WriteLine(s.ToString ());<br />
            Console.ReadLine();                       <br />
        }<br />
        <br />
    }

but it shows me the error"Unable to find an entry point named 'check' in DLL 'samp.dll'."
is there any way to call a unmanaged dll's function(which has reference parameter) from managed code without using DLL import?? if yes please send me a sample code.
Thanks in advance
Srini
AnswerRe: How to pass reference parameter to unmanaged dll Pin
[Marc]22-Jan-06 10:21
[Marc]22-Jan-06 10:21 
GeneralRe: How to pass reference parameter to unmanaged dll Pin
Ravi Bhavnani22-Jan-06 11:25
professionalRavi Bhavnani22-Jan-06 11:25 
Questioncannot launch exe from windows service?? Pin
mdroz821-Jan-06 20:14
mdroz821-Jan-06 20:14 
AnswerRe: cannot launch exe from windows service?? Pin
turbochimp21-Jan-06 20:38
turbochimp21-Jan-06 20:38 
GeneralRe: cannot launch exe from windows service?? Pin
mdroz821-Jan-06 20:57
mdroz821-Jan-06 20:57 
GeneralRe: cannot launch exe from windows service?? Pin
turbochimp21-Jan-06 21:03
turbochimp21-Jan-06 21:03 
GeneralRe: cannot launch exe from windows service?? Pin
mdroz822-Jan-06 4:38
mdroz822-Jan-06 4:38 
QuestionTab Control problem Pin
Ph@ntom21-Jan-06 19:45
Ph@ntom21-Jan-06 19:45 
Questionmdi child form termination Pin
edel_ong21-Jan-06 18:42
edel_ong21-Jan-06 18:42 
AnswerRe: mdi child form termination Pin
edel_ong22-Jan-06 3:28
edel_ong22-Jan-06 3:28 
Questionsystem tray icons Pin
Mridang Agarwalla21-Jan-06 17:38
Mridang Agarwalla21-Jan-06 17:38 
AnswerRe: system tray icons Pin
Stephen Hewitt21-Jan-06 17:50
Stephen Hewitt21-Jan-06 17:50 
AnswerRe: system tray icons Pin
Dave Kreskowiak21-Jan-06 18:04
mveDave Kreskowiak21-Jan-06 18:04 
GeneralRe: system tray icons Pin
CWIZO21-Jan-06 23:45
CWIZO21-Jan-06 23:45 
GeneralRe: system tray icons Pin
Dave Kreskowiak22-Jan-06 4:20
mveDave Kreskowiak22-Jan-06 4:20 
QuestionHow to use labels in windows aplications to show class data Pin
Albert8321-Jan-06 13:38
Albert8321-Jan-06 13:38 
Questionopen .sln Pin
fmardani21-Jan-06 13:11
fmardani21-Jan-06 13:11 

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.