Posts

VB6: console get mouse position reading input buffer events -

can me writing code in vb6 reads input buffer events console window? important part mouse cursor position in cells , rows. i making program in vb6 uses console main gui (or should cui) , can't find example in vb code uses 'input buffer events'. this example code want it's in c++ , i'm using vb6: https://msdn.microsoft.com/en-us/library/ms685035(v=vs.85).aspx i have lot of trouble converting code because don't know c++. here other links gave me idea of how start: http://www.developer.com/net/vb/article.php/10926_1538861_6/writing-console-mode-applications-in-visual-basic.htm https://msdn.microsoft.com/en-us/library/windows/desktop/ms682073(v=vs.85).aspx http://www.xaprb.com/blog/2005/10/14/how-to-create-a-vb6-console-program/ http://blogs.msdn.com/b/oldnewthing/archive/2013/05/06/10416225.aspx http://microsoft.public.vb.winapi.narkive.com/avyxhxug/readconsoleinput-and-input-record http://www.pinvoke.net/default.aspx/kernel32/readconsoleinput...

How to properly search xml document using LINQ C# -

hey guys , gals having hard time time figuring out how search xml document. have been reading other forms crazy today can't seem understand it. hopeing give me little more detailed information on how correct way , why using linq. here xml file. <?xml version="1.0" encoding="utf-8"?> <body> <customers> <client> <firstname value="someguy" /> <lastname value="test" /> <phonenumber value="541555555" /> <address value="55 nowhere" /> <city value="sometown" /> <state value="somestate" /> </client> </customers> </body> what tyring accomplish return of values of each element matches name of customer. here code. ienumerable<xelement> test = doc.root.descendants() .where(nodename => nodename.name == "client" && nodename....

python - How to make a class iterable, but not have the iterator modified if you modify the class? -

i new python , coding in general, i'm lost. have coded "node" class (shown below @ bottom) instantiates binary search tree , couple of methods insert(), , elements() (which returns list of elements inorder transversing tree). supposed make class iterable: "iter__(self) should return nodeiterator, returns elements tree in sorted order. modifying tree should not modify existing iterators." i'm trying inserting code class right now: def __iter__(self): x=self.copy() x.i=0 return x def next(self): lst=x.elements() #??? no idea here. i defined x=self.copy() try cover fact modifying tree shouldn't modify iterator, don't know if right idea. here node class decorator used in 1 of methods: def depth(old_f): ''' write decorator overrides standard behavior of function returns true or false , instead returns 0 false or n number of recursive calls needed return true. ''' def new_f(*args): res =...

ios - Cannot find protocol declaration for 'WCSessionDelegate' -

i new ios development. created swift class follows: import watchconnectivity; import healthkit; @objc class blah : nsobject, wcsessiondelegate { ... } i need @objc use class objective-c (that exists). problem when compiler creates bridge [productname]-swift.h, complains cannot find wcsessiondelegate. exact error: cannot find protocol declaration 'wcsessiondelegate'; did mean 'nsurlsessiondelegate'? swift_class("_ttc8test8blah") @interface blah: nsobject <wcsessiondelegate> instead of implementing delegate, if change following, works. @objc class blah : nsobject { ... func setsessiondelegate(delegate:wcsessiondelegate) -> blah { self.mdelegate = delegate; return(self) } } i prefer former way. how resolve compilation error? thanks it looks [productname]-swift.h file adds include if mosules supported: #if defined(__has_feature) && __has_feature(modules) @import objectivec; @import watchconnectivity; @...

ImageMagick with Grails -

i want use imagemagick in grails application. using following dependencies in buildconfig.groovy compile('jmagick:jmagick:6.6.9') compile('org.im4java:im4java:1.2.0') however when try , run error: org.im4java.core.commandexception: java.io.ioexception: cannot run program "convert": error=2, no such file or directory. how use imagemagick or jmagick grails without installing directly, missing dependencies? jmagick , im4java take 2 different approaches using imagemagick. in short, jmagick uses java ini access imagemagick api , im4java calls imagemagick tools. in other words, jmagick bundles imagemagick while im4java not. know, error due imagemagick either not being installed or not being in environment path. im4java the 2 don't go together. example, cannot use im4java call out jmagick in order avoid installing imagemagick on computer hosting grails app. use im4java need install imagemagick. jmagick because jmagick partly implemen...

ios - Issues with UIPickerView inside a StackView -

i'm running problem size of pickers when put them inside of stack view. pickers change size default size when put stack view. not when not placed stack view just add height , width constraints picker before add stackview , should solve problem.

javascript - Are HTA files a poor choice for GUI? -

i've read few posts state microsoft stopping support hta files or something, leads me question choice of using .hta files project i'm working on. the htas being used contain simple javascript, css , html code. actual "engine" of software i'm creating created using commercial software. htas provide pretty front-end users. what limitations of doing so? there better alternative or ok next 5+ years? i htas since allow me design gui using css/html... , add simple scripts (java/jquery) needed. thanks feedback. the basic limitations of continued use if microsoft stops supporting them lack cross platform support. found following article , subsequent comments useful http://clintberry.com/2013/html5-apps-desktop-2013/ .