Задайте вопросЗадайте вопрос
 

ВопросAccessibility & Handicap Project

  • 15 марта 2009 г. 21:53Kilhian Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    This project is not only important for me, but for each people wich can't use use a mouse.
    Among all free and non free software, it's maybe just one of the best, easier, smoother, ...
    Let me thank you, for your help, your time...

    Hi,

    I'm daily using this software  in order to manage my computer (moving the mouse with my head moves, I became disable due to a  desease).
    It works pzerfectly with XP PRO SP3, but not under vista.
    Now, my laptop  is close to death, I had to change it and so migrate to vista :(.
    Hopefully, this software is available here with GPL licence.
    Here is a copy of the source code of the project (400Ko).
    I 've downloaded it through CVS, but couldn't compile it :(
    Code has been post without any explications...
    I understood that it was developped with MFC AppWizard
    I'm not a dev, just a good script maker

    Apps installed:
    - Opencv
    - Directx sdk nov2008 and august 2007 ( for dxtrans.h)
    - VisualStudio Express 2008
    - Must compile:
      -  C:\Program Files\Microsoft SDKs\Windows\v6.1\Samples\Multimedia\DirectShow\BaseClasses\baseclasses.sln to get strmbase.lib
      -  C:\Program Files\Microsoft SDKs\Windows\v6.1\Samples\Multimedia\DirectShow\BaseClasses\streams.h
      -  C:\Program Files\Microsoft SDKs\Windows\v6.1\Samples\Multimedia\DirectShow\BaseClasses\Release\strmbase.lib

    Modifications:
    - m_bTracking = false; to m_bTracking = true; line73 from HeadmouseDoc.cpp

    Problem:

    for(list<string>::const_iterator i=m_windows.begin(); i!=m_windows.end() && !tobreak; ++i) // i est bien declaré ici   
     if(0==strcmp((*(i)).c_str(),title)) 
      tobreak=true
    if(tobreak || i==m_windows.end()) //ligne 46 var i not declare 


    In fact, i is declared in the loop for, and so theorically invisibleoutside of the loop , except with some compiler.

    list<string>::const_iterator i=m_windows.begin(); 
    for(; i!=m_windows.end() && !tobreak; ++i) 
     if(0==strcmp((*(i)).c_str(),title)) 
      tobreak=true
    if(tobreak || i==m_windows.end()) 

    Thanks olivthill for the answer :)

    Compilation ok
    I've copied files on my wife's computer (Vista), and then "application error, side by side configuration..."
    I've searched msdn and found this procédure
    but I can''t get step 5

    Sum up:
    source Code : ok
    Compilation : ok
    -- In the folder "headmouse/headmouse/release": 1 file .exe "headmouse.exe" , with .obj, .xdc, .pdb,idb, xml, pch files
    -- In the folder "headmouse/processlib/release": 1 process.lib and .obj files
    I launched a debug with "headmouse.exe" wich asks me to add missing DLLs (found them here: /program files/OpenCV/bin):
    - cv110.dll
    - cvxcore110.dll
    - highgui110.dll

    Then, as there was no crash, I've created a setup project while following the step by step guide
    Unfortunatly, it still doesn't work :(

    fed up, erase and restart:
    - recreation of the project.
    - add a setup project to the current project.
    - set project and dependancies.

    launch of setup.msi
    - ok
    - verification, all files are at the right place.
    launch the program on Vista 32 et 64.
    - erreur 0xc0150002
    installation of Microsoft Visual C++ 2008 Redistributable Package
    - erreur 0xc0150002
    installation of Microsoft Visual C++ 2005 Redistributable Package
    - erreur 0xc0150002
    If someone could test the project? compilation & package (400Ko)
    Tell me where I'm wrong...

    Thanks for your help..

    This project is not only important for me, but for each people wich can't use use a mouse.
    Among all free and non free software, it's maybe just one of the best, easier, smoother, ...
    Let me thank you, for your help, your time...


    sorry for my bad english

    Kilhian

Все ответы