|
Or Enable Mousekeys in any windows version (after 95).
That way you'll be using the keyboard to control your mouse pointer. So you'll be using the keyboard to access the systray, or whatever else
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
|
|
|
|
|
In my CRichEditView derived class, CEditorView, when I select text and scroll vertically, the view lags for a second before scrolling. When you usually do this in other programs, there is no lag time.
Does anyone have any suggestions for me?
Thanks kindly.
|
|
|
|
|
I'm writing up descriptions of all my source code files, and i'd like to have a html page that describes where the program starts and where it goes from there.
Instead of manually writing
porgram starts with this function, which is located on this cpp file. this function returns this, which is used to calculate this value in this cpp file...
I'm using vc++.net 2k3, does anyone know of a way to get this without typing it up manually?
*.*
cin >> knowledge;
|
|
|
|
|
you want to generate ALL static analysis info ???
anyway, a good start would be doxygen, but it doesn't go that far.
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
I have a whole bunch of dialogs that show a MessageBox when the user edits data, then goes to close the dialog. They say something like "Data X changed...Do you want to save?". Anyhow, I am localizing the software, and I was able to change the message asking about saving data, but the way I am handling language support, it doesn't use the built-in text from Windows for the buttons (Yes/No/Cancel). So, is there a way to override the MessageBox button text without having to write custom dialogs for each one?
If the only way to do this is to make a custom dialog, how do I display the built-in MessageBox icon types (ICON_QUESTION is what I'm using for these)?
Regards,
Brigg Thorp
Software Engineer
Timex Corporation
|
|
|
|
|
the buttons' captions will change with the user's windows language!
if you want to have a custom dialog, use LoadIcon( NULL, IDI_QUESTION ) to load that icon.
Don't try it, just do it!
|
|
|
|
|
I realize that the Yes/No/Cancel buttons will come up in the language that the user has selected. However, here is where my predicament is. Our software supports 5 languages (English, French, German, Spanish, and Italian). If a user has, say, Arabic Windows, then their buttons will be shown in Arabic. However, since we don't support that language, and the user chose to install, say, the French version of our software, then the message text and caption will be in French. It just doesn't look very clean in my opinion. Since I already have the translated phrases used in other parts of the software, I was hoping that I could force the text to the installed language as opposed to using the Windows selected langauge.
Regards,
Brigg Thorp
Software Engineer
Timex Corporation
|
|
|
|
|
The button text will be displayed in the current language, so you usually don't have to change it. If you do need to change the button text, try this CP article: XMessageBox.
HPS HwndSpy - GUI developer's aid to visually
locate and inspect windows. For the month of August
only, use coupon code CP-81239 for 30% off.
|
|
|
|
|
Hello Friend,
I am using SQLDriverConnect() to connect to the MySql thru VC++ i am in position to connect to DSN correctly now i want to invoke the Store Procedure i am not knowing how should i procedure further.
Can someone help me? Urgent.
Thanks,
Prasad
|
|
|
|
|
SQLPrepare and SQLExecute!
Don't try it, just do it!
|
|
|
|
|
Will a program created for Windows 3.1 work with Windows 98?
|
|
|
|
|
|
Yes! It may have some problems running on NT/2000/XP, but that is rare.
I still have to occasionaly update code written to run on Windows 3.1. The only problems we have had with it are related to serial communications, and that may be a security issue as only 1 or 2 customers have ever had a problem.
INTP
|
|
|
|
|
I am having problem creating a simple C++ MFC Application using Visual C++ .NET with database support. In the wizard, I selected ODBC and an Oracle table. Here is the error message during the source code generation:
Microsoft Development Environment
Error occurred while converting the wizard's text to the code page of the existing text in the file: C:\Excercise\db4\db4Set.h
However, if I select a desktop database, for example a DBF file, the problem does not occur.
Eilzabeth
|
|
|
|
|
Hello all
I create an application which contains CPropertySheet. I want to include a help file for this propertysheet which will be activated whenever user click on HELP. How do I associate a help file for an existing MFC application. I tried creating a new application with help files and copied those files into my application, changed the names but no use.
I also changed the include file in XXXX.hpj to cpropertysheet.hm. If anyone know's how to link help file to CPropertySheet's HELP button, pls help me with an example.
Thanks for your help.
Hari.
|
|
|
|
|
|
How can I copy a 2dim array?
thanks,
Steven
|
|
|
|
|
|
|
I believe you can use memcpy in the same way you did as a 1 dimensional array.
John
|
|
|
|
|
If it's the same as in your previous question, but in two dimensions, then you can do the same thing
char a1[10][10];
char a2[10][10];
memcpy(a1, a2, sizeof(a2)); Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Thanks,
I must be doing something ese wrong, because it keeps crashing.
I'll keep pecking
sj
|
|
|
|
|
johnstonsk wrote:
must be doing something ese wrong, because it keeps crashing.
Post the array declarations, and the code that causes the crash, and we'll see what we can do for you
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
The error I get is there is a call to undefined function memcpy()
I included the string.h
Can this function only copy chars or strings?
The program that I have reads data from a pci card and puts it in the structures below:
This data gets updated 2 times a second.
struct TSimHeader
{
char Name[47][20];
char Unit[47][20];
double Min[47];
double Max[47];
int SignalCount;
int SimStatus;
}static TSimHeader_arr[10];
struct TSimSignal
{
double Value[47];
double TimeStamp;
}static TSimSignal_arr[10];
I have added a new feature to the program that will allow the recording of data.
This will be done by writiing the data to a *csv file so it can be read in excel.
Since the data in the structures is getting updated 2 times a second I thought that it would be good to just make a new array and copy the data to the array so, if the user wanted to start recording the data it would be there ready to start recording. That is why I call the copyData() function everytime the data is updated.
I also created arrays that are of the same type and size of the ones in the struct
char name[47][20];
char unit[47][20];
double min[47];
double max[47];
double value[47];
Below is the copyData() function:
void RFMAccess::copyData(){
if(firstTime1){
memcpy(pflight_data->name, TSimHeader_arr[0].Name,
sizeof(TSimHeader_arr[0].Name));
memcpy(pflight_data->unit, TSimHeader_arr[0].Unit,
sizeof(TSimHeader_arr[0].Unit));
memcpy(pflight_data->min, TSimHeader_arr[0].Min,
sizeof(TSimHeader_arr[0].Min));
memcpy(pflight_data->max, TSimHeader_arr[0].Max,
sizeof(TSimHeader_arr[0].Max));
}
if(!firstTime1){
memcpy(pflight_data->value, TSimSignal_arr[0].Value,
sizeof(TSimSignal_arr[0].Value));
}
}
Then I call the writeData() function from another class that writes teh data in the copied arrays to a file.
Here is the writeData()
void LogData::writeData(){
Sleep(350);
int count;
if(firstTime){
fout<<"flight_data,";
for(int i=0; i<RFMAccess::TSimHeader_arr[0].SignalCount; i++){
if(passes == 1){
if(i == 0){
fout<<aflight_data->name[i]<<endl;
passes++;
writeData();
}
else
fout<<aflight_data->name[i]<<",";
}
else if(passes == 2){
if(i == 0){
fout<<aflight_data->unit[i]<<endl;
passes++;
writeData();
}
else
fout<<aflight_data->unit[i]<<",";
}
else if(passes == 3){
if(i == 0){
fout<<aflight_data->min[i]<<endl;
passes++;
writeData();
}
else
fout<<aflight_data->min[i]<<",";
}
else if(passes == 4){
if(i == 0){
fout<<aflight_data->max[i]<<endl;
firstTime = false;
writeData();
}
else
fout<<aflight_data->max[i]<<",";
}
}
}
if(!firstTime && (aflight_data->log == true)){
for(int j=0; j<RFMAccess::TSimHeader_arr[0].SignalCount; j++){
if(j == 0){
fout<<aflight_data->value[j]<<endl;
writeData();
}
else
fout<<aflight_data->value[j]<<",";
}
}
}
Sorry fo rall the code snips, I just wanted to make sure that the problem was understood.
Thanks for the intrest,
Steven
|
|
|
|
|
are you sure you're including string.h in the file that uses memcpy? that error you're getting means it can't find the memcpy function at all.
|
|
|
|