Attached is a simple vb program, I put it together today because the more I thought about what I had attached in the other topic the more I thought that initially you may need something simpler for development and move from there. Baby steps instead of Giant ones. Anyway here it is both the .exe and the source code in the .zip.
Using this source code in the .zip I have a few questions to get me up to speed on the BIG PICTURE.
The zip contains 4 source files and the .exe. The .frm file of course contains the form info and the form coding. The .vbp contains information about the project such as name etc. The .vbw contains the position of the main form it looks like. This leaves the .frx file which if opened in a hex editor contains 778 bytes which I am assuming similiar to M$ Basic would contain the tokens possibly for the program coding.
With all that said and going with the thought when the END USER converts a VB PROJECT to PB WIN the process which I see happening would be:
USER - 1. BACKUP THE VB PROJECT IN ANOTHER FOLDER
USER - 2. Using PBFORMS 1.51 import the vbform from the VB PROJECT
CONVERTER - 3. Convert the .frm code in the form to PB WIN code
CONVERTER - 4. Save the created PB WIN code
CONVERTER - 5. Call the PBWIN compiler to compile the converted code
CONVERTER - 6. Create an PB2VBError.txt file with Error / Status Messages from the attempted compile.
CONVERTER - 7. Ask the user if he wants to open the Editor to modify the coverted code or Just Exit after the CONVERTER Renamse the Error.txt to Reflect the VBPROJECT Name like so: SIMCONVERTPBERROR.TXT.
At this point the user could then modify the source code and then some option be available in the converter so the modified code could compile attempted again with a newer Error.txt file created as required.
Of course if the project is converted sucessfully(desired!
) then a completion message generated and the CONVERTER program ends.
What I am seeing from the user aspect is that the user should only have to manually use PBFORMS1.51 to import the form after he backs up his project then point to the main form file in the project to initiate the conversion. Then when its done sucessfully it exits.
Please correct my thinking if I am totally out to lunch on the way it works
Thanks, I also included the hex dumps of .frx in .pdf format
In the .zip included you can ignore the open folder icon somehow I included it in the .zip and could not remove it.
Wayne
Using this source code in the .zip I have a few questions to get me up to speed on the BIG PICTURE.
The zip contains 4 source files and the .exe. The .frm file of course contains the form info and the form coding. The .vbp contains information about the project such as name etc. The .vbw contains the position of the main form it looks like. This leaves the .frx file which if opened in a hex editor contains 778 bytes which I am assuming similiar to M$ Basic would contain the tokens possibly for the program coding.
With all that said and going with the thought when the END USER converts a VB PROJECT to PB WIN the process which I see happening would be:
USER - 1. BACKUP THE VB PROJECT IN ANOTHER FOLDER
USER - 2. Using PBFORMS 1.51 import the vbform from the VB PROJECT
CONVERTER - 3. Convert the .frm code in the form to PB WIN code
CONVERTER - 4. Save the created PB WIN code
CONVERTER - 5. Call the PBWIN compiler to compile the converted code
CONVERTER - 6. Create an PB2VBError.txt file with Error / Status Messages from the attempted compile.
CONVERTER - 7. Ask the user if he wants to open the Editor to modify the coverted code or Just Exit after the CONVERTER Renamse the Error.txt to Reflect the VBPROJECT Name like so: SIMCONVERTPBERROR.TXT.
At this point the user could then modify the source code and then some option be available in the converter so the modified code could compile attempted again with a newer Error.txt file created as required.
Of course if the project is converted sucessfully(desired!

What I am seeing from the user aspect is that the user should only have to manually use PBFORMS1.51 to import the form after he backs up his project then point to the main form file in the project to initiate the conversion. Then when its done sucessfully it exits.
Please correct my thinking if I am totally out to lunch on the way it works

Thanks, I also included the hex dumps of .frx in .pdf format
In the .zip included you can ignore the open folder icon somehow I included it in the .zip and could not remove it.
Wayne
Comment