Posts

design time - Can the Visual Studio properties editor reference a property to component in another form (or class)? -

Being a Delphi developer is going on .net I TDataModule & However, to be available TForm, I can not find a way to form a reference to another component from another component on another form (or component) class on a form. I understand the technical difference under this issue. Delphi Component architecture is based on component-streaming (resource serialization), but .NET form is actually a code generator. If this is not possible; I wonder, generally, do UI designers have common ingredients in one place? Is it always to be implemented in code? A little more specific for what I am trying to accomplish; I am using DevExpress XtraGrid for more than one example of the grid in the context of the usual "ExternalRepository" how can the grid in different forms refer to an example similar to ExternalRepository? Establishing this property through code is completely eliminating grid design time capabilities. Is there any tricks here? Answers DevExpress Forum Answere...

c++ - COM automation using tlb file -

Please refer to the newbie for windows environment and com programming. I have to automate an application (aka) access. The daughter exposes himself as a com server and provides the CANoe.h, CANoe_i.c, and the CANoe.tlb file. To reach the object, no one can specify the C ++ client to write. Also, please specify how to use the code contained in the TLB file from C ++. Import the type libraries into your C ++ project in Visual Studio and use the defined objects as Too many built in support. For example, you can use the #import directive: #import "CANoe.tlb" this It will import type of library, and converts it to headers to files and implementation files - this will also implement the implementation files due to the implementation of your project and the header files to be included, so it's a lot of magic The stuff is fine. After that, you type many types for smart pointer rappers for types and objects that are defined in the type libraries. For exampl...

iphone - Not able to compare range.length to an integer -

I am developing an app on iPhone I use a NSRange object in my code I am here. If (range.length == 0) {something} When I print the value of the range.lumber on the console, it writes 0. This means that my condition condition is valid. But it does not ever enter the loop to do something. Any clue what I am doing wrong? Thanks AJ NSRanguage is a defined structure that: / P> Type-Apex structure _NSRange {NSUIN location; Length of NSUINTER; } NSRange; If (myRange.length == 0) is not true, then the length of your range is not the comparison is correct, your Find out more about the problem using Debugger to see what's really going on and when.

encoding - What causes my XML to break? -

मेरे पास निम्न XML कोड है। & lt; firstname & gt; & Lt; डिफ़ॉल्ट लंबाई = "6" & gt; ओर्विन & lt; / default & gt; & LT; लघु & gt; Örwin & lt; / लघु & gt; & LT; कम & gt; Örwin & lt; / कम & gt; & LT; कम से कम & gt;। & Lt; / कम से कम & gt; & Lt; / firstname & gt; क्यों "कम से कम" नोड ब्रेक की सामग्री है? यह थकाऊ के बजाय एक सरल "ओ" होना चाहिए। एक्सएमएल यूटीएफ -8 एन्कोडेड है और उस नोड के आउटपुट को प्रोसेस करने वाला फ़ंक्शन "लघु" और "कम" की सामग्री लिखता है जहां "ओ" स्पष्ट रूप से दिखाई दे रहा है। मेरा अनुमान है कि XML नहीं है ठीक से यूटीएफ -8 एन्कोडेड कृपया कच्चे फ़ाइल में & lt; shortest & gt; तत्व के भीतर बाइट को दिखाएं ... मुझे संदेह है कि आप पाएंगे कि वे वैध रूप से एन्कोडेड वर्ण नहीं हैं। यदि आप एक छोटा लेकिन पूर्ण प्रोग्राम दिखा सकते हैं जो इस XML को वैध इनपुट से उत्पन्न करता है, तो यह बहुत उपयोगी होगा। (अधिमानतः यह कह रहा...

sql - MySQL select into outfile /tmp no output -

I can not find the following code to generate any output MySQL user "All" grant level, writeable / tmp , The query returns a result set. mysql> Test_table WHERE condition = Select 'test' from field - & gt; Output '/tmp/test.csv' - & gt; Inherent field ',' - & gt; OK, affected by 1 line (0.00 seconds) mysql & gt; [1] + mysql has been stopped [Root @ web 1 ~] # cat /tmp/test.csv cat: '' - & gt; '/tmp/test.csv' is not a file or directory ending with LINES Do I see a different output from MySQL in case of failure? Can I confirm more than the result "1 row affected"? The files generated by the Outfile Clause are created on the MySQL server host. Please make sure that you are considering the mysql server host, because it appears that you are on a client host that probably does not host mysql server. Look at the About About Outfile section for documentation. / P>

.net - What are the main advantages of switching to DLR for my scripting language? -

I have written a DSL using Anther to generate a laser and parser from my grammar file. Parser generates an abstract syntax tree that contains various nodes (eg function nodes) which I can calculate. In the code of the function nodes, I take into account the compulsive-function names and parameter types to match the function's library. I have some simple caching here to optimize the function (if I call A + B with two ATT then next time I have a strong chance of using plus operator, it will be with 2 ints). Recently I am reading about DLRR and it seems that this type of scripting language is designed to be included in the implementation. In the first blush it does not look like it does for me as it generates parser or laser, but it seems that it helps in other parts of the implementation. I was wondering what would be the main benefit of switching to using DLR. If you apply careful binding, DLR will give you a very powerful caching system - maybe you The more optical optim...

Using a global (dumb) error page for all ASP.NET MVC errors? -

I have set up and configured ELMAH to log all my errors on an ASP.NET MVC project. . It will be used by a small group of users who do not need to know too much, whenever any type error (404, invalidity, Y2K ... anything!) I Just want to show a general default error view with our helpdesk to call and tighten instructions. ELMAH is up and running, I have posted to make sure that our Helpdesk staff is in receipt of my global error page to diagnose errors and to show log / my problem as needed. I am using the solution that ELMAH and [HandleError] play well together. Web.config is set to: & lt; CustomErrors mode = "on" /> If I am using a LINQ error (no element in the sequence), then I have shown my good, normal error view from / shared / Error.aspx, but If I try to reach those 404 then I get a normal ASP.Net Server error in the '/' application was not found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could b...