Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / toolbar

Author
Message
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 24th Sep 2008 16:54 Edited at: 24th Sep 2008 16:56
Hi,
Does any know how I can get an MS tool bar like file, edit, etc on my program?

I looked at MSDN, downloaded the samples and they didnt work

Anyway can any one help?
Thanks,
Alex

elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 24th Sep 2008 17:13
define, they didn't work

~you can call me lantz~
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 24th Sep 2008 17:51
The compile button was greyed out so I changed Debug from Itanium to Win32. It allowed be to compile then. But it gave me this error:


Apparently only the paid version of Visual C++ can compile this. That's what I read somewhere.

But I believe there is another way to get a tool bar probably because I have got a ColorDialog and OpenDialog in my program, which I didn't get from the samples.

Anyway it doesn't matter about the samples any more, i just need a tool bar.

Thanks,
Alex

AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 25th Sep 2008 16:14
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 25th Sep 2008 17:03
Post the link to the MSDN page you're talking about.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 26th Sep 2008 11:44
Here is the samples:
http://msdn.microsoft.com/en-us/library/482ck6x8.aspx

None of them will work, because it uses the MFC classes and Visual Basic Express does not have MFC classes.

However I believe there is other ways to get a toolbar other than using MFC.

Any ideas of how I would do this without MFC?
Thanks,
Alex

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 26th Sep 2008 19:34
I looked over some info about MFC. While I'm extremely jealous of those that get to use it, there is a light-weight alternate: WTL (Windows Template Library). Look up some tutorials on it. Like MFC, it is a C++ OOP wrapper for the Win32 API (because the API is horrible to use; it's very old-school C).

So, try your luck with WTL. I might try it myself.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 26th Sep 2008 19:38
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 28th Sep 2008 21:50 Edited at: 28th Sep 2008 21:52
Any luck with it? I downloaded it and couldn't get it to work

It needs ATL and Microsoft have been kind enough to not include it:
Quote: "
# Does Visual C++ 2008 Express Edition include MFC and ATL?

No, MFC and ATL are not included with Visual C++ 2008 Express. MFC and ATL will be included in Visual Studio 2008 Standard and above editions.
"


Any other librarys that might make a toolbar? Or ways to get WTL to work?
Thanks

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 29th Sep 2008 03:07
I can't seem to find a wrapper that's easy to install and free.

I suppose I could write my own some time soon.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
xix psycho xix
16
Years of Service
User Offline
Joined: 15th Sep 2008
Location:
Posted: 29th Sep 2008 05:12
i started writing one... if you want the classes i started, i would be more than happy to give them to someone to finish/rewrite if they'd like.
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 29th Sep 2008 06:49
Quote: "i started writing one... if you want the classes i started, i would be more than happy to give them to someone to finish/rewrite if they'd like. "


Sure. Post/email them to me. I take a look at them tomorrow.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 29th Sep 2008 13:00
Quote: "i started writing one... if you want the classes i started, i would be more than happy to give them to someone to finish/rewrite if they'd like."


How far did you get?

It would be cool Mahoney if you finished it

Login to post a reply

Server time is: 2024-11-25 04:00:30
Your offset time is: 2024-11-25 04:00:30