{"id":694,"date":"2010-08-05T20:44:56","date_gmt":"2010-08-05T15:14:56","guid":{"rendered":"http:\/\/judepereira.com\/blog\/?p=694"},"modified":"2016-02-06T12:44:56","modified_gmt":"2016-02-06T07:14:56","slug":"visual-basic-6-revisited-linux-wine","status":"publish","type":"post","link":"https:\/\/judepereira.com\/blog\/visual-basic-6-revisited-linux-wine\/","title":{"rendered":"visual basic 6 revisited &#8211; linux &#8211; wine"},"content":{"rendered":"<p><small><em>Earlier this year, I had written an article on running Visual Basic 6 on linux under wine, <strong>this<\/strong> is an update for it, the prior one is <strong>deprecated<\/strong><\/em><\/small><\/p>\n<p>Getting Visual Basic 6 to work on linux is pretty easy, not much trouble, all the basic things work, as of what I&#8217;ve tested.<\/p>\n<p>Here&#8217;s how you get that damn thing to work:<\/p>\n<p \/>\nCopy over the contents of OS\/SYSTEM\/ from the CD root to your wine system32 directory<br \/>\n[sourcecode lang=bash]<br \/>\n$ cp -r \/media\/cdrom\/OS\/SYSTEM\/* ~\/.wine\/drive_c\/windows\/system32\/<br \/>\n[\/sourcecode]<br \/>\nSince we are only concerned about Visual Basic 6, copy over the folder VB98 from the CD root to your Program Files<br \/>\n[sourcecode lang=bash]<br \/>\n$ cp -r \/media\/cdrom\/VB98\/ ~\/.wine\/drive_c\/Program\\ Files\/<br \/>\n# for the sake of convenience, let&#8217;s rename this folder as Visual Basic 6<br \/>\n$ mv ~\/.wine\/drive_c\/Program\\ Files\/VB98\/ ~\/.wine\/drive_c\/Program\\ Files\/Visual\\ Basic\\ 6\/<br \/>\n[\/sourcecode]<br \/>\nRegister the two dynamically linked libraries essential to run Visual Basic 6 smoothly<br \/>\n[sourcecode lang=bash]<br \/>\n$ cd ~\/.wine\/drive_c\/windows\/system32\/<br \/>\n$ wine regsvr32 comcat.dll<br \/>\n$ wine regsvr32 MSSTDFMT.DLL<br \/>\n[\/sourcecode]<br \/>\nEasy, eh? Your all done, now, let&#8217;s create an optional launch command with the following contents<br \/>\n<strong><small>File: vbasic<\/small><\/strong><br \/>\n[sourcecode lang=bash]<br \/>\n#!\/bin\/bash<br \/>\ncd ~\/.wine\/drive_c\/Program\\ Files\/Visual\\ Basic\\ 6\/<br \/>\nwine VB6.EXE<br \/>\n[\/sourcecode]<br \/>\nMake our launcher executable and place it in the right place<br \/>\n[sourcecode lang=bash]<br \/>\n$ chmod +x vbasic<br \/>\n# following command must be issued as root<br \/>\n$ mv vbasic \/usr\/local\/bin\/<br \/>\n[\/sourcecode]<br \/>\nNow you can just issue the command vbasic, and all should work well, using this launcher, you can create entries for your panel, etc.<\/p>\n<p \/>\n<em><small>Deployed with a fresh install of wine version 1.2-rc2<\/small><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Earlier this year, I had written an article on running Visual Basic 6 on linux under wine, this is an update for it, the prior one is deprecated Getting Visual Basic 6 to work on linux is pretty easy, not much trouble, all the basic things work, as of what I&#8217;ve tested. Here&#8217;s how you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[52,11,10],"tags":[94,156,158,155,157],"class_list":["post-694","post","type-post","status-publish","format-standard","hentry","category-code","category-gen-sab-fed","category-linux","tag-vb6","tag-vb6-on-linux","tag-vb98","tag-visual-basic-linux","tag-visual-basic-wine"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pqtyx-bc","jetpack-related-posts":[{"id":289,"url":"https:\/\/judepereira.com\/blog\/sabayon-four-oh\/","url_meta":{"origin":694,"position":0},"title":"Sabayon fOuR oH","author":"Jude Pereira","date":"June 16, 2009","format":false,"excerpt":"Based on Gentoo, Sabayon 4.1, tells me: Great performance with less RAM(though you need like 1GB RAM for it to work well enough). Package Management System is absolutely fantastic, with it's new \"Entropy\". Totally the perfect distribution. A fine distribution for the newbie or the expert. This is what a\u2026","rel":"","context":"In &quot;gnu linux&quot;","block_context":{"text":"gnu linux","link":"https:\/\/judepereira.com\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":893,"url":"https:\/\/judepereira.com\/blog\/coloured-varlogmessages-at-tty12\/","url_meta":{"origin":694,"position":1},"title":"Coloured \/var\/log\/messages at tty12","author":"Jude Pereira","date":"April 26, 2011","format":false,"excerpt":"Reading logs could never become any more easier, at just a keystroke, you have your logs displayed where you want, in some fancy colour. They look great too. TTY's can be accessed by pressing Alt + Ctrl + F[1 - 12] simultaneously. In the following, you'll get a decent, colourized\u2026","rel":"","context":"In &quot;another snippet | code&quot;","block_context":{"text":"another snippet | code","link":"https:\/\/judepereira.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2126,"url":"https:\/\/judepereira.com\/blog\/upgrading-to-debian-bookworm-on-qnap-ts-112-also-ts-11x-ts-12x\/","url_meta":{"origin":694,"position":2},"title":"Upgrading to Debian Bookworm on QNAP TS-112 (also TS-11x\/TS-12x)","author":"Jude Pereira","date":"October 16, 2024","format":false,"excerpt":"I decided to host Minio on a QNAP TS-112 device, bought from a second hand store. Here's a tale of me ditching the QNAP OS in favour of Debian Bookworm.","rel":"","context":"In &quot;gnu linux&quot;","block_context":{"text":"gnu linux","link":"https:\/\/judepereira.com\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1659,"url":"https:\/\/judepereira.com\/blog\/clion-and-openframeworks\/","url_meta":{"origin":694,"position":3},"title":"CLion 1.1.1 and openFrameworks 0.8.4","author":"Jude Pereira","date":"October 2, 2015","format":false,"excerpt":"A basic template to start building oF projects using CMake within CLion. It's here on GitHub! All credits go to kureta for the CMake files. I've just pieced it together as a project which can be imported.","rel":"","context":"In &quot;another snippet | code&quot;","block_context":{"text":"another snippet | code","link":"https:\/\/judepereira.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1685,"url":"https:\/\/judepereira.com\/blog\/compile-less-on-the-fly-for-your-exploded-war-in-intellij\/","url_meta":{"origin":694,"position":4},"title":"Compile LESS on the fly for your exploded WAR in IntelliJ","author":"Jude Pereira","date":"February 5, 2016","format":false,"excerpt":"At CleverTap, we've recently started using LESS for dynamic CSS. While it has it's upsides, the biggest downside\u00a0was that most of our developers couldn't use the hot deploy feature for their local deployments. After an hour or so, we came up with a neat solution. \u00a0 There are two parts\u2026","rel":"","context":"In &quot;another snippet | code&quot;","block_context":{"text":"another snippet | code","link":"https:\/\/judepereira.com\/blog\/category\/code\/"},"img":{"alt_text":"External Tool configuration for compiling LESS files before deployment","src":"https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/Screen-Shot-2016-02-05-at-01.32.45-1024x494.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/Screen-Shot-2016-02-05-at-01.32.45-1024x494.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/Screen-Shot-2016-02-05-at-01.32.45-1024x494.png?resize=525%2C300 1.5x"},"classes":[]},{"id":1881,"url":"https:\/\/judepereira.com\/blog\/nrf52840-flash-s340\/","url_meta":{"origin":694,"position":5},"title":"nRF52840 &#8211; flashing the s340 v6.1.1 SoftDevice","author":"Jude Pereira","date":"July 12, 2019","format":false,"excerpt":"This post is a work in progress (WIP). The result of this experiment is a success. I have flashed my SparkFun nRF52840 mini, and I'm able to run the bicycle combined speed & cadence sensor example. Before we begin, \u00a0a big hats off to\u00a0Charles, who brought support for the SparkFun\u2026","rel":"","context":"In &quot;hardware&quot;","block_context":{"text":"hardware","link":"https:\/\/judepereira.com\/blog\/category\/hardware\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts\/694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/comments?post=694"}],"version-history":[{"count":20,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts\/694\/revisions"}],"predecessor-version":[{"id":1694,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts\/694\/revisions\/1694"}],"wp:attachment":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/media?parent=694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/categories?post=694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/tags?post=694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}