| |
 |
SWAPI_GetMaxContinentID
This function retrieves the maximum possible value of the continent ID.
Syntax
| Microsoft Visual C++ |
| UCHAR __stdcall SWAPI_GetMaxContinentID(); |
|
| Borland Delphi |
| function SWAPI_GetMaxContinentID: Byte; stdcall; |
|
| Microsoft Visual Basic |
| Declare Function SWAPI_GetMaxContinentID Lib "swapimap.dll" () As Byte |
|
Parameters
This function has no parameters.
Return Value
The return value is the maximum possible value of the continent ID.
Sample Code
| Microsoft Visual C++ |
UCHAR ContinentID; CString ContinentName; LPSTR pStr;
for (ContinentID = GetMinContinentID(); ContinentID < GetMaxContinentID(); ContinentID++) { pStr = ContinentName.GetBuffer(13); pStr[SWAPI_ContinentIDToContinentName(ContinentID, pStr, 13)] = 0; ContinentName.ReleaseBuffer(); m_cContinentList.AddString(ContinentName); } |
|
| Borland Delphi |
var ContinentID: Byte; ContinentName: string; begin for ContinentID := GetMinContinentID to GetMaxContinentID do begin SetLength(ContinentName, 13); SetLength(ContinentName, SWAPI_ContinentIDToContinentName( ContinentID, Pointer(ContinentName), 13)); Memo1.Lines.Add(ContinentName); end; end; |
|
| Microsoft Visual Basic |
Dim ContinentID As Byte Dim ContinentName As String Dim res As String * 13
List1.Clear For ContinentID = GetMinContinentID() To GetMaxContinentID() i = SWAPI_ContinentIDToContinentName(ContinentID, res, 13) ContinentName = Mid$(res, 1, i) List1.AddItem ContinentName Next |
|
Defined In
| Microsoft Visual C++ |
| SWAPIMap.h, SWAPIMap.cpp |
|
| Borland Delphi |
| SWAPIMap.pas |
|
| Microsoft Visual Basic |
| SWAPIMap.bas |
|
See Also
SWAPI_GetMinContinentID
Copyright © 2006-2008, TamoSoft
|