|
|
there's a difference between ignoring something, and ignoring EVERYTHING !!!
we are here to help those how don't know some things, but that also try to find a solution by their own way !!!
another thing :
are you really (as you say in you CP Homepage) a "software consultant about MFC" ???
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote : "we are here to help those how don't know some things, but that also try to find a solution by their own way !!!"
who told you that i am not trying to find solution my way but sometimes i manage to do it sometimes not. and thats it.
m0n0
|
|
|
|
|
hum, well, i don't say the opposite, but very often, when i read at your posts, i find them very long and very "diluated".... (like homeworks are )
ok, i'll try to help you anyway (it's my goodness day)
have you seen that an icon file (.ico) has multiple devices ?
in once ico file, you can find a 16*16 icon, a 32*32 one, and a 64*64 one...
maybe your problem is here...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
so you can ignore them
i assure you that i don't have any homeworks or stuff like that, i am simply beginner who want's to know as much as possible about programming
m0n0
|
|
|
|
|
Giorgi Moniava wrote:
i assure you that i don't have any homeworks
homeworks was a way to talk about you behavior
Giorgi Moniava wrote:
i am simply beginner who want's to know as much as possible about programming
hmmmmmm, maybe you should read a bit more about C++ at a first time, study about it, and when you really can find a solution to your problem (and when - of course - you did search a solution), ok, you can ask it in a smart question !!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
...maybe you should read a bit more about C++ at a first time, study about it, and when you really can find a solution to your problem...
Last time I checked, knowing C++ has absolutely no bearing on an icon-related issues. In this case, Giorgi is merely having IDE problems. The multiple-resolution suggestion is likely the culprit.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I dont think so because all i do is simply clear the IDR_MAINFRAME icon and draw new icon
m0n0
|
|
|
|
|
You'll have better success if you'll remove the .ico file and put your new one in its place (keeping the original filename). After a rebuild-all, you should be good to go.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Thanks David for your help !
m0n0
|
|
|
|
|
Giorgi Moniava wrote:
but sometimes i manage to do it sometimes not
I don't have the impression that it is only sometimes.
Don't try it, just do it!
|
|
|
|
|
i DO agree....
... and that's been few days like this !
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
This usually happens because the linker will grab the icon with the lowest id in it for use with the exe. Open up resource.h and make sure the icon you want for the .exe has the lowest id.
|
|
|
|
|
Hello,
I have written a function
GetFilesInDirectory(CString szpath) , which gets names of all filles in given directory,for example
GetFilesInDirectory("c:\\Windows"), now the problem is that
different people with different versions of Windows , may have their windows directory named differently
(WIN,WIN2000,...) i want to know if i can pass my function such value that will give all files from Windows directory,regardless how the user has called it, for example in REGEDIT , %Windir% is a variable that refers to the Windows installation folder.
Regards,
m0n0
|
|
|
|
|
GetWindowsDirectory()
GetSystemDirectory()
suhredayan There is no spoon.
|
|
|
|
|
|
TCHAR szWin[MAX_PATH];
TCHAR szSys[MAX_PATH];
GetWindowsDirectory(szWin,MAX_PATH);
GetSystemDirectory(szSys,MAX_PATH);
suhredayan There is no spoon.
|
|
|
|
|
|
LPCSTR means :
LP for Long pointer ('cause pointers are 4-bytes long)
C for Constant
STR for String
so, if you like GetWindowwDirectory() to write into your variable, it musn't be constant....
understand ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
wow very nice explanation thank you
very helpful
|
|
|
|
|
Hi all,
I want to run a program like NetworkSetupWizard. It Takes 1 minute in my computer, 0.5 minute in my friend's and so on.
How can my app finds out when the work finishes?
Please help me,
Best Regards,
Thanks.
|
|
|
|
|
If your intention is to run a new process and get notification when it stops, here is a good article :Link[^]
suhredayan There is no spoon.
|
|
|
|
|
What is your problem?
Do you want to get the time that program takes until it exits or completes an operation?
Don't try it, just do it!
|
|
|
|
|
Yes,
Exactly,
Please tell me if you know,
Cheers,
Thanks.
|
|
|
|
|
below is my code the whole program is for prompting user to enter 10 nos. b/w 20 to 100 while is there to check wheter the user entr the corect number or not, it will also check that the entered number is unique and was not previously entered by the user. at end of program simply it will display the non dublicate nos. whole program is correct and output is also correct but this program is taking integers in place of dublicate numbers. suppose the user enter 50, 60, 70, 89, 56, 200, 47, 50, 56, 95 and 21 here 56 and 50 are dublicate values my program is taking 2 values in place of them. what should i do as i don't want any other value in place of dublicate values. i simply want to display values (from abve example) 50, 60, 70, 89, 56, 47, 95, 21.
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int nTmp,i,j;
bool bFlag=false;
int a[10];
cout<<"entr 10 numbers b/w 20 and 100"<<endl;
="" for(i="0;i<10;i++)" {="" while(!bflag)
="" cout<<"enter="" value"<<endl;
="" cin="">>nTmp;
////Here we check first Condition
// no between 20 and 100
while((nTmp<20)||(nTmp>100))
{
cout<<"enter no b/w 20 and 100"<<endl;
="" cin="">>nTmp;
}
for(j=0;j<i;j++)
="" {
="" for="" checking="" whether="" the="" value="" is="" dublicate="" or="" not="" if(a[j]="=nTmp)" break;
="" }
="" }="" if(j="=i)" {="" save="" variable="" a[i]="nTmp;" bflag="true;
" again="" make="" it="" false
="" display="" non="" numbers.
="" cout<<"="" nos="" are="" "<<endl;
="" for(j="0;j<10;j++)" cout<<a[j]<<endl;
="" getch();
}="" <="" b="">
Rose
|
|
|
|