Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
929 B

#ifndef COMMONUTILS_H
#define COMMONUTILS_H
#include "stdafx.h"
#include <comdef.h>
#include <vector>
using namespace std;
class CommonUtils
{
public:
// converts the CIPAddressCtrl embedded ip into
// dotted decimal string representation.
static
_bstr_t
getCIPAddressCtrlString( CIPAddressCtrl& ip );
// fills the CIPAddressCtrl with the dotted decimal
// string representation.
static
void
fillCIPAddressCtrlString( CIPAddressCtrl& ip,
const _bstr_t& ipAdddress );
static
void
getVectorFromSafeArray( SAFEARRAY*& stringArray,
vector<_bstr_t>& strings );
static
void
getSafeArrayFromVector( const vector<_bstr_t>& strings,
SAFEARRAY*& stringArray
);
private:
enum
{
BUF_SIZE = 1000,
};
};
#endif