Arturo Moreno's Q&A profile
.NET Development Type Casting Webservice Response
I use WSDL comand line tool (wsdl.exe) to generate source code of proxy for a webservice, compile that source code on the fly using particular instance of ICodeCompiler into standalone assembly, create instance of proxy class using Reflection, e.g. Activator.CreateInstance(). The Webserive returns an array of complex data types. When I invoke the method, how do I type cast the response object into the complex data type After invoking the metho ...Show All
Visual Studio Express Editions Code Request
Is there a code to send information that is typed into a text box by the user to your email thanks Have a look at the code closely its not a FSO (FileSystemObject) but a object to FileInfo which is part of .Net Class Library and i named the object as FSO just to make it easily understandable ;) ...Show All
Visual C++ What's Better?
Which close function works better in C++ Close(); or this->Close(); Somebody told me that one of them has errors but I wanted your opinion first. They're identical. The one reason you would want to use this->Close() over Close() is if you want to use Intellisense for the class that you're currently in to see what members are in the class and saving typing the word "Close". A reason you ...Show All
.NET Development command-line tool to convert DTD to XSD?
For historical reasons, we maintain some XML schemas in the form of DTD files, rather than XSD. I have used the "Create Schema" command inside Visual Studio to convert the file to an XSD file, which I'm then running xsd.exe on to create .NET classes. I would like to automate this process as part of our build. Is there a command-line tool which will do the same conversion You can find such a utility at ...Show All
Windows Forms about calendar control
Hi ! I had added a MonthCalendar control to my form and found that when I changed the setting in the regional and laguages options in control panel to Vietnamese , the calendar changed to Vietnamese immediately . Can anyone tell me How I& ...Show All
Visual Studio Express Editions Insert record into a table with an identity column
OK, I am trying to insert a record into a table. One of the columns is an identity table - which means the dataBASE SHOULD AUTOGENERATE A VALUE FOR ME. so the question is what value whould I set the identity column to when I try the insert If I try Nothing I get an error, if I leave it out completely I get an error.... Here is a sample of code... dim dr as dataset.ContentRow dim dt as dataset.Content dr = dt.NewContentRow() 'so now set the value ...Show All
Visual C# Multi Threading
I' m creating a perl ide, in vs 2003 i have a thread running which takes in data from perl compiler in and outputs it to a text box, i converted the project to 2005 but i get the problem "Cross-thread operation not valid: Control 'txtOutput' accessed from a thread other than the thread it was created on." I understand that i'm accessing the text box on a different thread but i don't know how to go about fixing it the code for the compi ...Show All
Visual C++ How to link to the correct STL library when a third party dll is based on VC6?
I have a third party dll targeted for VC6 and .net 2003. It worked well with my old MFC application. After it was migrated to VC 2005, it throws an exception of access violation whenever the stl string information in the object is accessed. Accessing other members of the object is OK. I guess it might be linked to the stl.net library instead of the old stl library that the dll is based on. Anyone knows what is the problem and how it c ...Show All
Visual Studio Express Editions Solution Questions
I have a database that I need to design a GUI and a few database entry functions. I am wondering if VB is the correct rout to go. I am using Access Database for the database, though looking at using SQL Server Express. The GUI will consist of a MDI form with several forms. The main form is a form with a tab container in it. The information shown on that form will come from several tables in the database, but o ...Show All
SQL Server SQL Native Client vs. IIS Log
I am using IIS 6.0 and SQL 2005 SP1. I have IIS configured to log via ODBC using SQL. If the DSN is configured using SQL ODBC 8.0, everything works fine and full logging occurs (uses named pipes or TCP/IP as configured). If the DSN is configured using SQL Native Client (uses LPC), logging occurs sporatically with no errors, often only logging the first entry. Pete Loveall AME Corp. It might be a bug. You can report it : http://lab.msdn ...Show All
Visual Studio Plugging in the SDC WiX tasks to Team Build
One for the sdc team! I am trying to use the CompileMsi task from Microsoft.Sdc.Tasks, the documentation uses the following example: <CompileMsi SourceFiles="SourceFile1.wxs;SourceFile2.wxs" ...Show All
Smart Device Development Initializing COM in Cpp VS 2005
I am trying to write a program that uses a Web Service in C++, VS 2005. It fails because COM is not initialized. When I try to initialize COM in the usual way by making a COM class and then calling Initialize it fails to link saying CoInitialize is unresolved. Is there a library I should link in class CCom { private : HRESULT m_hr; public : CCom() : m_hr(E_FAIL) { ...Show All
Windows Forms displaying the content(files) of an existing directory with a button click vb.net2005
hi , i have a directory say "c:\root\sample" and i have some files inside this directory and i want to see the content of the directory with clicking a button in the program. how to do that many thanks You can begin with this: Dim path As String = "C:\" For Each file As String In System.IO.Directory.GetFiles(path) Console.WriteLine(file) Next ...Show All
Software Development for Windows Vista Need advice on State Machine workflow strategy
Hi, I have some questions on how to create a library that can be used by customers to create some good state machine workflow. Based on Dave Green's weblog , suppose I want to create a workflow that looks like this: State: Initial Action: T adds bug details Action: T assigns to developer D; new state = Fixing State: Fixing &nb ...Show All
Windows Forms Error Creating Window Handle
I created windows form application when I add large number of controls I generate "Error Creating Window Handle" Exception please advice It is not entirely clear to me, but instead of using labels, you could simply print the text yourself on a location. That would already save an incredible amount of window handles. Can you also answer the other questions I posted And: what is the added value of using controls at all ...Show All
