Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

Is this possible to write Win32 .dll files by C#.NET? -


is possible write win32 .dll files c#.net ? if yes, can find tutorials? if no, what's suggestion write win32 .dlls?

thanks.

it sounds you're trying create classic win32 dll win32-style exports? (win32-style exports dllimport picks up.) can't managed code (c# or managed c++); far know, you'll need use unmanaged c/c++ that.

programming windows charles petzold or similar book on programming win32 might place start; or find 'hello world' win32 dll sample. or create win32 dll project in visual studio , @ files creates you, there should placeholder text started.

managed code use files have .dll extension, containers managed code, , don't have win32-style entry points, other code that's expecting win32 entry points can't use them. referred "managed assemblies" rather dlls avoid confusion.

--

update - there might alternate option: can create what's called "mixed mode dll" dll contains both native code , managed code. dll have managed c# class want 'export', , small amount of mixed c/c++ exports win32-style apis. while possible, it's not thing do: code that's expecting load plain win32 dll may not expecting clr loaded consequence; , hit problems if process has conflicting version of clr loaded. mixed-mode dlls tend more useful allowing c# assembly reuse c/c++ code, rather allowing c#/managed code masquerade win32 dll.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -