rhonda945's Q&A profile
.NET Development How to return COM interface instance (Interface**) in InvokeMethod
For several reasons I need to do late binding for a special class of COM interfaces but get into trouble when trying to get data from a particular COM interface method. I'm trying to get an instance of an interface by calling InvokeMethod on another interface but there is no data in the instance after the call. ////////////////////////// // from IDL ////////////////////////// interface ISession : IDispatch { [ id (1), helpstring ("method ...Show All
Visual C++ problem reading registry
Hi all I have a problem reading a registry key value : ret = RegQueryValueEx(hkey, L"SchemeName ", NULL, &type, (LPBYTE)data, &len); this code returns ERROR_SUCCESS; however data always contains only the first letter of the value ... len = 512, data is declared as char[512]; I suspect the problem comes from a mismatch between UNICODE and ASCII but I don't know how to work this out. Can anyone help Thanks Emmanuel ...Show All
SQL Server Linked Server and Non-sysadmin User
Hi, Can a user not belonging to sysadmin fixed role run queries against the linked server (Excel Linked Server) User has permission to the folder/file (Excel File). If not possible, can this be achived using Proxy account Thanks Shafiq See this thread for answer http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=405118&SiteID=1 ...Show All
Visual Studio Team System Process Templates - Check-In Policy / Build Types
The documentation for creating custom process templates doesn't mention how I would set the default check-in policy (I wish to force code-analysis and customize which rules are turned on/off), or how I would include one or more build types by default. Is there a way to do this within a process template No checkin policies are not part of the process template. They are configured separately. Perhaps i ...Show All
SQL Server Top Instruction in SQLMOBILE
As I have tested the top instruccion doesn’t exist I sqlmobile isn’t it How I could load in my dataset for example the 20 next registers of the last register I have load in my dataset previusly Thank for your Help. you will probably have to clarify your question so we know exactly what you are trying to do. I will move this thread to the Sql Mobile forum. Thanks. ...Show All
SQL Server Data Access Differences in SQL Server 2005
Hello, We have a large set of applications that we developed and build for use with Borland InterBase (5.x-7.x). We have moved/migrated off of Borland InterBase to MS SQL Server 2005. We are find some situations where InterBase was an more elegant solution and finding it difficult to find the right way to change our applications to achieve the same result. In InterBase, our Database Transactions allowed our user to make changes to the DB ...Show All
Smart Device Development using the serial port class in VB
Are there any samples around for using the serial port class in the framework for VB All I want to do is read some data off the port..... thanks.... Bruce. I worked on a VS2005 program many months ago to explore and use the com serial class with desktop CF2 (VS2005 Beta 1). I developed from a sample I found elsewhere. It fully exercises the desktop serial class. I then ported it to ...Show All
Visual Studio Team System test case
Hi All, I have a class which uses two text files as input to their functions. While generating test case for them using VSTS 2005 how can i supply data for that. Please reply ASAP. Thanks in advance VIKAS code is as follows : public static bool VerifySortcodeAccountNumber( string sortCode, string accountNumber) { //Opening weight table file to read StreamReader weightTable = File .OpenText( "E:\\Applications.NET\\Assemblies\\V ...Show All
SQL Server Convert numbers to Month Name
I have a stupid field in my database that doesn't hold a date but I have to use it to determine the month in my Chart in SSRS 2005. So for example, check this out: http://www.webfound.net/chart_months.jpg Ok, so how can I change those numbers to the Month Name I tried MonthName() around my field in the expression builder, but that's only for a datetime field. Write a UDF with input as int month and return it as varchar month. Use ...Show All
.NET Development Access - cannot execute a simple "Update" statement.
This is really strange because I normally have no problems whatsoever executing queries, updates, deletes, or inserts. My table is very simple: "Properties" ID long Nam text Val text I have no problems deleting, quering, or inserting into this table. However, when I try this: OleDbCommand command = ...; command.CommandText = "update Properties set Val = @Val where Nam = @Name"; ...Show All
Windows Forms Form Resize
I design my software in 800, 600 form size. My client's computers have their resolutions set differently based on the operator's preference. Is there an easy way to make my windows forms resolution independent That way no matter what ...Show All
Windows Forms Stack Overflow Exception when show a form whose MDIParent is invisible
I know its a bug for .NET 2003 and there is a article about it in http://support.microsoft.com/ kbid=893710#XSLTH3120121125120121120120 Does anyone know if there is any service pack or patch that can fix it Its really annoying because this exception can crash the whole application and you cann't use catch exception to avoid it. Thanks ...Show All
Visual C++ reference to an int array
I was trying to understand the working of a reference to an int array and a pointer to an int array as parameters to a function. For example, a reference to an int array would be void func (int (&arr)[] ) and pointer to an int array would be void func(int (*arr)[]) But it seems like for a reference to an int array, you must specify a size for the array but for the pointer case, size is not required. In other words, void func ( ...Show All
Visual Studio Team System KB913393 MISSING from TFS installation media
I've been trying to upgrade TFS Beta 3 Refresh to RTM using an update I found on this site: http://blogs.msdn.com/robcaron/archive/2006/03/17/554115.aspx Downloaded TFSUpgradePackageRTM.exe to upgrade my TFS Beta 3 Refresh install and got as far as Step 8: Install the ASP.NET Update from the Product Media. Here it states: You must install an update for ASP.NET before you install Team Foundation Server RTM or the installation will fail. The ...Show All
Visual C# How to convert an integer number to alphabet
Is it possible in .NET to convert an integer number to alphabet Like this: 1 ---> One 2 ---> Two .... I don't want to create a mothod for this, I need a .NET module, like Int32.Parse(). Thanks for any help. Check this article http://www.codeproject.com/samples/number_to_text_converter.asp ...Show All
