64 bits application using Visual Basic 6 ActiveX controls
-
Hello I have an application made with VC++ that can show a lot of dialogs. Those dialogs have been defined in an RC file and contains ActiveX controls made with Visual Basic 6. My promen is the following one: I have compiled the application in 64 bits, and when I launch the application and it is going to show a dialog, it fails. I think this is due to there is not 64 bits runtime for VB6. What I want it is to generate an equivalent RC file to the RC file I have but replacing the controls made with VB6 with others made with VC++. The obvious way is to edit the dialogs with Visual Studio C++ resource editor, and replace each control with its equivalent control. The problem is that I have a lot of dialogs (about 1000). Is there a easy way to do this? A possible way could be to generate an application that load the dialogs, and replace the controls during the execution, and then generate and RC file with the resultant dialogs. Something similar to what makes Visual Studio C++ resource editor. I have tried to implement this solution, but I don't find the way to generate an RC file from a dialog loaded during the application execution. Any help will be appreciated, Best regards.
-
Hello I have an application made with VC++ that can show a lot of dialogs. Those dialogs have been defined in an RC file and contains ActiveX controls made with Visual Basic 6. My promen is the following one: I have compiled the application in 64 bits, and when I launch the application and it is going to show a dialog, it fails. I think this is due to there is not 64 bits runtime for VB6. What I want it is to generate an equivalent RC file to the RC file I have but replacing the controls made with VB6 with others made with VC++. The obvious way is to edit the dialogs with Visual Studio C++ resource editor, and replace each control with its equivalent control. The problem is that I have a lot of dialogs (about 1000). Is there a easy way to do this? A possible way could be to generate an application that load the dialogs, and replace the controls during the execution, and then generate and RC file with the resultant dialogs. Something similar to what makes Visual Studio C++ resource editor. I have tried to implement this solution, but I don't find the way to generate an RC file from a dialog loaded during the application execution. Any help will be appreciated, Best regards.
I assume that the original 32-bit code used VB6-specific control elements, that the source code (text) for the RC file is unavailable, and that you are familiar with the .RC (source code for resources) file format. To my knowledge, there is no fully automated method of performing the conversion. What you must do is the following: 1. Extract the resources from the .EXE file using a resource file editor. I have used ResEdit (freeware) for examining resources in EXE files. IIRC, it can also extract resources from an EXE/DLL. 2. Convert any VB6-specific elements to generic Windows versions Each dialog etc. specifies its "class" type, which affects how it is displayed. This includes the DLL that must be loaded in order to display it. Convert any VB6-specific names to the generic equivalent (e.g. "VB6button" should be renamed "button", "VB6dialog" should be renamed "dialog", etc.) 3. EDIT: Some ActiveX controls may have no generic control that can replace them. In this case, you must decide whether to use a class library that supplies the missing functionality, or eliminate them from the file. 4. Recompile the RC file using the Visual Studio resource editor. You should get an application that has standard dialog boxes. It will presumably require lots of tweaking before the layout etc. looks OK, but it is a good starting point. Good luck!
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill