[thelist] [OT] VC++ and VB

Ashish Agarwal Ashish Agarwal <ashisha at rsi.ramco.com>
Sat Apr 8 11:27:56 2000


Hi,
   Not strictly related to the web, I know, but still if somebody could
help, it would be very useful. We have an application written using VC and
MFC (essentially multiple screens with each screen and Front End code for
the screen as a separate DLL). Now we need to move to using VB as a
development environment. So, to save time, is there a way we can call the VC
DLL from within VB (will save having to re-write the code in VB). Any places
where I could get some information on this (tried searching for this,
but...no dice) ? 

   Guess I need to pay for this -
<tip type="JavaScript">
JavaScript shorthand: the Conditional Operator...turns this:
  if (x < 50)
    number += x;
  else
    number = x;
into this:
  number = (x < 50) ? number + x : x;
</tip>
<tip type="JavaScript">
Remove frames
<script language="JavaScript">
 <--
 if (top.location.href != location.href)
  top.location.href = location.href;
 // -->
</script>
</tip>
<tip type="Dynamic Includes(ASP)">
From Charles' excellent ASP tutorial at http://www.learnasp.com
<html><head>
<TITLE>includedynamic.asp</TITLE>
</head><body bgcolor="#FFFFFF">
<%
whichfile="bookscifi.asp"
Call ReadDisplayFile(whichfile)
response.write "<hr>"
whichfile="bookhorror.asp"
Call ReadDisplayFile(whichfile)
response.write "<hr>"
whichfile="/learn/test/bookmarketing.asp"
Call ReadDisplayFile(whichfile)
response.write "<hr>"
%>
</body></html>
<%
SUB ReadDisplayFile(FileToRead)
whichfile=server.mappath(FileToRead)
Set fs = CreateObject("Scripting.FileSystemObject")
Set thisfile = fs.OpenTextFile(whichfile, 1, False)
tempSTR=thisfile.readall
response.write tempSTR
thisfile.Close
set thisfile=nothing
set fs=nothing
END SUB
%>
The only downside to this method is no ASP Code ( i.e. anything in <% %> )
will be parsed or executed in the included file
</tip>

Regards,
Ashish