Author Topic: Using MSVCR80.DLL with PowerBASIC  (Read 9562 times)

0 Members and 1 Guest are viewing this topic.

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2530
  • User-Rate: +209/-0
  • Gender: Male
Using MSVCR80.DLL with PowerBASIC
« on: December 30, 2007, 09:20:05 AM »
 
MSVCR80.DLL is the C-Runtime Library for Microsoft Visual C 2005.

To use it with PowerBASIC we need to follow these steps:

  • To copy MSVCR80.DLL, MSVCP80.DLL and Microsoft.VC80.CRT.manifest in the application's folder. These files are located at C:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\

  • To embed Microsoft.VC80.CRT.manifest in a resource file that, in turn, will be embeded in our application.

Example of resource file: MSVCR80.RC

Code: [Select]
1 24 "Microsoft.VC80.CRT.manifest"

Once compiled with the resource compiler (RC.EXE), include it in your application as follows:

Code: [Select]
#RESOURCE "MSVCR80.PBR"
« Last Edit: December 30, 2007, 10:20:56 AM by José Roca »

Offline Greg Lyon

  • Newbie
  • *
  • Posts: 7
  • User-Rate: +1/-3
  • Gender: Male
Re: Using MSVCR80.DLL with PowerBASIC
« Reply #1 on: February 20, 2008, 05:17:40 AM »
José,

Thanks for posting this, it helped me understand how to get a MASM program working that uses MSVCR80.DLL. It's the same principle and it also works for programs that use MSVCR90.DLL. I attached an example that does not require the DLLs to be copied to the application folder. It uses a slightly different manifest.

« Last Edit: August 07, 2011, 02:53:42 AM by José Roca »

Offline Edwin Knoppert

  • Sr. Member
  • ****
  • Posts: 254
  • User-Rate: +11/-4
  • Gender: Male
    • Hellobasic.com
Re: Using MSVCR80.DLL with PowerBASIC
« Reply #2 on: February 20, 2008, 09:39:40 AM »
Afaik this is a code library?
Why is the manifest needed?
Or is it a control's library?

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2530
  • User-Rate: +209/-0
  • Gender: Male
Re: Using MSVCR80.DLL with PowerBASIC
« Reply #3 on: February 20, 2008, 11:13:13 AM »
 
Quote
Afaik this is a code library?

As stated in the first paragraph of my first post "MSVCR80.DLL is the C-Runtime Library for Microsoft Visual C 2005."

Quote
Why is the manifest needed?

Because M$ wants it.