Click here to Skip to main content
15,902,872 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dual interface Pin
George_George16-Sep-08 19:56
George_George16-Sep-08 19:56 
GeneralRe: dual interface Pin
Scott Holt18-Sep-08 2:24
Scott Holt18-Sep-08 2:24 
GeneralRe: dual interface Pin
George_George18-Sep-08 21:27
George_George18-Sep-08 21:27 
GeneralRe: dual interface Pin
Scott Holt22-Sep-08 2:25
Scott Holt22-Sep-08 2:25 
GeneralRe: dual interface Pin
George_George22-Sep-08 19:40
George_George22-Sep-08 19:40 
GeneralRe: dual interface Pin
Scott Holt24-Sep-08 0:40
Scott Holt24-Sep-08 0:40 
GeneralRe: dual interface Pin
George_George24-Sep-08 0:46
George_George24-Sep-08 0:46 
GeneralRe: dual interface Pin
Scott Holt25-Sep-08 0:13
Scott Holt25-Sep-08 0:13 
In C/C++, a long integer is a four-byte integer value. If you study the valid values for the 'vt' member of a VARIANT (type of variant), you'll notice that the values for four-byte integer are 'VT_I4' (signed four-byte integer) and 'VT_UI4' (unsigned four-byte integer). I'm not sure how VB and C# let you set the variant type, but C++ has a '_variant_t' class that wraps VARIANT and has assignment operators that set it for you, or you can simply set it yourself.

In C++, a long integer variable is declared as:

long lMyVariable = 0 ;

In IDL, you use the "long" keyword, as in these examples:

[id(65), helpstring("Load an account from the database for a specific EMS/ambulance run.")]
HRESULT LoadForRun(
[in] long lAmbRunID,
[out] long* plAccountID) ;

[id(43), helpstring("Get the first condition indicator for an EMS/ambulance run.")]
HRESULT GetFirstConditionIndicator(
[out, string] BSTR* pbstrConditionIndicator,
[out] long* plConditionIndicatorID) ;

Notice that the parameters are of type "BSTR" and "long" (the asterisk, of course, means that a given parameter is actually a pointer to a BSTR or a long).

Scott
Smile | :)
GeneralRe: dual interface Pin
George_George27-Sep-08 0:16
George_George27-Sep-08 0:16 
GeneralRe: dual interface Pin
George_George11-Sep-08 23:50
George_George11-Sep-08 23:50 
GeneralRe: dual interface Pin
CPallini12-Sep-08 0:56
mveCPallini12-Sep-08 0:56 
GeneralRe: dual interface Pin
George_George12-Sep-08 19:49
George_George12-Sep-08 19:49 
GeneralRe: dual interface Pin
George_George12-Sep-08 19:58
George_George12-Sep-08 19:58 
GeneralRe: dual interface Pin
CPallini12-Sep-08 21:44
mveCPallini12-Sep-08 21:44 
GeneralRe: dual interface Pin
George_George14-Sep-08 0:10
George_George14-Sep-08 0:10 
GeneralRe: dual interface Pin
CPallini12-Sep-08 21:53
mveCPallini12-Sep-08 21:53 
GeneralRe: dual interface Pin
George_George14-Sep-08 0:12
George_George14-Sep-08 0:12 
GeneralRe: dual interface Pin
CPallini14-Sep-08 0:34
mveCPallini14-Sep-08 0:34 
GeneralRe: dual interface Pin
George_George14-Sep-08 2:00
George_George14-Sep-08 2:00 
GeneralRe: dual interface Pin
CPallini14-Sep-08 2:27
mveCPallini14-Sep-08 2:27 
GeneralRe: dual interface Pin
George_George14-Sep-08 2:41
George_George14-Sep-08 2:41 
GeneralRe: dual interface Pin
CPallini14-Sep-08 3:15
mveCPallini14-Sep-08 3:15 
GeneralRe: dual interface Pin
George_George15-Sep-08 4:09
George_George15-Sep-08 4:09 
GeneralRe: dual interface Pin
CPallini15-Sep-08 4:38
mveCPallini15-Sep-08 4:38 
GeneralRe: dual interface Pin
George_George15-Sep-08 4:43
George_George15-Sep-08 4:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.