Aqua-Soft Forums: Mydock - Aqua-Soft Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Mydock An open source code base for dock developers Rate Topic: -----

#1 User is offline   matonga Icon

  • Group: Developers
  • Posts: 1,286
  • Joined: 04-September 06

Posted 23 May 2009 - 09:47 PM

For developers only (no binaries included)

Hi, this is my first attempt trying to write a dock under C++:

http://www.matiasmor...-2009-05-23.rar

It uses Gdiplus (where possible) for graphics.

The dock is horrible, but it works. :P

It's distributed in source code form and is destinated to anyone who wants to write docks or similar programs and in need of a point of reference or working example.

Please don't ask me with feature requests, I may or may not continue adding stuff from time to time. I needed this as a reference too, for porting Stacks Library, Stacks Docklet 2 and maybe WinExposé to C++.

Final note: it has been written to compile with MinGW. This doesn't mean it will or won't compile with Visual Studio C++, just I haven't tested. To compile Gdiplus apps under MinGW, you'll need the include files and lib file, I can post them at request.
0

#2 User is offline   Smaky Icon

  • Group: Member
  • Posts: 586
  • Joined: 19-April 08

Posted 24 May 2009 - 12:40 AM

I'll try to compile it under Visutal Studio C++ 2008 (maybe under 2010 when I have it downloaded)... I'll post my findings.

Thanks.
0

#3 User is offline   vhanla Icon

  • Group: Member
  • Posts: 48
  • Joined: 15-June 08

Posted 24 May 2009 - 07:22 AM

I followed this http://wiki.bb4win.o...Plus_With_MinGW to compile it.
However, linker fails:
g++.exe MyDock.o  -o "uDock.exe" -L"C:/Dev-Cpp/lib" -L"C:/Dev-Cpp/mingw32/GnuWin32/lib" -llibSDL -lSDL_mixer libgdiplus.a  

MyDock.o(.text+0x226):MyDock.cpp: undefined reference to `CreateCompatibleDC@4'
MyDock.o(.text+0x2e0):MyDock.cpp: undefined reference to `GetDIBits@28'
MyDock.o(.text+0x303):MyDock.cpp: undefined reference to `DeleteObject@4'
MyDock.o(.text+0x311):MyDock.cpp: undefined reference to `DeleteObject@4'
MyDock.o(.text+0x31f):MyDock.cpp: undefined reference to `DeleteObject@4'
MyDock.o(.text+0xcfc):MyDock.cpp: undefined reference to `CreateCompatibleDC@4'
MyDock.o(.text+0xd50):MyDock.cpp: undefined reference to `CreateDIBSection@24'
MyDock.o(.text+0x102a):MyDock.cpp: undefined reference to `SelectObject@8'

MyDock.o(.text+0x10a3):MyDock.cpp: undefined reference to `DeleteObject@4'
MyDock.o(.text+0x10b1):MyDock.cpp: undefined reference to `DeleteObject@4'


That was with DevCPP. The same happens with CodeBlocks. :(
0

#4 User is offline   herd Icon

  • Group: Developers
  • Posts: 999
  • Joined: 02-November 03

Posted 24 May 2009 - 08:50 AM

These are linker errors. You'll need to link with user32.dll, too.
0

#5 User is offline   vhanla Icon

  • Group: Member
  • Posts: 48
  • Joined: 15-June 08

Posted 24 May 2009 - 09:50 AM

Nevermind, I forgot to add C:/Dev-Cpp/lib/libgdi32.a to parameters
0

#6 User is offline   Ghostwalker Icon

  • Group: Member
  • Posts: 1,990
  • Joined: 05-March 03

Posted 24 May 2009 - 07:12 PM

If someone decides to create a new dock keep this in mind...
DockFun!

I would do any graphics needed.

This post has been edited by Ghostwalker: 25 May 2009 - 08:49 PM

0

#7 User is offline   prcmelo Icon

  • Group: Member
  • Posts: 104
  • Joined: 18-June 06

Posted 24 May 2009 - 08:35 PM

DockFun! is really nice... but, Sticky Windows... wow!!!
I saw something similar to Sticky Windows for PC, but not with all those features!
Amazing!!!
0

#8 User is offline   bluebyt Icon

  • Group: Member
  • Posts: 312
  • Joined: 15-December 02

Posted 25 May 2009 - 08:38 PM

I think this is a very good idea to have open source Dock, if you look at all other Docks right now, ultimately the development has ceased.

If you can have a group of developers that maintain the dock, if one the developer give up, the others can continue the project!
0

#9 User is offline   bolero Icon

  • Group: Member
  • Posts: 1,198
  • Joined: 08-November 02

Posted 31 May 2009 - 10:10 PM

Cool. Thanks a lot for this. I started messing around development of a dock in C#.

I managed to get this to compile under VS 2008. It wasn't difficult. In the projects settings just be sure to include gdiplus.lib, and to change the project settings Character set to Multi-Byte as the quickest fix, otherwise you may need to supply a "L" at the beginning of each string through out the code if you'd rather keep it unicode. Oh and also to be sure to include the stdafx.h header file before any others.

Otherwise thanks a lot for sharing. Hardest part for me is to code the damn Parabolic zoom!

This post has been edited by bolero: 31 May 2009 - 10:11 PM

0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic