|
VC add resource(Version, Icon, Menu, Dialog etc.) to MFC app/dll automaticly.
but not Win32 DLL.
we need add standard version info(like what you see in the Properties dialog of a DLL file in Windows Explorer) to a DLL project. any advice is welcome
|
|
|
|
|
From the IDE, it is not difficult.
With your projet open, go to File | New, and choose "resource script". Make sure you insert it in your project, and you can then edit its resources like you would anything else.
Just don't try to use Class Wizard.
Even a broken clock is right twice a day.
|
|
|
|
|
I need in my program to get the default web browser on my system. How???
|
|
|
|
|
Why do you need to get the default browser? If you are just launching an HTML file, check out the ShellExecute function, which launches whatever program is associated with the file type specified.
Even a broken clock is right twice a day.
|
|
|
|
|
I need open many instances of a browser in separate windows and uses for it CreateProcess, so SheelExecute in this case is not applicable.
|
|
|
|
|
Where is the [edit]"use MFC in a static library"[edit] option in VC6SE (standard edition). I ran across this question in a another forum and realized I'm going to need the answer myself as I'm using an older machine with the SE version on it (Crashed my other PC and wont have it running again until sometime tomorrow - which wont help me in about two hours when I compile the release on the project I'm working on now) and no license to upgrade on this PC. Anyone know, its been a long time since I've used this PC for programming apps.
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
- Just remember when you point a finger at someone else, you are only one finger away from making a fist to hit them with!
If they don't get the basic research and learning skills down then they'll end up having a very hard life (Either that or they'll become managers) - Micheal P Butler <
|
|
|
|
|
It's not on the General tab in Project Settings in the Standard Edition?
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
Not on mine... just "MFC in shared DLL" and attempting to add I don't have the static library feature.. and even after a full install don't have it. Do YOU?
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
- Just remember when you point a finger at someone else, you are only one finger away from making a fist to hit them with!
If they don't get the basic research and learning skills down then they'll end up having a very hard life (Either that or they'll become managers) - Micheal P Butler <
|
|
|
|
|
I have Enterprise Edition. I just looked it up. The Comparison Chart of Features in Each Visual C++ Edition says Static linking to the MFC Library isn't offered in the Standard Edition. That sucks!
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
hey... i found that out too. I did a msg that I can find a work around here on codeproject but searching for it seems to be rather a pain... I appreciate your assistance though.. if you aren't easily offened, see this link.. I just posted the phote enough people told me its not really offensive... http://profiles.yahoo.com/cpp_w_mfc[^] it won a best costume at a halloween party here locally.
|
|
|
|
|
I just took a peek at your profile. Just thought it worth mentioning that I recently considered hiring a programmer to help me out with some of the "grunt" work and mentioned it in the lounge here. I was actually thinking of hiring between two local people I know but the reponse to my query got me to realize the CP is likely a better idea for finding programmers. Doesn't pay a great deal... right now I can only offer $30(US) and hour and it would be spuradic.. mostly needed when I agree to very short dead lines. Just the same... if you think you might be interested, my email is mfeik@comporium.net and I just started my own company and as it grows (as I hope it does, I will be able to pay better.
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
- Just remember when you point a finger at someone else, you are only one finger away from making a fist to hit them with!
If they don't get the basic research and learning skills down then they'll end up having a very hard life (Either that or they'll become managers) - Micheal P Butler <
|
|
|
|
|
I think the Standard edition won't let you link statically from the GUI. I know ther eis a way around that thoguh, and I think it is in a CP article. I don't knnow where it is at the moment though... but it involves hacking the DSP/MAK files...
Even a broken clock is right twice a day.
|
|
|
|
|
Hey all, I am writing a little utility which will syncronize data with the Outlook Task folder. I am using MFC. I have done some searching on how to do this, but most of the info I have found on the net and on MSDN is using VB, which I can't use for my purposes.
Can any of you point me in the right direction, please?
Thanks!
|
|
|
|
|
Can anyone Please explain me how to get the thumbnail image of a picture using VC++ activex control..
|
|
|
|
|
just use kodak thumbnail control
|
|
|
|
|
hi,
does anyone know where i can find out more information on graphic user interface programming in vc++? i'm talking about the programming of the gui with animated buttons and menus that are similar to the ones in games(e.g. nhl2003, nbalive 2003, madden2003..etc), winamp, sonique and wmp(i'm not talking about programming skins).. any suggestion is welcome.. tia!
|
|
|
|
|
Here ? There's lot of different GUI stuff on this site. The stuff within games is likely to be done in DX, I would have thought, but there is a skinnable app sample that looks a lot like WinAm ( and plays mp3s ), and heaps of other stuff as well.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Hi,
Im trying to put a CList into a struct or class and include that in another CList, does anyone know how to do this whithout getting errors?
Cheers
|
|
|
|
|
I think I know what you mean, this example uses stl::list ( and so should you ), but it compiles fine.
#include <list>
using std::list;
struct myStruct
{
list<int> lInt;
int i;
char * pChar;
};
int main(int argc, char* argv[])
{
list <myStruct> myList;
return 0;
}
Christian
|
|
|
|
|
This one got me too, caused me no end of hassles. Best thing to do is forget the MFC CList related class and go straight for the STL ones.
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
The same thing is valid for all MFC containters (CArray). Use std::list .
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
Hey dudes,
Where did the Profiler go in VS .NET?
I can't find it.
Regards,
Adam.
|
|
|
|
|
Debug Error!
File i386\chkesp.c
Line 42
The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
|
|
|
|
|
In Debug mode, the stack is verified after every function call to make sure that every thing is playing nicely in your program.
The message states why the problem usually happens, however it can happen when you corrupt the stack because of writing to a bad address with invalid pointers and other things.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Ok, I see, but I don't know why this is happening in my program...It crashes after this function call but the strange thing is this. This function add strings to a linked list. First it checks the linked list to make sure that the string isn't already there, if it doesn't find it then it adds it. The program crashes only when it finds a match in the linked list and the string is more than 37 chars in length. Anything under that is OK. That is what is confusing me. Maybe you can have a look at this code?
void movie_list::AddTo_Gimme(char szMovieName[][51], int iNumber)
{
movie_list_element *pSearch;
char szBuffer[80];
int x;
for (x = 0; x < iNumber; x++)
{
pSearch = first_movie;
// Search for a match
while (pSearch != NULL)
{
if ( strcmp(szMovieName[x], pSearch->movie_name) == 0 )
break;
else
pSearch = pSearch->next_movie;
}
if (pSearch == NULL)
{
// No match; Add the movie to the head of the list
movie_list_element *NewMovie;
NewMovie = new movie_list_element;
NewMovie->movie_name = strdup(szMovieName[x]);
NewMovie->next_movie = first_movie;
first_movie = NewMovie;
}
}
}
Thanks for the help so far.
|
|
|
|