Posts

excel - VBA Break Command bound to a key -

i'm looking disable break (or pause) key in vba, have come against 2 walls. how tell vba function key being pressed what on.key {name} interrupt? my workbook forces users have macros enabled setting every sheet xlveryhidden when workbook closed, , setting them visible when opened (and various other bits centered around logging in areas of workbook), meaning vba has used. however, @ points in "workbook_open" routine, if interrupts program, leaves login access vunerable , not want this. i want able bind interrupt command key combination desire, know is, leaving break key disabled. thanks in advance you can via command application.enablecancelkey = xldisabled . this link explains pretty well.

iOS Localization Doesn't Work -

i'm trying localise app, added language want localize in main project, , changed string in new .string files of main storyboard. however, when load app in emulator configured foreign language - string not change. i did clean , rebuild, didn't work. any suggestions on i'm missing? from answer, can't see did wrong. i recommend use tutorial , check out if made steps. check out tutorial: localization tutorial ios raywenderlich.com

java - How to set directory in antcallbacktask? -

in ant task in ant, have property named 'dir' can specify base directory used in called target. looking similar in 'ant callback' task. how can set directory in ant callback <antcall> , <antcallback> tasks can used call other targets within same file. <antcallback> has attributes of <antcall> except antcallback allows properties of called target accessed in calling target. more details, refer antcall , antcallback however, <ant> task used call target in ant file. hence, dir attribute comes significance.

javascript - jQuery Accordion Menu - Keep Active Menu open -

i can not keep menu opened , having problem follow link of menu instead to slide down. slide down should done right floated counter. the code keep opened @ current page $(document).ready( function() { $('#cssmenu ul li.has-sub').parent().show(); $('#cssmenu ul li.has-sub ul').show(); $('#cssmenu li.has-sub ul').show(); }); my example code: http://jsfiddle.net/5abcc/ thanks! add open class active ul like, html <li class='has-sub open'><a href='javascript:;'><span>company</span></a> <ul> <li><a href='javascript:;'><span>about</span></a></li> <li class='last'><a href='javascript:;'><span>location</span></a></li> </ul> </li> script $(document).ready( function() { $('#cssmenu li.has-sub.active ul').show(); }); to add click event on span t...

php - Warning: mysqli_stmt::bind_param(): Number of variables doesn't match number of parameters in prepared statement in C:\User..\ on 148 -

hello i'm inserting new column collegename, branch, , gender it's giving me error... warning: mysqli_stmt::bind_param(): number of variables doesn't match number of parameters in prepared statement in c:\users\raj\phpstormprojects\usercake\models \class.newuser.php on line 148 what's mean? actually inserting new column database college , branch , year , , gender goes when register myself it's shows message registration submitted shows error message wells as?? i'm supposed wrong please help? here source code: <?php class user { public $user_active = 0; private $clean_email; public $status = false; private $clean_password; private $username; private $displayname; public $sql_failure = false; public $mail_failure = false; public $email_taken = false; public $username_taken = false; public $displayname_taken = false; public $activation_token = 0; public $success = null; function __construct...

encryption - how do I know number of padded space in ciphertext -

is way find out how many padded space in ciphertext? using rjindaal 256 bit encryption. problem: on decryption, getting error saying "padding invalid , cannot removed". using same initialization vector , encryption keys both encryption , decryption.

c++ - Loading WAV file with XAudio2 -

i'm writing program can load , play wav file, i'm using xaudio2 library, started writing msdn.microsoft.com, , have copied code msdn , still not work. don't know problem. when try play sound createsourcevoice have xaudio2_e_invalid_call error. i'll grateful help. code: my temporary main: int _tmain(int argc, _tchar* argv[]) { tchar * strfilename = _text("chimes.wav"); //creating instance od xaufio2 engine ixaudio2* pxaudio2; ixaudio2masteringvoice* pmasteringvoice; ixaudio2sourcevoice* psourcevoice; hresult hr; if ( failed( hr = xaudio2create( &pxaudio2, 0, xaudio2_default_processor ) ) ){ cout << "xaudio2create failed!\n"; } waveformatextensible wfx = { 0 }; xaudio2_buffer buffer = { 0 }; //open audio file createfile handle hfile = createfile( strfilename, generic_read, file_share_read, null, open_existing, 0, null ); dword dwchunkposition = 0; dword dwchunksize; if (invalid_handle_value ...