Tom Medland's Q&A profile
.NET Development Consuming object arrays in Web Services
Hello, I am getting to know about wonderful .NET Web Service features with VB.NET. For some reason, I can't get VB.NET to understand an array of objects defined in WSDL file. If you take a look on following url: http://www.nonplus.net/geek/samples/books.php wsdl you can see that there are ChapterArray, Book and BookArray types defined. If I make a web reference to the url above in my VB.NET, ChapterArray and BookArray won't come availabl ...Show All
Visual C++ Poly-Threaded C++ Applications
I have a few programs that I am converting to be threaded. At present I have a couple of programs, computer chess engines, that are threaded and work fine with Microsoft's C++ compilers. When the SMP.H #define's detect _WIN32 || _WIN64 it calls up process.h functions but on other platforms it need to use a bit map in ASM to manage the threads properly. Other considerations include inter-process communications etc. If threads dont need t ...Show All
Windows Forms How to expand text box automatically
I need to know how to get a text box to expand automatically to take the text rather than insert a scroll bar.Any ideas Here's something that could inspire you. You can either subclass the TextBox control and override OnTextChanged,&nbs ...Show All
SQL Server WHERE includes all letters
Hi I would like to perform a procedure which takes a string of numbers and searches for strings in a table which include all the given numbers in any particular order. problem is i can only return strings which include 'any' of the letters in the search string and not 'all'. this is how i perform it so far: @IncludeNumbers VARCHAR(50) AS BEGIN SELECT Phone AS [Telephone Number] FROM tbl_Person AS p WHERE (p.Phone LIKE '%[' + @Incl ...Show All
Game Technologies: DirectX, XNA, XACT, etc. colorvalue in progressive mesh sample
Hi, new to DirectX in C#, not in C++. In the August 2005 DirectX sdk update, there is a sample in C# called "Progressive Mesh". When I compile this sample, I get 36 errors, all of which are type or namespace missing errors. Here's an example. 'ColorValue', which is supposed to be of the Microsoft.DirectX.Direct3D namespace simple does not appear to be there. MSDN says it's part of the namespace, auto-complete does not.&nb ...Show All
.NET Development How to query delete commands against table with ado.net?
Hi, guess this should be really simple but seems as if I am just on the wrong track. All I want to do is delete every dataset in a certain table, which I would do with a query like that: "Delete From myTable" But how can I do that with ado.net I read through msdn-library but all I could find was something like: "myDataSet.Tables["myTable"].Rows .Delete();" Of course I am not willing to iterate over al ...Show All
Windows Forms fast loading datagrid and combo
Hi When there are are 10000s of records it takes lot of time to load datagrid. Is there any control that loads only records that will be seen on the screen at a time, then fetches records when we move below of datagrid using scroll. Regard ...Show All
Visual C++ How to get rid of warning LNK4086?
Dear developers: We are developing an agent which runs in embeded system. We compile the project in Windows, using MS compiler, then modify the header of generated binaries of Apps and DLLs, to comply with the executable file format spec in our embeded system. The problem is, we use __cdecl for all functions, include exported DLL entries, and there are warning LNK4086 when compiling the project in Windows. The warning itself is proper, and harml ...Show All
Visual C# system.drawing in VS 2005 ???
Hello everybody, I am (still) discovering VS 2005, and when I find some interesting code on the net it is, for 90% of it, from VS 2003... and I got a little but simple problem with the using... I got a using system.drawing in a code I found recently, but vs2005 doesn't know this namespace... could anyone tell me what is the path of the namespace in the latest version of VS. Thank you. don't forget : LIFE IS A PARTY :-) ENJOY IT. ...Show All
Windows Forms Windows form keeps dissappearing
Hi, Ive got a rather silly question... hope someone can help. I have created a project with several forms. One form in particular is causing me problems. I cant seem to find my main form (form 1). This is the second project this has happened in. The solution explorer lists all my forms except form 1 which is my main form. When i debug/run the code, my form comes up as per normal. Whats going on Why cant i find my form in solution exp ...Show All
Visual Studio Team System Deleting a project in RC
Looks like TFSDeleteProject.exe is no longer available in RC. Please advise. To be clear: you've installed the RC build of Team Explorer and are looking in %programfiles%\microsoft visual studio 8\common7\ide I'm not aware of a setup problem with this file. ...Show All
Visual Studio Using GDB as backend of Visual Studio instead of Microsoft debugger
I have written an addin for Visual Studio. This addin allows user to use GCC (MinGw) as compiler. This part works well. Now I want to add the capability to debug generated binaries using GDB with Visual Studio as frontend(Actually I'm using Insight but it's not a really well integreted solution as I launch another application out of Visual Studio). I dont know how I can replace the Microsoft debugger by GDB. If anyone has an idea it would be gre ...Show All
SQL Server Dynamic labels in chart.
Hi Is there a way in which I can set the labels for the X and Y axes for a chart programatically The values for the labels are returned from the database... I already have a stored proc which acts as the source for the chart. I might have the labels retrieved as a seperate query from the DB. Thanks Thanks.... Can we also display the Titles for the X and Y-axes from the database I have one query that generates the data for the report... I ...Show All
Visual Basic Prevent form of stealing focus
Hi There, I'm currently building a application where i'm in need to show a alert message (a popup). Now i have made a little form that will do this for me. But when the form comes up, it draws the focus right to it. This isn't nessecery becasue it just a message no respone on it is needed. Is it possible to disable a form to take the focus. In VB6 there where a api i can call, in 2005 i can't get the api to work. Can anyone help me ...Show All
Visual C++ Candidate function(s) not accessible strange case
When trying to call a __gc class static function in an assembly which has CLR and non-CLR types in its signature, I get a Candidate function(s) not accessible error. In an assembly, using /clr:oldSyntax: TSEShared.h -------------- // TSEShared.h #pragma once #include <string> using namespace System; namespace TSEShared { public __gc class Global { public: static std::string ToCppString(System::String *); }; } TSEShared.cpp ------- ...Show All
