The simple way is:
Create a file in '.csv' or '.slk' format.
Then open the file with 'ShellExecute' command.
NOTE: These formats don't support graphs, only data.
This problem only occurs in Dialog Based Projects, or
in dialogs. You can overwrite the OnCancel() function:
void CYourDlg::OnCancel()
{
}
then change the id of the cancel-button and add to this button the original OnCancel:
void CYourDlg::OnCancel()
{
CDialog::OnCancel();
}
In...
creation of DLL:
create a project with MFC AppWizard (dll)
in the .def file you name your entry's without arguments:
FUNCTION1
FUNCTION2
etc.
in the .cpp file write the functions:
int FUNCTION1( char* a , etc )
{
}
or if this does not work, try:
int __stdcall FUNCTION1( )
{
}
to...
Thanks Betty,
In fact you can use both in MF-Cobol:
pic 9(02) comp-x.
pic x(02) comp-x.
comp-x is used to store unsigned binary data.
If you use 'pic x' the physical size of the item is exactly the size you define, and if you use 'pic 9' the size is calculated:
pic x(02) comp-x is 2 bytes.
pic...
Obviously Betty never worked with MF-cobol.
Pic x(2) comp-x copiles very well.
I would appreciate she first checkes things before acusing me of puting code on this forum that will give compile errors.
In MF comp-x is unsigned binary starting with the high-order bytes.
For example:
pic x(4) comp-x value 1 would be hex: 00 00 00 01
pic x(4) comp-x value 255 would be hex: 00 00 00 FF
so:
pic x(1) comp-x is 1 byte maximum value 255.
pic x(2) comp-x is 2 bytes maximum value 65535.
pic x(4)...
OK, this code works with notepad:
it will put your executable in the foreground,
in the clients rectangle:
STARTUPINFO si;
PROCESS_INFORMATION pi;
memset(&si, 0, sizeof(si));
si.cb = sizeof(si);
si.dwFlags = STARTF_USESHOWWINDOW |
STARTF_USEPOSITION |
STARTF_USESIZE...
If you create a derived class from CEdit and overwrite the
fuction OnChar() ( WM_CHAR ) than you can prevent alpha-characters coming in to the control:
void CYourClass::OnChar(............)
{
if ( nChar < 48 || nChar > 57 )
{
MessageBeep( ( WORD ) ) - 1 );
return;
}...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.