![]() |
| ||
| Help needed in Converting C# Code to VB.Net Code Hey frnds, I m comparing two images in VB.Net..I get the code in C# & dat code is working 100 % Correctly..Now want to convert dat code to vb.net..& i need help in just converting two lines- C# EXAMPLE private void Form1_Load(object sender, EventArgs e) Mine VB.net Converted Coding- Public Function doImagesMatch(ByVal bmp1 As Bitmap, ByVal bmp2 As Bitmap) As Boolean ERRORS IN MINE CODE- Dim imgBytes1 As Byte() = New Byte(1) - Type Byte has no constructors imgBytes1 = (byte())converter.ConvertTo(bmp1, imgBytes2.GetType()) -- 'Byte' is a type and cannot be used as an expression, '.' expected |
| ||
| Re: Help needed in Converting C# Code to VB.Net Code I used this converter: http://www.dotnetspider.com/convert/Csharp-To-Vb.aspx. It seems to compile the app then use the MSIL to convert it to VB, which is the best way of translation. If this doesn't work, I can manually translate it, so let me know. This is the result: Dim img1 As Bitmap = New Bitmap("D:\\Documents and Settings\\Sonia\\Desktop\\sonia1.bmp") |
| ||
| Re: Help needed in Converting C# Code to VB.Net Code The link that you gave is not converting the code 100% Correctly...But sir ur code is working 100 % Correctly....Thx very Much..... |
| ||
| Re: Help needed in Converting C# Code to VB.Net Code Hey i want to ask that frnds Suppose if i have mine full image..& suppose i edit it with paint & cut it half..& then compare full image & half image...then function returns fals....I want to just ask dat can we do i Vb.net..to compare two images one full & one half...& still we get true.... |
| All times are GMT -4. The time now is 9:17 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC