06.11.21

Taigi dabar esu susidomejes c# bei visu .net’u, tad sumislyjau parasyt toki unmanaged dll loadinimo wraperi(c++), bei jo panaudojima per c#. Atrodo isejo visai neblogai ;} Projecta ir visus source galit surast cia.

Stai jo veikimo paprastas atvaizdavimas:

C:\Documents and Settings\rd_limit\Desktop>”D:\rd\projektai\some\.net and unmana

ged\unmanaged\debug\managed_sharp_app.exe”

managed_sharp_app.exe: -> call managed dll lib -> Class1 a = new Class1();

managed_sharp_app.exe: -> call managed dll lib -> a.Test4();

managed_cpplib_dll.dll -> call unmanaged dll -> ExportTest();
unmanaged_cpp_dll.dll -> ExportTest();
managed_cpplib_dll.dll -> call unmanaged dll -> Test4();
unmanaged_cpp_dll.dll -> Test4():kazkas mus iskviete o_O
input: 1 0 0 0 1
output: 0 0
managed_cpplib_dll.dll -> call unmanaged dll -> funkcija(gg, og, in, on, gerai);
input: 1 0 0 0 1
output: 1 0
managed_sharp_app.exe: -> call managed dll lib -> a.Release();
managed_cpplib_dll.dll -> call unmanaged dll -> Release();
unmanaged_cpp_dll.dll -> Release();
managed_sharp_app.exe -> enter to exit.

Dar tuo paciu ant grejcio vienam veikejuj pakuriau paprasta testa darbuj su failais. Idomiausia tai, kad niekada c#’e nedirbau su jais, trumpai – ekspromtu. ;}}

Visa source rasit cia.

O dabar – laikas miegot. See you later. ‘_”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: