Posts

Showing posts from August, 2013

c - OpenCV Video capture and fps problem -

I'm capturing video from my webcam using OpenCV on MacOSX. It works fine, but when I If I try to play my captured video on Quicktime, then it plays very fast. That is, I capture with the camera for 10 seconds, but when I play on Quicktime, the video is 2 seconds. I I have tried to change the FPS from 25 to 10 and it works very well , But I'm sure this is not the right process: CVVideoWriter * writer = 0; Int isColor = 1; Int fps = 25; Int Frame W = 640; // 744 inch frame for firewire camera H = 480; The problem is that I still have to capture the webcam, but the real slope of the program is to capture the image from an external source connected to my Mac. / P> I am using this code to capture: for (;;) {cvGrabFrame (capture) image = cvRetrieveFrame (capture); CvWriteFrame (author, image); } Any hint? I'm also showing webcam output on cvNamedWindow, how can I improve the quality in this window? Thanks for the many! Andrea! It is possible that co...

If you could only monitor 10 SQL Server 2005 counters, what would they be? -

Yes, this is not a subjective subject, but I am researching this matter and am eager to see if Other people have the same conclusion as I have, I ask, if you can only monitor 10 SQL Server 2005 counters, what will happen? SQL server page life expectancy (prefer buffer cache hit ratio) % of processor time P> SQL Server Agent Failure Jobs SQL Server Lock Vets Average Waiting Time Physical Disk Average Disc Sec / Write (prefer on line length, though both work is fine) / P>

Is it inadvisable to use http traffic analysis to build a meta web service / pseudo-api? -

I'm looking at the HTTP traffic analyzer which is browser add-on that monitors and analyzes incoming and outgoing HTTP traffic between the browser . * Requests and feedback headers * Send and received cookies * Query parameter parameters * Post parameters * Response body My question is whether this web To make use of the service it is understandable. The interest I am using is using Windows SkyDiv - which provides 25GB of storage as a storage solution for my web app. So what I'm thinking is using HTTP traffic analysis to find out how to duplicate my web application interacting with my browser SkyDrive account. Is this a bad solution? I'm finding that one of the two things can happen quickly: Microsoft tells us that these are automatic requests and close my SkyDrive account and data Remove Microsoft regularly changes authentication front-end, I often need to reprint the portion of my service that interacts with SkyDrive. Anything else encountered ...

iphone - How to serialize a UIView? -

Is it possible to serialize the UIView object? If yes, how can I do this? UIView applicable NSCoding protocol, so that you You can use encodeWithCoder: to get a serialized presentation, and represent the initWithCoder: from a UIView to rebuild this way . You can find a lot of details in This is a quick example of how to do this: - (NSDTA *) Datatourview: (UIUUE) * See {NSMutableData * Data = [NSMutableData Data]; NSKeyedArchiver * archiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData: data]; [Collector encoded object: see for: @ "view"]; [Archive end encoding]; [Archival release]; Return data; } - (UIView *) ViewForadata: (NSData *) Data {NSKAdUserAzer * Anarkaizar = [[NSKAdUnchijar Elok] InitfourdatDataDataData Data]; UIView * View = [Anarchive decoded objectForcae: @ "view"]; [Autocomplete finish decoding]; [Unchanged release]; Return view; }

c++ - What are the performance implications of inheriting a class vs including a ptr to an instance of the class as a member variable? -

I am working in a square "A" which requires a lot of performance and such implication I'm trying to work in a similar way. / P> If I am the successor to this new class "B", then the memory profile of "A" should be increased by more than that. If I include only one PTR in "B" as a member variable in "A", then I would be right to think that, until "B" is on the heap (i.e. new Dad up) then "A" will remain small because this is apart from the new PTR reference. Is there anything else I have not thought of? This is a better architecture for the heirs of "B" for me, although this may be based on a better performance to work with the member as it works. I believe the heritage will be the best case here, but every situation is different, so here's the professionals and the opposition. Each choice Inheritance Usually requires virtual destructors, because of this there is a slight overhead ...

How to replace or modify the font or glyphs embedded in a PDF file? -

I want to change the font embedded in an existing PDF file programmatically (with iText) IText does not provide any data models for glyphs and fonts, but I believe this can allow me to recover and update a binary stream that contains the font. This is fine if I do not know which glyph is connected, so what I want to do to change those fonts. To be precise, I want to push all the glyphs into a PDF document. Instead of fonts in the rendering time, there is not an option because the output should be PDF with all types of protected information. Is there anyone who has done this with iText or any other PDF library before? PDF files set of fonts (i.e. F, F1, F2) and then separately Define so that you can theoretically rewrite the entry for F0. You have to make sure that there is only one space in 2 fonts (or you have to rewrite the PDF), and possibly hack the PDF manually.

Echo block of HTML that contains PHP functions -

I have a simple if-else statement - if true, then I want to resize this content: & lt; Div id = "login" & gt; & Lt; H2 & gt; Login & lt; / H2 & gt; & Lt; Div class = "box" & gt; & Lt; Form method = "POST" verb = "index.php / login" & gt; Username / Email: & lt; Br / & gt; & Lt; Input type = "text" name = "username" value = "& lt ;? phcho echo set_value (" user name ") ;? gt; Size = "50" square = "form" /> & Lt ;? Php echo form_error ("username"); ? & Gt; Password: & lt; Br / & gt; & Lt; Input type = "password" name = "password" value = "& lt ;? php echo set_value (" password ") ;? & gt;" Size = "50" square = "form" /> & Lt ;? Php echo form_error ("password"); ? & Gt; & Lt; Input type = "submit" va...

winforms - How to detect previous state of text field in C#? -

I am coding a simple text editor using the Windows form as many editors, when in the text The change occurs, the title bar displays an asterisk in front of the title, showing that the unsaved work is done when the user saves it, it goes away. However, there is a problem. It is controlled in the event of the replacement of the main text box. But it is also said when a file is opened or the user selects "new file", so that you open the editor and then open a file, the program says that unsaved changes are possible solutions? I thought of having a global variable that the text has changed in a way that should not trigger asterisk, but there should be a better way. Before loading data in a text box, unhandicipate eventhandler for first change uxName. TextChanged - = uxName_Text changed; UxName.Text = File Read all the text ("something.txt"); UxName.TextChanged + = uxName_Text changed;

build process - why does git allow remote tags to move, or why you can't use git-tag for atomic test-and-set -

I have a problem where two similar processes are parallel to different clones of different repositories (usually on different computers) Is running in Each time a process runs, it brings the latest tags from the remote, and then reduces a unique number based on the tag being viewed. e.g. If these tags are located on remote: 1.0 1.1 1.2 1.3 then one process will be selected as the next number of 1.4. Before the process begins, it creates a new tag and pushes it back to the remote: $ git tag 1.4 head $ git push original tag 1.4 Thoughts This is a way to select atomic numbers. Other process, if he is looking at the same time, can also decide to use 1.4, but when it comes to pulling the tag, it should be found that 1.4 already exists, and Choose 1.5 instead (and try again). I was hoping that I can treat the GIT tag as an atom. Unfortunately, for some strange reason, git allows remote tags to be moved in some specific circumstances! For example, suppose that tag 1.4 ha...

c++ - Get ID of excel worksheet in focus using OLE -

How can I go about getting a worksheet ID using C ++ and OLE which is currently in focus? For example, I have the following code: version excelSheets; Variant excel sheet; ExcelSheets.OleProcedure ("Add"); Excel sheet = excel shells OlepropertyGate ("item", 1); I would like to add a sheet and then I would like to get that sheet which was just added so that I can add content. The above code works only when the user does not take away the floor from the letter that is still on the left. Seth I ended up using OlePropertyGet ("ActiveSheet") have make; Because when you add a sheet, it becomes ActiveSheet and you can work with it from there. I have given an example example below: version excelApp; Version Excel Books; Variant excelworkbook; Variant excel sheet; Variant Excel Sheets; Try {mExcelApp = Variant :: GetActiveObject ("Excel.Application"); } Grip (EOLSISERR & amp; E) {MEXSellap = Variant :: Create Object ("Excel ...

java - Using Sun JCE provider on top of IBM SDK -

I have to use Sun JCE Provider in an application that runs on the IRB webserfare. This can be achieved by specifying security_provider.1 = com.sun.crypto.provider.SunJCE. Some parts of my application use IBM's SSL features. I I want to know that the SunJCE provider Configuring affects other uses of the JSAE provider in my application. I want to ask that the second question is, is there any way to continue using IBM JDK defaults (JCE and LTSJSE and others) and use only Sun JCE wherever needed. I mean that I will configure the Sun JCE provider as a previous security_provider.10. And in the code base where I need to use Sun JCE provider, I will clearly provide the provider name in my crypto related classes. Pre cipher sip = cipher For Gate Instance ("DES", "Sun") .. Please tell me what is the best way. To specify a security provider, you should do what you said: cipher sip = cipher Gate Instance ("DES", "Sun") But Sun is nam...

WPF TextBox Text multiple triggers -

I am doing a list of someone's contacts. I have a ItemsControl which uses DataTemplates for different types of contact information such as phone number, email ... etc In the case of phone numbers, I want the user to find the 4 text boxes, where they can edit . 4 due to the format (it can only edit numbers, the format is automatically generated): +43 (2) 112233 - 2 as a text box Each part and I want to be a main text box with the full number written in that format . This means that when a user edits one of those 4 text boxes, the main text box is in a real time, which is filled with the formatted number. I was working behind this code, but as I am now using the data template I want to reach this functionality in XAML in any of those ideas How to add triggers to 4 textboxes, the main text box is rebuilt with the correct format? "post-text" itemprop = "text"> If I have found this correctly and you do not need to edit the phone number i...

nhibernate - IronPython with Linq throwing ArgumentTypeException -

I'm trying to extend my webapp with IronPython, which is working brilliantly so far, But I do not think it plays well with my NHibernateLinq setup. I use a IQueryable & lt; Case & gt; I'm making available for IronPython code, and then I'm using Linq methods to filter it (Object, Function [Object, Bull] (throw)) This works fine, but because I'm using ENFONAL instead of queries , it's pulling back all records from the database, where Before work on them, when I asked in the SQL query generated by NHibernate Ha should be. So I tried: Where qualified. Where [object] (data, function [object, bool] (func)) but it only yields: Microsoft.Scripting.ArgumentTypeException: expected IQueryable [Object], query [Cas E] Am I missing something? Is this also possible? Anthony Generic invariance causes you problems, basically. Func & lt; Object, Boyle & gt; a Func & lt; Hair, bull & gt; - At least until it is not variab...

silverlight - binding data into the List box -

How can tie in a list box from a text box in silver light? I have 5 text boxes and click on save time button, the list box will flll with the data displayed in the text box. How will this be done in silver light? Do something you want to do: XML: & lt; StackPainel & gt; & Lt; ListBox x: name = "lbStrings" & gt; & Lt; / ListBox & gt; & Lt; Text Box X: Name = "TB1" width = "50" & gt; & Lt; / Text box & gt; & Lt; Text Box X: Name = "TB2" width = "50" & gt; & Lt; / Text box & gt; & Lt; Text Box X: Name = "TB3" width = "50" & gt; & Lt; / Text box & gt; & Lt; Text Box X: Name = "TB4" width = "50" & gt; & Lt; / Text box & gt; & Lt; Text Box X: Name = "TB5" width = "50" & gt; & Lt; / Text box & gt; & Lt; Button click = "save" content = "save" /...

Tababar application in iphone -

I am creating a tabbar application in which I have 4 tabbars i tabbar are working perfectly, my problem is The title that is overlap on the second tab bar is long like some director video. How can I fix it. I am afraid how it is done - you can see that it reduces the font size Let's try to fit, but it can only do so. Here is an option: To display the image, create the title text in the image. UIImage * textImage =; Int imageTag = 1; // or whatever you want [[UITabBarItem alloc] initWithTitle: @ "" image: textImage tags: imageTag]; If you can match fonts, then you can go ahead and share the title of the image and a part of its title, like this: UIImage * textImage =; Int imageTag = 1; // or whatever you want [[UITabBarItem alloc] initWithTitle: @ "video" image: textImage tags: imageTag]; It may seem a bit weird, and Apple can reject your app for it, but I can think of all this unless you want to accept the advice "Use less headline" ?...

map - wsg 1984 - calc distance between 2 geo points -

I need the peace of code in C # which can calibrate the distance between 2 digits in a map, in which There is a wsg1984 format You can use the Harveysen Forums, or the spherical laws of the cosines. For simplifications, the translation should be easy to see in C #

php - How to remove an HTML element using the DOMDocument class -

क्या DOMDocument वर्ग का उपयोग कर एक HTML तत्व को निकालने का एक तरीका है? DomDocument एक DomNode है .. आप केवल बच्चे को हटाने और आप को कॉल कर सकते हैं ठीक होना चाहिए। संपादित करें: बस देखा गया कि आप संभवत: वर्तमान पृष्ठ के साथ काम कर रहे पेज के बारे में बात कर रहे थे। पता नहीं अगर DomDocument काम करेगा आप उस समय जावास्क्रिप्ट का उपयोग करना चाहते हैं (अगर इसकी पहले से ही क्लाइंट पर सेवा की गई है)

unix - How to custom display prompt in KornShell to show hostname and current directory? -

I am using KornShell (ksh) on Solaris and currently my PS1 env var: hostname: / full / path / copy / p1 = "$ {HOSTNAME}: \ $ {PWD} \ $" and displays the prompt: Current / directory $ However, I would like to display it: Hostname: $ directory In other words, I only hostname and current Directory name, i.e. tmp or ~ or public_html etc. What? By reading to you PS1 = "$ {HOSTNAME}: \ $ { PWD ## * /} \ $ " tested on the default KS on SunOS 5.8

c# - dynamics crm 4 newlines in sdk -

I have several multi-line text fields in a unit in CRM 4. When I use the value from a multi-CD via something like Windows.Forms.Textbox in CD # this.textbox.text = myOpportunity.new_detail.ToString (); New characters are not transferred properly. They appear as small squares in their C # form fields. How do I convert them properly in both directions (Bring and update)? I suspect that they are only line feed (instead of the carriage return line feed (\ r \ n) \ N) are coming in the form of. You can probably just replace a simple location: this.textbox.text = myOpportunity.new_detail.ToString (). Change ("\ n", "\ r \ n"); And then inverted in the opposite direction.

Mismatch between MySQL and Python -

I know the mismatch between object-oriented technology and relational technology. But I do not know the mismatch between MySQL and Python, and other tools, not just the ORM, to deal with this issue, missing in the later article. Question: How is the problem resolved between MySQL and Python? Does Python Work Better? Is there some common device, possibly ORM, to deal with mismatch? What are the non-standard ways to deal with the problem? Can you say that non-SQL is a tool that matches the relational world of python in the object-oriented world? Or is the new design to completely avoid the problem? The standard solution for creating ORM is Python's Object Oriented World, the relational world of MySQL Matches There are at least 3 popular ORM components.

Sharepoint Designer is very slow; what are the alternatives? -

Data structure is very simple to develop an application with SharePoint Designer - Although there are many fields / columns (several hundred). He is complaining that the designer is incredibly slow. Any change clearly causes some type of screen refresh that takes unbearable amount of time. Unfortunately, I want to know about SharePoint Development (I'm an ASP.Net dev). Is there a choice of SharePoint developer for this type of work? Is it possible to bypass the WYSIWYG view and edit the code directly? I am curious to hear what others have done to deal with this issue. This may or may not be related to the problem. If SharePoint Designer is frozing from time to time try this: % USERPROFILE% \ Application Data \ Microsoft \ SharePoint Designer \ ProxyAssemblyCache \ 12.0.0.6219 [Actual Number Can be different] and remove everything there. Do not worry, it will be rebuilt on the next load.

Is VB6 IDE supported in Windows Vista x32? -

क्या Windows Vista x32 में VB6 IDE और VB6 अनुप्रयोग समर्थित हैं ?? विंडोज विस्टा, विंडोज सर्वर 2008 और विन्डोज़ पर विजुअल बेसिक 6.0 के लिए समर्थन वक्तव्य 7

Makefile rule to build with same name, but different directory -

मुझे एक नियम कुछ पसंद है: build /%। Ext: src / % .ext कार्रवाई मेरे पास फ़ोल्डर में फ़ाइलों की एक निर्देशिका है जिसे मैं ऑप्टिमाइज़ करना चाहता हूं और फिर एक अलग फ़ोल्डर में आउटपुट करना चाहता हूं। हालांकि, इनपुट और आउटपुट फ़ोल्डरों में फ़ाइलों का एक ही नाम है। मैंने ऊपर नियम के विभिन्न पुनरावृत्तियों की कोशिश की है, लेकिन मैं या तो हमेशा या कभी भी पुनर्निर्माण के आधार पर निर्भर करता हूँ कि मैं ऊपर के ऊपर कैसे बदलाव करता हूं सुझाव: संपादित करें: मैं निम्नलिखित समाधान के साथ समाप्त हुआ, जो महान काम करता है! JS = \ src / js / script2.js \ src / js / script1 Js JS_OPT = $ (patsubst src / js /%। Js, web / js /%। Js, $ (js)) सभी: $ (JS_OPT) $ (JS_OPT): वेब / जेएस /%। Js: src / js / % .js बिल्ली $ @ | ./bin/jsmin & gt; $ & LT; इस तरह से किसी चीज़ को आज़माएं: INPUT_FILES = \ Src / a.txt \ src / b.txt \ OPTIMIZED_FILES = $ (patsubst src /%। Ext, build /%। Ext, $ (INPUT_FILES)) $ (OPTIMIZED_FILES): बिल्ड /%। Ext: src /% Txt optimize_command $ @ $ & lt;

.net - Implementing INamingContainer Interface for UpdatePanel? -

Even in an attempt to find the answer to this problem, I have not received any clarification (not specifically discussing a GridWise How do I get the following error when I run a program with UpdatePanel? Message: Control with ID be registered through 'lblDisplay' Applying RegisterAsyncPostBackControl or RegisterPostBackControl to INInContainer, IPostBackDataHandler, or IPostBackEventHandler Should rana. UpdatePanel is: & lt; Form id = "form1" runat = "server" & gt; & Lt; Asp: ScriptManager id = "ScriptManager1" runat = "server" EnablePageMethods = "true" & gt; & Lt; / Asp: ScriptManager & gt; & Lt; Asp: UpdatePanel id = "up1" UpdateMode = "Conditional" runat = "server" & gt; & Lt; Trigger & gt; & Lt; Asp: asyncPostBackTrigger ControlID = "lblDisplay" eventname = "load" /> & Lt; / Trigger & gt; & Lt; ContentT...

ruby - Rails Trouble creating model instance with one to many relationship -

I think there are so many places where my design can be screwed on it though I have limited experience with rail . This postage is happening in Rails 2.3.2 with 8.3. We have two tables in our DB, one called " Survey " and another one called " survey_timpoint ". A survey can be number multiple times, so in the survey_timepoint table, there is a column called " survey_id " which has a FK obligation. I also think that I should mention that the tables were not made with rail migration, although they adhere to the railing naming convention, I suspect that AR feared a hurdle on that column. It is not and how to handle this situation, it does not know. I have in my rail model: has_many: s = Survey. New S.SurviTimPoint Push SurveyTimepoint.new s.save! I get: ActiveRecord :: Statement invalid: PGError: Error: Enter or update the table on "survey_timpoint" violates foreign key constraints "Survey_timepoints_fk" ...

asp.net - Pull one record from the database and bind to an HTML tag -

What is the definitive way to drag a record from the database in ASP.NET and bind it and HTML tags? Countdown to brevity and style points For summarizing, you would like to use SqlDataSource. & lt; Asp: SqlDataSource id = "sql" runat = "server" connection string = '& lt;% $ connectionString: Mycvention string% & gt;' SelectCommandType = "Text" SelectCommand = "Choose MyField from MyTable where id = @id" & gt; & Lt; SelectParameters & gt; & Lt; Asp: ControlParameter ControlID = "txtUserName" property name = "text" name = "id" /> & Lt; / SelectParameters & gt; & Lt; / ASP: SQLDataSource & gt; & Lt; ASP: BulletLunt Runat = "Server" DatacetField = "MyFilled" Datasource ID = "SKL" & gt; & Lt; / ASP: BulletedList & gt;

templates - C# code generation / removing redundant code -

मेरे पास कक्षा में कुछ सरल कोड है: निजी ITemplate _content1 = null; [TemplateContainer (टाइपफ (कंटेंट कंटैनेयर))] सार्वजनिक आईटेमप्लेट कंटेंट 1 {रिटर्न _ कंटेंट 1; } सेट {_content1 = मान; }} मुझे लगभग 15 सामग्री कंटेनरों की ज़रूरत है मैं इस ब्लॉक को 15 बार कॉपी और पेस्ट कर सकता हूं और नंबर बदल सकता हूं, लेकिन एक बेहतर तरीका होना चाहिए। क्या कोई ऐसा करने का एक क्लीनर तरीका सुझा सकता है? इसे इसके बजाय प्रयास करें: [TemplateContainer (टाइपफ (कंटेंट कंटैनेयर))] सार्वजनिक आईटेमप्लेट कंटेंट 1 {प्राप्त करें; सेट; }

algorithm - square puzzle solution -

प्रश्न: एक पूर्णांक संख्या दी गई है, संख्या को 1 से n से 2 प्रिंट करें : n = 4 परिणाम है: 01 02 03 04 12 13 14 05 11 16 15 06 10 09 08 07 आप इसे कैसे हल करते हैं (नीचे दिए गए लिंक में दिए गए समाधान से अलग)? मैं दूसरी दिशा में देख रहा हूं । अब तक, मैं यह पता लगाने की कोशिश कर रहा हूं कि क्या मैं पदों की क्रमिक सूची प्राप्त कर सकता हूं जो मुझे भरने के लिए है। यहां मैं क्या देख रहा हूं: "एफडीआईएसपी" प्राप्त करने का एक तरीका है मैट्रिक्स में "चलने" की बजाय इस समस्या को हल करने के लिए मैट्रिक्स = [[1, 2, 3, 4], [5, 6, 7, 8], [ 9, 10, 11, 12], [13, 14, 15, 16]] n = लैन (मैट्रिक्स) # अंतिम स्वभाव हाथ से लिखा गया है: इसे मनमानी एन के लिए कैसे प्राप्त किया जाए? Fdisp = [(0,0), (0,1), (0,2), (0,3), (1,3), (2,3), (3,3), (3, 2) , (3,1), (3,0), (2,0), (1,0), (1,1), (1,2), (2,2), (2,1)] के लिए वैल, मैं एन्यूमरेट (एफडीआईएसपी): मैट्रिक्स [आई [0]] [आई [1]] = वेल + 1 डेफ शो मैट्रिक्स (मैट्रिक्स, एन): आई, एल के लिए मैट्रिक्स (मैट्रिक्स): श्रेणी में जी के लिए ...

sql server - What is the recommended setup.ini for SQL 2000 MSDE install? -

What is setup.ini recommended for SQL 2000 MSDE installation? [option] SAPWD = comp1exPa $$ word protection = SQL INSTANCENAME = MSSQLSERVER DATADIR = "C: \ Databases" COLLATION = SQL_Latin1_General_CP1_CI_AS This is pretty good. However, it would be better if you were 10 years after the first release of SQL 2000 and 4 years after the last service pack ...

soap - Returning a PHP Array from a PHP SoapServer -

I'm relatively new to soap on "creating service side", so Munging by me in advance for any terminology. Is it possible to return a PHP array backed by a remote process soap service setup using PHP's SOAP server class? I have a WSDL (a tutorial is made of blind) that, in part, looks like something & Lt; / Messages & gt; & Lt; PortType name = 'FtaPortType' & gt; & Lt; Operation name = 'query' & gt; & Lt; Input message = 'tns: generic string' / & gt; & Lt; Output message = 'tns: generic object' /> & Lt; / Operation & gt; & Lt; / PortType & gt; The PHP method I am calling is given the query name, and something looks like public function query ($ arg) {$ Object = new stdClass (); $ Object-> Test = $ arg; Return objects; } This allows me to call $ client = new SOAP client ("http://example.com/my.wsdl" ); $ Result = $ client- & gt; Query ('this is...

iPhone Game Development -

I am starting to develop iPhone, I have already made 1 app with C and Objective-C, but The reason for this is why I started to make a game for myself ... What is the best language for beginners to make an iPhone game? I know that there are many options, but for whom would you suggest beginners? thanks -Techi Actually, the iPhone There are not many options for development. You are locked in Objective-C, but you can also use C and C ++ code in your app. He said, some people are molesting it by getting C # but I do not know how all this works, it is being used in the mono project supported by the people. check out . Miguel de Icaza is a guest and he talks about how they are completing this. Sorry, if I misunderstood your question.

C#: Sanitize XML text values with XmlTextWriter? -

I serial some data and continue using XmlTextWriter Many fields are based on user input (example username). Today I use the WriteElementString method of XmlTextWriter . My question is: The second parameter of WriteElementString is the text value written in writing. How can I do this before I write? An example code: XmlTextWriter author = new XML RemoteWriter ("filename.xml", null); Author.WriteStartElement ("user"); Author. Write element string ("username", InputUser name); Author. Write element string ("email", input email); Writer.WriteEndElement (); Writer.Close (); The variables are inputUserName and inputEmail are user inputs, and I want to save them / save them before writing them. What is the best way to achieve this? What exactly do you want to avoid there? To avoid all WriteElementString will be required by XML already (i.e. & amp; -> & amp; amp; , -> & lt; , etc.)

How to wait/block until a semaphore value reaches 0 in windows -

Using the Sim () function on Unix, it is possible to provide a standard structure with sem_op = 0. Basically this means that the calling process will stop / block unless the value of the sackfire becomes zero, is there a uniform way to achieve it in windows? In the case of specific use, I am trying to apply it, before waiting for the number of readers to reach zero before writing the authors. (Yes, this is some unconventional way to use straightforward, because there is no limit to the number of readers and therefore there is no set of constrained resources that symphars are usually used for management). The documentation can be found here on the Unix Simp system call: Assume that you have a The author is the thread, the writer is the thread that boiled the semaphore, though Afor hold through the waitForSingleObject , however many times you started Sakram count.

C#: parametrized string with spaces only between "full" parameters? -

I want to output a string that welcomes the user to the application. I have the user's first, middle and last name I would like to enter the full name of the user, i.e. "hello {0} {1} {2}" with first, middle and last parameters, however, if the middle name is empty, There should not be two places between names, but rather only one place. I can explicitly do this with "if", but is there another great way to achieve this? Thanks string.format ("{0} {1 } {2} ", first, middle, final). Change ("", "")

c++ - How to do type conversion for the following Scenario? -

after some set using TCHAR buffer [MAX_SIZE] For the former, I say that the folder's relative path is found: c: \ Microsoft.NET \ framework \ v1.0.037 \ The above path type buffer I'm trying to do TCHAR and I concatenate "RegAsm.exe" After I need to change the path to LPCTSTR because it's created by CreateProcess ( ) Which requires LPCTSTR Write in areas such as Then the compiler to error. I tried but bothered. Anyone can help me in this aspect .... The problem is that TCHAR and Create Process macros are what you compile for Unicode, depending on whether it is compiled or not. The warning is that GetCorSystemDirectory () will accept only one Unicode buffer. To get rid of these ANSI / Unicode problems, type this code explicitly for Unicode. Use WCHAR for buffer instead of TCHAR Use CreateProcessW () instead of CreateProcess () - it will happily accept Unicode buffer. Use wcscat () for string combinations. Something (error has been omi...

c# - WPF combobox selected item -

I have a combobox with some items shown in the form of image and text (edge ​​of each item ). Now when I select an item from the combobox list, I want to display something else (instead of a single image and text) to display any other text or other image on the Cubblox selected area. Is there any way I can get this? The easiest way to add isSelected Triggers to the DataTemplate (ItemScriptplate) of Combobox, I think your Two groups of close visual elements are the second for another selected sequence for regular data display, when IsSelected properties are set to ComboboxItem, you need to hide regular scenes and create another show. Find Finding the actual move here FindAncestor Using ComboBoxItem immediately Confirms to find. & gt; Datamapplet x: Key = "yourDataTemplate" & gt; & Lt; Grid X: Name = "Regular Regulations" & gt; ... & lt; / Grid & gt; & Lt; Grid X: Name = "SelectedView" visibility = "Brief...

c++ - Best practices of dynamic vs. static memory in terms of cleanliness and speed -

I have an array, which is called X, whose size is 6 * size (float). I know that I am declaring: float x [6]; The stack will allocate 6 * size (float) to X in the memory. However, if I do the following: float * x; // class definition x = new float [6]; // Delete constructor in class [] x; // I will assign the dynamic memory of 6 * sizeof (float) in class destructor x if x does not change the size of x for the life of the class, then the cleanliness and speed In the case of best practices for (I deliberately miss, if not true, then stack memory operations are faster than dynamic memory operations), should I ensure that X is dynamically stable from allocated memory? thank you in advanced. Declaring the array of fixed size will definitely be faster for each separate dynamic allocation one empty It is necessary to find the block and it is not very fast. So if you really care about speed (inherent) rules, if you do not need dynamic allocation - do not use it. If you need it...

wpf - Saving and printing XPSDocument through Paginator (seems to)causes a rasterization of the content -

I am using a WPF printing path to handle large diagrams created in our application. The entire diagram contains views. A so-called "designerpaginator" depicts the picture (it is quite easy). From this point, I do the following three things: - I print the document with print dialliag. Print Document (Pageinator, Title) - I also make an XPS document with the Exps Document Writer. White (Pageinator, PrintTicket); What I save on HDD - I provide the XPS documentware writer to the XPS document. In a document viewer, the following code is important: PrintDialog _pdialog = new PrintDialog (); System.Printing.ValidationResult Results = this.PrintQueue.MergeAndValidatePrintTicket (this.printqu.UserPrintcontent, this.printultate); _pdialog.PrintTicket = Result. Validity per ticket; XpsDocument _xpsDocument = New XpsDocument ("C: \\ test.xps", FileAccess.ReadWrite); XPS Docuation Extract xpsdw = XpsDocument.CreateXpsDocumentWriter (_xpsDocument); Xpsdw.Write (this.pign...

binaryfiles - .OBN Format: Edit and Reconvert Back -

I have an O.N.N. The framework is a binary file. To convert it to a text-based file, I like Unix- DD if = FileName.OBN = output.txt ibs = 1169 obs = 1169 cbs = 1169 conv = ascii I have been using the command in Where - If: The input file is: Output file is IBS: input block size obs: output block Size cbs: Insert a new line on the block Thanks. / div> I have understood it now that the default is IBS 512. So after editing the text file, you can change it to OBN by issuing the command - DD = if = output.ttt = Filename.obn ibs = 1169 Obs = 1169 cbs = 1169Canv = ABCDIC

firefox - Determine whether client browser has java installed and can launch applets -

I am developing an .aspx page which will eventually launch an applet after the user clicks on a button (I tag) Therefore, I have to find out that Java's capability / user has been installed on the browser. I am using the navigator.javaEnabled () method. However, although it is working fine on IE 7, but it is returning inconsistent results on Firefox 3.0.12 (do not know about different browsers), sometimes it is saying that Java is enabled (which That's it), and then after the Applet launch and coming back to this page from the applet, it will report incorrectly if I turn off Firefox and return to the applet launch page, Navigator.Javainated () again From to Mr. (right) will report. Is there anything that is determining this incompatible behavior or navigator. Java is enabled () Make a method in your applet isRunning public boolean () {back is true; } Now create an applet: & lt; Applet src = "... / yourapplet.jar" id = "someId" ...

c# - Code flow visualization software -

Is a device free or commercial, which can generate a flow visualization graph for the C # method? It should be able to deal with the points of judgment (may show them as Shiromani) and with sequential code pieces (perhaps represent them as the edges). I know that there are similar C / C ++ and Java related questions, but I am interested in C #. There is a commercial device called. It is capable of generating flow charts in 31 programming languages. You can get the demo version.

com - Automating Outlook and Word to create email message -

I am trying to create a single word message that will be used as a body for Outlook message. I am looking at the sample code from Microsoft but this code falls when trying to create a new word document on the wordApp.Documents.Add line: Word Apps Word app = new word Applications (); Object template = system Reflection. Measuring. Value; Object newTemplate = System.Reflection.Missing.Value; Object Document Type = Word VdNewDocumentType.wdNewEmailMessage; Object view = wrong; Word Document Word Doc = Word App. Documents.ed (Ref Template, Ref Newsletter, Referee Document Type, Ref. Visible); Outlook.MailItemClass mItem = (Outlook.MailItemClass) doc.MailEnvelope.Item; I get a COM exception of "Command unsuccessful" I am using Office 2007 and I have tried: Standard Office 12 word And refer to Outlook libraries Installing Office XP PIA and referencing Office 12 libraries Installing Office XP PIAs and referencing Office 2000 libraries. Uninstall Office XP PIAs and ...

shadowbox - flash overlay snagging on underlying divs -

Has anyone come before this and know the solution? I am using Shawdobox for the overlay on a flash file on my page, but the speed inside the flash file is broken or "shear" where the movie is displayed in the HTML below given divs Comes across. Screenshots show that I was as good as I could;) If you move the mouse, or tap "focus" on the screen on the keyboard "keyboard" So it works all without any space Interesting that it is worse in Firefox than other browsers. All are very appreciated: D I'm assuming that the Z-index of your Flash object is more than the diwas below. Am I right? Also, are you using the flag object tag (or embed) for the wmode parameter passing? You should take a look:

sql server - Searching on a table whose name is defined in a variable -

Text after " Simple problem, but maybe a simple solution, at least I have one on top of my head, but can not think again I am not the best to find the best solution. I have a stored procedure, it selects the stored procedure on one base (in a basic form), it implies: Select to mytable OK, quite simple, except for the table name, there is no need to search on it, so we ended up with something very similar to this: - Just variable INT set @metaInfoID = 1 declared @metaInfoTable will be used as the @metaInfoID declaration as VARCHAR Area to choose to give some reference (200) @metaInfoTable = MetaInfoTableName MetaInfos where MetaInfoID = @MetaInfoID VARCHAR (200) set select @sql announced = 'as @sql * the' + @metaInfoTable EXEC @ Sql So, I know it's finally bad, and can immediately see how I can do SQL injection attacks. So, the question is whether there is any way to achieve the same results without the creation of dynamic SQL? Or am I super, am going ...

asp.net - UI based on functional programming -

One day I am now learning the functional programming concepts, and professional I am an ASP.Net developer. But asp.net makes you to change the properties of objects often back to the code. Functional programming is based on invariant items. And applying this concept to change the value of a text box will be very painful. Apart from this, in some event incidents such as Form power items, the arguments inscribed are made available to developers such as KeepInInsertMode, which the developer can change in the right / wrong, and in this case we can modify the input ingredients against the FP Are there. What are the trends of your ideas? Which software is the correct way of UI handling in the world? FP or OOPS You ask "right", but it is an engineering problem, not a mathematical problem Trade is off, some kind of taste comes into play, and it is not possible that a shape fits in all correct solutions. Besides, just because ASP.Net does something in a certain way, does it...

scala - lift net.liftweb.http.S#param doesnt works like wiki says -

I try to copy Wikipedia in example examples For example HelloForm2.scala "submit" - & gt; Submit (? ("Send"), () = & gt; {println ("value:" + + + "::" absolute "(" johnfold ")}, Always print Price: full (hogehoge) :: Blank "even if I set which object" Expands RequestVar (Full ("World") Am I doing something wrong? I am sorry to post the complete code, I already try the other way down the wiki. Html lift: = "content" on "default" Ground & gt; & lt; h2 & gt; Welcome to Your Project! & Lt; / h2 & gt; Lift: HelloWald.show form = "Post" & gt; Hello & lt; hello: Which /> ; label = "whoField" & gt; Who: & lt; / label & gt; hello: johfild / & gt; hello: deposit /> and class hallowld {object that extends requestVar (full ("world"); DEF show (XHTML: nodesec): nodesec = {bind ("Hello...

javascript - Register Form Validation -

I have a registration form that I need to validate before submitting. The form contains the following fields: Name, email, and password I need to email, the email for the correct format, and email to be at least 6 characters. What is the best way to do all this validation and submit the wrong areas before being lightly before? Thank you, Brad If you are using jQuery, Want to look into a jQuery validation plugin, seems popular, and looks great if you are not using jQuery, then you should probably be. ;)

reflection - PHP Method Chains - Reflecting? -

Is it possible to reflect on a series of method calls to determine if you are in a series of calls? At the very least, it is possible to find out if there is a final call in a series series? $ instance-> method1 () - & gt; Method2 () - & gt; Method3 () - & gt; Method4 () Is it possible to use such assets, which return the example of the object? $ instances-> property1- & gt; Properties 2- & gt; Properties 3- & gt; Property 4 If you call back all the ways same Returning objects to create a fluent interface (as opposed to pasting different objects together), this object must be quite trivial to record call calls. Example: class example {secured $ _callStack = array}; Public function F1 () {$ this-> _callStack [] = __METHOD__; // Other Work} Public Function F2 () {$ this-> _callStack [] = __METHOD__; // other work} public function getCallStack () {return $ this- & gt; _callStack; }} then chain like a call $ a = new ex...

Regex: how to determine odd/even number of occurrences of a char preceding a given char? -

I | Terms like with or will be changed to uncompressed only, such as: "this | he" | | "Other |" - & gt; "This | that" or "other" Yes, I can split on space or dialect, find an array and repeat through it, and rebuild the string I guess, but it seems ... fool, it is possible that there is a regex way to do this by counting " before " and obviously strange means | is cited and even this does not mean. (Note: Processing does not start Unless there is not a single number of " , if at least one is " ). itemprop = "text"> It is true that regexes can count, but they can be used to determine if something strange or even something The number is the trick to be done in this case, it is to quote the quotation marks after that the pipes, not before. str = str.replace (/ \ | (? = (?: (?: [^ "] *") {2}) * [^ "] * $) / g," or "); By breaking that down, (?: [^ "] *]...

Rails global enums? -

I have items in my database schema that are integers and are set to a specific number corresponding to an item. For example, The column named appoint_type can set the value of 0 = unknown, 1 = medical, 3 = test, etc. ... I do not want to use magic number in my rail code and likes to like an envelope. Make satisfactory and readable addition, there is more than one table which These are the columns of this type of appointment, so I want to be able to use "enum" to address other columns too. I was thinking of having a global enumeration, I have to use it in my model, controller and view. It may be less likely that I need to access it in my model, but surely within the controller and the scene. Is there any good way to handle this? It is likely to be low that I can access it in my model Required, but definitely in the controller and view. Are you sure? When you talk about databases and schemas, you are talking about the model part of your application. I think th...

How to map two objects that reference each other in NHibernate? -

I have a class that looks like this: public class jobs { Public company company {Get; Set;} Public Job JobForCompanyA {get; Set;} Public Job JobForCompanyB {get; Work for two companies will refer to each other, for example: var jobA = new job {Company = Company.} CompanyA}; Var jobB = New job {Company = Company. Compbi B}; JobA.JobForCompanyB = jobB; JobB.JobForCompanyA = jobA; With this problem, if I map them as common-to-many in NHibernate, then they can not save them ... because every Job object is the second reference Let's get a PK to save one, but you can not do this because it does not reference other (unsaved) jobs, so you have chicken and egg problem. From DB's perspective, I can mapping the tables which are Jobs for company A for the jobs for Company B. Is changing my entity object a way to use NHibernate without changing it? I know that I can add list properties and hacks to normalize many-to-many relationships, but it should be a pattern that provide...

iphone - How to detect when a CATiledLayer has finished drawing all tiles -

I want to find out that when CATiledLayer has finished drawing I set subclassing and override, but it appears that a tile is drawing in a separate thread (display only returns and later seconds, the layer has finished drawing) Some things are not clear from your question Are you asking if Mr. Tiles went drawn or just view Tiles are fully prepared or not? Afterwards assume you can try drawing: But you will not answer even when scrolling. Because tiles are cached and we have no way to know about leaving cached tiles, you will not be able to tell whether a tile is not ready yet or it has just been pulled from the cache. You may want to describe it as to what you are trying to accomplish and see if people are considering it in other ways.

windows - Vim: Change start up directory? -

When I start GVIm and start writing my short program then I would like to save the file to the desktop but it seems How will I go about changing it: C : \ User \ cc Then I could just do it: : desktop \ my_program.py Thank you Think that you have windows In the icon / shortcut, starting with gvim (from which type of way you supply), you are completely free from the initial directory (by the fact that by editing the "initial directory" property of that window icon / shortcut This is GVIM: it will be from any other app!).

Standard input and output in c -

मेरे पास stdout और stdin के साथ एक समस्या है। जब मैं stdout i cant getback का उपयोग कर डेटा stdin का उपयोग करते हुए डेटा संग्रहीत करता हूं। इसलिए कृपया मेरी मदद करें कि मैं अपनी समस्या को हल कैसे कर सकता हूं। राम जो डेटा आप stdout में लिखते हैं वह स्वचालित रूप से stdin पर उपलब्ध नहीं होगा। Stdout स्ट्रीम में लिखी गई डेटा उस स्ट्रीम से जुड़ी हुई प्रक्रिया के द्वारा पढ़ा जाने के लिए उपलब्ध है। आम तौर पर यह टर्मिनल या कंसोल है जहां कार्यक्रम शुरू किया गया था। यह एक और प्रक्रिया भी हो सकती है जो पहले पाइप के माध्यम से एक से जुड़ा हुआ था या फिर वह फाइल हो सकती है जब पुनर्निर्देशन का उपयोग किया जाता था। यदि आप डेटा पढ़ना चाहते हैं तो आपका प्रोग्राम stdout पर stdout पर लिखा है बाद में चलने पर आप इस तरह के रीडायरेक्शन का उपयोग कर सकते हैं $ program & gt; Data.out फ़ाइल डेटा.out में stdout पर लिखी गई कोई भी चीज़ संग्रहीत करेगा। उसके बाद, $ प्रोग्राम & lt; Data.out ... stdin में कार्यक्रम के लिए डेटा। आउट की सामग्रियां उपलब्ध कराएगा कृपया अपना कोड और कुछ और विस्त...

.net - How to create a dump of the current ASP.NET managed process for debugging? -

I'm trying to debug an ASP.NET application. This is especially difficult because the bug is posted only in released code production it can not be repeated in the development or testing environment. I am investigating the issue by creating a dump file on a particular line, where the problem is occurring. However, production environment can not be taken at any point due to business needs. This is the reason that this is also the reason that remote debugging can not be done. Does anybody know how I compelled for a dump file is manufactured for w3wp.exe at a certain point in the managed code, still can still allow the rest of the application to be normal To operate with? Use the rights to the web app so much and you can deploy the new code environment, You can manually create a dump file with the use of DbgHelp API: [DllImport ("Dbghelp.dll", SetLastError = true)] Fixed Execution bool MiniDumpWriteDump (IntPtr ProcessHandle, Integer ProcId, IntPtr filehandle...

windows - %~$PATH:1 expansion issue -

So I recently stumbled on (potentially) useful% ~ $ pat: 1 extension, though I think that Unable to do it works correctly I tried to use it, to make cheaper windows version of the command, though the syntax seems to defeat me. My batch file looks like this: @echo off echo% ~ $ PATH: 1 However when I run it for example I get the output of "ECOOut Out", which means that% ~ $ PATH: 1 was not found according to the DOCS "CMD". What am i doing wrong Extension. Enough of checking files with .exe, .cmd, or .bat The set of applicable extensions is defined in the Environment variable PATHEXT. There is a version that respects the PATHEXT variable on the search: @echo off rem "% ~ 1" == "" (echo experiment: which CMDN Exhaust / B1) Call: Equivalent to Univix Windows which is equal to that of the passcode enabled attribute, call: findOnPath "% ~ 1" If the error is not outside Level 1 / B 0% for E% (% PATHEXT:; =%) (call: Sea...

What's the best available open source editor/IDE for Ruby? -

संभव डुप्लिकेट: मैं Rails पर रूबी का उपयोग करके वेब डेवलपमेंट के लिए इसका उपयोग करने का इरादा रखता हूं। कोई सुझाव? और यह एक सीडब्ल्यू है;) नेटबीन्स सबसे अच्छा है । आप "रूबी" संस्करण डाउनलोड कर सकते हैं - इसलिए आपके पास रेल से बॉक्स का समर्थन किया गया है। इसमें मेरे लिए सभी महत्वपूर्ण विशेषताएं हैं: डिबगिंग समर्थन, वाक्यरचना हाइलाइटिंग, ऑटो-फॉर्मेटिंग, रेक रन रनर, ./script/generate runner पिछले तीन संस्करणों में मैंने इसका इस्तेमाल किया - स्टार्टअप और गति बढ़ रही है और गंभीर कीड़े की संख्या में कमी आई है। मैंने एपटाना, राद्रील्स, रूबी लिपियों के साथ वीम, रूबी समर्थन आदि के साथ जेड की कोशिश की है। और मैंने नेटबेन्स के लिए बसे हैं। नए डेवलपर्स के लिए "चुनना" बहुत आसान है ...

security - Secure random number generation in PHP -

Use the case: "I forgot my password" button, we can not get the user's original password as it is in the hashed form Is stored, so only a new random password has been generated and the e-mail has been sent. For this, cryptographically unexpected random numbers are required, for which mt_rand is not enough, and generally we can not consider hosting as a service, providing access to the operating system to install cryptographic random number modules etc. So I'm looking for a way to generate safe random numbers in PHP. With the solution so far, I have stored an initial seed, then for each call, result = seed seed = sha 512 (seed MTR) This shaw is based on the security of the hash function (MT_Rand call is only for an opponent to make life a bit more difficult to achieve. You may also consider using OpenSSL openssl_random_pseudo_bytes, after PHP 5.3 Is available. string openssl_random_pseudo_bytes (int $ length [, bool & amp; $ crypto_strong]) A...

.net - C# StructLayout.Explicit Question -

I'm trying to understand that there is no problem in the second example below, but the first example gives me the following exception I think that both examples should be given an exception based on the details. Can anyone illuminate me? Unchecked exception: System.TypeLoadException: 'StructTest.OuterType' type assembly 'Strettext, version = 1.0.0.0, culture = neutral, PublicKeyToken = null' because in it there is no object field on offset 0 Which is incorrectly overlap with the alliance or non-object field. Press any key to continue on StreakTest.program.mine (string [] Args). . . Example 1 using the system; Using System.Collections.Generic; Using System.Linq; Using System.Runtime.InteropServices; Using System.Text; Namespace Structured Test {[Structure layout (Sequik, Pack = 1)] Structure Entertype {[Marshall AS (uncountable type Bevelar, size = 100)] four [] buffer; } [Layout Layout (LayoutCind.explicet)] Straight Outtertype {[Field Offset (0); Some V...

updates - updating iPhone apps via the web -

I'm working on an eBook app for iPhone, Apple has time to review and publish updates It seems, I'm thinking of adding a feature to update content through my own (Google App Engine-powered) web site. Instead of being at the mercy of the app store review team, will allow me to update the content at will, can Apple reject this kind of behavior in an app? I asked in the Apple Developer Forum, but there was no response. We have developed an application that will go to our web server and newer when new content becomes available. Get content and store it on iPhone. As long as the content is not offensive, you should not have any problem. This can remove your application from the App Store. I have also heard that they can make your app 17+ due to the content from the web.

iphone - Does the -presentationLayer tell me the in-flight values of an view while it is beeing animated? -

The doctor says: The presentation layer returns a copy of the layer with all the properties Because they were applied with any active animation, at the beginning of the current transaction. And somewhere else Apple said, in the presentation layer they have values ​​like they are currently displayed to the user, so when I ask for this layer, then it will tell me how animate Before starting, can you see the thing? Does not mean it is a documentation error? The document is correct what they are saying that the presentation is based on the initial state of the layer layer, but in it Appropriate animation has been applied, as the progress of the animation, the appropriate value of the presentation matches the current displayed position of the layer. For example, if the layer started at the original coordinate (100,0) and you applied the animation to it (200,0), halfway animation would be the basic coordinator of the presentation lair (150,0) If the same animation was applied ...

.net - C# Graphics Newbie Question -

I have some small transparent GIF images (less than 100x100) and I have given the code below through all the pixels Written Rgb value to iterate: Private zero IteratePixels (string file path) {string dataFormat = String.Empty; Bitmap ozbitmap = new bitmap (file path); Int counter = 0; For (int y = 0; y & lt; objbitmap.Height; y ++) {for (int x = 0; x & lt; objbitmap.Width; x ++) {color col = objbitmap.GetPixel (x , Y); DataFormat = String.Format ("{0} => red: {1: x} green: {2: x} blue: {3: x}", counter ++, colonel, colonel, colonel b); System.Diagnostics.Debug.WriteLine (dataFormat); // Here is an operation on the color value here // objbitmap.SetPixel (x, y, col); Code} works (although the speed of the pixel and string is slow due to formatting) but what was the biggest surprise to me that the output is reporting that the transparent pixels are black! I wonder why? 0 => red: 0 green: 0 blue: 0 1 => red: 0 green: 0 blue: 0 ... Now if I have the im...

iphone - Little-endian hex in GHKit diagnostic, why? -

In terms of iPhone programming, I am using GHacket for unit testing (Gitil on GABIL / GIT unit). There is a failed test claim: GHAssertEquals (150, 15, @ "some limit"); And here's a diagnostic from GHKit (in the simulator and shown in the Xcode console): 2009-07-25 22:41: 12.553 Unitatest [38404: 3f07] Exception: '& lt; 96000000 & gt; ' '& Lt; 0f000000 & gt; Should be equal to '+/-' (zero) ' Some limit Clearly, GHKit shows offensive values ​​in low-endian hex. Okay, I can change the integer values, but why? Is this a feature or a bug? I got a reply from the author of Gahmat, the Google Groups thread in the hour, where he wrote ... Maybe we need some macros to test the archives: GHAssertEqualIntegers GHAssertEqualInts GHAssertEqualDoubles GHAssertEqualFlats

Exposing C# struct to COM breaks for VB6 app -

अंतिम अद्यतन: 2009-08-11 2:30 अपराह्न EDT कुछ दिन पहले मैंने कुछ अजीब समस्याओं के बारे में पोस्ट किया था। ठीक है, मुझे पता चला कि विशेष रूप से एक मशीन पर दूसरे लोगों पर न चलने का निर्माण हो रहा था और यहां तक ​​कि एक काम के आसपास आया था, लेकिन अब यह मुझे एक अच्छा, विशिष्ट प्रश्न के साथ छोड़ देता है: क्यों? समस्या को पुन: उत्पन्न करने के लिए, मैं एक नया इंटरओपयूज़र कंट्रोल चलाता हूं और निम्न कार्य करता हूं: एक नया सार्वजनिक स्ट्रेट जोड़ें: इसे एक GUID दें एट्रिब्यूट GetMyStruct सदस्य को _InteropUserControl इंटरफ़ेस में जोड़ें और इसे InteropUserControl । माइस्ट्रॉक्ट : [गाइड ("49 ई 803ईई-बीईडी 9 4 ए 080-बी 42 बी-ई0 9 4 9 4 ए 1 9 6")] [कॉमविज़िबल (सच)] सार्वजनिक संरचना माइक्रोसॉफ्ट {सार्वजनिक int mynumber; } _InteropUserControl.GetMyStruct () : [DispId (7)] शून्य getMyStruct (int num, ref MyStruct डेटा ); (मैंने संदर्भ से गुजरने के बजाय MyStruct वापस करने की कोशिश की है।) InteropUserControl.GetMyStruct () कार्यान्वयन: सार्वजनिक श...