Click here to Skip to main content
15,894,180 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Test a DIB for percentage of black pixels Pin
basementman15-Feb-06 4:29
basementman15-Feb-06 4:29 
GeneralRe: Test a DIB for percentage of black pixels Pin
normanS15-Feb-06 18:39
normanS15-Feb-06 18:39 
QuestionChange Application Icon Pin
sunit515-Feb-06 3:30
sunit515-Feb-06 3:30 
AnswerRe: Change Application Icon Pin
toxcct15-Feb-06 3:32
toxcct15-Feb-06 3:32 
GeneralRe: Change Application Icon Pin
sunit515-Feb-06 3:39
sunit515-Feb-06 3:39 
AnswerRe: Change Application Icon Pin
Wim Engberts15-Feb-06 4:12
Wim Engberts15-Feb-06 4:12 
GeneralRe: Change Application Icon Pin
ThatsAlok16-Feb-06 2:44
ThatsAlok16-Feb-06 2:44 
GeneralRe: Change Application Icon Pin
Wim Engberts16-Feb-06 5:21
Wim Engberts16-Feb-06 5:21 
Yes it is!
I have a number of console applications for which I used this. In Visual Studio, you add a file to the sources folder with a name like "AppName.rc". studio will ask something like "No such file exists, add anyway?" to which you reply confirmative. Next, you must open the file (again from the sources folder) Studio will again ask: "This file does not yet exist; do you wat to create a new file?" Again, you answer "yes". Then, there will be an empty rc file and a "ResourceView" tab will be added to your project, between the "ClassView" and the "FileView" tabs. When you open the resource, it will have no resources yet, so you add an icon. You must make sure to create this icon in both 32*32 bit version as well as in 16*16 bit version. When you then recompile your console application, there will be no changes to the application itself, nor to the console window in which it runs. However, if you browse to your program using explorer, it will show you your icon next to the filename, rather than the default exe icon.
In the same way, you can add version information to your program. You can view this version information by selecting "Properties" in explorer. The issue here is that both the version information as well as the icon are kept in the exe's header information, which is not loaded at runtime, but which is used by explorer to show information about the exe file. This is also the reason why you cannot use the version information from your resource at runtime in your application; it's simply never loaded! Smile | :)

Regards,
William
GeneralRe: Change Application Icon Pin
ThatsAlok16-Feb-06 17:18
ThatsAlok16-Feb-06 17:18 
QuestionSir,I want 2 know that weather we can call SAME function in Multiple Threads? Pin
CodeVarma15-Feb-06 3:18
CodeVarma15-Feb-06 3:18 
AnswerRe: Sir,I want 2 know that weather we can call SAME function in Multiple Threads? Pin
Tim Smith15-Feb-06 3:35
Tim Smith15-Feb-06 3:35 
GeneralRe: Sir,I want 2 know that weather we can call SAME function in Multiple Threads? Pin
ThatsAlok16-Feb-06 2:43
ThatsAlok16-Feb-06 2:43 
GeneralRe: Sir,I want 2 know that weather we can call SAME function in Multiple Threads? Pin
Tim Smith16-Feb-06 3:40
Tim Smith16-Feb-06 3:40 
GeneralRe: Sir,I want 2 know that weather we can call SAME function in Multiple Threads? Pin
ThatsAlok16-Feb-06 17:24
ThatsAlok16-Feb-06 17:24 
AnswerRe: Sir,I want 2 know that weather we can call SAME function in Multiple Threads? Pin
BadKarma15-Feb-06 3:54
BadKarma15-Feb-06 3:54 
AnswerRe: Sir,I want 2 know that weather we can call SAME function in Multiple Threads? Pin
Stephen Hewitt15-Feb-06 16:59
Stephen Hewitt15-Feb-06 16:59 
AnswerRe: Sir,I want 2 know that weather we can call SAME function in Multiple Threads? Pin
ThatsAlok16-Feb-06 2:41
ThatsAlok16-Feb-06 2:41 
Questionmodeless dialog WM_CLOSE - opinion Pin
23_44415-Feb-06 3:14
23_44415-Feb-06 3:14 
AnswerRe: modeless dialog WM_CLOSE - opinion Pin
Shog915-Feb-06 3:46
sitebuilderShog915-Feb-06 3:46 
AnswerRe: modeless dialog WM_CLOSE - opinion Pin
Rage15-Feb-06 3:59
professionalRage15-Feb-06 3:59 
GeneralRe: modeless dialog WM_CLOSE - opinion Pin
23_44415-Feb-06 4:43
23_44415-Feb-06 4:43 
GeneralRe: modeless dialog WM_CLOSE - opinion Pin
23_44415-Feb-06 4:58
23_44415-Feb-06 4:58 
GeneralRe: modeless dialog WM_CLOSE - opinion Pin
Shog915-Feb-06 7:53
sitebuilderShog915-Feb-06 7:53 
GeneralRe: modeless dialog WM_CLOSE - opinion Pin
23_44415-Feb-06 8:00
23_44415-Feb-06 8:00 
AnswerRe: modeless dialog WM_CLOSE - opinion Pin
23_44416-Feb-06 5:17
23_44416-Feb-06 5:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.