Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

possibility of convert QB to assembly then wrap it in C++ shell?

Status
Not open for further replies.

Lupine

Programmer
Aug 3, 2000
53
US
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I've been working on an edjucational game for children<br>for about two years. (All QB 4.5)I've been hearing<br>more and more about conversion to assembly.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;What do we think? Could I convert my program to<br>assembly then &quot;wrap&quot; it along with all my .dat and sprite<br>files into a C++ &quot;shell&quot;. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Basically the C would do some hardware detection,<br>hide all my files and code from the user. And help with the<br>interface. I'm learning C now (slow going)so I don't know<br>yet what all C can do.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;In the end I could always redo the whole Shebang in C.<br><br>PS. u da man toshi<br> <p>Lupine<br><a href=mailto:RobertCorrina@patownsend.com>RobertCorrina@patownsend.com</a><br><a href= > </a><br>
 
this conversion is usally for very simple programs I have heard, the performance may still be the same since it takes the QB Code and compiles it into the same, in my opinion , unless the ASM actually rearanges the QB Code into a more efficient method only possible in ASM, then there would be a performance increase. thats as much as I can figure about the convert to ASM, typically if you want it done, its best to learn it yourself, (I've seen too many &quot;I want a program to convert my sourse code to use ADO instead of DAO&quot; when its not even as simple as that) <p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
<br>&nbsp;&nbsp;So you're saying there is no conversion.<br>What really happens is I write a new program<br>in assembly, perhaps based on my Qbasic program,<br>that can call the same files and do the same stuff?<br>&nbsp;&nbsp;Ouch.<br>&nbsp;What if I compile my Q into an .exe, could I incorporate<br>that into a C package?<br>&nbsp;&nbsp;Don't get me wrong, I'll be happy to learn C++ AND Assembly. I'll just cut out that 4 hours of sleep I been gettin &lt;yawn&gt;<br>&nbsp;&nbsp;&nbsp;Maybe I'll do the final product all in C.(prototype in Q)<br>But I am truly fascinated by language integration.<br>Now back to editing sprites....&lt;yawn&gt;<br> <p>Lupine<br><a href=mailto:RobertCorrina@patownsend.com>RobertCorrina@patownsend.com</a><br><a href= > </a><br>
 
hehe, any language that is turned into an exe, is turned into machine language, they're really isnt a full pledge conversion for anything the QB to ASM is for simple commands, that find's an equivilent command in the ASM language and uses it in that place, depending on your program and what you do with it, I would try to write the program in pure C/C++ (ASM may not be nessary in your case, I dont even know ASM, and I seem to get by fine for now with C++) <p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top