|
Member 11287228 wrote: Your program That means you are expected to write it.
|
|
|
|
|
Quote: I started it off as so
#include<iostream>
using namespace std;
struct studenttype
Well, it looks promising.
THESE PEOPLE REALLY BOTHER ME!! How can they know what you should do without knowing what you want done?!?!
-- C++ FQA Lite
|
|
|
|
|
Hi,
I "inherited" an legacy app written some 12 years ago, not being C++ developer since university.
I have MS Visual Studio 2010 project out of it, all builds OK. All even runs OK on Windows XP 32 bit(where it's built),
but when trying it on Windows 2008 server 64bit, it throws "Encountered an improper argument".
More specifically, it's super simple app that displays 2 password fields (second for confirmation), and button for storing generated file on file system (so Save as... dialog). And error shows up when clicking on this button/trying to open Save dialog).
When run in debug mode, in same action, it throws Assertion error, pointing to dlgfile.cpp in MFC libs, line 479.
The executable is generated with VS settings Multi-threaded Debug DLL as runtime library, and "Use MFC as shared DLL"
I would presume that some .dll provided is incorrect version from rest/expected by code, but I have no clue how to find it.
Any help on how to fix this is strongly welcomed!
|
|
|
|
|
You first need to work back to the part of the code that calls into this DLL. Only then can you look at the calling method and parameters to see which might cause the problem.
|
|
|
|
|
BOOL CPasswordGeneratorWriterDlg::SavePasswordFile()
{
CFileDialog fileDlg(
FALSE,
NULL,
NULL,
OFN_ALLOWMULTISELECT | OFN_HIDEREADONLY,
"All Files (*.*)|*.*||",
NULL);
fileDlg.m_ofn.lpstrTitle = "Save file as...";
if(fileDlg.DoModal() == IDOK)
{
CString szlstfile = fileDlg.GetPathName();
return SavePasswordFileAs(szlstfile);
}
return FALSE;
}
|
|
|
|
|
|
Thank you,
I amended dwFlags to "OFN_ENABLESIZING | OFN_HIDEREADONLY", which even make more sense (having multiselect on saving a file dialog doesn't make much sense) and it works on both XP and 2008 server.
|
|
|
|
|
hi
My groupbox is not working , when i click on up-down arrow , nothing is happening ,
Thanks in Advance for help
|
|
|
|
|
Member 10866427 wrote: My groupbox is not working That is hardly a technical description of a problem. If you want help with somerthing then you need to provide proper details.
|
|
|
|
|
Hi,
MFC/Win32 is nothing like VB... you cannot just drop a scrollbar on a dialog/control/window and expect it to scroll the window for you. You need to do all of this yourself. You will need to have the parent window that owns the scrollbar handle the WM_VSCROLL message. You will then need to scroll the window yourself.
WM_VSCROLL message[^]
CWnd::OnVScroll[^]
ScrollWindow function[^]
Using Scroll Bars[^]
Best Wishes,
-David Delaune
|
|
|
|
|
External program used excel, if you click on the click of a button to send a message through the simulation, excel this call can not be started.
If my program is A.exe I need to simulate an external program control after clicking B.exe this B.exe a button click can not call excel
Case 1: B.exe manually click a button in excel can be a normal call! --OK!
Case 2: using the SendMessage function to send a message with A.exe analog control click on the button in excel B.exe call fails, and pop-up "can not start Excel server!"! --NG!
Messages sent using SendMessage is successfully sent, message "Unable to start Excel server!"! Also shows that the message was sent successfully, but it is not up calls excel!
Question: permissions problem? Or anything else that needs to feed?
|
|
|
|
|
|
Member 11283272 wrote: why? Why what? And probably because no one can understand your question.
|
|
|
|
|
sorry,my english is not good enough.
|
|
|
|
|
Do you have a colleague who could translate for you?
|
|
|
|
|
Sorry, I am the only one,incidentally, I'm Chinese.English is not our official language,I tried again to translate。
|
|
|
|
|
|
A.exe is my own program,B.exe is not my own program.
B.exe has a button, click it, and will call to EXCEL!
Now, my question is: if click this button to manually, EXCEL will be normal calls.---(OK)
But if use my program(A.exe),the Sendmessage function sends a keystroke messages (WM_KEYDOWN WM_SYSKEYDOWN) on the button, EXCEL will call fails.---(NG)
I'm sure it: Sendmessage function keystroke messages is sent successfully!
|
|
|
|
|
You need to be sure that the messages are exactly what the program uses to cause the button press.
|
|
|
|
|
|
Well it does not appear to be working, so there must be something still wrong.
|
|
|
|
|
Thank you, I have solved this problem.
|
|
|
|
|
Hello, can you understand what I said now ??
|
|
|
|
|
how to program that uses 4 threads to compute the sum of an array of 1000 integers.
modified 3-Dec-14 6:48am.
|
|
|
|
|
Well thanks but I've already did my homeworks, you could do it as well.
From http://www.codeproject.com/Messages/2922875/HOW-TO-ASK-A-QUESTION.aspx[^]:
2. Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
...
11. If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
|
|
|
|