vbplugin.txt
上传用户:riieeetjf
上传日期:2010-03-03
资源大小:1468k
文件大小:9k
源码类别:

midi

开发平台:

Visual C++

  1. <SCRIPT SRC="/wavemaster.internal/v4.1/tools/cookie.js"></SCRIPT>
  2. <HTML>
  3. <HEAD>
  4. <STYLE TYPE="text/css"><!--
  5.  .hw-annotation { text-decoration: none; color: black; background:#f3ca81; font-weight: bold; }
  6. --></STYLE>
  7. <META NAME="ObjectID" CONTENT="0x000000d4">
  8. <META NAME="Type" CONTENT="Document">
  9. <META NAME="DocumentType" CONTENT="text">
  10. <META NAME="Author" CONTENT="gnagler">
  11. <META NAME="TimeCreated" CONTENT="1998/06/15 07:50:23">
  12. <META NAME="TimeModified" CONTENT="1998/06/15 07:52:43">
  13. <META NAME="Title" CONTENT="en:Embedding GN-Tools in Visual BASIC 5.0">
  14. <META NAME="Name" CONTENT="vbplugin.txt">
  15. <META NAME="MimeType" CONTENT="text/htf">
  16. <META NAME="Path" CONTENT="DC0x000d9dc5 0x000007e1">
  17. <META NAME="Parent" CONTENT="Cpub">
  18. <META NAME="GOid" CONTENT="0x811bc833_0x00584b38">
  19. <TITLE>Embedding GN-Tools in Visual BASIC 5.0</TITLE>
  20. <BASE HREF="http://www2.iicm.edu/vbplugin.txt">
  21. </HEAD>
  22. <BODY alink="#0b134c" bgcolor="#ffffff" link="#1829a5" text="#000000" vlink="#0b134c">
  23. <SCRIPT>
  24. <!--
  25. window.defaultStatus = "Hyperwave - Organize your future - You are logged in as guest !"
  26. // -->
  27. </SCRIPT>
  28. <SCRIPT>
  29. <!--
  30. function ba(bu) {
  31. }
  32. function bia(bu,num) {
  33. }
  34. // -->
  35. </SCRIPT>
  36. <TABLE WIDTH="600" BORDER="0" CELLPADDING="0" CELLSPACING="0">
  37. <TR>
  38. <TD><A
  39. HREF="http://www2.iicm.edu/vbplugin.txt;internal&action=_identify.action" ONMOUSEOVER="ba('li');window.status='Login at the Hyperwave server as an identified user';return true" ONMOUSEOUT="bia('li','1')"><IMG
  40. SRC="http://www2.iicm.edu/v4.1/m/en/mm_login1.gif;internal&inline=true" ALT="Login" BORDER="0" WIDTH="66" HEIGHT="18" NAME="li"></A><IMG
  41. SRC="http://www2.iicm.edu/v4.1/m/en/mm_edit0.gif;internal&inline=true" ALT="Edit-login first" BORDER="0" WIDTH="48" HEIGHT="18" NAME="ed"><A
  42. HREF="http://www2.iicm.edu/vbplugin.txt;internal&action=extended.search.action" ONMOUSEOVER="ba('se');window.status='Start a Hyperwave Search';return true" ONMOUSEOUT="bia('se','1')"><IMG
  43. SRC="http://www2.iicm.edu/v4.1/m/en/mm_search1.gif;internal&inline=true" ALT="Search" BORDER="0" WIDTH="67" HEIGHT="18" NAME="se"></A><IMG
  44. SRC="http://www2.iicm.edu/v4.1/m/en/mm_annotate0.gif;internal&inline=true" ALT="Annotate-login first" BORDER="0" WIDTH="82" HEIGHT="18" NAME="an"><A
  45. HREF="http://www2.iicm.edu/vbplugin.txt;internal&action=preferences.action" ONMOUSEOVER="ba('pf');window.status='Set your preferences for a Hyperwave session';return true" ONMOUSEOUT="bia('pf','1')"><IMG
  46. SRC="http://www2.iicm.edu/v4.1/m/en/mm_preferences1.gif;internal&inline=true" ALT="Preferences" BORDER="0" WIDTH="101" HEIGHT="18" NAME="pf"></A><IMG
  47. SRC="http://www2.iicm.edu/v4.1/m/en/mm_admin0.gif;internal&inline=true" ALT="Admin" BORDER="0" WIDTH="62" HEIGHT="18" NAME="ad"><A
  48. HREF="http://www2.iicm.edu/wavemaster.internal/applications/navigationexplorer_en.html?object=%2Fvbplugin.txt" ONMOUSEOVER="ba('na');window.status='Go to the Hyperwave navigation aids start page';return true" ONMOUSEOUT="bia('na','1')"><IMG
  49. SRC="http://www2.iicm.edu/v4.1/m/en/mm_navi1.gif;internal&inline=true" ALT="Navigation aids" BORDER="0" WIDTH="51" HEIGHT="18" NAME="na"></A><IMG
  50. SRC="http://www2.iicm.edu/v4.1/m/en/mm_space.gif;internal&inline=true" WIDTH="13" HEIGHT="18" NAME="space"><A
  51. HREF="http://www2.iicm.edu/vbplugin.txt;internal&action=_help.action" ONMOUSEOVER="ba('he');window.status='Get Help on Hyperwave features';return true" ONMOUSEOUT="bia('he','1')"><IMG
  52. SRC="http://www2.iicm.edu/v4.1/m/en/mm_help1.gif;internal&inline=true" ALT="Help" BORDER="0" WIDTH="51" HEIGHT="18" NAME="he"></A><A
  53. HREF="http://www2.iicm.edu/vbplugin.txt;internal&action=about.action" ONMOUSEOVER="window.status='About Hyperwave';return true"><IMG
  54. SRC="http://www2.iicm.edu/v4.1/m/en/mm_logo1.gif;internal&inline=true" ALT="About Hyperwave" BORDER="0" WIDTH="59" HEIGHT="18" NAME="logo"></A></TD></TR>
  55. <TR>
  56. <TD><A
  57. HREF="http://www2.iicm.edu/rootcollection" ONMOUSEOVER="ba('ho');window.status='Go to the global Hyperwave homecollection on the server';return true" ONMOUSEOUT="bia('ho','1')"><IMG
  58. SRC="http://www2.iicm.edu/v4.1/m/en/me_ho1.gif;internal&inline=true" ALT="Global Home Collection" BORDER="0" WIDTH="48" HEIGHT="18" NAME="ho"></A><IMG
  59. SRC="http://www2.iicm.edu/v4.1/m/en/me_ph0.gif;internal&inline=true" ALT="Private Home - login first" BORDER="0" WIDTH="30" HEIGHT="18" NAME="ph"><A
  60. HREF="http://www2.iicm.edu/Cpub" ONMOUSEOVER="ba('up');window.status='Go one level up to the parent of the current document';return true" ONMOUSEOUT="bia('up','1')"><IMG
  61. SRC="http://www2.iicm.edu/v4.1/m/en/me_up1.gif;internal&inline=true" ALT="Up one level" BORDER="0" WIDTH="30" HEIGHT="18" NAME="up"></A><IMG
  62. SRC="http://www2.iicm.edu/v4.1/m/en/me_space.gif;internal&inline=true" WIDTH="30" HEIGHT="18"><IMG
  63. SRC="http://www2.iicm.edu/v4.1/m/en/me_space.gif;internal&inline=true" WIDTH="30" HEIGHT="18"><IMG
  64. SRC="http://www2.iicm.edu/v4.1/m/en/me_space.gif;internal&inline=true" WIDTH="120" HEIGHT="18"><IMG
  65. SRC="http://www2.iicm.edu/v4.1/m/en/me_space.gif;internal&inline=true" WIDTH="180" HEIGHT="18"><A
  66. HREF="http://www2.iicm.edu/vbplugin.txt?hyperwave=action%3dplain.action" ONMOUSEOVER="ba('hf');window.status='Disable the Hyperwave header and footer for this document';return true" ONMOUSEOUT="bia('hf','1')"><IMG
  67. SRC="http://www2.iicm.edu/v4.1/m/en/me_hf1.gif;internal&inline=true" ALT="Header/Footer off" BORDER="0" WIDTH="30" HEIGHT="18" NAME="hf"></A><A
  68. HREF="http://www2.iicm.edu/vbplugin.txt;internal&action=attributes.action" ONMOUSEOVER="ba('at');window.status='Show the Hyperwave attributes for the current document';return true" ONMOUSEOUT="bia('at','1')"><IMG
  69. SRC="http://www2.iicm.edu/v4.1/m/en/me_at1.gif;internal&inline=true" ALT="Show Attributes" BORDER="0" WIDTH="30" HEIGHT="18" NAME="at"></A><IMG
  70. SRC="http://www2.iicm.edu/v4.1/m/en/me_space.gif;internal&inline=true" WIDTH="17" HEIGHT="18"><A HREF="http://www2.iicm.edu/vbplugin.txt;internal&action=about.action" ONMOUSEOVER="window.status='About Hyperwave';return true"><IMG
  71. SRC="http://www2.iicm.edu/v4.1/m/en/me_logo1.gif;internal&inline=true" ALT="About Hyperwave" BORDER="0" WIDTH="55" HEIGHT="18"></A></TD></TR>
  72. </TABLE>
  73. <P> </P>
  74. <H1>Subject: Embedding GN-Tools in Visual BASIC 5.0
  75. </h1><pre>From: "Open Mind Productions" &lt;openmind@bigfoot.com>
  76. A while ago I promised to send you the code to embed your tools in Visual
  77. BASIC.
  78. Well, here it is !
  79. As an example I use MIDINOTE, but it should work with all DOS executables.
  80. --------------------------------------------------------------------
  81.     ' Change the work directory to the application directory
  82.     ' midinote.exe should be located there !
  83.     ChDir App.Path
  84.     ' Copy the original midi-file to the work-file "temp.mid"
  85.     ' This solves the long filename problem for DOS
  86.     FileCopy lblFileName.Caption, App.Path &amp; "temp.mid"
  87.     ' Create a batch file to run midinote.exe
  88.     Open App.Path &amp; "PlugIn.bat" For Output As #1
  89.     Print #1, "midinote -values temp.mid > output.tmp"
  90.     Print #1, "copy output.tmp 0.tmp"
  91.     Close #1
  92.     ' Run the PlugIn batch file
  93.     runPlugin = Shell(App.Path &amp; "PlugIn.bat", vbHide)
  94.     ' Make the Visual BASIC application wait for "0.tmp" to be created.
  95.     ' This means that the batch file has finished and "output.tmp" has been
  96. created.
  97.     On Error GoTo plugInWait
  98. plugInReady:
  99.     Open App.Path &amp; ".tmp" For Input As #1
  100.     Line Input #1, xx1
  101.     Close #1
  102.     Kill App.Path &amp; ".tmp"
  103.     Kill App.Path &amp; "temp.mid"
  104.     GoTo startProcessing
  105. plugInWait:
  106.     Close #1
  107.     Resume plugInReady
  108. startProcessing:
  109.     ' This is where you can put code to process "output.tmp"
  110.     ...
  111.     ...
  112.     ...
  113.     ...
  114.     ' Erase "output.tmp" when it's not needed anymore
  115.     Kill App.Path &amp; "output.tmp"
  116. --------------------------------------------------------------------
  117. This code can be copied directly into a VB application.
  118. I hope the embedded comment lines will do.
  119. Thanks for your great C++ apps !!
  120. Alex
  121. ====================================================================
  122. Alex is programmer of Midi Tool Box for Windows95 (Freeware)
  123. http://members.tripod.com/~open_mind/
  124. </pre><P>
  125. <SCRIPT src="/wavemaster.internal/v4.1/tools/datefunctions.js">
  126. </SCRIPT>
  127. <SCRIPT> 
  128. var HW_UI_UseLocalDate=true;
  129. var HW_UI_Date="";
  130. if (typeof EnDate !="undefined")
  131.   HW_UI_Date=EnDate
  132. </SCRIPT>
  133. <TABLE WIDTH="600" BORDER="0" CELLPADDING="0" CELLSPACING="0">
  134. <TR><TD>
  135. <TABLE WIDTH="600" BORDER="0" CELLPADDING="2" CELLSPACING="0" BGCOLOR="#f3ca81">
  136. <TR>
  137. <TD VALIGN="TOP">
  138. <FONT COLOR="black" SIZE=-2 FACE="ARIAL, HELVETICA, SWITZERLAND">
  139. </FONT>
  140. </TD>
  141. <TD VALIGN="TOP">
  142. <FONT COLOR="black" SIZE=-2   FACE="ARIAL, HELVETICA, SWITZERLAND">
  143. User: <B>Guest</B> &#149; 
  144. Owner: <B>gnagler</B> &#149; Last modified: <B>
  145. 06/15/1998 07:52:43
  146. </B>
  147. </FONT>
  148. </TD>
  149. <TD VALIGN="TOP">
  150. <FONT COLOR="black" SIZE=-2   FACE="ARIAL, HELVETICA, SWITZERLAND">
  151. &nbsp;
  152. </FONT>
  153. </TD>
  154. </TR>
  155. </TABLE>
  156. </TD></TR></TABLE>
  157. </BODY>
  158. </HTML>