Results 1 to 3 of 3

Thread: Useful tip for MS Windows

  1. #1
    Join Date
    Jan 2006
    Location
    England
    Posts
    18
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Lightbulb Useful tip for MS Windows

    Morning All

    Found an interesting thing I thought I'd share. If you've installed cygwin on your pc, you have access to all the good ol' shell commands... 'grep' being the one of specific interest.

    The thing I didn't realise was the ability to run DOS based commands in the cygwin shell and pipe the output to grep.

    Visual Studio has DUMPBIN.EXE which gives information on dlls. So in the cygwin shell you could do this:-

    DUMPBIN.EXE /EXPORTS "c:\Qt\3.3.4\bin\qt-mt334.dll" |grep QComboTableItem

    to list QComboTableItem exports in qt-mt334.dll.

    No more paging through reams of function names hoping you dont miss the one you were looking for.

    McToo
    It's always a long day, you can't fit 86400 into a short!

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Useful tip for MS Windows

    Quote Originally Posted by McToo
    Morning All

    Found an interesting thing I thought I'd share. If you've installed cygwin on your pc, you have access to all the good ol' shell commands... 'grep' being the one of specific interest.

    The thing I didn't realise was the ability to run DOS based commands in the cygwin shell and pipe the output to grep.

    Visual Studio has DUMPBIN.EXE which gives information on dlls. So in the cygwin shell you could do this:-

    DUMPBIN.EXE /EXPORTS "c:\Qt\3.3.4\bin\qt-mt334.dll" |grep QComboTableItem

    to list QComboTableItem exports in qt-mt334.dll.

    No more paging through reams of function names hoping you dont miss the one you were looking for.

    McToo
    Sounds interesting but :

    1) I don't no anything at shel : what dies 'grep' do ?
    2) I tried cygwin and it failed building Qt4 on my old WinME (M$ Win paths and Unix paths mixed ...)
    3) needs Visual Studion installed (i.e. Win 2k or XP => what could Win 9x/ME users do with your tips?)
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Useful tip for MS Windows

    Quote Originally Posted by fullmetalcoder
    what dies 'grep' do ?
    grep can find all occurrences of a given pattern, but that really doesn't matter. The most important thing that you can unleash the power of Unix tools even on windows.

    Quote Originally Posted by fullmetalcoder
    I tried cygwin and it failed building Qt4 on my old WinME (M$ Win paths and Unix paths mixed ...)
    Just don't add path to Cygwin binaries to PATH environment variable. There's also MINGW_IN_SHELL.

Similar Threads

  1. Qt Jambi, deploying app on Mac & Windows fails
    By ChrisColon in forum Installation and Deployment
    Replies: 2
    Last Post: 16th February 2009, 23:05
  2. Replies: 5
    Last Post: 15th January 2009, 10:03
  3. Opening text file fails after autostartup on windows
    By yogourta in forum Qt Programming
    Replies: 2
    Last Post: 18th October 2008, 04:52
  4. Windows not appearing in XP.
    By beardybloke in forum Qt Programming
    Replies: 7
    Last Post: 24th October 2007, 18:32
  5. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 02:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.