Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Andraw111

@Andraw111
About
Posts
67
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Fortran 4 crash when call Write(*, *)
    A Andraw111

    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

    C / C++ / MFC help question workspace

  • Run MFC Program Without Dialog Showing
    A Andraw111

    Hi, 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;

    C / C++ / MFC question c++

  • Run MFC Program Without Dialog Showing
    A Andraw111

    Richard, 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.

    C / C++ / MFC question c++

  • Run MFC Program Without Dialog Showing
    A Andraw111

    I try it, but you can see the process that the dialog is minimized, that's not what I expected. Thanks!

    C / C++ / MFC question c++

  • Run MFC Program Without Dialog Showing
    A Andraw111

    Alan, Thank you for yoru reply. In PreCreateWindow(CREATESTRUCT& cs) I set: cs.cy = 0.0; cs.cx = 0.0; cs.y = 0; cs.x = 0; return CFormView::PreCreateWindow(cs); But there still have flush of the dialog.

    C / C++ / MFC question c++

  • Run MFC Program Without Dialog Showing
    A Andraw111

    Hi, 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!

    C / C++ / MFC question c++

  • How to change regional and location setting in C++
    A Andraw111

    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!

    C / C++ / MFC c++ question tutorial

  • Application error 0xc0150002 when run MFC in Window 7
    A Andraw111

    Rolf, thanks for your suggestion.

    C / C++ / MFC c++ help tutorial question

  • Application error 0xc0150002 when run MFC in Window 7
    A Andraw111

    Chris, 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!

    C / C++ / MFC c++ help tutorial question

  • Application error 0xc0150002 when run MFC in Window 7
    A Andraw111

    Hi, 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!

    C / C++ / MFC c++ help tutorial question

  • MFC Dialog with Progressbar cannot be launch in Window 7
    A Andraw111

    Thanks for you suggestion. Yes, you are right, it's because some files are not correctly registered.

    C / C++ / MFC help c++ question

  • MFC Dialog with Progressbar cannot be launch in Window 7
    A Andraw111

    Thanks 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.

    C / C++ / MFC help c++ question

  • MFC Dialog with Progressbar cannot be launch in Window 7
    A Andraw111

    Hi, 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!

    C / C++ / MFC help c++ question

  • How to call a function in DLL created in C++ in 2008 .NET
    A Andraw111

    Hi, 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!

    Managed C++/CLI question csharp c++ tutorial

  • How to check if a character is from keyboard in MFC
    A Andraw111

    Hi, 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!

    C / C++ / MFC question c++ tutorial

  • Argument to System() with space in the path
    A Andraw111

    Richard, 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 + "\"".

    C / C++ / MFC help question

  • Argument to System() with space in the path
    A Andraw111

    It is solved, thanks!

    C / C++ / MFC help question

  • Argument to System() with space in the path
    A Andraw111

    Hi, 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!

    C / C++ / MFC help question

  • ShellExecute() launch .CHM and PDF file not work in Window 7
    A Andraw111

    Ok, I will add them, thanks!

    C / C++ / MFC help question c++

  • ShellExecute() launch .CHM and PDF file not work in Window 7
    A Andraw111

    Finally 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....".

    C / C++ / MFC help question c++
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups