L_O_L's Q&A profile
Visual C# Form error message after upgrade form Beta 1 to Beta 2
Everything went smoothly after I upgraded. I had tons of errors and warnings but I'm getting them all sorted out. This one, though, I can't track down. When I open one of my forms I get this error message: Object of type 'System.Drawing.Size' cannot be converted to type 'System.Drawing.SizeF'. at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentModel.Design.InheritedPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAss ...Show All
SQL Server SQLBindParameter SQL_C_TYPE_DATE HY003 Error
I'm trying to use ODBC to send data to SQL Server from VC++. When I try to setup the parameters for sending a date to the database by calling SQLBindParameters(), I get the error HY003 "Program type out of range". This indicates that the 4th parameter, ValueType, is not correct. But I'm hard coding it to a known valid value. Actually, I'm copies code strait from the Microsoft Help and still getting this error. Specifically, here's the lines of code: DATE_STRUCT dsOpenDate; SQLINTEGER cbOpenDate = 0; SQLBindParameter (hstmt, 3, SQL_PARAM_INPUT, SQL_C_TYPE_DATE, SQL_TYPE_DATE, 0, 0, &dsOpenDate, 0, &cbOpenDate); ...Show All
Windows Forms To show Sql Report on windows form
Hello Friends, I have use Sql Reporting services. I can open report in IE from the windows. But now i want to show the report on the windows form. Which contorl i should user for that Please Reply me aeap. Nilay Also, check out the new Visual Studio 2005 ReportViewer Controls- http://whidbey.msdn.microsoft.com/library/ url=/library/en-us/rs_vsrpts/html/0334cfba-2cb7-4d8b-8927-e08b888450cd.asp frame=true ...Show All
Visual Studio how do I change the thread icon to green ?
Hello how do I change the thread icon to green, after I got answer to the question I posted I asked question about SS utility, got full answer, so I thought I can change the thread icon to green which mean that this question is not open anymore. Thanks Oren Hi, You can click on the button "Mark as Answer" on the reply, which is an answer for your post. This marks your post as answered.Then the icon color changes green. Thanks, Bhanu. ...Show All
SQL Server Failed DTS Package locks user out of SQL2005 (Windows Authentication) ... for good!
Would be interested in any advice or comment on the issue we are experiencing with SQL 2005. In order to test some DTS package migrations, we simply created a DTS package on SQL 2000 (using Export) to copy all database objects from one database to another. Then we restored the source database on SQL 2005 server, migrated the DTS package, and tried to execute it. The package migrated 'fine', ran part way, and then failed. Since then we have been unable to connect to the server (Database Engine, or Integration Services) using Windows Authentication. (Error 18456, Sev 16, State 11). We can connect to the Databa ...Show All
Visual C# Error '42022 is not a valid warning number'
I received this error message while building my solution: '42022' is not a valid warning number But on the 'Suppress warnings:' of the project property - 42022 is listed How do I fix or resolve this problem Thanks, dvinh Gus: Here is more info on the error. Thanks Duy -------------------------------------------------------------------------- Target CoreCompile: Task "Csc" Command: Csc.exe /noconfig /nowarn:"42015,42016,41999,42017,42018,42019,42032,42036,42020,42021,42022" /errorreport:prompt /warn:0 /define:DEBUG;TRACE /reference:C:\WINDOWS\Microsoft.NE ...Show All
SQL Server Error that has nothing to do with my cube
I right click on my AS cube and click "Process". It tells me the server content is out of date would I like to build and deploy first. i say yes. I get this error Error 1 File system error: The following file is corrupted: Physical file: \\ \E:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\Adventure Works DW.0.db\Dim Product.0.dim\1.Start Date.(All).sstore. Logical file . Errors in the metadata manager. An error occurred when loading the Product dimension, from the file, '\\ \E:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\Adventure Works DW.0.db\Dim Product.1.dim.xml'. Errors in the metadata manager. An ...Show All
Visual Studio Tools for Office Why do I have multiple instances of TrinStgClass when cut-n-pasting VSTO docs?
I have a number of documents that have been created using a VSTO 2005 template. If I composite these documents together using either cut-n-paste or InsertFile, then save, close and reopen the composited document, I get a "file has macros" warning where no macros existed in any of the source documents. If I open the document and VBA editor, I can see no macros - however I do see multiple instances of the TrinStgClass ((VSTO.RuntimeStorage class) in the project - (TrinStgClass1, TrinStgClass2, TrinStgClass4, TrinStgClass8, TrinStgClass12, etc.). I have found that if I save the document as XML, then re-save it back to the .doc format, ...Show All
Visual C++ calculating sin, cos, and tan functions
I have a program that calculates sin, cos, and tan but it displays it in radian mode. If i want to get this to degrees i have to do sin(x) * PI/180. When i do this it does not give me the right answer, please help. Here is code: #include <iostream> using namespace std; #include <iomanip> #include <cmath> const PI = 3.14159265359; int main() { // constant variable can be used to specify array size const int arraySize = 45; int s[ arraySize ]; // array s has 45 elements cout << fixed << setprecision(6); for ( int i = 1; i <= arraySize; i++ ) // set the values s = i++; cout <<&quo ...Show All
SQL Server Looking for the definitive answer: Microsoft SQL Server 2005 Express Edition x86 install failed
I installed, uninstalled, deleted, editted my registry etc and I finally goto to this error while trying to install VS2005 (released) on a Windows 2000 PC (that had Beta2 and RC1 installed & uninstalled): [11/17/05,16:46:51] Microsoft SQL Server 2005 Express Edition x86: [2] Component Microsoft SQL Server 2005 Express Edition x86 returned an unexpected value. [11/17/05,16:46:51] Microsoft SQL Server 2005 Express Edition x86: [2] Return from system messaging: The endpoint format is invalid. I did some searches this morning and hitting lots of things that don't seem to address this problem specifically. Does any one have "THE FIX" I ...Show All
.NET Development 100 microseconds timer
Is there a way to wake-up my process at 100 microseconds intervals I need to find a high-resolution timer in order to do an action about each 100 microseconds. The precision is not very important, I could correct myself by using the QueryPerformanceCounter if ever I need more precision. I'm using microsoft Visual C++ .net 2.0 and windows XP. Sebastien Binet .NET has 3 different timers available for your use. None of them are really high resolution however as they all are influenced by threading and event overheads. If you are updating a UI then use the System.Windows.Forms.Timer class. Otherwi ...Show All
.NET Development Problem on SymmetricAlgorithm and CSP
I have a basic problem on SymmetricAlgorithm and CSP in System.Security.Cryptograhy. I know it is easy to assign a CSP for AsymmetricAlgorithm, such as: CspParameters csp=new CspParameters(1,"Schlumberger Cryptographic Service"); RSACryptoServiceProvider RSA = new RSACryptoServiceProvider(csp); How can I do the same thing to SymmetricAlgorithm, such as DES Bacause I want the key of Symmetric algorithm is generated and saved by a hardware CSP. Is it possible If you know, plz let me know. Thank you very much! Best regards Oh, please! Is there someone can help me I would a ...Show All
Visual Studio Guid for build output pane?
Hello, Can anyone please tell me where I can find the GUID for the build output pane I'd like to use IVsOutputWindow.GetPane to manipulate the content of this window. Thank you, Notre Hi Notre, This value is defined in vsshell.idl and Microsoft.VisualStudio.Shell.Interop.dll //vsshell.idl cpp_quote("DEFINE_GUID(GUID_BuildOutputWindowPane, 0x1BD8A850, 0x02D1, 0x11d1, 0xbe, 0xe7, 0x0, 0xa0, 0xc9, 0x13, 0xd1, 0xf8);") Thanks Dr. eX http://blogs.msdn.com/dr._ex ...Show All
Windows Forms Call function on Parent form
I have an application in C# where I make changes to a database in a child form. When I close the form I want a function to be called on the parent form to refresh the view it has of the database. However, I can't figure out a way to reference the parent form without getting an "Object reference not set to an instance&nbs ...Show All
.NET Development GUI thread, memory leak and Garbage collection
Hi all, I seem to be chewing up memory at a nasty rate when my app runs. It has a polling loop and not surprisingly this is the part that keeps doing it. I think I've located the line that is my main offender and its when I marshal to get back onto the GUI thread so I can update my controls. private void KPI_ScreenUpdate( KPI KPIType) { if ( this .InvokeRequired) this .Invoke( new KPI_ScreenUpdateDelegate (KPI_ScreenUpdate), new object [] { KPIType }); else { DPL_Units_Through.Value = myKPI_Shift.Units_Through; DPL_Shift_Time.Value = tmpElapsed.ToString(); // blah blah ...Show All
