|
How to unzip folders through mfc code
|
|
|
|
|
|
Hi all.
I want to scroll the list box contents automatically when user places mouse cursor over scroll bar arrows. The list should keep scrolling its contents as long as user places mouse cursor over the arrows.
OnNcHitTest(CPoint point) is also not that helpful as it is called when mouse is moved. I want an event which will be called by framework even when user just keeps his cursor steady over the arrows of List box scrolls.
How I can do this?
Thanks
Sameer Thakur
|
|
|
|
|
If you can use of CListCtrl it has a property than when you hold cursor on the item it select this item
|
|
|
|
|
U may look up WM_NCHITTEST in MSN, it maybe gives u somehelp.
life is like a box of chocolate,you never know what you r going to get.
|
|
|
|
|
Hello all,
I have an application (that has not been done by me and that I don't have it's source code) in which I must add a new menu item with several subitems.
Once any of those subitems have been clicked a message box inside the original app should appear.
Where could I find documentation, resources, samples... about how to achieve that?
As always thank you in advance.
|
|
|
|
|
does that application has some interfaces functions to allow u to do this?
life is like a box of chocolate,you never know what you r going to get.
|
|
|
|
|
No, and I don't have any documentation related.
PS: sorry for being so late answering, your post has not come to me via mail as usual...
Thank you for your feedback.
|
|
|
|
|
I have implemented the application Automation Server and Client. when I execute the client the invokehelper is like mentioned below but the AfxMessageBox of the Server function is not displayed.
InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
This code is in Server and I have interface for this class and this interface is added in client
void CRemoteLogin::Validate()
{
// TODO: Add your dispatch handler code here
AfxMessageBox("Validate");
}
Plz help me regarding this
S.Yamini
|
|
|
|
|
Dear Friends,
I am working on VC++,(6.0) and MySQL3.51/5.0. For Vista OS, I am facing the problem to retrieve the database values. Whenever I am Opening the recordset with openType AFX_DB_USE_DEFAULT_TYPE, dynaset, snapshot or dynamic, its not able to fetch the values from database(used ODBC drivers),only forwardOnly openType is working.
I am unable to recognize the problem.Is it that MySQL has not yet launched new ODBC drivers for Vista? Or any other problem. Please help me!!
CraZyToLearn
|
|
|
|
|
i am calling an exe from a batch file. when i run this batch file it should hide the exe window(ie dos window ) how to hide this dos window from batch file
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
|
hmm yes but the batch file is inturn called by my program.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Then do as advised in this answer to your previos question and hide the dos window running the batch file
hide dos windows[^]
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Could you use of CreateProccess for run exe file
|
|
|
|
|
My program works fine if the temperature entered is above 30(say 100).. it will perform the calculations and output the result. I need it to also output the number if it is below 30 (if i enter 29, it outputs 29) but i can't get it to output anything. Thnx for the advice.
#include "stdafx.h"
#include <iostream>
using namespace std;
float CheckCent(float c)
{
if (c > 30.0)
{
c=(c-32.0)/(1.80); return c;
}
return c;
}
int _tmain(int argc, _TCHAR* argv[])
{
float myarray[50];
int flag;
flag=1;
int i;
for(i = 0; i < 50 && flag == 1; i++)
{
cout << "Enter Temperature Reading:";
cin >>myarray[i];
cout << "Enter 1 to input more values, 0 to stop";
cin >>flag;
}
cout << "\n\nNumber of elements in the array is: " << i <<endl;
cout <<"\n";
for(int j=0;j<=i;j++)
{
if(myarray[j]>30.0)
{
myarray[j]=CheckCent(myarray[j]);
cout <<"The corrected value is: ";
cout <<myarray[j] <<" Celsius";
cout <<"\n\nProgram Complete!\n\n";
}
}
return 0;
}
|
|
|
|
|
In your program you are allowing only the input value thats greater than 30 for the conversion. if(myarray[j]>30.0)
And in CheckCent function also you are having the checkpoint
if (c > 30.0)
Remove them. So that it work for other values too. And check your conversion factor too.
Below is the formula for converting Faren... to Celsius
(Tc = (5/9)*(Tf-32); Tc = temperature in degrees Celsius, Tf = temperature in degrees Fahrenheit)
|
|
|
|
|
This is the output I get from my program now, but after it ouputs the correct value it says outputs another number like -12323e.6 and then says "Program Complete!" again. How do i get rid of this second output? Im also getting an error message - line [14] conversion from double to float, possible loss of data. Thanks.
#include "stdafx.h"
#include <iostream>
using namespace std;
float CheckCent(float c)
{
if(c>30)
{
c=(c-32)/(1.80); return c;
}
else return c;
}
int _tmain(int argc, _TCHAR* argv[])
{
float myarray[50];
int flag;
flag=1;
int i;
for(i = 0; i < 50 && flag == 1; i++)
{
cout << "Enter Temperature Reading:";
cin >>myarray[i];
cout << "Enter 1 to input more values, 0 to stop";
cin >>flag;
}
cout << "\n\nNumber of elements in the array is: " << i <<endl;
cout <<"\n";
for(int j=0;j<=i;j++)
{
myarray[j]=CheckCent(myarray[j]);
cout <<"The corrected value is: ";
cout <<myarray[j] <<" Celsius";
cout <<"\n\nProgram Complete!\n\n";
}
return 0;
}
|
|
|
|
|
Try this
for(int j = 0; j < i; j++)
instead of this
for(int j = 0; j <= i; j++)
-- modified at 10:22 Monday 9th April, 2007
|
|
|
|
|
I have a Property Sheet, I add 5 page in to the sheet. I want to change page name at runtime.
Please help me.
Thanks a lot,
Papais
|
|
|
|
|
dungpapai wrote: I want to change page name at runtime.
Since a CPropertyPage is nothing but a CWnd , you can use its SetWindowText() method to change its caption.
/ravi
|
|
|
|
|
I have used SetWindowText() at OnInitDialog() function of each pages but it does not success.
Papais
|
|
|
|
|
hi!
I have put two radio. one is singleselect and second is multiselect.
I want to set the click event on radio button for enable/disale Combobox and Listbox control.
for single select on which event of radio button.I have to write the code. Is BN_CLICKED ?
if it is then how can I write?
Please give me some guidline
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
Is there a Win32 API I can call to get the total physical RAM of the computer?
It would also be nice to get "Available physical memory" as well, but that's not really a huge concern. But it probably involves using some awful API like WMI or PDH.
|
|
|
|
|