Jacob Fogg's Q&A profile
SQL Server Using SQL Server 2005 Public Keys in VB.Net
I'm creating an asymmetric key in SQL Server: CREATE ASYMMETRIC KEY MY_KEY WITH ALGORITHM = RSA_512 ENCRYPTION BY PASSWORD = 'password1@' I'm then taking the public key... SELECT public_key FROM sys.asymmetric_keys WHERE [name] = 'MY_KEY' I'm trying to import this into VB.Net using RSACryptoServiceProvider. Dim RSA As New Security.Cryptography.RSACryptoServiceProvider(512) RSA.ImportCspBlob(KeyBlobByteArray) I have to add the following line to get it to not give me errors. (Why ) But the data looks right when I look at the exponet and modulus of the parameters th ...Show All
Visual C++ how to use far pointers to find system memory?
kindly tell me how to use far pointers to find the size of memory a system has(RAM) What do you mean by 'far pointers' I haven't seen a far pointer since the last time I looked at the 16-bit compiler (shudders). I would use GetSystemInfo to find out this information: http://msdn.microsoft.com/library/default.asp url=/library/en-us/sysinfo/base/system_info_str.asp ...Show All
Windows Forms Application Folder reference
My application resides in the different folders on development and production/client workstations Example of structure: c:\...\Visual Studio Projects\MyApp I have folder images located in the root of MyApp like this c:\...\Visual Studio Projects\MyApp\images When deployed the application is located in c:\Program Files\MyApp Images Folder is located in c:\Program Files\MyApp\images What is the best way to refer to&nb ...Show All
Windows Live Developer Forums Packet rate
Just a small question about the packet rate, does the 120 packets a minute apply to incoming and outgoing, or is it applied to outgoing packages only. Would make a big difference because if it applies to the total ammount of packages it means you can only send and receive a packet per second if you are using real-time package data. -joost As far as I know there isn't a real limit on the size. At least it's not meantioned anywhere (as you probably already noticed) and I have never experienced it. The 120 / minute limit is easy to test, because with a provisioned app, Messenger will just cut off your connecti ...Show All
Software Development for Windows Vista Dec VISTA - No LDDM Driver for ATI Mobility Radeon 7500
From http://samgentile.com/blog/archive/2005/12/24/32188.aspx Given Ian's success on a ThinkPad T43p with an ATIX600, I just installed Vista 5270 on a ThinkPad T42 which has an ATI Mobility Radeon 7500 instead. All the drivers installed except that one but I was able to install it using the Device Manager and Windows Update. The ATI Mobility Radeon Driver is totally supported in Vista. The only bummer is that there is no LDDM driver for it even in the CATALYST Drivers on the ATI Vista site so I can't get Glass. Otherwise, on this machine, Vista is performing perfectly. The new glowing ORB instead of the Start Menu is totally cool as i ...Show All
Visual C# Signing an assembly with a key container
The AssemblyKeyName attribute I've been using to sign my assemblies with a key from a container is now deprecated in VS 2005 (I'm using the Standard released version). I get this warning message: AssemblyInfo.cs(59,12): warning CS1699: Use command line option '/keycontainer' or appropriate project settings instead of 'AssemblyKeyName' But as far as I can tell, there's no way to specify a key container in the project settings, only a key file. I also can't find a way to specify command line options to the compiler. I can do both for managed C++ projects, but not for C#. The only workarounds I've found are (1) use a key file instead of a key c ...Show All
Visual Studio 2008 (Pre-release) Plans for Windows Mobile Pocket/PC?
Does Microsoft yet know their plans for Windows Mobile/PocketPC (.NET Compact Framework) for WCF The current netcf distribution doesn't contain non-soap/non-ws support (e.g. binary/tcp remoting), I'm wondering what kind of functionality we might be able to look forward to on a netcf version of WCF. Thanks! Yes, it would be nice to have a stripped-down version of WCF (like WPF will have WPF/E). What you can do right now is to use MSMQ integration binding because MSMQ is supported in .NET CF 2.0. I have tested it and it works (see a previous thread in this forum "Integration with MSMQ on .NET Compact Framework 2.0"). ...Show All
Windows Forms How can I bind a dataset to a WinForm TreeView control?
Hi, I would like to bind a DataSet to a WinForm TreeView control. Please I need a sample code. I appreciated your help! Thanks, I fixed a small bug sorry private void BindTreeView() { DataRow [] drArray = groupsDsTemp.Tables[0].Select( "PARENT_UID is null" ); foreach ( DataRow dr in drArray) { string text = dr[ "NAME" ].ToString(); string value = dr[ "GROUP_UID" ].ToString(); TreeNode tn = new TreeNode (text, value); BindSubGroups(value, tn); this .TreeViewGroups.Nodes.Add(tn); this .TreeVie ...Show All
Visual Basic PASSING PARAMETERS BETWEEN CLASSES
CAN YOU PASS PARAMETERS BETWEEN CLASSES IN VISUAL BASIC EXPRESS 2005 I HAV EN'T HAD ANY LUCK TRYING TO USE PUBLIC AND SHARED STATEMENTS. WHAT AM I DOING WRONG This is code for 1st form in VB express Public Class Form1 Public ANUMBER As Integer = 0 ' declare number as public Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ANUMBER = TextBox1.Text ' get number from keyboard MsgBox(ANUMBER)   ...Show All
Visual FoxPro _screen.ContinuousScroll problem
I noticed this problem just this morning after spending many hundred hours debugging my app for the past few months when everything worked just fine. This is the setup which is hardly unusual. There is a function in a prg file and a Click method that calls it. There are a couple of print statements like: "coimng out of the function: "+numeric_id and such in the function(s) and one in the Click method. All output is character strings. The button is clicked many times during the debug. I get only one line of output out of the function but the rest of it is overlapping this first line no matter where it is coming from. The ...Show All
Game Technologies: DirectX, XNA, XACT, etc. retrieving more than 4 values per texture lookup
Is it possible to have a texture with more than 4 values per texel My problem is, I need to look up a chunk of many values (about 16) multiple times per pixel and I like to do that quickly. In my setting more than three 2d texture lookups each time (= 12 float values) is the maximum I can allow without a significant performance drop. Also if anybody has experimented with 64 or 128 bit textures I'm interested to know about the performance of a lookup compared to a 32 bit tex lookup. Maybe it is reasonable to pack more values into those larger formats If that is possible at all. Nico No, you can’t g ...Show All
Visual Studio Team System Check Out of renew files
When I make check out of a file that a my colleague has changed, Visual Sourcesafe 2005 advise me of a renew version but it doesn't get the latest version. Is it possible modify this way to manage the files Is it possible to have an automatic "Get latest version" of the file when I check out it (like the old version of Sourcesafe) Hi Marco, I'm not sure I understand what you mean when you say "VSS2005 advise me of a renew version" If you mean that VSS proposes to checkout the local version, then yes, you can check it out, modify it, then you'll have to merge with the colleague's changes on checkin. If you want ...Show All
Visual Studio 2008 (Pre-release) Get all bindings on a page?
Hi all, I'm trying to create an ErrorProvider that I can give a data context to and have it display errors automatically thanks to the IDataErrorInfo interface. Is there a way to interrogate the current page (this is a WPF navigation application) to find all the bindings on the page Thanks, Do you mean is it possible at runtime to tell what properties on an object were provided through the binding system versus what was manually set on the object When I first think of it, I'd guess no. But then the various bindings have to be stored somewhere right...So let's dive into the framework and see what we find. Let's start with th ...Show All
Windows Forms WebBrowser Control and Mime Parts
Hi all, It seems that posting here on the forums takes an extensive amount of time to be answered, however, I shall try again. I am looking to display emails via the webbrowser control in .NET. Insofar, I have the entire message stored in a .eml file locally and simply point the webbrowser.document to the file uri of the message. The webbrowser is kind of a mixed blessing for displaying email. The ability to render images saves me the time to render and place them myself. However, for mime parts, I want to explicitly deal with them myself. What I am going for is to have the complete email rendered with all mime parts in the browser ...Show All
Windows Forms Why is my code not retrieving the selecteditem.text in my list box control???
I have successfully implemented similar code in other projects but for some reason its not working here. does anyone have any suggestions namespace TreasuryHelpDesk.controls //I have taken out the other code. { private void Page_Load( object sender, System.EventArgs e) { TechnicianDataAdapter.Fill(userNameDataSet1.Users); lbTech.DataBind(); //lblHeader.Text = "Technicians in " + Request.QueryString["name"].ToString(); } private void btnAdd_Click( object sender, System.Web.UI.ImageClickEventArgs e) { //Over HERE guys: it returns a null reference exception. i don't know ...Show All
