Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

FeRtoll

@FeRtoll
About
Posts
169
Topics
48
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Alpha Transparent PNG form question
    F FeRtoll

    I have problems with transparent form, can anyone help? :) problem is that its too slow :( example if i click on button where it should just switch another panel control it takes 3-4 secconds because of redrawing Class: http://pastesite.com/22086[^] On Form: http://pastesite.com/22087[^] so at form load is called redraw() and if i click on a button and panel is switched i again call redraw() form load 6 second switching panels 3-4 seconds thank you

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic help question csharp com tutorial

  • SendMessage (backspace) not working!
    F FeRtoll

    solved it... it was my fault! my function didnt fireing because of some crazy old code boolean! so if anyone ever need this the above sendmessage works fine for backspace! sorry guys :)

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic csharp help question

  • SendMessage (backspace) not working!
    F FeRtoll

    Luc Pattyn wrote:

    the hex constant does not conform to the documentation[^], at least bits 31 and 30 are wrong.

    so what should i do? if you know how can i solve the problem please tell me! :) thank you!

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic csharp help question

  • SendMessage (backspace) not working!
    F FeRtoll

    Private Const WM_KEYDOWN = &H100
    Private Const WM_KEYUP = &H101
    Private Const VK_BACKSPACE = &H8

    Private Overloads Shared Function SendMessage(ByVal hWnd As IntPtr, _
    ByVal msg As Integer, ByVal wp As IntPtr, ByVal lp As IntPtr) As IntPtr
    End Function

    SendMessage(windHandle, WM_KEYDOWN, CType(VK_BACKSPACE, IntPtr), CType(&HC0510001, IntPtr))
    SendMessage(windHandle, WM_KEYUP, CType(VK_BACKSPACE, IntPtr), CType(&HC0510001, IntPtr))

    Need help with this one! Its not working... Thank you!

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic csharp help question

  • Playing with other process windows! [modified]
    F FeRtoll

    thank you but that not helping me. i need handles of child windows of an process! however i solved it so i dont need anymore :) thanks man

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic

  • Playing with other process windows! [modified]
    F FeRtoll
    Visual Basic

  • Shared Cookie
    F FeRtoll

    i will post here once i get my project full tested and finished!

    FeRtoll Software.net ------------ E-Mail me WebPage

    Linux, Apache, MySQL, PHP csharp com question

  • Shared Cookie
    F FeRtoll

    nevermind i found the way to do this! ;P

    FeRtoll Software.net ------------ E-Mail me WebPage

    Linux, Apache, MySQL, PHP csharp com question

  • Shared Cookie
    F FeRtoll

    When user visit www.site1.com i need to set cookie with time of visit. Then when user visit www.site2.com or www.site3.com i need to read cookie from www.site1.com so i know visitor time. Is there way to set one cookie for multiple websites or multiple cookies for diferent sites?

    FeRtoll Software.net ------------ E-Mail me WebPage

    Linux, Apache, MySQL, PHP csharp com question

  • saving document with passwords encrypted
    F FeRtoll

    sample (i have text like this): username:marin;password:12345;lastlogin:12.12.2012; i encrypt it with password(1111) using (http://www.di-mgt.com.au/properpassword.html[^]) and then i have something like: FS238sdshdio92upishSDSDJfssf87s9dSFSSJDJ bla bla bla and i save that "bla bla" into a file somewhere in application directory and when i start application again i decrypt and get info from file. thats safe encryption but what for if annyone can see my application executable code and see with what password i encrypted it! or i am wrong? thanks! ;)

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic csharp html com security question

  • Compare two scanned images!
    F FeRtoll

    Don't worry :(( , be happy! :-D hey dont get mad, i respect your opinion and help! :)

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic csharp html com business help

  • Compare two scanned images!
    F FeRtoll

    i removed video becose of some e-mails i got last 2 hours :~

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic csharp html com business help

  • Compare two scanned images!
    F FeRtoll

    I concluded from this only one thing, you dont like vb.net annymore and force to the c#! :((

    Dave Kreskowiak wrote:

    Visual Developer - Visual Basic 2006, 2007, 2008 But no longer in 2009...

    :-D code is not optimized, because I have working fast and I wanted it to do it till Monday (tomorrow) finish! :doh: btw. I finished and everything is working nice and pretty fast (but i need to optimize code now, i have much unused codes and garbages to clean like "Val(search_color.R.ToString)")! ;P

    Dave Kreskowiak wrote:

    Search the articles for "image processing for dummies" and you'll find a very good series of articles by Christian Graus explaining just how this is done.

    in c# yes, but i am here asking for vb.net! I would prefer to learn assembler rather than c#, actualy i dont like c# i hate it... just becose of name! ;P and how people say it... ;P i am joking! and here is the thing i wanted... http://www.metacafe.com/watch/4656502/imco/[^] yes it's nothing special but for v1.0 is enough!

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic csharp html com business help

  • Compare two scanned images!
    F FeRtoll

    Dave Kreskowiak wrote:

    You have to account for the fact that no two scans of the exact same card will result in a pixel-by-pixel equality. Every pixel is going to be a slightly different color than the same pixel in the previous scan.

    i know that and understand what you mean so i made:

    Private Function CheckPixel(ByVal source_color As Color, ByVal search_color As Color, ByVal tolerancy As Integer) As Boolean
    Dim sense As Long
    sense = 255 - tolerancy * 5

        CheckPixel = (System.Math.Sqrt((Val(source\_color.R.ToString) - Val(search\_color.R.ToString)) \* (Val(source\_color.R.ToString) - Val(search\_color.R.ToString)) + (Val(source\_color.G.ToString) - Val(search\_color.G.ToString)) \* (Val(source\_color.G.ToString) - Val(search\_color.G.ToString)) + (Val(source\_color.B.ToString) - Val(search\_color.B.ToString)) \* (Val(source\_color.B.ToString) - Val(search\_color.B.ToString))) > sense)
    End Function
    

    wich is working ok for pixelbypixel search! but i dont want pixelbypixel search or do want i dont know thats why i posted a link to rapidshare file and application with source wich contains my needs!

    Dave Kreskowiak wrote:

    If all you're doing is OCR'ing the business cards, why even bother comparing two images of the cards and just compare the data that's coming off them?

    no i am not doing ocr. i have button "start" and then i scan image and compare to an image that is stored to database and detect difference on those two images and pixelbypixel is slow and not good result but with the code for detect difference from link i posted would do what i want! Here are images you can try with the application i posted and see what i want! ORIGINAL : http://img96.imageshack.us/img96/3540/originalsp.jpg[^] SCANED : http://img717.imageshack.us/img717/3461/damaged.jpg[^] COMPARED : http://img32.imageshack.us/img32/5895/comparator.jpg[^]

    Visual Basic csharp html com business help

  • Compare two scanned images!
    F FeRtoll

    dear dave... all you wroted isnt corect! download the archive which i posted and try to compare two images...

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic csharp html com business help

  • Compare two scanned images!
    F FeRtoll

    as i previously posted http://www.codeproject.com/Forums/1646/Visual-Basic.aspx?fid=1646&fr=51#xx0xx[^] i still didnt find solution to make it work! :( i made my application to scan picture find the business card on whole 1275x1775 and auto crop it so i get just 300x250 business card scaned! and it works good :P but now i need to compre two scaned images of those business cards and tell difference if exsample one is missing one corner or have hole in the middle... i made it work with pixelbypixel search but its to slow and gives me bad results! the only thing i found working just the way i want it to work is the vistor's compare in this project http://rapidshare.com/files/389129825/compar.zip.html[^] from this site http://catenarysystems.com/howto/comparator.html[^] :( can annyone help? i would really want to finish that application until monday i just missing that compare thing :( thank you :thumbsup:

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic csharp html com business help

  • Scanner - image scanning!
    F FeRtoll

    thanks! :P btw i forgot to post a solution! the only thing why it wasnt working was this part:

    winmsga.hwnd = m.HWnd
    winmsga.message = m.Msg
    winmsga.wParam = m.WParam
    winmsga.lParam = m.LParam
    winmsga.time = GetMessageTime()
    winmsga.x = pos 'just removed CShort()
    winmsga.y = (pos >> 16) 'same here

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic csharp help com question

  • Scanner - image scanning!
    F FeRtoll

    ahhhh i hate this! :P i made it work! thanks anyway

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic csharp help com question

  • animation?
    F FeRtoll

    i agree! :P

    FeRtoll Software.net ------------ E-Mail me WebPage

    Visual Basic graphics question

  • Scanner - image scanning!
    F FeRtoll

    i am trying to convert c# to vb.net of this project! .NET TWAIN image scanner[^] i did it and it works on select source, and scan preview but not when i click scan then it throws me error "Arithmetic operation resulted in an overflow." in winmsga.x = CShort(pos) much of code! :( here is what i have done: TwainLib[^] Twain[^] GDIPlusLib[^] And my form[^] only two things got errors when i converted code! first one is:

    <StructLayout(LayoutKind.Sequential, Pack:=4)> _
    Friend Structure WINMSG
    Public hwnd As IntPtr
    Public message As Integer
    Public wParam As IntPtr
    Public lParam As IntPtr
    Public time As Integer
    Public x As Integer
    Public y As Integer
    End Structure

    and

    Private winmsg As WINMSG

    so i just renamed it to winmsga maybe i did something wrong here? and other error was:

    Protected Function GetPixelInfo(ByVal bmpptr As IntPtr) As IntPtr
    bmi = New BITMAPINFOHEADER()
    Marshal.PtrToStructure(bmpptr, bmi)

        bmprect.X = InlineAssignHelper(bmprect.Y, 0)
        bmprect.Width = bmi.biWidth
        bmprect.Height = bmi.biHeight
    
        If bmi.biSizeImage = 0 Then
            bmi.biSizeImage = ((((bmi.biWidth \* bmi.biBitCount) + 31) And Not 31) >> 3) \* bmi.biHeight
        End If
    
        Dim p As Integer = bmi.biClrUsed
        If (p = 0) AndAlso (bmi.biBitCount <= 8) Then
            p = 1 << bmi.biBitCount
        End If
        p = (p \* 4) + bmi.biSize + CInt(bmpptr)
        **Return New (p,IntPtr)** 'so i made like this (Return New System.IntPtr(p))
    End Function
    

    can annyone help? thanks!

    FeRtoll Software.net ------------ E-Mail me

    Visual Basic csharp help com question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups