Larryk01's Q&A profile
Windows Forms WndProc and GetMessageExtraInfo
If I insert a call to the Win32 API "GetMessageExtraInfo" in my override of WndProc, will I get the same result as if I had called it in an "old fashioned" C++ Windows message loop For example: [DllImport("user32.dll", EntryPoint="GetmessageExtraInfo")] private static extern IntPtr GetMessageExtraInfo(); protected override void WndProc(ref Message m) { int ...Show All
SQL Server Unable to Install SQL Server 2005 after BETA
I have completed the uninstallation instructions for my beta versions of SQLExpress (repeatedly). I have used the manual unistall procedures also. I have physically removed the SqlServer directory from the the Program Files directory. The result is the same. This message appears every time I try to to install the MS SQL Advanced package: "SQL Server 2005 setup has detected incompatible components from beta versions of Visual Studio, Net Framework, or SQL 2005. For detailed instructions on uninstalling SQL Server 2005, see the SQL Server 2005 Readme." The detailed instructions are NOT detailed enough. I have uninstalled th ...Show All
Visual Studio Team System Working with Cross project Reports
Hi, We have multiple team projects environment. How can we produce a cross project reports For example, we would like to see all the active bugs in all team projects. Thanks, Michael If you ware using December CTP this approach should work; replace the Project parameter in the report: ORIGINAL: <ReportParameter Name="Project"> <DataType>String</DataType> <DefaultValue> <Values> <Value>=IIF(LEN(Parameters!ExplicitProject.Value) > 0,Parameters!ExplicitProject.Value,SPLIT(Globals!ReportFolder, "/").GetValue(IIF(split(Globals!ReportFolder, "/").Length > 1, 1, 0)))</Value> </Valu ...Show All
Visual C# PInvoke: C-function returns struct containing pointers to void
I have an unmanaged .dll which I want to call using PInvoke. The .dll is written in C and I want to call a function in that .dll. This function returns a pointer to a struct. No part of this solution has previously been written in C#, so I'm introducing a new C# project. Before I've solved this type of problem by declaring the struct in C# translating all of the members to managed code equivalents. I've been told to avoid unsafe code as much as possible. The struct which the returned parameter points to contains pointers to other struct and also pointers to void. One of the members of the struct has the implementation "typedef struct name_of ...Show All
SQL Server How to Insert One Row with Multiple time depding on Source Column value in SSIS Pacakge
Hi ! I need help for SSIS Pacakge. using condtional Split How to insert One records with Multiple time depending on Source column value .Is there possible to wrtie the condition in Conditional split. For Exmaple : Source Table Name : tbl_source following Column Name: col_Name1,Col_Name2,Col_Name3, col_Id,Col_Descrip table contain only one records:GRD1,SRD1,FRD1,100,Product I want Insert the Destiantion table the Follwing Condition. using Conditional Split. 1)Cond1 (!(ISNULL(GRD1)) 2)Cond2 !(ISNULL(SRD1)) 3)Cond3 !(ISNULL(FRD1)) I need the Following output Destination Table Name : tbl ...Show All
Visual Studio Team System TFS 2005 Beta 3 install problem
I'm trying to install but installation reports this error in a dialog window Error 28100.Error loading Event web service pressing retry gives a logon dialog "Connecting to Team Foundation server" that do not accept anything !! pressing cancel terminates the install :-( This error was happened to me last week too, I checked the setup log.. the error seems due to the user account setting, I just create the three TFS account without password and the error appeared in my frist few beta 3 installation. I then reinstall everything from Windows 2003, create TFS users with password, enable IIS... ...Show All
SQL Server Changing a field background color IIF.....
Hi All, I need to change the backgroung color to a field in the background property.... =iif(Fields!act_shp_dt.Value <> Fields!prm_shp_dt.Value , " Late ","") This is the field and I want it to change color if the statement is true. Can anyone help Thank you in advanced, Kerrie Thank You so much for your help. That did it!!! ...Show All
.NET Development Reg the SQLBulkCopy Class
Hi for my application, I have to do a bulk transfer of records to my Db(MS SQL). But the Records have to be fetched from different db.May be Oracle,MsAccess. What i was doing was, opening a connection to the db and move the records to a dataset. After that moving the records to my db using for loops. Now i came to know about the SqlBulkCopy class and found it interesting. My Doubt is, if my db is Oracle and i have fetched the records from the Oracle Db and placed into a dataset, Can i use the SqlBulkCopy class to move the records into a table in my database If so, kindly help with some coding samples... Thanks in ad ...Show All
.NET Development remoting?..networking? am lost
hi all, after spending some great deal of time on the internet searching...i surrender. i am an ASP.NET developer who has moved recently to work on WinForms application. i have to create this application which is composed of client/server sides. client and server share some datatables between. which need to be synchronized from time to time. and since am illitrate in anything of networking and remoting !! i ask help....where should i start...do i need remoting for this application or only networking how to move records and do synchroniztion between each !! damn i started to miss asp.net already! :) any help is highly highly appreciated ...Show All
Windows Forms FYI - "Fixing" javascript events with .NET Framework 1.1 and SP1
For those of you who are using or were using javascript events prior to SP1 with the .NET Framework and are having issues - there exists a fairly straight forward workaround. Steps to take: 1. Do not use standard Javascript event syntax or object.attachEvent(...) - Both of these raise SecurityDemands for the UnmanagedCode permission - which will fail in IE unles ...Show All
SQL Server Null values
Hi, How can I use "Derived Column" to check if a Datetime value is null or not and if null to insert 00/00/00 instead. The background being that while using a "Derived Column" to change a Column from a (DT_DATE) to a (DT_DBTIMESTAMP) everytime I get a null value it see's it as a error. And the column in particular has ~ 37 K blank / null fields so Im getting a lot of errors So far I have tried to use something like ISNULL([Column 34]) Or SELECT ISNULL(ID, '00/00/0000') FROM [Column 34] Or SELECT ISNULL(au_id, '00/00/0000 00:00') AS ssn FROM [Column 34 but none seems to work [Column 34] being the offe ...Show All
Visual C++ Question about "RUNTIME_CLASS"
Hi, This is a fairly newbie question so apologies if I am slow. I have a "MainFrame" thats a derivitive of a CMDIFrameWnd. I also have a descendant of that frame called ChildWnd, thats a derivite of CMDIChildWnd. I dont seem to declare the CMDIChildWnd any where apart from like this RUNTIME_CLASS(ChildWnd); I assume as the name suggests this is a dynamically declared and instantiated class, i guess since there can be lots of the them. Now from pretty much anywhere in my application I can reference the "MainFrame" and call SendMessageToDescendants to call a method in the ChildWnd. However is there any other way t ...Show All
SQL Server Problem Understanding ADO.Net:SQL Connection Manager
I'm working on programming SSIS using Visual Studio 2005 and C#, and SQL Server 2005. I'm running on Windows XP SP 2. I've found examples of setting up packages w/ OLE-DB connections to SQL Server 2005. I've been able to build these and they appear to run. I've found the magic "DTSAdapter.OleDbSource.1" ComponentClassID and several other SSIS component classes in my Registry and by running the sample program in the docs: ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/dtsref9/html/ff92a96a-8af6-4532-82cc-c0bbff92401b.htm OK, *if* I understand this correctly, there's a new high-speed managed code connection manager / component kno ...Show All
Visual Basic Web Part Deployment Error [ Microsoft SharedPoint Portal Server 2003]
hi i am trying to deploy the webpart i am getting this Strange Error A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered on this site as safe. did any had come a cross this type of error in sharedpoint portal server 2003 please let me know th e solutions i am really confuse on this Strange Error warm regards syedhanif Hi! The best place for asking about Visual Web Developer or ASP.NET is on the ASP.NET community site, and in the forums there. Check out http://www.asp.net/welcome.aspx tabindex=1&tabid=39 . HTH, PEt ...Show All
Windows Forms How can I hide the caret of a RichTextBox control?
Hello, Can you please tell me how can I hide the caret of a RichTextBox control completely while my app is running Thanks. Just pass the handle for your control and the API will hide the caret inside the control ... You can use dllimport to use this api and then pass the appropriate handle to get the desired effect. [DllImport("user32.dll", EntryPoint="ShowCaret")] public static extern long ShowCaret(long hwnd); [DllImport("user32.dll", EntryPoint="HideCaret")] public static extern long HideCaret(long hwnd); Now call these methods and then pass the appropriate handle ...Show All
