Posts

visual studio 2012 - Compile error in a short OpenGL code: 'PFNGLBINDPROGRAMARB' : undeclared identifier -

संक्षिप्त कोड इस प्रकार है: #include & lt; windows.h & gt; # शामिल करें & lt; GL / gl.h & gt; # शामिल करें & lt; जीएल / glext.h & gt; Int main (int argc, char ** argv) {PFNGLBINDPROGRAMARBPROC glBindProgramARB; glBindProgramARB = (PFNGLBINDPROGRAMARB) wglGetProcAddress ( "glBindProgramARB"); } जब मैं संकलित करता हूं, तो मुझे एक संकलन त्रुटि मिलती है: त्रुटि C2065: 'पीएफएनजीएलबीआईएनआईपीएनआरपीआरएएमआरबी': अघोषित पहचानकर्ता। मैंने जांच की है हेडर फाइल glext.h पर PFNGLBINDPROGRAMARBPROC इसमें है (रेखा 2922)। मुझे इस बारे में पता नहीं है कि मदद के लिए यहाँ मेरा प्रश्न पोस्ट करें। मैं विज़ुअल स्टूडियो 2012 का उपयोग कर रहा हूं और मैंने शामिल निर्देशिका सेटिंग्स को चेक किया है अन्य सिस्टम जानकारी: विंडोज 7 64 बिट, नवीनतम चालक के साथ एनवीडिया गेलफ़ोर्ड कार्ड स्थापित। यदि आपको किसी भी अन्य संबंधित जानकारी की आवश्यकता है तो कृपया पूछें। यह एक संकलन त्रुटि है, लिंक त्रुटि नहीं है, इसलिए उसका एक्सटेंशन फ़ंक्शन glBindProgramARB (यह मेरे सि...

javascript - Prevent jQuery slidedown menu from pushing down elements in other columns? -

My current responsibility is slide down the Site menu. I intend to do this, because the window grows so that the objects can be arranged in columns (1,2 and 3). It's working a lot, but when I bow down one element in the first column, the elements of the first column also go down. Sometimes the elements jump from one column to the other. I just need a general idea of ​​what to do? Menu items are not automatically menu ready Give your column the relative position with some padding and your When the menu is full, you can position your menu at the top of the text in the column, and when you slide toggle () .col {padding: 20px; Status: Relative; } Menu {status: absolute; Top: 0; } To show this action, is

xml - Xpath in mule anypoint studio -

I need to use an option router in the root message based on a specific field value in the input XML. Also using the latest version of the studio I am not able to compare XPath and compare prices in a specific area and then converting the route accordingly. How did someone compare me to the capture field in XPSath to UPS? Here is the sample XML file: I need to retrieve the Career field from the XML given above. I am # [xpath ('/ deliver-order / tracking-data / carrier' == 'UPS'] Like I'm using xpath expressiosn in the router me gt; ; got the value of it and was printed from the logger to the console ... also the message was rooted according to the field value .. Here I did what I did: - I xml File and my Valid: "Context": & lt; file: connector name = "File_Global" AutoDelete = "true" Streaming = "true" Connection = "true" Doctor: name = "file" / File: Inbound-Endpoint ResponseTi...

Error returning a list of user-defined objects from a function in C++ -

