本文整理汇总了C++中chs函数的典型用法代码示例。如果您正苦于以下问题:C++ chs函数的具体用法?C++ chs怎么用?C++ chs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了chs函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: chs
bool wxCheckListBox::Create(wxWindow *parent, wxWindowID id,
const wxPoint& pos, const wxSize& size,
const wxArrayString& choices,
long style,
const wxValidator& validator, const wxString& name)
{
wxCArrayString chs(choices);
return Create(parent, id, pos, size, chs.GetCount(), chs.GetStrings(),
style, validator, name);
}
开发者ID:0ryuO,项目名称:dolphin-avsync,代码行数:10,代码来源:checklst.cpp
示例2: chs
bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
const wxPoint& pos, const wxSize& size,
const wxArrayString& choices,
int majorDim, long style,
const wxValidator& val, const wxString& name)
{
wxCArrayString chs(choices);
return Create(parent, id, title, pos, size, chs.GetCount(),
chs.GetStrings(), majorDim, style, val, name);
}
开发者ID:ExperimentationBox,项目名称:Edenite,代码行数:10,代码来源:radiobox.cpp
示例3: chs
bool wxMultiChoiceDialog::Create( wxWindow *parent,
const wxString& message,
const wxString& caption,
const wxArrayString& choices,
long style,
const wxPoint& pos )
{
wxCArrayString chs(choices);
return Create( parent, message, caption, chs.GetCount(),
chs.GetStrings(), style, pos );
}
开发者ID:vdm113,项目名称:wxWidgets-ICC-patch,代码行数:11,代码来源:choicdgg.cpp
示例4: chs
wxCheckListBox::wxCheckListBox ( wxWindow* pParent,
wxWindowID vId,
const wxPoint& rPos,
const wxSize& rSize,
const wxArrayString& asChoices,
long lStyle,
const wxValidator& rVal,
const wxString& rsName )
:wxCheckListBoxBase()
{
wxCArrayString chs(asChoices);
Create( pParent, vId, rPos, rSize, chs.GetCount(), chs.GetStrings(),
lStyle | wxLB_OWNERDRAW, rVal, rsName );
} // end of wxCheckListBox::wxCheckListBox
开发者ID:esrrhs,项目名称:fuck-music-player,代码行数:14,代码来源:checklst.cpp
示例5: chs
bool wxChoice::Create(
wxWindow* pParent
, wxWindowID vId
, const wxPoint& rPos
, const wxSize& rSize
, const wxArrayString& asChoices
, long lStyle
, const wxValidator& rValidator
, const wxString& rsName
)
{
wxCArrayString chs(asChoices);
return Create(pParent, vId, rPos, rSize, chs.GetCount(), chs.GetStrings(),
lStyle, rValidator, rsName);
}
开发者ID:CustomCardsOnline,项目名称:wxWidgets,代码行数:16,代码来源:choice.cpp
示例6: result
void
BucketHandler::performSetCurrentState(BucketId bucketId,
storage::spi::BucketInfo::ActiveState newState,
IGenericResultHandler *resultHandler)
{
if (!_nodeUp) {
Result result(Result::TRANSIENT_ERROR,
"Cannot set bucket active state when node is down");
resultHandler->handle(result);
return;
}
bool active = (newState == storage::spi::BucketInfo::ACTIVE);
LOG(debug, "performSetCurrentState(%s, %s)",
bucketId.toString().c_str(), (active ? "ACTIVE" : "NOT_ACTIVE"));
_ready->setBucketState(bucketId, active);
if (!_changedHandlers.empty()) {
typedef std::vector<IBucketStateChangedHandler *> Chv;
Chv &chs(_changedHandlers);
for (Chv::const_iterator itr = chs.begin(); itr != chs.end(); ++itr) {
(*itr)->notifyBucketStateChanged(bucketId, newState);
}
}
resultHandler->handle(Result());
}
开发者ID:songhtdo,项目名称:vespa,代码行数:24,代码来源:buckethandler.cpp
示例7: main
int main (int argc, char *argv[])
{
INIT_SECURITY_INTERFACE pInitSecurityInterface;
// set buffer width of console
setw (300);
puts ("\n [ cms v0.1 - Copyleft 2015 (x) @Odzhan\n");
// set up default values
args.address = NULL;
args.ai_family = AF_INET;
args.port = DEFAULT_PORT;
args.port_nbr = atoi(args.port);
pInitSecurityInterface = (INIT_SECURITY_INTERFACE)GetProcAddress(LoadLibrary("Secur32"), "InitSecurityInterfaceA" );
if (pInitSecurityInterface==NULL) printf ("didn't resolve");
sspi = pInitSecurityInterface();
// process command line
parse_args(argc, argv);
// resolve address and open socket
if (open_tcp ())
{
start_handler ();
// create credentials
if (create_creds()==SEC_E_OK)
{
// connect to server
if (connect (s, ai_addr, ai_addrlen) != SOCKET_ERROR) {
// perform the handshake
if (chs () == SEC_E_OK) {
printf (" [ connected\n\n");
secure_info();
ss=sspi->QueryContextAttributes (&hContext, SECPKG_ATTR_STREAM_SIZES, &Sizes );
cbBufferLen = Sizes.cbHeader + Sizes.cbMaximumMessage + Sizes.cbTrailer;
pbBufferIn = LocalAlloc(LMEM_FIXED, cbBufferLen);
pbBufferOut = LocalAlloc(LMEM_FIXED, cbBufferLen);
pbDataIn=pbBufferIn + Sizes.cbHeader;
pbDataOut=pbBufferOut + Sizes.cbHeader;
cbBufferLen = Sizes.cbMaximumMessage;
printf (" [ running cmd\n");
cmd();
} else {
printf (" [ handshake failed\n");
}
} else {
printf (" [ unable to connect\n");
}
} else {
printf (" [ error creating credentials\n");
}
stop_handler ();
close_tcp();
}
return 0;
}
开发者ID:MavenRain,项目名称:sslcmd,代码行数:61,代码来源:cms.c
注:本文中的chs函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论