Kodewerx

Our culture has advanced beyond all that you could possibly comprehend with one hundred percent of your brain.
It is currently Sat Jan 25, 2020 2:39 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Mon Jul 06, 2009 6:22 pm 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:46 pm
Posts: 2331
Location: *poof*
Title: The Mad Hacker
I'm trying to make a program with a simple dialog interface and I can't manage to make it use my icon (.ico) for the build. It keeps replacing it with its own stupid MFC logo.

Any help would be greatly appreciated; this is really frustrating.

_________________
Image


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 06, 2009 7:11 pm 
Offline
Kommunist
Kommunist
User avatar

Joined: Sat Nov 24, 2007 6:04 pm
Posts: 647
Location: Rattlesnakes and Sand
Eh, not sure how much help I'll be, but:

Quote:
The Icon in IDR_MAINFRAME is the one that MFC uses for the program Icon. But, if
you change the icon, you also need to change the 16x16 version of it. To do this, bring up
the icon in the resource editor, and click in the 'Device' combo-box. You will then have
the ability to change the resolution to 16x16, and edit the icon that MFC uses for small
icons for your program.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 06, 2009 7:45 pm 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:46 pm
Posts: 2331
Location: *poof*
Title: The Mad Hacker
Yes, thank you. That was exactly the problem. Stupid hidden subicon.

_________________
Image


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 07, 2009 12:12 am 
Offline
Kommunist
Kommunist
User avatar

Joined: Sat Nov 24, 2007 6:04 pm
Posts: 647
Location: Rattlesnakes and Sand
You're welcome.

I still have no clue what the fuck MFC App Wizard is.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 07, 2009 1:10 am 
Offline
Kommunist
Kommunist
User avatar

Joined: Thu May 03, 2007 5:27 pm
Posts: 424
Location: Kodewerx...i think
Title: Taco Boy
Microsoft wrote:
The MFC Application Wizard generates an application having built-in functionality that, when compiled, implements the basic features of a Windows executable (.exe) application.


jleemero wrote:
I still have no clue what the fuck MFC App Wizard is.


^That is awesome, if only i had that before now....

_________________
"I'm a Molar, Wisdom Tooth, get the fuck out of my gums!"


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 07, 2009 1:44 am 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:46 pm
Posts: 2331
Location: *poof*
Title: The Mad Hacker
As if I'd ask for help here before exhausting all other options.

And I figured it out "on my own" before I saw your post by installing an icon editor in PhotoShop that told me the subicons were there. (BTW, there were 9 all in different sizes, not just one extra 16x16.)

_________________
Image


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 07, 2009 4:11 pm 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:26 pm
Posts: 3765
Title: All in a day's work.
MFC? oh ... well...

I suggest trying XULRunner as an alternative.

_________________
I have to return some video tapes.

Feed me a stray cat.


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 08, 2009 3:47 am 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:46 pm
Posts: 2331
Location: *poof*
Title: The Mad Hacker
I closed the MFC wip due to it sucking ass. As you know, closing an unreleased wip is usually app-fatal.

However, provided an XULRunner dropdown list example (which I have not been able to find yet..), I will go through all the hoops to try and even get started with XULRunner using Visual Studio 2005. At least a finished project with XULRunner can work on multiple OSs.

Apps using it are always open source, yes? (it doesn't appear that you can compile it and only release an exe..)

_________________
Image


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 08, 2009 4:19 pm 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:26 pm
Posts: 3765
Title: All in a day's work.
You don't do XULRunner with Visual Studio. You do XULRunner with XULRunner... Or Firefox...

Doing a dropdown list is apparently pretty simple, though: https://developer.mozilla.org/en/XUL/menulist
Code:
  <menulist>
    <menupopup>
      <menuitem label="option 1" value="1"/>
      <menuitem label="option 2" value="2"/>
      <menuitem label="option 3" value="3"/>
      <menuitem label="option 4" value="4"/>
    </menupopup>
  </menulist>

Image

Like, ZOMG WOAH?

MDC (Mozilla Developer Central; linked above) has a lot of info to help get you started with XULRunner. And I can also get you setup, if you'd like. Syndrome is written entirely on XULRunner. You could even use that as a starting point for your app.

Re: Always open source? Not exactly. It's ideal, since XUL is an XML dialect, and functionality is provided mostly with JavaScript. However, you can also write XPCOM components in C++, which is compiled (obviously); and then be a total asshat and release your XPCOM-infused XULRunner app without the sources for the XPCOM component, I guess. That sounds like a bad idea to me, but to each their own...

_________________
I have to return some video tapes.

Feed me a stray cat.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group