CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: Help needed

  1. #1
    Join Date
    Apr 2003
    Location
    kathmandu, nepal
    Posts
    1,570

    Help needed

    I have an application which is a kind of dictionary.

    The application is an exe and I don't have the source for it.

    However I would like to import the words in this application to my application's database.

    When I execute this dictionary application it displays a window which has a listbox which in turn displays the words.

    Is it possible for me to acquire the words displayed in the listbox by any means.

    Any help will be appreciated.

    Mitesh

  2. #2
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354
    get the list handle, hook into that and you should know it.

  3. #3
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: Help needed

    Originally posted by miteshpandey
    I have an application which is a kind of dictionary.

    The application is an exe and I don't have the source for it.

    However I would like to import the words in this application to my application's database.

    When I execute this dictionary application it displays a window which has a listbox which in turn displays the words.

    Is it possible for me to acquire the words displayed in the listbox by any means.

    Any help will be appreciated.

    Mitesh
    Ask dictionary manufacturers.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  4. #4
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: Re: Help needed

    Originally posted by ovidiucucu
    Ask dictionary manufacturers.
    I know it was meant in jest Mitesh but Ovidiu is giving you good advice there. You can't just "acquire" somebody else's copyright materail without their permission.

    If you ask their permission they might agree and let you use their dictionary. Otherwise, you'll just have to put in the effort and compile one yourself - just like they had to do.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  5. #5
    Join Date
    Jun 2002
    Posts
    395
    If the "dictionary" is just a list of words, the words themselves are not copyright-protected.

    The application that the words are in is copyrighted (copywritten?)

  6. #6
    Join Date
    Apr 2003
    Location
    kathmandu, nepal
    Posts
    1,570
    It is not exactly a dictionary but a kind of utility program which gives u only the list or words according to the query provided by the user in the edit box.

    Please help any more information will be appreciated much.

  7. #7
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835
    Originally posted by wayside
    If the "dictionary" is just a list of words, the words themselves are not copyright-protected.
    Words themselves cannot be copyrighted (although they can be trade marked) but a specific arrangement of words is automatically copyrighted. If Mitesh's app uses an arrangement of words derived from somebody else's work (and particularly if he used them in roughly the same order) he would be breaching copyright.

    One possible saving grace is that he doesn't intend using the originator's definitions but he's still on dicey ground. If there are any spelling mistakes in the dictionary and he copies them into his own work, he'll be leaving himself wide open to get sued.

    There's a well known techinque used by map makers where they put deliberate errors into their work. In theory, two maps of the same area should look identical and this used to cause all kinds of problems for map makers trying to prove plagiarism. The answer was to deliberately put non-existent streams and footpaths into their maps so they could tell if their work was being copied. In fact I think that was one of Webster's original aims when he compiled his first dictionary - hence why some people now use 'color' and others, 'colour'.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  8. #8
    Join Date
    Oct 2003
    Location
    Romania
    Posts
    127
    Well, let's be serious!
    There are many of questions in this forum indirectly asking "How can we hack/crack/hook/f*** 3rd party application?". Many of them found the solutions.

    If that app. simply has Windows edit and list comon controls and presuming you have a list of words to be translated, try this:

    Code:
    - get a handle to the edit box using spy++;
    - get a handle to the list box using spy++;
      (also you can get them programatically 
                                    -> search this forum to find how)
    
    loop for each word in your list of words 
       - send WM_SETTEXT  to put the word in edit;
       - dempending on how it's implemented that dictionary 
                                 you must simulate an user action
         (click a buton, press Enter -> search this forum to find how) 
       - send LB_GETCOUNT to retrieve the number of the list items;
       loop for each list item to retrieve the item text:
          - send LB_GETTEXTLEN to retrieve the required buffer length;
          - send LB_GETTEXT and you have the item text;
          - insert into database.
       end loop for list items.
    end loop for word list.
    As you can observe this does not require too much base knowledge.
    Although, it can work or can not. This depend on how well the manufacturer protected the application.
    Last edited by marsh_pottaye; May 1st, 2004 at 07:54 AM.

  9. #9
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354
    Just curious. Does this work across process ( as is required by the poster ). I don't think LB_GETTEXT message will.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured