Re: Visual Basic.net



On 2005-07-23, Mike Williams <Mike@xxxxxxxxxxxxxxxxx> wrote:
> "Tom Shelton" <tshelton@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:qvydnUMqwexhD3_fRVn-pw@xxxxxxxxxxxxxx
>
>> For, example I converted a [VB6] project a few months ago
>> [to NET] and when I was done I had removed ALL api calls
>> and the lines of code were about 1/2 the VB.CLASSIC version.
>
> Does it compile to an exe file that will run on an "out of the box"
> installation of Win98 / Win XP?
>

Even VB6 requires a runtime... But, no the runtime does not ship with
it. Yes, for some things, that is an issue. I'm not denying that.

> By the way, which specific API calls did you manage to remove? Will it, for

For that particular application, the ones that stand out the most were
the FindFirstChangeNotify and friends. It had a section of code that
was written to watch for creation of certian files (fax images
actually). This whole section of code was easily replaced using the
FileSystemWatcher component in System.IO. I believe there were a couple
of others, but I can't remember precisely which ones.

> example, produce rotated text to the printer without using them? I'm all for
> high level languages removing the need for the programmer to resort to low
> level access. How well does NET fare in that respect?

As for you question about printing rotated text... I don't really know,
since this kind of thing is not my within my normal routine. But, I
wouldn't be suprised if this could be acomplished via the classes in
System.Drawing and System.Drawing.Printing.

You may very well have to call API's for that - I'm not at all saying
that you never have to in .NET, just that the number calls needed has been
significantly reduced. So, I would say that over all it fairs very well
in that respect.

--
Tom Shelton
.



Relevant Pages

  • Re: How to turn off compiler/linker timestamping?
    ... > You can see the time stamp by running dumpbin /all on the executable. ... > "Michael Schwab" wrote in message ... compile. ... >> embedded in the exe file itself. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Gfortran on Windows (was Re: Fortran Newbie - Where to start?)
    ... After unpacking the .zip file and adding the paths to the root of the ... A minimal test setup to compile 'hello, ... (-s reduces the size of the .exe file, ...
    (comp.lang.fortran)
  • Re: trivial question about building exe
    ... references to external dlls. ... exe file, so that I can send it to another machine and it works. ... If I understand you correctly you want to compile all dlls to one file. ... This is not the way you should use dynamic libraries but if you are sure you know what you are doeing you can theoretically add all the libraries to the resources of your application and get them from the resources and save them to disc before your application will use them. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VB IDE Crashes during Compile/Make
    ... I also have one app that won't compile on the dev machine but will ... compile on another machine accessing the project files across the ... >Although I'm running XP and VS6, we have tried to make the exe file on ...
    (microsoft.public.vb.general.discussion)
  • Re: visual studio resource file?
    ... configuration options for release and debug. ... Alternatively yur could specify a post-build event (under "common ... > is it possible to compile and produce the exe file inside the project ...
    (microsoft.public.dotnet.languages.csharp)