|
the messages tell u the specific module is being loaded, no symbol file means u couldn't switch in that module's code, and debug step by step.
life is like a box of chocolate,you never know what you r going to get.
|
|
|
|
|
Hi all,
Would you help me to change the default sound device with an api or something else...
I do not need the entire application, only the api if possible.
Thanks...
|
|
|
|
|
AFAIK it's not possible. There was a registry hack in XP but I can't remember it (Google
it maybe).
From what I've read, Microsoft states this is intentional - so software can't override user
hardware settings.
Also, Multimedia APIs and DirectSound let you pick devices anyway, so I suppose it's not
necessary.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
First of all, please forgive for my english. Here's my problem.
I use Visual C++ 6.0 with MFC. I've 2 independant Dialog based projects. I'd like to re(use) the 2 dialog boxes in a new MFC project, without having to retype all the code and the ressources. Is it possible to integrate existing projects into a new one? Thanks.
|
|
|
|
|
Retyping would be extreme - you could, at the very least, copy/paste the code (that's code
reusablility!).
There's a variety of ways, here's a few:
1) copy/paste (bad - if you fix/change one then you have to remember to change all copies)
2) Keep a separate folder of common code/resources that can be shared by projects
3) Compile common code to a static library
4) Compile common code to a DLL
Resource files allow including other resource files. To share with MFC you'll need to set it
up so resource IDs don't clash anywhere.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Thanks a lot for your answer. But can you tell me how to use more than 1 ressource file in a MFC project ? Thanks
|
|
|
|
|
|
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;
}
|
|
|
|