Mister2zx3's Q&A profile
.NET Development Type conversion error
I have multiple projects that depend on SSPI.h (taken from MSDN code samples). However, during the conversion to the .NET 2.0 Framework, this file is generating a type conversion error and I am not sure how to fix it. This is the error where _ _const_Char_ptr is typedefined as System::Char* error C2440: '=' : cannot convert from '__const_Char_ptr' to 'wchar_t __pin *' This is the code snippit: wchar_t __pin* pwszServerPrincipalName = NULL; if ((credential->SecurityPackage == Credential::Package::Ke ...Show All
SQL Server Why is sort so slow?
I set up a sample sort data flow that is attempting to sort 11M records totalling about 3GB. It ran for four hours and then I killed it. How can it be so terrible Am I missing some hidden tuning parameter DIdi you try to put an index on the sort column (the best would be a clustered index though this one is physically order by design), that should be helpful. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C# Date Validation on a Databound Textbox
Friends, I am curious if anyone knows a way to pop a validation messagebox based on what is already taking place in a date bound textbox in Visual Studio 2005. What I mean is this...... Yes, I can write a routine to run through the characters and check if it is a valid date but the textbox (and/or bound dataset ) seems to be doing its own validation. If I do not type in a valid date using a /, ., or -, the form simply will not let me advance to the next record using the navigator, which tells me that the textbox or dataset is doing it's own validation WITHOUT me having to write a whole new method to do it. I even checked an invalid lea ...Show All
Visual Studio 2008 (Pre-release) Clipping with binding
Hi all, I would like to clip everything which is the border. < Border BorderBrush = " #FF646464 " BorderThickness = " 2,2,2,2 " CornerRadius = " 5 " ClipToBounds = " True " > < DockPanel x:Name = " Frame " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " > < Grid DockPanel.Dock = " Left " > < Grid.Clip > < RectangleGeometry RadiusX = " 5 " RadiusY = " 5 " Rect = " 0,0,100,25 " ></ RectangleGeometry > </ Grid.Clip > < Rectangle HorizontalAlignme ...Show All
Visual Basic Detect New Object Focus
I have a form on which there is a text box that must have a value assigned. The exception is that if the user clicks on the "Cancel" button on the form I want to close the form with no further action. I have a LostFocus event on the textbox and in VB6 I used to check to see if the "ActiveControl" was the Cancel button and if so, I exited. This does not work in VS2005. It appears that the "ActiveControl" is still the textbox How can I accomplish detecting if the cause of the "LostFocus" for the textbox is a click on a specific button. Private Sub TextBox1_Leave( ByVal sender As System. Object , ByVal e As System ...Show All
.NET Development Need help with ResourceWriter
Hello, I have a project where I need to compile and link some resources. This works great when the resources are compiled with al.exe, but it does not work when I compile it myself using a CSharpCodeProvider. The resources are written to a resource file using a ResourceWriter just prior to compilation of the .dll. The resources manager wont read the generated .dll although when you compare the two files(the one complied with al.exe and the other) there aren't any differences. Any suggestions Thanks for your help Code follows: public static void MakeResourceDll( DataTable MDT) { string language = la ...Show All
Visual Studio Express Editions Is it possible to shell an application seamlessly?
I need to be able to run an application such as notepad or calc in the same way that I can start a browser inside my VB app ie. make the spawned program appear to be just another window in my program. Has anyone done this before SS$_TOOMUCHBEER Thanks SJ, There's noting wrong with billies code except what I hear RB saying is that he needs these things to be a part of his form just like the webbrowser control does. RB, if you don't need it to be a fixed part of your form, there are any number of ways to do this - includinf Billy's. If you need what you say you need, SJ, is totally right ...Show All
Visual C# Remote registry access
HI, Can anyone tell me how to access remote registry which is in different domain ...I am getting UnauthurizedAccessException What are you using and can you provide us related source code The UnauthurizedAccessException you get indicates that you haven't the rights to read the remote registry. This is a security issue and depends on the rights you have. ...Show All
Windows Forms Timing Textbox Events
Hello, I am grapling with what I thought should be a simple task but is becoming baffling to a learner. I have a textbox, and I need to change the text within the textbox at 5 second intervals. eg the textbox shows aaaaa, waits 5 secs then shows bbbbb, waits 5 secs then shows ccccc. The idea is I have 5 appliances that use RS485 coms. ...Show All
.NET Development furious developer -- can't compile hello world using SDK on windows x64...
This quote from here (http://devforums.amd.com/index.php showtopic=294&st=0&p=781&#entry781) summaries my frustration: "I'm starting to think that MS doesn't want developers to code for 64-bit version of windows on a 64-bit window. They would rather you program on a 32-bit version of windows targetting 64-bit window. WTF Why release a version of window in 64-bit when you can't freakin' develop a native 64-bit program on it Does that make any sense to anyone here Then you ask why there aren't any software written for 64-bit windows Perhaps, because of *** like this Why would a developer want to develop for a platform when he/ ...Show All
Windows Forms How to create windows Custom Control in VS2005? / cant find the template.
I need to create a custom Control Library file. The sample that I got from THE Code Project website probably using VS.NET2002. It says: 1. Select File> New> Blank Solution (I cant find blank Solution but Empty Project (I assumed) with VS2005) 2. Right CLick on the solution title and select Add> New Project. When New Project dialog opens, Select Windows Control Library. (I cant find Windows Control Library, only Class library, consoleapplications, empty project,etc) Questions: 1. Could anybody show me how to do that please 2. When a Component Icon (from the custom library) occur Is it from coding it or is ...Show All
Visual J# Not map fonts to unicode
Hi; I am actually hitting this problem in java, not J#. And it's Java2D so it can't be done in J#. But... There are some smart java people here so I figured it can't hurt to ask. I am trying to create a bitmap from a windows metafile. The problem I am having is I get a EXTTEXTOUT with a string that is a single byte of 0xE5 (keep in mind that a metafile treats strings as a sequence of bytes and I assume DBCS bytes - not unicode). The font I am using is symbol and char 0xE5 is the SUM symbol. But when I set the font to symbol and write that string, I get the undefined char box char. I think it looks for the unicode glyph 0xE5 in symbol and it ...Show All
Windows Forms DataFormatString in GridView
I wonder if someone else is suffering the same problem. I found DataFormatString in GridView not work very well when I try to display currency. In VS 2005 Beta version, it works fine, but after I use stardard version, it never display correct. For example: integer 3 always display like 3.0000 but in the beta version, it display like $3.00 which is what I would like. By the way, I assigned datasource, dataadapter and sqlcommand manually, everything else is good, even date format string works, but currency format just NOT work. Not sure if this is a bug DataFormatString {0:c2} Yes, I, too, have encountered the same thing. ...Show All
Visual C++ Here we go again... ><
Maybe I'll get the same guy who helped me last time to help me again... I have the file built and everything. Now compiling gives me an error, saying the iostream.h file doesn't exist so I can't use the #include<iostream.h> that I thought was standard for every C++ program... So how do I get the #include<iostream.h> to work I believe the file is currently just <iostream>, remove the ".h". Take a look at http://msdn2.microsoft.com/en-us/library/a7tkse1h.aspx for more details. I would also recommend you to search these forums (since I am sure the same question have been asked befor ...Show All
.NET Development Creating a ASP mobile app download page
Hi I’m new to ASP.NET so I’m hopping the following question can be easily answered by you experienced developers out their. I want to create a web service which will initiate a download with the client, the file being sent to the client will depend on a “downloadID” query string that the client post’s to my service. I know how to map this “downloadID” to the specific file to be downloaded, what I don’t know is how to respond to the client with some sort of download initiation. I just need to be pointed in the right direction. Thanks I would suggest looking at WSE 3.0 ...Show All
