Oleg Kalenbet's Q&A profile
Visual C++ regarding win64 Dll reference issues
hi, I ported a win32 vc++ Dll into win64 Vc++ DLL(extended Stored Proc) aim of this DLL is it acts as Interfcae b/w MSMQ and Sqlserver my machine consists of win64 hardware and win64 OS. and win64 supported .Net Framework. .net 2005 and sqlserver2005 i used vs2005 as editor.i,e i opened it as vc++.net project with some small changes i compiled that into win64 DLL. in configuration Manager i specified it as Active win64. and DLL was Sucessfully build. when i tried to run the extended stored proc which uses that DLL i got the following error. Msg 17750, Level 16, State 0, Procedure xp_TestDataComm, Line 1 Could not load the DLL xpDataComm.dll, or one of the DLLs it references. Reason: 193(%1 is not a v ...Show All
Windows Forms DevExpress
Has anyone....other than me.....have trouble using DevExpress's control when doing no-touch deployment Thanks, Trey Trey Is that you Bill I've been using DexExpress controls with no-touch deployment without any problems. What kind of problems are you having ...Show All
SQL Server Need Help on this SQL Statement
Hi All, sqlLstProds="Select * From PRODUCT_DEF "&_ "WHERE productID IN(Select productID From PRODUCT_DEF WHERE (IDProductCriteria = 5) AND ([Value] = '"&getSession("ModelID")&"')) "&_ " Order By IDProduct, IDProductCriteria" I have the above SQL Code in an ASP page. This queries the Product_Def table, however there is also a table called Product_sType, the primary key in that table is productID which corresponds to productID ub the Product_Def table. I need to add to the query a where clause, where active = 1 active 0 is obviously discontinued products, how would I do this So basically, it's somewhat of a join of some sort, like select * from Produc ...Show All
Windows Forms an Issue about property in winform usercontrol
Hi everyone now I am focusing on developing a winform usercontrol and find a issue about the property. In the usercontrol, I place a label control on it and with a property "FrontColor" to change it's Forcolor. I set a default value "Blue" to the property. After the control is finished building. I add it to a winform project and find a line code in Form1.Designer.cs this.userControl11.FrontColor = System.Drawing.Color.Blue; I think if I changed the property's default value, say" Red",then place the new-version dll into winform runing dir, how about it Having the trying, I find that the color of the usercontrol is "Blue", rather than "Red". and I tried delete the line code in Form1.Drawing.cs and run the winform application, finding t ...Show All
Visual Studio 2008 (Pre-release) Analyzing SecureConversation for Interoperability with WCF and Cardspace
Hi, I've been working on Cardspace and WCF for almost a year now. I've implemented a full STS in C# but without using any MS WS API (neither WSE 3.0 nor WCF). This STS runs in a very small device which implements an embedded .NET CLR. This STS is now compliant with Cardspace using IE 7 and the selector with authentication like Mutual Certificate and UsernamePassword when Negociate credentials is turned off. In order to achieve this I had to dig into WS-Trust, WS-Security and WS-SecureConversation (as well XmlDsig and XmlEnryption) and certainly other specs I don't have in mind! To materialize this experience I have written an article for CodeProject that should interest people who are working on interoperability issues with WC ...Show All
Visual Basic Click a form button inside webbrowser
Hi all. I am trying to extract data from some web page, using webbrowser control, but first i have to login. I would like to login automaticly. On my web page, as you allready know, I have username and passwor fields that i can fill using following code: Me .WebBrowser1.Document.Forms(0).GetElementsByTagName( "INPUT" ).Item(0).SetAttribute( "VALUE" , "user123" ) Me .WebBrowser1.Document.Forms(0).GetElementsByTagName( "INPUT" ).Item(1).SetAttribute( "VALUE" , "pass123" ) What i dont know is how to perform a click to the submit button. This is its html code: <INPUT TYPE="SUBMIT" VALUE="SEND" NAME="PRIJAVA"> Th ...Show All
Windows Forms How to enable a control from the parent form when the child form is closed?
This is the code I have but havent found a way to compile it Private Sub Form2_FormClosed( ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase .FormClosed Dim myForm As Form1 Dim btn As Button Dim myControl As System.Windows.Forms.Control myControl = myForm.Controls.Find( "Button1" , True ) btn = CType (myControl, Button) btn.Enabled = True End Sub Tks I changed the code to this, but the button is still disabled after closing the child form Dim myForm As New Form1 Dim btn As Button Dim myControl() As System.Windows.Forms.Control myControl = myForm.Controls.Find( "Button1" ...Show All
Visual Studio Team System Profile Fails
Problem: 1. Create a simple project. e.g. namespace profiletest { class Program { static void Main( string [] args) { for ( int i = 0; i < 100000; i++) { Console .Write( "." ); } } } } 2. Create and exectued a profile session. 3. Everything runs fine, but upon completion of the process I get the following error: Performance report c:\profiletest\profiletest060811.vsp contains no data The file profiletest060811.vsp exists and is 212 KB long, but Visual Studio will not display anything after the error. If I run the exact same project on a different computer it profies without any problems. I formatted my hard drive and reinstalled Windows ...Show All
SQL Server Cannot open database "xx" requested by the login. The login failed.
Hi, we are running a webapplication, using IIS6, Windows 2003 64 bit in classic Asp. In the ASP pages we connect to our SQL server (SQL Server 2005 64bit,windows 2003 64 bit), mirrored on a third sql server (same software /hardware setup as the first sql server). The mirroring is without witness. This works but sometimes we get the following ODBC error in our ASP application : Description: [Microsoft][SQL Native Client][SQL Server]Cannot open database "OBJECTS" requested by the login. The login failed. No error can be seen in the principal SQL error logs. But a failed authorization can be found on the mirror server.. And this of course this makes sense, as t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. End users shouldn't have to rewrite XNA math functions in order to improve performance.
The overhead of passing a 64 byte Matrix by value is significant. Most especially when you are comparing two matrices for equivalency (==), or performing a Vector*Matrix multiplication (Vector3.Transform(Matrix)). The following matrix comparison function performs 5-10 times better than your built in == comparison. If the matrices are equal, then it is about 5 times faster. If they are unequal then it fails fast, and is about 10 times faster. public static bool Equals(ref Matrix a, ref Matrix b) { // i check the diagonal first for quick fails return a.M11 == b.M11 && a.M22 == b.M22 && a.M33 == b.M33 && a.M44 == b.M44 && a.M12 == b.M12 && a.M13 == b.M13 && a.M1 ...Show All
Visual Studio Express Editions coding help
Public Class Form1 Dim ans As String Public Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'whatever is in here will be executed when you start the program' End Sub Public Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'whatever is in here will be executed when you press the button 1' test() 'this gives me "test is type and cannot be used as expression" ans = InputBox( " thats it" ) End Sub Public Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End Sub End Cla ...Show All
.NET Development Troubleshooting .NET 2.0 Framework Running an App Built in VS2003
I developed a standalone client app in VS2003 that runs fine with the .NET 1.1 Framework installed, as expected. It fails, however, when only .NET 2.0 is installed on the machine, giving a dialog box entitled " MyAppname.exe .NET Framework Initialization Error". I have read through the Microsoft article entitled " Microsoft .NET Framework 1.1 and 2.0 Compatibility," which says that Microsoft's goal was backward compatibility but that there are roughly 10 known breaking issues with backward compatibility. My question is: How can I get some diagnostic information at runtime about what problems .NET 2.0 is encountering so that I can attempt to fix the problem(s) You cannot create an application that uses th ...Show All
Visual Basic Write data to SQL database
I have a small program that I am writing and it scans through a .txt file to find "key" information for me. The "key" information is stored in a 1-dimension arrary temporarily. As I find the data I want to write it to a SQL database for storage until I call for the data to populate a calendar in CrystalReports. Can someone please help me! I don't know how to do anything with SQL in VB.NET . See thats the thing. I'm pretty new to creating, opening/closing, and reading/writing db's. I just need some code to get me started. ...Show All
.NET Development Clarification needed on MembershipProvider
Hi, Can I use ActiveDirectoryMembershipProvider to authenticate the users on OpenLdap(one type of Authentication server like Active Directory). Regards, Suresh S No - sorry. The AD provider was only tested against Active Directory. Internally it also makes some calls that are AD specific. ...Show All
Visual C++ Amount of Graphics Card Memory
Does anyone have a segment of C++ code that could return back the amount of memory that is in the video card I'm attempting to adjust the user's graphics settings based on this value. Thank you very much in advance. :-) -Zach P.S. If this thread doesn't belong in this forum, please tell me WHY and I would be very happy. I am looking for a C++ code segment aren't I This is out of the scope of these forums. For more details on the scope of these forums, please take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 OTP Thanks, Ayman Shoukry VC++ Team ...Show All
