ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net Remoting
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
How do you directly call a native function exported from a 
DLL?
 Question Submitted By :: Swechcha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do you directly call a native function exported from a DLL?
Answer
# 1
Yes we can call a native function exported from a Dll in 
the following way,
I used C#.Net for Coding.

Add a Namespace that "System.Runtime.InteropServices"

Then use the following code,

Syntax:
[DllImport("dllname")]
here place the function in "dllname" Dll.
 
Is This Answer Correct ?    1 Yes 0 No
Moghan
 
  Re: How do you directly call a native function exported from a DLL?
Answer
# 2
HERE IS THE CODE EXAMPLE :

using System.Runtime.InteropServices; \
class C
{
	[DllImport("user32.dll")]
	public static extern int MessageBoxA(int h, string 
m, string c, int type);
	public static int Main()
	{
		return MessageBoxA(0, “Hello 
World!”, “Caption”, 0);
	}
}
 
Is This Answer Correct ?    1 Yes 0 No
Santhanakumar
 
 
 

 
 
 
Other Dot Net Remoting Interview Questions
 
  Question Asked @ Answers
 
In which conditions do you opt for Remoting services? Tech-Mahindra8
Where are shared assemblies stored?  2
What do you know about .NET assemblies?  2
How do you define the lease of the object?  1
Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs?  1
What are possible implementations of distributed applications in .NET?  2
How to perform Remoting?  1
What is unmanaged code and will CLR handle this kind of code or not ? DELL1
How can you debug failed assembly binds?  1
Difference between remoting and web service ? Digital-GlobalSoft1
What is strong name and what is the purpose of strong name ? TCS4
Can you have two files with the same file name in GAC?  2
How can you automatically generate interface for the remotable object in .NET with Microsoft tools? Tavant-Technologies1
Give the Hierarchial description of remoting? Satyam1
What is boxing and unboxing ? TCS1
How does assembly versioning in .NET prevent DLL Hell? Satyam3
What are the security issues if we send a query from the application? Microsoft1
How do you register a .NET assembly? Microsoft2
What are static assemblies and dynamic assemlies. Differences between them ? TCS2
What are the differences between Marshal by value and Marshal by reference? Verizon3
 
For more Dot Net Remoting Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com