This seems such an obvious thing to need to do but I've failed to find any good references. Can anyone help please? I have an MFC app which uses the Doc/View architecture. One of the document types it can display is a registered file type: the file is in a private binary format, and based on a code value in the file a config file is selected: the binary file is then rendered using the config file into a read-only text file in a CEditView within the app. OK so far? this works fine. What I want to do is as follows. Let's say an intranet .aspx web page contains a link to the binary file, perhaps along with some summary text extracted separately. When the user clicks on the link, the view changes to the same text as would be displayed in my MFC app. What's the best way to do this? ActiveX control? other ideas? This is a company intranet application, the binary file would be located on one of the company file servers. It is acceptable for my MFC app to require to be installed on the local machine, so any required controls/DLLs etc could be installed at the same time.
Paul Steane
Posts
-
How to display an MFC View in a web browser? -
How to run a thread as a member function of a class?I suggest you have a look at Joseph M. Newcomer's articles on "Threads and Processes" at http://www.flounder.com/mvp_tips.htm[^]
-
MFC Multithread questionJust one extra thread as a worker thread is OK. I suggest you have a look at Joseph M. Newcomer's MVP pages, under "Threads and Processes" http://www.flounder.com/mvp_tips.htm[^]. Paul
-
Intercepting IO OperationsI have some legacy embedded 8086-hosted software that I would like to run on a PC, mainly running test scripts through it. This is not too difficult except that the code contains some input/output port operations. Does anyone know of any existing software that can intercept these i/o port operations and substitute memory reads/writes? This would allow me to simulate the i/o operations. I have the source code for my embedded code and could amend it to use memory operations but I would rather not do this. Best regards Paul
-
Do u feel the way I do after writing a server!!!!!I've converted a DOS-based tool we use to communicate between laptops and our trains' control systems into Windows/VC++6/MFC, with a lot of help from CP. At the other end of the scale I've recently finished doing modifications to the embedded software on a 5 megawatt 125mph electric locomotive, including doing track testing and gaining safety approvals. This runs on a 5MHz 8086, most of the code is in assembly language, this is *manly* stuff, the software equivalent of getting your hands dirty. Paul Altrincham, UK
-
Do u feel the way I do after writing a server!!!!!I'm only a part-time programmer, I'm an electronics engineer, most of my work is on the propulsion systems on electric trains here in the UK. I get a big "kick" out of seeing trains move with my equipment inside, that's the same feeling that you get when you know your software is working well and working hard. Whether it's software or hardware, analogue or digital, that feeling of satisfaction is one thing that keeps me enthusiastic about a profession that is often ignored or belittled. And after 15 years in the industry I still feel that I've let people down if my stuff breaks down, and I get a slight feeling of "butterflies in the stomach" if I'm travelling in one of "my" trains in case it causes problems.... Paul Steane Altrincham, UK
-
First mobile postIn my house the bathroom contains a bath(+shower) and wash-basin, the adjacent toilet(-room) contains a toilet. Very convenient.
-
Speaking of disasters...Seems to me, too many procedures and too much paperwork - so everything works OK as long as everybody follows the procedures and fills in the paperwork. As soon as a few people take short cuts, then problems occur. Fewer or simpler procedures and less paperwork would be an improvement, and let people get on with their job and do that job better.
-
Activate a specific View in an MDI MFC Doc/View AppI have a VC++ 6 MDI application using the conventional MFC Doc/View architecture. At any given time there can be several different views of several different document types open. I want to be able to programmatically "activate" one of these Views, i.e. if it is hidden by other Views then I want it to become visible, just as if the User clicked on the relevent numbered item in the Windows menu (NB this does work correctly). The specific View that is to be activated does not directly depend on User input, e.g. it could be as a result of a message from another thread. This seems to be an obvious thing to be able to do yet I cannot make it work. I am inside a message handler within my CMainFrame class; I have a CMyView* to the View I want to activate.
MDIActivate(pMyView)
seems to do nothing; I can't getCMDIChildWnd::MDIActivate()
to work for me. Perhaps it is something to do with me using the above functions with a CView* not a CWnd*. Can I deduce the latter from the former in a way that will make this work? What else may be wrong? All assistance appreciated. -
abt running exeThe best I've found on this subject is by Joseph M. Newcomer at http://www.flounder.com/nomultiples.htm[^]
-
Need a GetClusterSize functionI need a GetClusterSize function so that I can work out how much space a file will occupy on a particular disk. The WIN32 function GetDiskFreeSpace should do this but doesn't work for large disks. The replacement, GetDiskFreeSpaceEx, doesn't have this capability. So what do I do? Target is any WIN32, VC++ 6, MFC.
-
Aaaaaargh,......It did not need to go to penalties. England scored a perfectly good goal about 5 minutes before the end of normal time, which would have won it for them. However, the Swiss referee, who was a long way from the action, decided there had been some pushing and so disallowed the goal. He didn't ask his assistant, who appeared to think it was OK. There will be accusations of bias in favour of the home team. It's about time "video replay evidence" was used in football matches. Manchester United were knocked out of the UEFA Champions League this season due to a disallowed but perfectly good goal. :(( Now, all we have to hope for is that France will NOT win....