|
I guess you are looking for a Deskband[^].
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Buddy thanks for the reply,
But i dont have any clue with that.
let me explain my design to you.
Its call center application, and it has main toolbar like "log in","tools","call forward","redirect","conference" like that.
and just like a windows media player , i need that minimode tool in my design.
when you minimise it, it should show following option in little taskbar. and agent should operate everything from the taskbar itself.
Thanks.
|
|
|
|
|
OK. That is exactly what the link I sent you explains how to implement.
Look at the second image.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi thier i have a little problem there is a c++ code but i am not directly change the code into c program becouse of in c++ code there are many code which are hard to change into c so pleas help me what y//#include<iostream.h>
#include<iomanip.h>
#include<fstream.h>
#include<stdlib.h>
#include<string.h>
using namespace std;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**********************************************
* *
* ACCOUNT CLASS *
* *
**********************************************/
class Account
{
//protected:
public:
//data members
char Fname[20];
char Mname[20];
char Lname[20];
char nationality[20];
char occupation[20];
char tel_No[20];
char account_No[20];
float balance;
public:
//constructors and destructors
Account(); //default constructor
~Account(); //destructor
//member functions
char Press_Menu();
void Creat_Account();
void Display_Account();
};
///////////////////////////////////////////// END OF ACCOUNT CLASS /////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**********************************************
* *
* CUSTOMER CLASS *
* *
**********************************************/
class Customer:public Account
{
private:
//data members
float rate;
public:
//constructors and destructors
Customer();
~Customer();
//member functions
float Current_Balance(){};
float Interest(){};
float Withdraw();
float Deposit();
};
////////////////////////////////////////////// END OF CUSTOMER CLASS ///////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//constructor and destructor definition
Account::Account(){}; //default constructor
Account::~Account() //destructor
{
delete []Fname;
}
//END OF "Constructors and Destructor" definition of Account class
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//constructor and destructor definition
Customer::Customer(){}
Customer::~Customer()
{
delete []Fname;
}
//END OF "Constructors and Destructor" definition of Account class
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
char Account::Press_Menu()
{
char a=char(1000);
//INTERFACE DESIGN
char press;
cout<<"\n\n\t";
for(int i=0;i<61;i++)
printf("%c",a);
cout<<"\n\t";
cout<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)<<"\n\t"
<<char(5)<<"\t\tWELL COME TO AMBESSA BANK\t\t "
<<char(5);
for(int i=0;i<2;i++)
{
cout<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5);
}
cout<<"\n\t"
<<char(5)<<"\tPRESS N ==>> TO CREAT NEW ACCOUNT\t\t "<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)
<<"\n\t"
<<char(5)<<"\tPRESS D ==>> TO DEPOSIT MONEY TO YOUR ACCOUNT\t "<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)
<<"\n\t"
<<char(5)<<"\tPRESS Q ==>> TO QUERY BALANCE OF EXISTING ACCOUNT "<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)
<<"\n\t"
<<char(5)<<"\tPRESS S ==>> TO DISPLAY ACCOUNT\t\t\t "<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)
<<"\n\t"
<<char(5)<<"\tPRESS W ==>> TO WITHDRAW MONEY FROM EXISTING ACCOUNT"<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)
<<"\n\t"
<<char(5)<<"\tPRESS X ==>> TO TERMINATE THE PROGRAM\t\t "<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5);
cout<<"\n\t";
for(int i=0;i<61;i++)
cout<<char(1000);
return press;
}
//END OF "Press_Menu"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void Account::Creat_Account()
{
cin.get(); //to ignore input fromFname
//Interface design
cout<<"\n ";
for(int i=0;i<75;i++)
cout<<char(1000);
cout<<"\n ";
for(int i=0;i<70;i++)
cout<<char(15);
cout<<"\n ";
for(int i=0;i<64;i++)
cout<<char(1500);
cout<<"\n\n\t\t\tEnter Account Number:";
cin.getline(account_No,20);
ofstream out_file(account_No);
if(!out_file)
{
cout<<"\n\n\t\tError:File Not Found\n\n";
exit(1);
}
cout<<"\n\n\t ";
for(int i=0;i<55;i++)
cout<<char(15);
cout<<"\n\n\t\tFILL THE FOLLOWING INFORMATIONS\n\n\t ";
for(int i=0;i<55;i++)
cout<<char(15);
cout<<endl;
cout<<"\n\t\t\tFirst Name: ";
cin.getline(Fname,20);
cout<<"\n\t\t\tMiddle Name: ";
cin.getline(Mname,20);
cout<<"\n\t\t\tNationality: ";
cin.getline(nationality,20);
cout<<"\n\t\t\tOccupation: ";
cin.getline(occupation,20);
cout<<"\n\t\t\tTel. Number:";
cin.getline(tel_No,20);
A:cout<<"\n\t\t\tBalance: ";
cin>>balance;
//save data to the file
out_file<<balance<<endl;
out_file<<Fname<<endl;
out_file<<Mname<<endl;
out_file<<nationality<<endl;
out_file<<occupation<<endl;
out_file<<tel_No<<endl;
if(balance<50)
{
cout<<"\n\t\t\t\aInitial Minimum Balance is 50 birr !\n";
goto A;
}
//Interface design
cout<<endl<<endl<<"\t";
for(int i=0;i<60;i++)
cout<<char(16);
cout<<endl<<"\t";
for(int i=0;i<60;i++)
cout<<char(5);
cout<<"\n\n\t\tRemember !!! Your Account No. is "<<account_No;
//Interface design
cout<<endl<<endl<<"\t";
for(int i=0;i<60;i++)
cout<<char(5);
cout<<endl<<"\t";
for(int i=0;i<60;i++)
cout<<char(17);
cout<<"\n\n\n\t\t\tAccount "<<account_No<<" added to file\n\n";
out_file.close();
}
//END OF FUNCTION DEFINITION
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
float Customer::Deposit()
{
float amount;
cin.get();
cout<<" ";
for(int i=0;i<75;i++)
cout<<char(3500);
cout<<"\n ";
for(int i=0;i<70;i++)
cout<<char(1000);
cout<<"\n ";
for(int i=0;i<64;i++)
cout<<char(15);
D:cout<<"\n\n\t\t\tEnter Your Account Number:";
cin.getline(account_No,20);
ifstream in_file(account_No);
if(!in_file)
{
cout<<"\n\n\t\t\tError: File Not Found\n\n";
goto D;
}
//read data from the file
in_file>>balance;
in_file>>Fname;
in_file>>Mname;
in_file>>nationality;
in_file>>occupation;
in_file>>tel_No;
cout<<"\n\n\t\tYou Have a Balance of "<<balance<<" Birr";
cout<<"\n\n\t\tEnter the amount of money you want to Deposit:";
cin>>amount;
balance+=amount;
cout<<"\n\n\t\tYour Current Balance is "<<balance<<" Birr\n\n";
ofstream out_file(account_No);
out_file<<balance<<endl;
out_file.close();
in_file.close();
return balance;
}
//END OF FUNCTION DEFINITION
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
float Customer::Withdraw(){};
//END OF FUNCTION DEFINITION
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void Account::Display_Account()
{
cin.get();
cout<<" ";
for(int i=0;i<75;i++)
cout<<char(1000);
cout<<"\n ";
for(int i=0;i<70;i++)
cout<<char(15);
cout<<"\n ";
for(int i=0;i<64;i++)
cout<<char(1000);
S:cout<<"\n\n\t\t\tEnter Your Account Number:";
cin.getline(account_No,20);
ifstream in_file(account_No);
if(!in_file)
{
cout<<"\n\n\t\t\tError: File Not Found\n\n";
goto S;
}
//Read data from the file
in_file>>account_No;
in_file>>Fname;
in_file>>Mname;
in_file>>nationality;
in_file>>occupation;
in_file>>tel_No;
in_file>>balance;
cout<<endl<<endl;
for(int i=0;i<80;i++)
cout<<char(1500);
cout<<endl;
cout<<setw(16)<<"Full"
<<setw(5)<<"Name"
<<setw(16)<<"Nationality"
<<setw(16)<<"occupation"
<<setw(13)<<"Tele.No"
<<setw(12)<<"Balance"<<endl<<endl;
for(int i=0;i<80;i++)
cout<<char(1500);
cout<<endl<<endl;
in_file.getline(account_No,20);
cout<<setw(11)<<Fname
<<setw(10)<<Mname
<<setw(16)<<nationality
<<setw(16)<<occupation
<<setw(13)<<tel_No
<<setw(12)<<balance
<<endl<<endl<<endl<<endl;
//save data to the file
ofstream out_file(account_No);
out_file<<account_No<<endl;
out_file<<Fname;
out_file<<Mname;
out_file<<nationality;
out_file<<occupation;
out_file<<tel_No;
out_file<<balance;
//close file
out_file.close();
in_file.close();
}
//END OF FUNCTION DEFINITION
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int main()
{
Account acc;
Customer c1;
char press;
char response;
//do selection
do
{
P:acc.Press_Menu();
cout<<"\n\n\t\tPRESS YOUR CHOICE:";
cin>>press;
switch(press)
{
case 'N': //CASE:1 Creat_Account
case 'n':
system("cls");
acc.Creat_Account();
N:cout<<endl<<"\t";
for(int i=0;i<60;i++)
cout<<char(3500);
cout<<"\n\t";
for(int i=0;i<60;i++)
cout<<char(1500);
cout<<"\n\n\t\tCONTINUE: YES (Press Y) NO (Press N):";
cin>>response;
//cout<<endl<<endl;
if(response=='Y'||response=='y')
{
system("cls");
goto P;
}
else if(response=='N'||response=='n')
{
X:system("cls");
cout<<"\n\n\n\n\n\t";
for(int i=0;i<60;i++)
cout<<char(3500);
cout<<"\n\t\t\t WELL DONE\n\t\t";
for(int i=0;i<40;i++)
cout<<char(15);
cout<<"\n\n\t\t\tTHANK YOU ! COME AGAIN !!!\n\n\t\t";
for(int i=0;i<40;i++)
cout<<char(15);
cout<<"\n\t\t\t END OF PROGRAMME\n\t";
for(int i=0;i<60;i++)
cout<<char(3500);
cout<<endl<<endl<<endl<<endl;
exit(1);
}
else
cout<<"\n\n\t\tInvalid Choice. Try Again"<<endl;
goto N;
break;
case 'D': //CASE:2 Deposit
case 'd':
system("cls");
c1.Deposit();
goto N;
break;
case 'Q': //CASE:3 Current_Balance
case 'q':
system("cls");
c1.Current_Balance();
goto N;
break;
case 'W': //CASE:4 Withdraw
case 'w':
system("cls");
c1.Withdraw();
goto N;
break;
case 'S': //CASE:5 Display_Account
case 's':
system("cls");
acc.Display_Account();
goto N;
break;
case 'X': //CASE:6 stop
case 'x':
goto X;
break;
default:
system("cls");
cout<<"\n\n\t\t\aInvalid choice. Try Again\a\n\n";
}
}
while(1);
return 0;
} //END OF "main"
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ou can as much as possiple.
|
|
|
|
|
seiyfu yesuf wrote: i have a little problem
you most certainly do - a least 2 problems
1) you expect us to decipher the meaning of :-
"Hi thier i have a little problem there is a c++ code but i am not directly change the code into c program becouse of in c++ code there are many code which are hard to change into c so pleas help me what you can as much as possiple."
You actually havnt told us what the real issue is - you're trying to convert c to c++ and thats what you've got so far ? and the issue with your code dump is ? (ie, wont compile, produces wrong results .... )
2) a grungy code dump, which looks like homework.
so let me politely spell it out for you - we dont solve people's programming issues on such broad and undefined terms, even if we could decipher what you're trying to say. If you have an issue with a piece of code, or technique, then please post that and the minimal amount of code you're done so far as to illustrate the problem, along with compile diagnostics/warnings/errors etc. For the sort of thing you've dumped here, Id recommend extra tutoring from your teacher/lecturer and possibly reading a c++ programming textbook.
'g'
|
|
|
|
|
Hi thier i have a little problem there is a c++ code but i am not directly change the code into c program becouse of in c++ code there are many code which are hard to change into c so pleas help me what y//#include<iostream.h>
#include<iomanip.h>
#include<fstream.h>
#include<stdlib.h>
#include<string.h>
using namespace std;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**********************************************
* *
* ACCOUNT CLASS *
* *
**********************************************/
class Account
{
//protected:
public:
//data members
char Fname[20];
char Mname[20];
char Lname[20];
char nationality[20];
char occupation[20];
char tel_No[20];
char account_No[20];
float balance;
public:
//constructors and destructors
Account(); //default constructor
~Account(); //destructor
//member functions
char Press_Menu();
void Creat_Account();
void Display_Account();
};
///////////////////////////////////////////// END OF ACCOUNT CLASS /////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**********************************************
* *
* CUSTOMER CLASS *
* *
**********************************************/
class Customer:public Account
{
private:
//data members
float rate;
public:
//constructors and destructors
Customer();
~Customer();
//member functions
float Current_Balance(){};
float Interest(){};
float Withdraw();
float Deposit();
};
////////////////////////////////////////////// END OF CUSTOMER CLASS ///////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//constructor and destructor definition
Account::Account(){}; //default constructor
Account::~Account() //destructor
{
delete []Fname;
}
//END OF "Constructors and Destructor" definition of Account class
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//constructor and destructor definition
Customer::Customer(){}
Customer::~Customer()
{
delete []Fname;
}
//END OF "Constructors and Destructor" definition of Account class
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
char Account::Press_Menu()
{
char a=char(1000);
//INTERFACE DESIGN
char press;
cout<<"\n\n\t";
for(int i=0;i<61;i++)
printf("%c",a);
cout<<"\n\t";
cout<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)<<"\n\t"
<<char(5)<<"\t\tWELL COME TO AMBESSA BANK\t\t "
<<char(5);
for(int i=0;i<2;i++)
{
cout<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5);
}
cout<<"\n\t"
<<char(5)<<"\tPRESS N ==>> TO CREAT NEW ACCOUNT\t\t "<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)
<<"\n\t"
<<char(5)<<"\tPRESS D ==>> TO DEPOSIT MONEY TO YOUR ACCOUNT\t "<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)
<<"\n\t"
<<char(5)<<"\tPRESS Q ==>> TO QUERY BALANCE OF EXISTING ACCOUNT "<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)
<<"\n\t"
<<char(5)<<"\tPRESS S ==>> TO DISPLAY ACCOUNT\t\t\t "<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)
<<"\n\t"
<<char(5)<<"\tPRESS W ==>> TO WITHDRAW MONEY FROM EXISTING ACCOUNT"<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5)
<<"\n\t"
<<char(5)<<"\tPRESS X ==>> TO TERMINATE THE PROGRAM\t\t "<<char(5)
<<"\n\t"
<<char(5)
<<"\t\t\t\t\t\t\t "
<<char(5);
cout<<"\n\t";
for(int i=0;i<61;i++)
cout<<char(1000);
return press;
}
//END OF "Press_Menu"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void Account::Creat_Account()
{
cin.get(); //to ignore input fromFname
//Interface design
cout<<"\n ";
for(int i=0;i<75;i++)
cout<<char(1000);
cout<<"\n ";
for(int i=0;i<70;i++)
cout<<char(15);
cout<<"\n ";
for(int i=0;i<64;i++)
cout<<char(1500);
cout<<"\n\n\t\t\tEnter Account Number:";
cin.getline(account_No,20);
ofstream out_file(account_No);
if(!out_file)
{
cout<<"\n\n\t\tError:File Not Found\n\n";
exit(1);
}
cout<<"\n\n\t ";
for(int i=0;i<55;i++)
cout<<char(15);
cout<<"\n\n\t\tFILL THE FOLLOWING INFORMATIONS\n\n\t ";
for(int i=0;i<55;i++)
cout<<char(15);
cout<<endl;
cout<<"\n\t\t\tFirst Name: ";
cin.getline(Fname,20);
cout<<"\n\t\t\tMiddle Name: ";
cin.getline(Mname,20);
cout<<"\n\t\t\tNationality: ";
cin.getline(nationality,20);
cout<<"\n\t\t\tOccupation: ";
cin.getline(occupation,20);
cout<<"\n\t\t\tTel. Number:";
cin.getline(tel_No,20);
A:cout<<"\n\t\t\tBalance: ";
cin>>balance;
//save data to the file
out_file<<balance<<endl;
out_file<<Fname<<endl;
out_file<<Mname<<endl;
out_file<<nationality<<endl;
out_file<<occupation<<endl;
out_file<<tel_No<<endl;
if(balance<50)
{
cout<<"\n\t\t\t\aInitial Minimum Balance is 50 birr !\n";
goto A;
}
//Interface design
cout<<endl<<endl<<"\t";
for(int i=0;i<60;i++)
cout<<char(16);
cout<<endl<<"\t";
for(int i=0;i<60;i++)
cout<<char(5);
cout<<"\n\n\t\tRemember !!! Your Account No. is "<<account_No;
//Interface design
cout<<endl<<endl<<"\t";
for(int i=0;i<60;i++)
cout<<char(5);
cout<<endl<<"\t";
for(int i=0;i<60;i++)
cout<<char(17);
cout<<"\n\n\n\t\t\tAccount "<<account_No<<" added to file\n\n";
out_file.close();
}
//END OF FUNCTION DEFINITION
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
float Customer::Deposit()
{
float amount;
cin.get();
cout<<" ";
for(int i=0;i<75;i++)
cout<<char(3500);
cout<<"\n ";
for(int i=0;i<70;i++)
cout<<char(1000);
cout<<"\n ";
for(int i=0;i<64;i++)
cout<<char(15);
D:cout<<"\n\n\t\t\tEnter Your Account Number:";
cin.getline(account_No,20);
ifstream in_file(account_No);
if(!in_file)
{
cout<<"\n\n\t\t\tError: File Not Found\n\n";
goto D;
}
//read data from the file
in_file>>balance;
in_file>>Fname;
in_file>>Mname;
in_file>>nationality;
in_file>>occupation;
in_file>>tel_No;
cout<<"\n\n\t\tYou Have a Balance of "<<balance<<" Birr";
cout<<"\n\n\t\tEnter the amount of money you want to Deposit:";
cin>>amount;
balance+=amount;
cout<<"\n\n\t\tYour Current Balance is "<<balance<<" Birr\n\n";
ofstream out_file(account_No);
out_file<<balance<<endl;
out_file.close();
in_file.close();
return balance;
}
//END OF FUNCTION DEFINITION
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
float Customer::Withdraw(){};
//END OF FUNCTION DEFINITION
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void Account::Display_Account()
{
cin.get();
cout<<" ";
for(int i=0;i<75;i++)
cout<<char(1000);
cout<<"\n ";
for(int i=0;i<70;i++)
cout<<char(15);
cout<<"\n ";
for(int i=0;i<64;i++)
cout<<char(1000);
S:cout<<"\n\n\t\t\tEnter Your Account Number:";
cin.getline(account_No,20);
ifstream in_file(account_No);
if(!in_file)
{
cout<<"\n\n\t\t\tError: File Not Found\n\n";
goto S;
}
//Read data from the file
in_file>>account_No;
in_file>>Fname;
in_file>>Mname;
in_file>>nationality;
in_file>>occupation;
in_file>>tel_No;
in_file>>balance;
cout<<endl<<endl;
for(int i=0;i<80;i++)
cout<<char(1500);
cout<<endl;
cout<<setw(16)<<"Full"
<<setw(5)<<"Name"
<<setw(16)<<"Nationality"
<<setw(16)<<"occupation"
<<setw(13)<<"Tele.No"
<<setw(12)<<"Balance"<<endl<<endl;
for(int i=0;i<80;i++)
cout<<char(1500);
cout<<endl<<endl;
in_file.getline(account_No,20);
cout<<setw(11)<<Fname
<<setw(10)<<Mname
<<setw(16)<<nationality
<<setw(16)<<occupation
<<setw(13)<<tel_No
<<setw(12)<<balance
<<endl<<endl<<endl<<endl;
//save data to the file
ofstream out_file(account_No);
out_file<<account_No<<endl;
out_file<<Fname;
out_file<<Mname;
out_file<<nationality;
out_file<<occupation;
out_file<<tel_No;
out_file<<balance;
//close file
out_file.close();
in_file.close();
}
//END OF FUNCTION DEFINITION
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int main()
{
Account acc;
Customer c1;
char press;
char response;
//do selection
do
{
P:acc.Press_Menu();
cout<<"\n\n\t\tPRESS YOUR CHOICE:";
cin>>press;
switch(press)
{
case 'N': //CASE:1 Creat_Account
case 'n':
system("cls");
acc.Creat_Account();
N:cout<<endl<<"\t";
for(int i=0;i<60;i++)
cout<<char(3500);
cout<<"\n\t";
for(int i=0;i<60;i++)
cout<<char(1500);
cout<<"\n\n\t\tCONTINUE: YES (Press Y) NO (Press N):";
cin>>response;
//cout<<endl<<endl;
if(response=='Y'||response=='y')
{
system("cls");
goto P;
}
else if(response=='N'||response=='n')
{
X:system("cls");
cout<<"\n\n\n\n\n\t";
for(int i=0;i<60;i++)
cout<<char(3500);
cout<<"\n\t\t\t WELL DONE\n\t\t";
for(int i=0;i<40;i++)
cout<<char(15);
cout<<"\n\n\t\t\tTHANK YOU ! COME AGAIN !!!\n\n\t\t";
for(int i=0;i<40;i++)
cout<<char(15);
cout<<"\n\t\t\t END OF PROGRAMME\n\t";
for(int i=0;i<60;i++)
cout<<char(3500);
cout<<endl<<endl<<endl<<endl;
exit(1);
}
else
cout<<"\n\n\t\tInvalid Choice. Try Again"<<endl;
goto N;
break;
case 'D': //CASE:2 Deposit
case 'd':
system("cls");
c1.Deposit();
goto N;
break;
case 'Q': //CASE:3 Current_Balance
case 'q':
system("cls");
c1.Current_Balance();
goto N;
break;
case 'W': //CASE:4 Withdraw
case 'w':
system("cls");
c1.Withdraw();
goto N;
break;
case 'S': //CASE:5 Display_Account
case 's':
system("cls");
acc.Display_Account();
goto N;
break;
case 'X': //CASE:6 stop
case 'x':
goto X;
break;
default:
system("cls");
cout<<"\n\n\t\t\aInvalid choice. Try Again\a\n\n";
}
}
while(1);
return 0;
} //END OF "main"
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ou can as much as possiple.
|
|
|
|
|
Javascript allows you to open a File Open Dialog. (Gmail and Yahoo mail both do this when adding attachments.) In the mini-browser I wrote (using IWebBrowser2) for our Windows Embedded system, I have a thread which monitors windows and kills these File Open (and File save) dialogs. This solution annoys me and I keep wondering if there is a way to trap this event and simply stop it from happening at all.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I don't know if this[^] is of any use (you probably implement it already) but it looks like it might be worth investigating. The DOCHOSTUIFLAG_LOCAL_MACHINE_ACCESS_CHECK flag on this page[^] looks vaguely like it might apply?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
I have a requirement like i need get system Resolution of the system and based on that
i need to increase the size of the DialogBox and place the Bitmap(button) inside the DialogBox ..Bitmap can be obtained from a Resource.dll....(i need to use MFC)
Please let me know how can i go with it....
|
|
|
|
|
So what are you wanting help with: 1) getting the resolution of the system, 2) increasing the size of the dialog box, or 3) placing the bitmap button inside the dialog box?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
if possible all the three....
|
|
|
|
|
To get the screen resolution, use GetSystemMetrics() or SystemParametersInfo() . To resize a dialog box, see Chris' answer. For a bitmap button, see here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
see: GetSystemMetrics and MoveWindow/SetWindowPos
|
|
|
|
|
I moved my project from VS2005 to VS2008, compiled fine. I do have a crash when I try to open a frame at runtime and it points to the following in wincore.cpp:
BOOL CWnd::SetOccDialogInfo(_AFX_OCC_DIALOG_INFO*)
{
ASSERT(FALSE);
return FALSE;
}
I am not sure where is the dialog coming from since there is no dialog involved here? Any ideas?
Thanks
|
|
|
|
|
It'd guess you're compiling without ActiveX support. I'd bet there are multiple versions of the CWnd::SetOccDialogInfo function and the one used is controlled by a #define .
Steve
|
|
|
|
|
Thanks, I will take a look at that. There is a third party involved, so i will take a look at them.
|
|
|
|
|
Can anyone tell me how to send the html page as body of the outlook mail and send it throuh MFC program.. C++..
I think CDO might be right.. can anyone tell more on how to do it.. and where i might get CDO sample programs for this functionality..
|
|
|
|
|
Welcome to CodeProject
In the other forum you posted this question in you said
charith87 wrote: The action i want is the procedure should open Outlook Send Message Window with the required fields filled..
Is that what you are trying to do? Because it's not the same thing as sending an email.
Also please don't cross post as you did.
|
|
|
|
|
Actually i wanted Outlook to open itself with the required fields open in HTML format.. the thing wanted finally is sending a html page in the body.. but since sending html is itself confusing..
|
|
|
|
|
If you are trying to twitter the rest of the message to me, I don't use social networking, um... stuff.
|
|
|
|
|
Anyway the message was greater than 160 characters, cant twitter..
Ok some connection problems thats why .. the problem is i was trying to use extended MAPI but it had a lot of dependency issues.. some header files couldnt be used..
So i went on to use CDO.. but CDO is giving exceptions which couldnt be found in google.. so just searching for a sample html body sending mail in CDO so that i could use it for my application..
Getting the right dependencies (libraries + header files) is the problem.. if you know, you can help..
|
|
|
|
|
charith87 wrote: Getting the right dependencies (libraries + header files) is the problem.. if you know, you can help..
CDO is a COM interface. Check this article out[^] for using COM libraries in VC++
|
|
|
|
|
Anyway the message was greater than 160 characters, cant twitter..
Ok some connection problems thats why .. the problem is i was trying to use extended MAPI but it had a lot of dependency issues.. some header files couldnt be used..
So i went on to use CDO.. but CDO is giving exceptions which couldnt be found in google.. so just searching for a sample html body sending mail in CDO so that i could use it for my application..
Getting the right dependencies (libraries + header files) is the problem.. if you know, you can help..
|
|
|
|
|
I've sent HTML as the body of an Outlook message - I think this page[^] about the 'HTMLBody' property of the Outlook MailItem object is what you need. It even has sample code...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
i have an MFC application i would like to split back into its component parts and edit (update the contents)
i had a hard drive problem (dont you just hate it when that happens!) so i lost the original files.
can a split it back up to get the files back again? its half way batter than starting again from scratch.
PLEASE HELP ASAP!!!!
|
|
|
|