पृष्ठभूमि मैंने एक वर्ग Str उस निर्देश के उद्देश्यों के लिए स्ट्रिंग ऑपरेशन की नकल करता है वर्ग Str सार में वर्णों की एक सरणी है। मैंने एक फ़ंक्शन makeList बनाया है जो एक Str ऑब्जेक्ट प्राप्त करता है, Str वस्तुओं का push_back का उपयोग करके एक सूची बनाता है और सूची लौटाता है। मैं आबंटक का उपयोग कर रहा हूं, लेकिन मैंने कड़ा कर दिया है मेमोरी प्रबंधन को बनाए गए पात्रों के लिए पर्याप्त मेमोरी आवंटित करना। समस्या संकलन, लिंक और रन-टाइम कोई त्रुटि उत्पन्न नहीं करता। सूची का उपयोग करके cout । समस्या यह है कि सूची में ऑब्जेक्ट में कचरा इनपुट पहले ~ 10 वर्णों को अधिलेखित करते हैं, जब मुख्य में देखे जाते हैं body। मैंने यह भी सत्यापित किया है कि Str मैं बना रहा हूँ डिफ़ॉल्ट डिस्ट्रक्टर के माध्यम से नष्ट हो रहा है। मैंने समस्या को दोहराने के लिए कोड की न्यूनतम राशि शामिल की है। गैर-वर्ग कोड: सूची से & lt; Str & gt; मेनलिस्ट (कॉन्स्ट स्ट्रल्स) {सूची & lt; str & gt; सेवानिवृत्त; ret.push_back (रों); Cout & lt; &...

java - What order do threads run (execute) after being submitted to ExecutorService? -

There is a better way of writing files to safeguard (in cases where files can not be all the files Or compared to syncing the file author in each thread) I read some threads similar to this topic, but they start focusing on a file in opposition to multiple files. Ex There are 20 threads that write (which means that it uses a method that creates the file author in the file and then files it with a try-hold, etc. Writes for); Let's write 10 files of thread, write 5 threads fileB, write 4 threads on fileC, and write 1 thread in D.D. By synchronizing the method, threads that want to be written in separate files, before proceeding with it, to wait for the previous thread to finish it, I think synchronizing the file author is very similar. Or am I wrong? If I have a separate thread thread (from the main application) that writes in a file, then do they execute in the order submitted to the executable service with 1 thread (run) Do you? In the main application, I will submit ...

assembly - ARM NEON my calculation result when there are negative numbers is incorrect -

I'm trying to calculate the use of neon in assembly ((200 * (53-255) / 255 ) + 255, which should be approximately 97% I have tested here on the Dual Core Cortex-A7 ARM CPU Tablet and the result is 243 which is not true. How do I apply this 97 should be done to get the correct result? d2 included 200.200.200.200.200.200.200.200 d4 included 255.255.255.255.255.255.255.255 d6 53,53 included, 53, 53,53,53,53,53 vsub.s8 D8, D6, D4 (53 - 255 results D8 = 54,54,54,54,54, 54,54) vmull.s8 q5, d8, d2 (54 * 200 results Q5 = 244,48,244,48,244,48,244,48,244,48,244,48) vshrn.s16 D12, divided by 255 result in D12 = 244,244,244,244,244,244,244,244) vadd.s8 d5, d4, d12 ( Last result d5 = 243,243,243,243,243,243,243,243) After 243 is absolutely correct. Alpha channel is an unsigned 8bit value, you should use u8 or u16 s8 and s16 . While for standard arithmetic, where the width is the same, it does not matter, it is a completely different story for multi-long running. A...

php - wp_insert_post auto schedule or post based on date -

& lt;? Php // आज की तिथि 2014-07-27 $ title = "title"; $ सामग्री = "सामग्री"; $ तिथि = "2014-07-30"; $ My_post = array ('post_title' = & gt; $ title, 'post_content' = & gt; $ content, 'post_status' = & gt; 'पोस्ट', 'पोस्ट_डेटा' = & gt; $ date, 'post_author' = & gt; 1) ; $ Post_id = wp_insert_post ($ my_post); ? & Gt; आज की तिथि (या पुराने दिन) और ऑटो शेड्यूल पोस्ट कब पोस्ट करें? ps: आज के लिए (या पुराने दिन) हो सकता है कि यह कोड सही तरीके से काम करे, लेकिन जब मैं कल या अगले दिन की तिथि (यदि संभव हो तो कृपया नमूना कोड दें) को ऑटो शेड्यूल के लिए कैसे करें अपडेट प्रश्न: मेरा क्या मतलब है कि कैसे wp_insert_post भविष्य की तारीख (अगले दिन / अगले महीने / अगले वर्ष या विशिष्ट तिथि) के लिए शेड्यूल पोस्ट करें क्योंकि जब मैं 'पोस्ट_डेट' => "2015-08-30" को सेट करने की कोशिश करता हूं, तो आज की तिथि के साथ पोस्ट क्या रखता है मैं चाहता हूं कि पोस्ट शेड्यूल पोस्ट क...