Posts

delphi - Is there a way to get a VCL Control's name through the windows API? -

मेरे पास एक वीसीएल नियंत्रण का एचडब्ल्यूड है जो कि किसी अन्य प्रक्रिया 'विंडो पर स्थित है क्या खिड़कियों एपीआई के माध्यम से उस नियंत्रण का अपना वीसीएल नाम ( TControl.Name सम्पत्ति) प्राप्त करने का कोई तरीका है? मुझे उस नाम की आवश्यकता है क्योंकि उस खिड़की पर कई टीडीटी हैं और मुझे इसके लिए एक WM_SETTEXT संदेश भेजने के लिए एक की पहचान करना होगा। दोनों अनुप्रयोगों के साथ बनाया गया था डेल्फी 2010। डेल्फी में निर्मित फ़ंक्शन है FindControl () जो देता है निर्दिष्ट एचडब्ल्यूडब्ल्यूड के TWINControl लेकिन यह वीसीएल के एक ही उदाहरण के लिए काम करता है मुझे लगता है कि आपको इसकी जांच करनी चाहिए। आपके पास TWinControl के सूचक होने के बाद, इसका नाम (स्ट्रिंग) +8 ऑफसेट पर स्थित है आप इसे पढ़ने के लिए ReadProcessMemory का प्रयास कर सकते हैं। संपादित करें: (अंत में यह मिल गया है: डी) GetWinControlName फ़ंक्शन कॉल करें // पॉइंटर को प्राप्त करने के लिए यहां की मुख्य समस्या है FindControl TWINControl एक अन्य प्रक्रिया फ़ंक्शन में GetWinControl (Wnd: HWND; आउट प्रोसेसआईडी: थेंडल...

python - sort of Natural language processing -

I have a word that says "racing". I want to know all my formats, for example adjective actions etc. Race racer race etc. Is there a Python Library that can help me? If you are interested in matching in these strings, then I recommend This allows you to easily mark the stars within a certain tolerance and match the token equivalent. For example, 'Race' and 'Racer' will have a higher matching percentage of tokens and they can be considered a match. P> As far as extrapolating the different forms of a word, I am afraid that I have never seen any canned, although it can help you towards your goal very well And perhaps you can start your own writing to the right place. I hope this helps

regex - Python match string if it does not start with X -

