|
You may use my DLL [^] to shrink the bitmap (however, unfortunately, it doesn't provide the background feature you need).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi ,
im getting the below error when i tried to open the project in vs 2003 and 2005
'9,00' violates enumeration constraint of '7.00 7,00 7.10 7,10 8.00 8,00'.
The attribute 'Version' with value '9,00' failed to parse.
|
|
|
|
|
Hii
I wanna list all the files and folders of a particular drive.
Any sample codes available...for MS Windows
Give me a link to them...
Thanking you
|
|
|
|
|
you can try with _findfirst and _findnext,
call them in proper recursive function and achieve your task.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
|
krish_kumar wrote: Thanking you
MadMadMad
In a good mood, today?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yaaa.....
U can proceed.....
|
|
|
|
|
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
|
|
|
|
|
hi!
i have developed an mfc activex control(dialog based)i want to show and hide the dialog as per user choice buttons on html page.i have interfaced button controls with activex control but do not know how to hide and show the activex dialog.
please help me
thanx in advance
|
|
|
|
|
HI,
I am creating Window using window class. I added just a menu bar. I need couple of coordinates to give flexibilities to my window.
1. How I will get the height and with of a desktop, cause i may use this application in multiple resolution desktops.
2. Inside the window I have a menu bar only. I need to know the coordinates of left-bottom corner of that menu bar so that I can create other control inside my window.
Thanks in advance...
birajendu
SonicWALL
Bangalore
India
|
|
|
|
|
hai
1:
try to explore GetSystemmetrics or getdesktopwindow() function.
2:
AFAIK, i guess, for what ever the resolution maybe, the menu bar size(height) will be same in pixels, wrt the window. so, you can hardcode it.
or you can use GetWindowRect to get the bounds of your menu bar.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
modified on Thursday, June 18, 2009 11:58 PM
|
|
|
|
|
thanks...
birajendu
CyberG India
Delhi
India
|
|
|
|
|
For determining the resolution(xMax X yMax), you can use
xMax = GetSystemMetrics(SM_CXSCREEN)
yMax = GetSystemMetrics(SM_CYSCREEN)
and for knowing the coordinates, use GetClientRect and change it to screen coordinates, if required, by using ClientToScreen API.
|
|
|
|
|
This gave me whole screen, I used
GetSystemMetrics(SM_CXMAXIMIZED)
GetSystemMetrics(SM_CYMAXIMIZED)
For my purpose...Thanks a lot.
birajendu
CyberG India
Delhi
India
|
|
|
|
|
|
Hello
I am using a Windows Timer Call Back function which has argument types
HWND and some others, in all 4 of them. As these arguments are not being used within that CallBack function, i do get a compiler warning.
How to get rid of this warning? I know by setting the warning level
to low priority one, i can do that.
Is it possible to write a TIMER CallBack function without those parametrs?
That way, can i get rid of these warnings?
Thanks
|
|
|
|
|
It's the standard format of the function and programmer can decide to use or not use them. If you're not using it, just enclose it in UNREFERENCED_PARAMETER macro.
UNREFERENCED_PARAMETER( hwnd );
UNREFERENCED_PARAMETER( uMsg );
UNREFERENCED_PARAMETER( idEven );
UNREFERENCED_PARAMETER( dwTime );
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Apart from what Sarath suggested you could also comment out the unwanted parameter like this.
VOID CALLBACK TimerProc(HWND , UINT , UINT_PTR , DWORD )
{
}
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
i ahve a windows(desktop) application softwere which i am working on,
I need to add functionalty in that, like when you minimise you can store tool bar on the taskbar.
it can be done with VC++ ,VB.NET
any suggetions?
|
|
|
|
|
samvaidy wrote: any suggetions?
yes, 2 actually
1) dont cross post - you posted the same in the Visual Basic section
2)
samvaidy wrote: i ahve a windows(desktop) application softwere which i am working on,
so what language is your app in or hasnt it made it off paper/design into real code yet ?
'g'
|
|
|
|
|
Sorry for repeating the post, I am new to this site.
My Application is being developed in vb.net/c++.
and minimode option is yet to be initiated.
|
|
|
|
|
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.
|
|
|
|