DavidCrow wrote: I don't see how this is possible since both libraries (MFC42 and MFC7.x) export roughly the same symbols. A clash is unavoidable. If it was possible to set at the project level to use a specific MFC version of LIBs so that the compile would export the "correct" set, then, there wouldn't be a conflict, theoretically. Upon MFC selection, then the editor would then not offer classes that don't exist for the lower specified version, didn't seem like that big of a stretch, but I suppose its MFC7 only as another thing to "make" people upgrade. I guess I have been using java to long, most everything you can just swap out newer/older versions and recompile, as long as you aren't using something "new" version specific. DavidCrow wrote: You might try posing your question to the microsoft.public.dotnet.languages.vc newsgroup and see if you can get any other response. thanks, i'll give this a try. -Rick
RickGavin
Posts
-
VC7 compiled projects still work on 98/ME? -
VC7 compiled projects still work on 98/ME?my development isn't only limitted to those older projects.. and i would like to get learn some of the new features offered by the newer VS7. Basically, I don't want to HAVE to have both VS6 and VS7 installed. As I said, i have seen some odd performance decreases on several machines after installing VS6 so I would like to get away from installing it on future machines. Just seems there should be a way to compile for older MFC support in VS7. that is my question, if anyone knows. -Rick
-
VC7 compiled projects still work on 98/ME?purely for the nicer editor. and I may be crazy, but installing VC6 on an XP machine seems to make the machine slower in general, boot, execution, etc.
-
VC7 compiled projects still work on 98/ME?yes, I do have both VS6 and VS7 on my dev machine, but I thought it says once you open a project in VS7 it converts it and project will no longer work in VS6. Is that really the only solution, to just have both environemnts, develop in VC7, then "tweak" it to compile in VC6 when needed? -Rick
-
VC7 compiled projects still work on 98/ME?I can't require the client(s), who are large corporations in some cases, to upgrade all of their old machines. so no. I have to be able to compile the code to use the older MFC. Was just hoping there was away so i could use the new IDE. -Rick
-
VC7 compiled projects still work on 98/ME?Hi all, I asked this question a while ago and people said "yes, but I don't know how". Was looking to upgrade from using VC6 to VC.NET 2003, but I have some apps that still get used on Windows 98/ME etc. It seems like compiling with VC.NET makes the app require MFC7 to which the older windows only have MFC4.2. Is there a way to make the compiler user MFC4.2? I have been looking into the VC.NET project setttings and haven't seen anything about an MFC version to use. Thanks in advanced for any help, Rick
-
Visual Studio 2003 Migration question.Well I'll give it a go and see if i can make it work. Thanks for the info. -Rick
-
Visual Studio 2003 Migration question.Hi All, I was looking to update from VS6 to VS2003 but I was told at one point that my code would then require XP ( latest MFC , etc ) to run. Is it possible to use VS 2003 but still compile a project so that it still runs on windows 95/2k, etc? without having to package a pile of new libs with it. Is it just a matter of linking in the project settings? Could anyone point me in the right direction as to how to set this up. Thanks for the help. -Rick :confused:
-
How do you catch Dialog Boxes from a Browser Help Object (BHO)Can anyone tell me how to catch a dialog box in IE and respond to it. specifically I'm trying to stop the dialog that asks if you want to work offline or try again. I need to have it just try again and complete, instead of making the user click the button. I have already tried setting the machine internet connection flag , but the target system uses some funky custom dialer that seems to override the setting. if I hit "try again" the operation completes fine. the task involves posting data to a mini-webserver on the local machine. Thanks for any help or hints. Rick
-
PowerPoint File Processing w/out office automation? $$$Hi All, Anyway know how to process PowerPoint files other than using office automation? I need a threaded service, COM SERVER, etc, etc, that can export the slides from a PowerPoint deck, into individual images, like jpegs. I wrote a simple ASP COM object using the automation APIs, but it seems that its not threaded so multiple requests end up getting queued, just not a very good solution. If anyone knows of anything, please let me know. Thanks, Rick
-
Best Way to Respond to IE dialog boxes?Thanks David, I'll have a look. Rick
-
Best Way to Respond to IE dialog boxes?Hi All Can anyone tell me the best way pragmatically to respond to a dialog box opened in IE. Like a script error, or connect message ( "work offline") etc, etc. I have an app that opens IE with a certain html file with a ShellExec... but in an effort to try and keep things looking nice.. I would like to automatically kill any message boxes that might come up... Anyone know who to do this.. or to prevent them from coming up in the first place? I'm most concerned with "connection" messages.. the files that are opened are local and I don't want IE trying to connect to the internet or prompting to for that matter. I have been looking into hooking, but I haven't had much luck at this point. Thanks for any help, Rick
-
Hooking Question. Am I Dumb?I'm looking to have my app monitor another app (Internet Explorer) and respond to any dialogs( warning, error, connection ) that appears so the user doesn't have to. I have started studying up on hooking, but I wanted to see if that is the correct approach. As a note, my app starts the IE instance that I want to monitor. Thanks for any help or suggestions. -Rick
-
ShellExecute Question. (urgent)Thanks for setting me straight. Since that obviously won't work, do you know a way to accomplish the task? i.e. open a browser and then monitor it for any dialogs, and then pragmatically ok or cancel said dialog box, so that the user doesn't have to answer his/her self? Thanks again Rick
-
ShellExecute Question. (urgent)Hi all, Can someone tell me how to get the messages from a child window opened with ShellExecute(...) and then respond to them. I tried setting the hwnd parameter to this->m_hWnd from a dialog app.. then i ran a spy++ and didn't see any messages going from the opened web browser back to my dialog app. example. From a Dialog app, i'm opening and html page in Internet Explorer and I need the Dialog app to be able to respond to dialog boxes that IE presents , like error messages and such. It sounds like i should be able to from the API docs... -- MSDN ---------------------------- HINSTANCE ShellExecute( HWND hwnd, LPCTSTR lpOperation, LPCTSTR lpFile, LPCTSTR lpParameters, LPCTSTR lpDirectory, INT nShowCmd ); hwnd [in] Handle to a parent window. This window receives any message boxes that an application produces, such as error reporting. ... --------------------------------- could someone let me know if my understanding of this is wrong. Thanks for any help.. Rick
-
Best Way to Display Line Numbers in a CRichEditView?Hi All, Does anyone have any advise about the best way to go about displaying line numbers in a CRichEditView that display correctly while scrolling? Looking for the effect in many IDEs, and editors like Homesite. Thanks for any suggestions. Rick Gavin
-
How to maximize child windowsI don't know if this is the correct way, but in the ActivateFrame Method I set the SW_SHOMAXIMIZED flag, this does the job just for the intial activation of the window.
void CChildFrame::ActivateFrame(int nCmdShow) { // TODO: Modify this function to change how the frame is activated. nCmdShow = SW_SHOWMAXIMIZED; CMDIChildWnd::ActivateFrame(nCmdShow); }
If you have more than one window in your MDI, i have noticed it will unmaximize when you switch to a new window.. I tried to get around this by using a ModifyStyle(NULL,WS_MAXIMIZE)void CChildFrame::OnSetFocus(CWnd* pOldWnd) { CMDIChildWnd::OnSetFocus(pOldWnd); // TODO: Add your message handler code here ModifyStyle(NULL,WS_MAXIMIZE); }
As I said, I don't know if this is the correct way to do it.. Its just what I figured out while I was playing.. Please let me know if you find a better way. -Rick -
PostMessage() Problem in ActiveX Control from ThreadI have tried PostThreadMessage with no luck. I have an activex control, generated with the 'MFC ActiveX ControlWizard', which gives me an app class of type COleControlModule, the program is structerd as such.... The COleControl Creates the Dialog, which intern creates the Thread, which intern creates the Socket. The data from the socket needs to be displayed in the dialog. COleControlModule (App) - COleControl (Ctrl) - - CDialog - - - CWinThread - - - - CAsyncSocket How do I get a message from the CAsyncSocket derived class back to the COleControl or the CDialog? If this was an App and Not a Control, I could use AfxGetApp() or AfxGetMainWnd()->PostMessage(...) to get a handle back to the main thread. However, these reference doesn't seem to be working for me in a Control. Thanks for any help.
-
PostMessage() Problem in ActiveX Control from ThreadHey Everyone I was working on a Browser based ActiveX Control (MFC VC++ 6 SP5) for doing file transferring. I have an internal thread in the control that handles all the transferring and such. I would like to send messages back to the main dialog for display (logging). However, I'm unable to send a message from the thread that the Control catches. I can throw messages in the control and catch them.. I can throws messages in the thread and catch them in the thread, just unable to send a message from the thread to be caught by the control (COleControl class). I have done something similar in an App, but I used an AfxGetMainWnd()->PostMessage(...) when posting the message, since this is a control and there by being a dialog based app, How do I get the message back to the main control or main dialog class? As a note, I used the "ON_REGISTERED_MESSAGE" macro to register a custom message mapping to a handler function. Is there any reason why this would cause a problem? It works in an .exe App. Thanks for any help or suggestions :confused: Rick Gavin