Microsoft KB Archive/126727: Difference between revisions
(importing KB archive) |
m (Text replacement - "&" to "&") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
{| | {| | ||
|width="100%"| | |width="100%"| | ||
= FAQ: APIs & | = FAQ: APIs & DLLs in Visual Basic 3.0 = | ||
'''ID: Q126727''' | '''ID: Q126727''' | ||
Line 18: | Line 18: | ||
----- | ----- | ||
This article covers some of the most Frequently Asked Questions (FAQ) about non-technical issues for Microsoft Visual Basic for Windows. You can find this and other FAQ articles by querying on the keyword | This article covers some of the most Frequently Asked Questions (FAQ) about non-technical issues for Microsoft Visual Basic for Windows. You can find this and other FAQ articles by querying on the keyword "FAQ." You can find additional general references in the Microsoft Knowledge Base by searching on "article list."<br /> | ||
<br /> | <br /> | ||
Most of the following information can be found in Chapter 24 | Most of the following information can be found in Chapter 24 "Calling Procedures in DLLs" of the "Professional Features Book 2."<br /> | ||
<ol> | <ol> | ||
Line 38: | Line 38: | ||
For additional information, please see the following article(s) in the Microsoft Knowledge Base:<br /> | For additional information, please see the following article(s) in the Microsoft Knowledge Base:<br /> | ||
<br /> | <br /> | ||
'''[[../ | '''[[../94960|Q94960]]''' : How to Pass Numeric Variables to a C DLL</li> | ||
<li><p>Q. How do I pass a User Defined Type or Structure?<br /> | <li><p>Q. How do I pass a User Defined Type or Structure?<br /> | ||
<br /> | <br /> | ||
Line 47: | Line 47: | ||
End Type | End Type | ||
Declare Function PassUDT Lib | Declare Function PassUDT Lib "MyLib.DLL" (pt As POINTAPI) As Integer | ||
you could call the function passing the variable as follows: | you could call the function passing the variable as follows: | ||
Line 56: | Line 56: | ||
ret% = PassUDT(CoOrdinate) | ret% = PassUDT(CoOrdinate) | ||
</pre></li> | </pre></li> | ||
<li>Q. I keep getting | <li>Q. I keep getting "Error Loading DLL" when I try can call my function. All the declarations are set up correctly; what else could be going wrong?<br /> | ||
<br /> | <br /> | ||
A. If you created the DLL, check your .DEF file and make sure the LIBRARY name is the same as the filename.<br /> | A. If you created the DLL, check your .DEF file and make sure the LIBRARY name is the same as the filename.<br /> | ||
Line 62: | Line 62: | ||
For additional information, please see the following article(s) in the Microsoft Knowledge Base:<br /> | For additional information, please see the following article(s) in the Microsoft Knowledge Base:<br /> | ||
<br /> | <br /> | ||
'''[[../ | '''[[../98309|Q98309]]''' : 'Error in loading DLL' When LIBRARY Name Not Same as Filename</li> | ||
<li>Q. How do I manipulate INI files?<br /> | <li>Q. How do I manipulate INI files?<br /> | ||
<br /> | <br /> | ||
Line 69: | Line 69: | ||
For additional information, please see the following articles in the Microsoft Knowledge Base:<br /> | For additional information, please see the following articles in the Microsoft Knowledge Base:<br /> | ||
<br /> | <br /> | ||
'''[[../ | '''[[../75639|Q75639]]''' : How to Access Windows Initialization Files Within Visual Basic<br /> | ||
<br /> | <br /> | ||
'''[[../ | '''[[../115328|Q115328]]''' : DOCERR: Write*ProfileString Declaration Incorrect in API<br /> | ||
<br /> | <br /> | ||
'''[[../ | '''[[../110826|Q110826]]''' : DOCERR: GetPrivateProfileString Declaration Incorrect in API</li> | ||
<li>Q. How can I find out more about calling the windows API?<br /> | <li>Q. How can I find out more about calling the windows API?<br /> | ||
<br /> | <br /> | ||
A. There are two useful help files shipped with Visual Basic, Professional Edition. The Windows SDK Help file discusses Windows API general topics, functions, structures and messages. Its companion help file, Windows 3.1 API Help, offers the Visual Basic declare statements, type declarations and global constants used to access much of the Windows API. In addition, there are the following resources:<br /> | A. There are two useful help files shipped with Visual Basic, Professional Edition. The Windows SDK Help file discusses Windows API general topics, functions, structures and messages. Its companion help file, Windows 3.1 API Help, offers the Visual Basic declare statements, type declarations and global constants used to access much of the Windows API. In addition, there are the following resources:<br /> | ||
<br /> | <br /> | ||
Chapter 24 (Call Procedures in DLLs) of the | Chapter 24 (Call Procedures in DLLs) of the "Programmer's Guide" is a good place to start looking at DLL and VB issues.<br /> | ||
<br /> | <br /> | ||
For additional information, please see the following article(s) in the Microsoft Knowledge Base:<br /> | For additional information, please see the following article(s) in the Microsoft Knowledge Base:<br /> | ||
<br /> | <br /> | ||
'''[[../ | '''[[../106553|Q106553]]''' : How to write C DLL's and Call Them from Visual Basic<br /> | ||
<br /> | <br /> | ||
'''[[../ | '''[[../110219|Q110219]]''' : LONG: How to Call windows API from VB - General Guidelines<br /> | ||
<br /> | <br /> | ||
'''[[../ | '''[[../109290|Q109290]]''' : Popular Windows API Functions Used from Visual Basic 3.0</li> | ||
<li>Q. How can I create a transparent bitmap, or layer multiple bitmaps on top of each other?<br /> | <li>Q. How can I create a transparent bitmap, or layer multiple bitmaps on top of each other?<br /> | ||
<br /> | <br /> | ||
Line 93: | Line 93: | ||
For additional information, please see the following article(s) in the Microsoft Knowledge Base:<br /> | For additional information, please see the following article(s) in the Microsoft Knowledge Base:<br /> | ||
<br /> | <br /> | ||
'''[[../ | '''[[../94961|Q94961]]''' : How to Create a Transparent Bitmap Using Visual Basic</li></ol> | ||
Additional query words: 3.00 gpf gp-fault general protection FAQ | Additional query words: 3.00 gpf gp-fault general protection FAQ |
Latest revision as of 12:28, 21 July 2020
The information in this article applies to:
This article covers some of the most Frequently Asked Questions (FAQ) about non-technical issues for Microsoft Visual Basic for Windows. You can find this and other FAQ articles by querying on the keyword "FAQ." You can find additional general references in the Microsoft Knowledge Base by searching on "article list."
Additional query words: 3.00 gpf gp-fault general protection FAQ Keywords : |
Last Reviewed: June 11, 1999 |