|
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
|
|
|
|
|
That is exactly the kind of a question I dislike.
Didn't you post the same questions some days ago?
Don't try it, just do it!
|
|
|
|
|
This slight modification to your code will get you closer to your end result:
void main( void )
{
int i,
j,
nNumber,
a[10] = {0};
for (i = 0; i < 10; i++)
{
do
{
cout << "Enter a number between 20 and 100: ";
cin >> nNumber;
} while (nNumber < 20 || nNumber > 100);
for (j = 0; j < i; j++)
{
if (a[j] == nNumber || a[j] == 0)
break;
}
if (a[j] == 0)
a[j] = nNumber;
}
cout << "The non-duplicate numbers:" << endl;
for (j = 0; a[j] != 0; j++)
cout << a[j] << endl;
getch();
}
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I have derived a class from CButton , named CMyButton , when i add function(for exmple)
void CMyButton::SetButtonText(CString text)
{
this->SetWindowText("");
}
//and then call
CMyButton b;
b.SetButtonText("test");
//it compiles succesfuly
but then i get debug assertion failed, and in debug i get "invalid window handle", i know the problem is in
this->SetWindowText("");
can anyone tell me what i have write instead of "this->",to avoid this problem??
Regards
m0n0
|
|
|
|
|
You never created the window for the button. See CButton::Create in the help.
John
|
|
|
|