I am working on VC++ and developing a tool for Weather monitoring system.
Here I am facing problem in displaying different views for same dateset from the document class, where all the calculations are take place.
Here I am using SDI Multiple views architecture.All (Two) views are controlled by the menu and they are switching fine.
At this moment only one view is connected to the document and displaying the date.Second view is not updating the data implicitly.
Please suggest me an idea to update the data to both views concurrently.
I am getting an error like ExceptionAttacher.obj : error LNK2019: unresolved external symbol "int __cdecl RecordExceptionInfo(struct _EXCEPTION_POINTERS *,char const *)" (?RecordExceptionInfo@@YAHPAU_EXCEPTION_POINTERS@@PBD@Z) referenced in function "int __stdcall AfxWinMain(struct HINSTANCE__ *,struct HINSTANCE__ *,wchar_t *,int)" (?AfxWinMain@@YGHPAUHINSTANCE__@@0PA_WH@Z)
What should I do to remove this linker error? Plz help me.
Why obviously ? Seing your error and the fact that you are sure that you have a body for your function, then I would say that it is obvious that the file is not added to your project.
I am talking here about the cpp file, not the h file. How did you add this file to your project ?
Can you also post the function prototye (which is in the header file) and the function body (which is in the cpp file) ? Please use the code tag to format the code properly when posting.
The arguments of the function prototype do not match the arguments of the function definition if UNICODE is defined (in which case, LPCTSTR will resolve to a wchar string, and not a char string). So, replace the char in the function prototype by the same LPCTSTR and this should fix your problem.
The error message seems to be saying:
A function with the signature int __cdecl RecordExceptionInfo(struct _EXCEPTION_POINTERS *,char const *) is referenced in the file "ExceptionAttacher.???" from the function int __stdcall AfxWinMain(struct HINSTANCE__ *,struct HINSTANCE__ *,wchar_t *,int). Clearly the function int __cdecl RecordExceptionInfo(struct _EXCEPTION_POINTERS *,char const *) is declared or we would have a compiler error instead, but it's not defined or the file it's defined in is not included in the project because the linker can't find it.
PS: Why the function AfxWinMain defined in "ExceptionAttacher.xxx"? This function is part of the MFC framework and not meant to be user defined.
I want to get search update for remote machine.Means how many updates it wants and all.
how do i use WUA API for remote machine please help me .I Visited microsoft website but not get proper idea.
I want to hide 'X'-box or Close-box (which we can find at the Top-right corner of a Dialogbox). Only i need to remain Minimize-box in my dialog. Can any one please help me ,what should be the code to hide this box in MFC.