Flltest.exe Determines if FLL File Loads Successfully (153525)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0
  • Microsoft Visual FoxPro for Windows 3.0b
  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a
  • Microsoft Visual FoxPro for Windows 6.0
  • Microsoft FoxPro for Windows 2.6a

This article was previously published under Q153525

SUMMARY

Flltest.exe is a file that demonstrates C code that may be used to verify if an FLL will load successfully. This sample contains both a 16-bit and a 32-bit version of the code that can be run to test FLLs you may want to load under the 16-bit version of FoxPro for Windows (versions 2.6x) or the 32-bit version of Visual FoxPro for Windows (versions 3.x, 5.x, 6.0) respectively.

MORE INFORMATION

The following file is available for download from the Microsoft Download Center:
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

Sample C Code

   HANDLE hInst;

   hInst = LoadLibrary(lpCmdLine);
   if (hInst > 32)
   {
      MessageBox(0,"Success: FLL can load","",0);
      FreeLibrary(hInst);
      return TRUE;
   }
   else
   {
      MessageBox(0,"Failure: file is invalid","",0);
      return FALSE;
   }
				

Modification Type:MinorLast Reviewed:3/15/2005
Keywords:kbdownload kbfile kbinfo kbSample KB153525 kbAudDeveloper