ku19832001's Q&A profile
SQL Server Easiest and performance effective way to store blob into varchar column
Hi, My package dumps the errors into a table. The problem is, it couldnt dump Error Output column to a varchar field. I have added an script component in between to transform to string but no success. I tried ErrorOutput.GetBlobData(0, ErrorOutput.Length) but when I query the database, it says "System.Byte[]' I will appreciate the responses to this post. Thankyou, Fahad Okay, so you redirect error rows out of a Flat File Source. The columns that get output have the same data type as defined in the flat file source. I don't understand where the talk of BLOB and BYTE comes in. ...Show All
.NET Development How to compile SimpleSnapIn sample in MMC 3.0 on Win2k3 R2 using VStudio 2005?
Hi - I'm trying to compile SimpleSnapIn sample but got 3 errors "The type or namespace name 'SnapInInstaller' could not be found (are you missing a using directive or an assembly reference )" The other 2 errors are similar to this error but referred to 'SnapIn' and 'SnapInSettings'. Any idea how to fix this compile error I'm new to MMC 3.0. Jenny You need to add a reference to the assembly that implements the Microsoft.ManagementConsole namespace. I'm not sure how you get that assembly but I guess you need to download and install the MMC V3.0 SDK ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Error loading downloaded samples
HI, i've tried running some downloaded smaples, etc. but i am having trouble with them which give me this error when I attempt to start a debug: System.Security.SecurityException was unhandled Message: That assembly does not allow partially trusted callers. I have my .NET security level at Full trust. Hope someone can help me, thanks. Never mind, I just noticed this was caused because I was running the project from the temporary files folder. For anoyone else having this problem, when you download the samples simply save them in your My Documents folder. ...Show All
Windows Forms Output Window, WriteLine
Hi, I generated a winform CLI test C++ project on a standard version of Visual Studio 2005, only to contain the button 1, and to use the click event as a test-for-loop to write to the output window. System::Void button1_Click(...) for(;;) Console::WriteLine("Problem"); Then let the project to run in the DEBUG mode, and to make sure the code is trapped by the for loop to observe the string "Problem" displayed by the output window. The output window remains unchanged and even adding a manual define DEBUG to the project did not help either. Is there a need for some additional settings for the output window to work, Any comments Regards, Reza Bemanian Not sure I ...Show All
Visual Basic Process.GetProcessesByName can't get process info
Hi folks, Process.GetProcessesByName works fine when it was running as an administrator, but it gives an error when running as a plain user saying "Can't get process information from remote machine." The operating system is Windows 2003 server Std, and the machine is configured to be a terminal server. Anyone help with this I am pretty lost, thanks. windflower wrote: The operating system is Windows 2003 server Std, and the machine is configured to be a terminal server. Are you running your program in a Terminal Server session or on the real system console If you are running in a terminal server session, try repeating the test on the real system console. Also, which versio ...Show All
.NET Development XmlAttributeOverrides and renaming elements
Hi, I'm using xml serialization to create an xml file, however I need to change some of the names of the xml elements that will be generated (actually I only need to make them all uppercase, don't ask!). I can't change the class that is to be serialized as it has been autogenerated, using xsd.exe, from an xsd I also cannot change. XmlAttributeOverrides appears to be the answer and I have changed most of the elements, however, there are a few elements that I'm having trouble changing. I would love to post some of my own code here but I'm struggling to condense it into something manageable, so I'd like to use the example on http://msdn2.microsoft.com/en-us/library/system.xml.serialization.xmlarrayattribute.aspx . In this example I c ...Show All
Visual C# whats the function for to the power of? example 10^3 = 1000
I keep searching for this but power is just too common of a word. whats the function for to the power of example 10 to the 3rd or 10^3 = 1000 I need to do Z = X to the power of Y. Thanks in advance ...Show All
Visual Studio VS2005 Accessing Internet when debugging
I don't know if anyone else has noticed this, but my VS 2005 keeps accessing the Internet when debugging code. The code isn't talking to the internet - it's just a normal, native-code, MDI, DocView app. I notice this as we have to log on to a proxy server to access the Web - and when I hit the "Go" button, up comes the proxy login dialog... My first question is: why Although my guess is that it's looking for symbol information. And the follow up is: why is VS 2005 accessing the Internet without telling me what it's doing and without asking permission Sorry, MS, but this is bad, Bad, BAD! And then, number 3, how do I turn it off Oh yes, I've checked the debugging options and I do not have any symbol servers configured - the set ...Show All
Windows Forms Checkbox + datagrid
Hi! I am working with an sql database that it's loading into a datagrid. I would like to personalize my datagrid and add checkboses on the first column. There is my code : public class PersonnalisationDataGrid : Form_Consult { private System.Windows.Forms.DataGridTextBoxColumn Column1; //private System.Windows.Forms.DataGridTextBoxColumn Column2; //private System.Windows.Forms.DataGridTextBoxColumn Column3; public PersonnalisationDataGrid() { // // TODO: Add constructor logic here // this .Column1.HeaderText = "Column1"; } private void CreateMyDatagrid() { //DataGrid MyDataGrid = new DataGrid(); dataGrid1.Bounds = new Rectangle( new P ...Show All
.NET Development Help with DES Encryption & Decryption using C#.Net
Hi, Could you spare some time to help me with a small problem I need to perform encryption and decryption using the DES algorithm. This is the way I want the program to work : My form has 4 textboxes - 1) tbPlaintext --- For the user to enter the plaintext 2) tbCiphertext --- For displaying he ciphertext 3) tbKey --- For displaying the key 4) tbIV --- For displaying the Initialization Vector and 2 buttons - 1) Button1 --- When clicked performs encryption using key form tbKey and the IV from the string - "init vec" 2) Button2 --- When clicked performs decryption using the key in tbKey and the IV "init vec" The user enters the plaintext -"Hello wo ...Show All
Visual Studio Express Editions Didn't get expected dll file, why?
I am new to VC express. I just created a dll project and hope as a result, it can produce iNote.dll file in debug dir. But even though build succeeds, dll file never shows up. I can only see some intermediate files: iNote.dll.embed.manifest iNote.dll.embed.manifest.res iNote.dll.intermediate.manifest How can I get the dll file 1) Press alt+F7 (or goto project->properties menu) 2) On the left select "Configuration properties" then "General" 3) On the right click the drop down box for "Output Directory" 4) Select "Edit" from the drop down list 5) Click the "Macros" button 6) Scroll down to the bottom and examine the "TargetPath" e ...Show All
Software Development for Windows Vista Silent elevation in IE7 protected mode
I'm trying to make use of the capability for IE7 to silently elevate a broker process to medium integrity, as described here: http://msdn.microsoft.com/ie/default.aspx pull=/library/en-us/IETechCol/dnwebgen/ProtectedMode.asp#wpm_elebp Unfortunately, this information seems to be incomplete; it decribes the values that need to be filled in to the registry, but not the structure of that data (e.g., "A REG_SZ value for the executable name" but not where this REG_SZ lives). Is there more complete documentation for this, or better yet, a working example While I'm on this topic... I have been able to use the CoCreateInstanceAsAdmin() function described in various places with some success, but there are some times when I really want CoC ...Show All
Visual Studio 2008 (Pre-release) Nested WinFX Custom Controls
I have a custom colorpicker control a'la Kevin Moore's example in the SDK and I'm using it within another custom control. The parent control has a color dependency property that I'm trying to bind to the colorpicker like so in the parent control's generic.xaml resource dictionary: <cust:ColorPicker x:Name="myColorPicker" Color="{Binding Path=ParentControlColor, RelativeSource={RelativeSource TemplatedParent}}"/> But this doesn't seem to work. Actually...this doesn't even work: <cust:ColorPicker x:Name="myColorPicker" Color="Red"/> Color is exposed as a dependency property in the colorpicker control. When I change values in the colorpicker it doesn't cause the parent control's " ...Show All
Visual C++ Difference between winsock and CSocket
what is the Difference between winsock(Windows socket 2) and CSocket. I have to collect data from microcontroller on pc side. which library package should i use. Bye "wraps winsock2" means that CSocket just calls the winsock 2 functions. As for for how can you build a TCP/IP protocol that mostly depends on what you want to communicate. Given the fact that you say that you need to collect data from a microcontrolller that makes me ask how does that microcontroller connects to the computer Does it really uses a network connection so you can use TCP/IP and CSocket ...Show All
Visual Studio Express Editions Can i use the .NET fw like this?
Is there a way I can compile code without the visual studio, that is, writing code, then just using some kind of compiler (a bit like the compiler for java--"javac.exe") I am ok with non-object oriented programming. The .NET Framework has the C# and VB compilers, csc.exe and vbc.exe which can be used from the command line to compile code: you don't 'need' a development environment...(just like we don't 'need' the internet... ). However, the language (framework) is a bit more extensive than a straightforward procedural language, and designed for object orientated programming, so your best bet would be to start with one of the Express development IDEs then move on to manipulating the command line (compiler), to get the ...Show All
