Hi, dear all, I don't where should I put my Fortran question, so I put it here. I have a program created 15 years ago by Fortran 4. They only have source files (.for) but didn't have workspace. I create a new project workspace in Fortran 4 and can compile it, but when I try to print project name on screen by calling Write(*, *), I get access violation error, but if I write to a file by calling Write(2,*), it works fine. since I didn't have original workspace, I don't know what setting should I set to make it work. Does anybody know what's the problem? Thank you very much
Andraw111
Posts
-
Fortran 4 crash when call Write(*, *) -
Run MFC Program Without Dialog ShowingHi, dear all, I solve this issue, thanks for all of you for your help. inside InitInstance() function m_nCmdShow = SW_HIDE; CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); ......... ....... ....... m_pMainWnd->ShowWindow(m_nCmdShow); m_pMainWnd->UpdateWindow(); return FALSE;
-
Run MFC Program Without Dialog ShowingRichard, Thanks for reply. the existing program is used by several projects, soome want the dialog, some not. so I just want to pass a argument to indicate show dialog or not.
-
Run MFC Program Without Dialog ShowingI try it, but you can see the process that the dialog is minimized, that's not what I expected. Thanks!
-
Run MFC Program Without Dialog Showing -
Run MFC Program Without Dialog ShowingHi, dear all, I have a MFC program which do some calculation, store in a file, then plot the results to a graphic on dialog. Now I have another program which only want to use the calculation result stored in file from above MFC program but don't want to show the dialog, how can I do it? I modify the codes in InitInstance() as below: m_pMainWnd->ShowWindow(SW_HIDE); m_pMainWnd->UpdateWindow(); return FALSE; the dialog is not shown, but user still can see the dialog flush before hiding, how can I avoid it? Thanks!
-
How to change regional and location setting in C++Hi, dear all, I have a program created using C++ MFC which works fine in USA, but when this program is used in Europe like Norway, the data is messed up. What I want to do is set the regional and location to US English always when program executes, how can I do it? Thanks you very much!
-
Application error 0xc0150002 when run MFC in Window 7Rolf, thanks for your suggestion.
-
Application error 0xc0150002 when run MFC in Window 7Chris, Thanks for your reply. Since the application is created by C++ 6.0, it cannot be debugged in Win 7. Maybe the dependency walker is the only way. Thanks again!
-
Application error 0xc0150002 when run MFC in Window 7Hi, dear all I create an application using MFC in C++ 6.0, it works fine in Window XP, and in Window 7 mostly, but there is a computer with Win7, SP1 that cannot run the application, the error message is "The application was unable to start correctly (0xc0150002") click OK to close it". Can anybody tell me what cause this kind of error, how to fix it? Thanks!
-
MFC Dialog with Progressbar cannot be launch in Window 7Thanks for you suggestion. Yes, you are right, it's because some files are not correctly registered.
-
MFC Dialog with Progressbar cannot be launch in Window 7Thanks for your reply. As I said, most of the Window 7 computers have no problem to run this application, but some did have this issue. If the dialog has progressbar on it, when you call Dialog.Domal(), even the OnInitDialog() function is not called. I put a messagebox at the first line in OnInitDialog() function, when I open the dialog, no any message, just nothing, no any response.
-
MFC Dialog with Progressbar cannot be launch in Window 7Hi, dear all, I have a MFC application created in C++ 6.0, it works fine in Window XP. When run this application in Window 7, if the dialog has progressbar on it, this dialog cannot be launched, but if you remove this progressbar or for dialog without progressbar, everything is fine. But no all Window 7 computers have this error, only very few computer have this problem. Is there anybody having this issue? or any idea? Thanks!
-
How to call a function in DLL created in C++ in 2008 .NETHi, dear all, I have a DLL created in C++ in 2008 .NET, it exports a function to be used by many other applications. Now I have a application also created in C++ in VS2008, I need to call that function from DLL, how can I do it? also the DLL file path is come from my application argument list. Thanks!
-
How to check if a character is from keyboard in MFCHi, dear all, I need to read a component's description from a libary. but sometimes there are some garbage values at the end of descrtion string tail, I want to remove them. So after get the description, I want to check character one by one, if the character is not a character input from keyboard, I will remove them. But how can I do it? thanks!
-
Argument to System() with space in the pathRichard, thanks for your reply. I try using double quota around all the arguments, not work. If you have multiple arguments that all are in double quota, you need to use "call". The following line works fine. CString exeString = "call \"" + exe + "\" \"" + pwd + "\"".
-
Argument to System() with space in the pathIt is solved, thanks!
-
Argument to System() with space in the pathHi, dear all, I have a license check exe file with only one argument. CString exe = getCurrentProjectPath(); //e.g, C:\Temp CString pwd = "12345" CString exeString = exe + " \"" + pwd + "\""; system(exeString); everything works fines with above codes. But if I put double quota between exe, I get "filename, .... syntext is incorrect". CString exeString = "\"" + exe + "\" \"" + pwd + "\""; But if I don't put exe data in a quota, if the path has space, it also cannot work. How should I solve this issue? Thanks!
-
ShellExecute() launch .CHM and PDF file not work in Window 7Ok, I will add them, thanks!
-
ShellExecute() launch .CHM and PDF file not work in Window 7Finally I found what cause the .CHM file cannot open in Window 7. In my MFC application, I have a project setting: Link -> Output ->Reserve field, I put "0x40000000". I create a testing application, if I don't set "0x40000000" to Reserve field, it works fine, otherwise, it cannot open .CHM file in Window 7. Even I know the reason, I still cannot solve the problem, since our project is very large, if I remove that setting, when I run my application I get "XX MFC application has encountered a problem and needs to close....".