I want to find a file named "AcroTray.exe" on my disk. The program should print a warning if the file is located in any directory other than "distiller" I used the following syntax to match the negative (? ! Distillr) The problem is that though I "!" It always creates a match. I tried to understand the problem of using the eyewitness, but failed. This is what I tried to do: import re filePath = "C: \ Distillr \ AcroTray.exe" If re.search (r '(!! Distillr) \\ AcroTray \ .exe 'FilePath): Print "Match" This prints a match What's wrong with my regex? I would like to get a match: C: \ SomeDir \ AcroTray.exe but not: c: \ distillr \ acroTray.exe negative Look-up ( (? & Lt ;! ... ), do not look at the negatives: if re.search ( R '(? & Lt;! Distillr) \\ AcroTray \ .exe, filePath): This mail: in [45] ]: Re-search (R '(? & Lt ;! Distiller) \\ AcroTray \ .exe', r...

libsndfile - Error using WASAPI with PortAudio on Win7 -

I am trying to use PortAudio and libsndfile to run WAV files in unique mode on my Windows 7 machine , Error number-9984 "Incompatible Host API Specific Stream Info". I have filled the PaWasapiStreamInfo struct in such a way: Structure Pavaspeptream InfoIpiaInfo; WasapiInfo.size = sizeof (PaWasapiStreamInfo); WasapiInfo.hostApiType = paWASAPI; WasapiInfo.version = 1; WasapiInfo.flags = paWinWasapiExclusive; WasapiInfo.channelMask = NULL; WasapiInfo.hostProcessorOutput = NULL; WasapiInfo.hostProcessorInput = NULL; WasapiInfo.threadPriority = eThreadPriorityProAudio; Then specify the hostApiSpecificStreamInfo parameter and open the stream via Pa_OpenStream like this: / * stereo or mono * / out_prim.ChannelCount = sfinfo .channels; Out_param.sampleFormat = paInt16; Out_param.SuggestedLatency = _GetDeviceInfo (out_param.device) - & gt; Default standard output latency; Out_param.hostApiSpecificStreamInfo = (and wasapiInfo); Err = Pa_OpenStream (& amp; stream...

antlr - AST rewrite rule for OR lexer expressions -

मेरे पास निम्न एएनटीएलआर नियम है: प्रक्रिया: ('int' | char ') पहचान' ('आर्ग्स') 'शरीर - & gt; ^ (प्रोसीड्योर आईडीेंट (आर्ग्स) * बॉडी); मैं एएसटी में ('int' | 'char') भाग पर कब्जा करना चाहता हूं I जैसा कि आप देख सकते हैं, दाहिने हाथ पर यह दिखाई नहीं देता है, लेकिन मुझे यकीन नहीं है कि चुने गए 'int' या 'चार' के रूप में कैसे दिखें? एएसटी मुझे 'int' या ' char' भाग को प्रक्रिया के अंतर्गत रूट के तहत पेड़ में रखना चाहिए, लेकिन से पहले the IDENT । आप जोड़ी को लेबल कर सकते हैं, और तब फिर से लिखना में लेबल का संदर्भ लें: प्रक्रिया: primType = ('int' | 'char') आईडीएनटी '(' आर्ग्स ')' बॉडी - & gt; ^ (प्रक्रमित $ प्राइमटाइप आईडीेंट आर्ग्स बॉडी);

arrays - Php compare interval numbers -

मेरे पास यह है: $ values ​​= array ("10", "30" , "40") $ real_value = 22; मुझे यह तुलना करने की ज़रूरत है अगर यह संख्या $ मूल्यों की सरणी सूची के बीच अधिकतम या न्यूनतम है, उदाहरण के लिए इसे प्राप्त करें, संख्या 22 अधिक से अधिक 10 और अधिक 30 और 30 शामिल करें और अंतराल प्राप्त करें मैं इसे करने की कोशिश करता हूं लेकिन अंतराल पर कोई सीमा नहीं के लिए ($ i = 0; $ i & lt; गिनती ($ मान); $ i ++ ) {यदि ($ real_value & gt; $ मान [$ i]) {प्रिंट ""। $ मान। ""; }} मुझे उदाहरण 22 के लिए मूल्य के रूप में वास्तविक realvalval 30 की आवश्यकता है क्योंकि 22 की तुलना में 10 से अधिक है, लेकिन 30 या 50 से अधिक नहीं और अंतराल यह 10 के बीच है मुझे नहीं पता कि यह कैसे हो मैं समुदाय से कुछ विचार की आशा करता हूं ($ $ i ++) {if ($ real_value & gt; $ मान [$ i]) के लिए

sql - how to do inner join and right outer join in the same query -

मैं इन 3 टेबल है: FeatureTbl (FeatureId (पी), FeatureName) ParameterTbl (ParameterId (पी), ParameterName) Map_Parameter_To_Feature (mapId (पी), FeatureId (FK), ParameterId (FK)) मैं LINQ के लिए निम्न एसक्यूएल परिवर्तित करना चाहते हैं: का चयन करें FeatureTbl.FeatureId, FeatureTbl.FeatureName, Map_Parameter_To_Feature.ParameterId, ParameterTbl.ParameterName ParameterTbl भीतर से शामिल हों Map_Parameter_To_Feature पर ParameterTbl.ParameterId = Map_Parameter_To_Feature.ParameterId सही बाहरी शामिल हों FeatureTbl पर Map_Parameter_To_Feature.FeatureId = FeatureTbl.FeatureId इसके बाद के संस्करण क्वेरी निम्नलिखित परिणाम देता है FeatureId, FeatureName, ParameterId, ParameterName 1 करतब एक शून्य शून्य 2 करतब बी 10 परम एक्स 3 करतब बी 10 परम Y 4 करतब सी शून्य शून्य मैं निम्नलिखित LINQ लिखा: (context.ParameterTbls में पी से mp2f context.Map_Parameter_To_Feature में p.ParameterId पर शामिल होने के बराबर होती है mp2f.ParameterId mp2f.FeatureId पर context.FeatureTbls में च मे...