tester13's Q&A profile
Visual Basic how to change struct to array under wince?(I have code but only run under other window platform)
The following code is I found at http://www.codeproject.com/vb/net/Marshaling_Structures.asp . But under wince and VB.NET,it could not be compiled. Please help me and give some way to solve it. From Structure to byte array: Private Structure Test Dim Var1 As Short Dim Var2 As Short End Structure ‘Start here Dim Tst As Test ' Stuctuer variable Dim ByteArray() As Byte ' initialize Structure (Dummmy Values) Tst.Var1 = 911 Tst.Var2 = 7 Dim Ptr As IntPtr = Marshal.AllocHGlobal(Marshal.SizeOf(Tst)) ReDim ByteArray(Marshal.SizeOf(Tst) - 1) 'now copy strcutre to Ptr pointer Marshal.StructureToPtr(Tst, Ptr, False) Marshal.Copy(Ptr, B ...Show All
Visual C++ How to handle CString in COM Interop
Hi, I have a C# dll which has functions: public string a() { string aa; . . return aa; } public void b() { } and a wrapper header created by system when I added MFC type library of C# dll into unmanaged c++ has: CString a() { CString result; InvokeHelper(0x60020005, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL); return result; } Now I am trying to get return value of a() and convert to char *, but following code doesn't work. if (obj.CreteDispatch("...")) { obj.b(); CString str = obj.a(); } obj.b() works but obj.a() is error. Can anyone help to work this out and how to convert CSt ...Show All
Visual Studio JIT Debugging problem in VC++ 2005
After installing Visual Studio 2005 on my computer I have problem in JIT debugging. For example, program has the following bug: int* p = NULL; *p = 0; When program runs in standalone mode, it shows exception dialog with Debug and Close buttons. If I press Debug, Visual Studio debugger doesn't start and program terminates. Additional information: XP Professional VS 98 and VS 2005 installed Jist-In-Time Debugging is enabled in Visual Studio 2005 (Managed, Native and Script are checked). Registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug Auto 0 Debugger "C:\WINDOWS\system32\vsjitdebugger.exe" -p %ld -e %ld Us ...Show All
Visual Studio Team System Why buttons are disabled in Web Test
I'm doing a load test for my website. When I was recording the web test via Internet Explorer, the data entry screen looked fine(submit button was enabled), but after the test was recorded, if I run the web test, the submit button is disabled. Any idea why that's the case Any suggestion on what to do Jason, That bug could occur if a web page had multiple forms containing hidden fields with the same name. It was fixed literally about a week after beta2 shipped, so the upcoming July CTP should work much better for you. Josh ...Show All
SQL Server Transferring table data from an ODBC database to a SQL Express database
I am a SQL newbie. I have two connected databases that I work with in Visual Web Developer Express or Visual Basic Express. One is an ODBC master database that contains much table data and the other is my new destination sql express database. Where I was once very comfortable using the query grid in Access to accomplish almost anything with tables, it seems like now it is much more difficult. Can someone offer me some simplified advice on how to easily transfer the table data in the ODBC database tables to the sql express database. I have read sections on BCP and Bulk Insert but so far I have ...Show All
Windows Forms DataGridView Color Picker
Hi everyone, I've been struggling for the past 2 days to get this straight. I created a DataSet with a DataTable called "Customers". This DataTable has a few columns and one of them is named "Color" typeof(Color) (I want to use this Color later on to actually display the customer rows with the colors specified). I created a new ColorCell, ColorColumn (to host the ColorCell) and a ColorEditingControl (for edit mode). First attempt was to inherit this ColorCell from a DataGridTextBoxCell however the Value is a String type and cannot be converted to a Color type. So I thought I could trick this by hiding the old one with a new Color type like ...Show All
.NET Development New Controls
Does Microsoft have plans for adding an IP Edit box control into VS 2005 Many developers have been looking for one with the same functionality used to change your IP address in the Windows Network Settings for many years. It would be helpful for one to be included so we could drag and drop onto our forms. -Jason David, You said that maskedTextBox allows you to move to the next component, could you clarify upon this. I am setting a custom mask as 99999.99 , for a decimal number. Its possible that a user wants to enter only 356.50, so he has two move till the decimal by using space which is of ...Show All
SQL Server user defined function in a select
Hello, i would like to get the result of a function in a select-statement depending on the result of an other column. I attached a little sample that works on the table syscolumns, so everybody should be able to check by now. The only thing I get is an error function name not recognized create Function fn_test( @N bigint) RETURNS Table AS RETURN ( SELECT @N + id as Result FROM syscolumns ) Sample SELECT: Select typestat, fn_Test( typestat ) FROM syscolumns Any hint would be very kind Thanks in advance Matthias It must work with SqlServer 2000, therefore I've splitted the function and use now a single ...Show All
Visual Studio Express Editions Want Visual C# 2005 Express Edition Beta 1 Installation
I first uninstalled Beta 1 of of C# 2005 Express and then tried to install Beta 2 but got a message that XP SP2 is required. My company doesn't support SP2 yet so I tried to install it myself but ended up getting a permissions error. I have administrator privilages but the XP SP1 on my system has been customized by my company. I would like to get back to where I was with the Beta 1 install, but can't find it on the site. Is there any way that I can get C# Express Beta 1 reinstalled on my system Yes, we have kept the Beta 1 manual installation instructions available online at: http: ...Show All
SQL Server Join to select a 'weighted' column
Perhaps is just brain drain but i cannot seem find an efficient query to join two tables (inv and supplier) such that an inv item can have multiple suppliers and i would like to choose the prefered supplier based on the current 'weight' column. declare @inv table ( item varchar ( 50 ), supplierid int ) declare @supplier table ( supplierid int , weight int ) set nocount on insert into @inv values ( 'item1' , 1 ) insert into @inv values ( 'item1' , 2 ) insert into @inv values ( 'item2' , 2 ) insert into @inv values ( 'item2' , 3 ) insert into @supplier values ( 1 , ...Show All
.NET Development Expecting Preamble error
Hi, I have a web service that talks to a process using remoting. At first I used http and it worked fine. I then changed the configuration files to use TCP, but I got a this error message: Tcp channel protocol violation: expecting preamble I made sure that all the URLs start by tcp://. I cant find what's causing this problem. Does it have something to do with using the Web.config file to set the remoting client configuration settings Thanks for the help. Well, Its most probably because, You are trying to make a tcp:// request to a http:// server channel. -- Kumar ...Show All
Visual Studio Using MSBuild to build multiple resource assemblies in multiple directories
I'm currently using MSBuild to build some resource-only assemblies in a group of directories. I have a directory structure that looks like this: [AppDirectory]\Resources\en-US\*.resx [AppDirectory]\Resources\en-CA\*.resx . . . Each subdirectory under Resources is named after a culture code. What I want to do is compile all the .resx files to binary (which is easy), and then link all the compiled resource files into separate assemblies, one for each culture. So far, I can figure out how to link all the compiled resource files into one assembly, but I can't figure out how to link all the resource files in the en-US directory into an ...Show All
Windows Forms want to hide checkbox in DataGridBoolColumn
Hi All, I want to hide some cells in DataGridBoolColumn as per my requirement. is it possible Thanks Aadi You can do that using CellPainting event of a DataGridView class. For example, let's "hide" contents of a cell in the second row and third column: If e.RowIndex = 1 AndAlso e.ColumnIndex = 2 Then e.PaintBackground(e.ClipBounds, True ) e.Handled = True End If ...Show All
Visual Studio Team System Team System for Project Managers
hi I am quoting this from microsoft site. " Design, develop, and test modern service-oriented solutions Team Suite combines the Visual Studio Team System role-based products into a set that address the needs of multifunctional roles in an organization. The Visual Studio 2005 Team Suite includes the following: Team Edition for Software Architects Team Edition for Software Developers Team Edition for Software Testers With Visual Studio Team Suite, the project manager, testers, developers, and architect know where they are on the project at all times. That means less time in meetings and on e ...Show All
SQL Server DB Mirroring Monitor and querying the "other" db?
So I successfully got the mirroring to run and now I'd like to see what's going on between the two servers ( i'm not using a witness). I launch the Database Mirroring Monitor and its showing the two servers but when I go to the history column I'm not seeing any data movement. I've done a an update on a db with 1500 rows so I was expecting to see this show up. Also, is there anyway to query the database thats acting as the mirrored db thanks daniel Can you verify that you are connecting to the Partner server as SA or in the DBM_Monitor role You leave the monitor up and running, corre ...Show All
