Software Development Network Logo
  • Visual C#
  • Visual Basic
  • SQL Server
  • VS Team System
  • Windows Vista
  • Audio and Video
  • Windows Forms
  • SharePoint Products
  • Visual Studio
  • Microsoft ISV
  • Visual C++
  • Smart Devicet
  • Visual FoxPro
  • .NET Development
  • IE Development

Software Development Network >> Grayson Peddie's Q&A profile

Grayson Peddie

Member List

MaggieChan
Lars Breiter
Uro
seco
Joseph Stalin
Cesar Francisco
Eric Hausig
chaza
Dracosveen
Paapa21
Kimo_SPIDynamics
Valery Zharkov
Judyt
Mehdi Mahdloo
Wasting Body
lingga
sapaplanus
Roman Koreshkov
MShetty
Steph74
Only Title

Grayson Peddie's Q&A profile

  • Visual Studio Express Editions wide characters in program

    #include "stdafx.h" #include <iostream> #include <string> int main() { std::cout << "Please enter your first name: "; std::string name; std::cin >> name; std::cout << "Hello, " << name << "!" << std::endl; return 0; } wchar_t where do i put this in for wide characters like japanese thanx Jonathan Caves - MSFT wrote: You should note that wide-character strings != Unicode. [... ] - surogates are a perfect example of something that will trip them up. So can I say that those functions work in UTF16 , or is it more serious than that - Dennis ...Show All

  • .NET Development How can I load public key for RSA Encryption?

    I received a public key in plain text from someone. I would like to encrypt a text with the following code, but I receive an error "Invalid syntax on line 1" at rsa.FromXmlString. However, the xml syntax does seem to be correct. Could anyone help me StringBuilder publicKey = new StringBuilder (4000); publicKey.Append( "<RSAKeyValue><Modulus>" ); publicKey.Append( "mQGiBDx8qmoRBADkmGkD4yFiglUMJpanthzMo96n+7X4eXCL2/OK98wQFbeDQSU5" ); publicKey.Append( "XDEz7Myf7F+pks4xl1l2StUsSGI5LUuuJ+I/qFmUUZtEAwX1QMy3hJ9U2VvdvudL" ); publicKey.Append( "2aVXoKsMFy4IWYA8da/wOMC673+5P+/Ez2zls7/LczgG/tY23jMmE0RnswCg91L6" ); publicKey.Append( "5W6vy7VWHltlFhRdgnD91UEEAOJusU71GPKU5DGKwMSYyy9x+Ohs9GwnfhIiwhj0" ); publicKey.Append( "JJZI ...Show All

  • Visual Studio SourceForge plug-in for Visual C# 2005 Express Edition?

    Hi, I'm using Visual C# 2005 Express Edition and I'm developing an open source application and would like to publish it at SourceForge. Is there some plug-in available to handle source control at SourceForge easily Thanks, Magnus I believe SourceForge uses CVS. If I remember correctly there's at least one add-in for VS2005 for CVS. see http://www.sourceForge.net for more details. ...Show All

  • .NET Development VWD Express-Accessing the SqlDataSource: Can not open user default database. Login failed.

    Hi all, In my VWD 2005 Express program, I created a website "DobsonCh11" that had (1) Norwind.mdf file in my SQL Server Management Studio Express(SQL Server Express), (2)  Northwind.mdb and Northwind mdf files in the App_Data folder, and (3) the following default.aspx.vb:  Imports System.Data.OleDb Imports System.Data.SqlClient Partial Class _Default Inherits System.Web.UI.Page Protected Sub form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles form1.Load If Not Me .IsPostBack Then Me .Title = "Connect/query local databases" Me .Button1.Text = "Query Access" Me .Button2.Text = "Query SQL Server" Me .Button1.Width = 125 ...Show All

  • Windows Forms unzip & zip w/ SharpZipLib... plus ListBox Q?

    Hi all, [C#] I need to unzip a folder structure & save it to a location then zip it up again after the changes.  Is SharpZipLib the best option for the following. using ICSharpCode.SharpZipLib.Zip; FastZip fz = new FastZip();        fz.ExtractZip(zipFile, targetDirectory,""); ListBox question: So there may be a zipped directory with 2+ folders containing subfolders in it that has the file I need (foobar.xml...etc) ... how do I unzip these to a specific location (C:\WorkingFolder\) and add all the required files to the ListBox [WorkFolder] | Folder01   | SubFolder00     | SubFolder01        | SubFolder02    &n ...Show All

  • SQL Server Writing Query To Dynamically Select a Database Table

    Is there a way I can write a query to dynamically select a database table. That is, instead of having a variable for a certain column like customerId which would be “customerID = @customerID” I want to use the variable to select the table. I assume I may have to use a stored procedure but I am unclear as to how this would be coded. Thanks hi kevin here's some code to start with use northwind go alter proc dynamicselect ( @Mytablename nvarchar(30) ) as declare @cmd nvarchar (2000) select @cmd = 'SELECT * from '+ @Mytablename exec (@cmd) go exec dynamicselect employees exec dynamicselect customers however i suggest you consult this link http://forums.microsoft.com/MSDN/ShowPos ...Show All

  • .NET Development DLL loaded twice

    Hi, I was looking at DLLS used by a process using ProcessSpy and found that the process has loaded two DLLs for few of the system dlls like Systsem.Drawing.Dll, System.Windows.Forms.Dll etc. For one of these DLLs the version is 0.0.0.0 and the other one has a valid version. Unfortunately, I can't add a snapshot of the window here. What I am wondering is, whether its pretty common to have this behavior or something is wrong in the taks, the way it is loading DLL. Thanks, -Brajesh Your guess might be right, as I see that the version 0.0.0.0 is being loaded from C:\windows\assembly\nativeimages1_v1.1.4322\system.windows.forms\1.0.5000.0__b77a5c561934e089_fa580ca7 and the other version is b ...Show All

  • Visual Basic Dynamic Memory Allocation in Visual Basic

    I am new to Visual Basic, but have had some training in C++. I was working on a program in Visual Basic 2005 where I need to allocate memory to an array dynamically. The array is to be of type ButtonRow, (which is a class I've created for this program). I want the size of this array to equal the total number of rows in a given table. I can figure out how many rows are in the given table, and store that value in a variable (MaxRows). I need to dynamically allocate the ButtonRow array with the size of MaxRows. How do I do that in visual basic Is there a Visual Basic equivalent of the calloc and malloc commands Also, just to give you guys a complete picture, the ButtonRow array is to be a universal array available to all subs within the gi ...Show All

  • SQL Server problems at beginning of set up

    Before I get into the project that I actually need working I'm trying to get through an example or two provided by microsoft. I'm using the Flights sample from http://msdn2.microsoft.com/en-us/library/ms160889.aspx I've downloaded the files and follow the instructions but quickly ran into trouble. I select the configuration file, enter the needed information, check the 'enable instance after it is created' box, and click okay. This takes a couple minutes but finishes without errors. I then try the register step. I enter my login information for the computer I'm using and use windows authentication. After click okay here's the error I get: Registering Instance - FlightInstance - Updating registry entries (Success) ...Show All

  • Visual C# Scroll a Panel

    How Can I force a panel to be scrolled to desired point you can do the next: panel1.VerticalScroll.Value = 200; also u have this 2 properties for know the min and max value for the vertical scroll panel1.VerticalScroll.Maximum; panel1.VerticalScroll.Minimum; you also have the same for the HorizontalScroll mig16 ...Show All

  • .NET Development How to terminate Asynch call?

    Hi, How to terminate Asynchronous call. I am calling BeginAcceptTcpClient, there is no TcpClient available, i want to terminate (or stop) that thread. IAsyncResult ar = _tcpListener.BeginAcceptTcpClient(AcceptAsynCallBackResult, _tcpListener); Kindly suggest me how to go about Thanks & Regards, kalai Yes, the callback is called and it will throw ObjectDisposedException on EndAccept. class Program { static TcpListener listener = new TcpListener(347); static void Main() { listener.Start(); IAsyncResult ar = listener.BeginAcceptTcpClient(OnConnect, null ); Console.WriteLine( "Press ENTER to stop..." ); Console.ReadLine(); listener.Stop( ...Show All

  • Visual Basic AllowLaterVersions and forward compatibility

    I am setting up my first deployment project on VB.NET 2005, and I'm getting a warning that concerns me. I saw the AllowLaterVersions property of the Framework. This seemed obvious to me that it should be turned on, since I do want this application to still run in the future, as new Framework versions are released, and the user installs them. And, I am assuming MS will make them forward compatible. I also get an error on build about this, noting that the project contains a managed custom action. Am I interpreting this property correctly By default, the Setup program will not run if the .NET Framework 2.0 is not installed, even if a later or earlier version of the ...Show All

  • SQL Server sql connection

    I set up a user called "user1" on sqlexpress" I ran an app I wrote that connects to sqlexpress. From one machine I enter...("computername\sqlexpress"). I then enter user1 and password and the connection connections works fine to the server hosting sqlexpress, but on another machine, when I try to login the same whay I get an error "Login failed for user 'computername\Guest'". I can't understand why this is happening. I never set anything up as "Guest". I entered 'computername\sqlexpress' not computername\Guest". Any ideas out there as to what may going on. thanks In your error message does computername show as the name of the computer where ...Show All

  • Visual Studio Team System Long file names?

    Hmm, getting a lot of errors on schema import like this: Path for file C:\Documents and Settings\Highway\My Documents\Visual Studio 2005\Projects\Highway\Highway\Highway\Schema Objects\Tables\tblwFinancialTransactionActionReasonLookup.FK_tblwFinancialTransactionActionReasonLookup_FinancialApplicationId_tblwFinancialApplication_FinancialApplicationId.fkey.sql is too long. Yup, sounds quite long. Does this mean it didn't import it, or has it secretly shrunk the filename and imported it Sadly, it looks like your running into a limitation of MAX_PATH. That full string is 289 characters long. You'll need to move your project out of Documents and Settings. Cheers, Brian Randell MCW Technologies ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Trying to draw a pixel

    Hi guys. I'm working in a little experiment with colours. I created an array of colours, with 800x600 dimensions. I was able to paint the colors using spriteBatch and texture2D of 1 pixel, but the yield is terrible. There is noway to draw a Point or a Vector2D not using SpriteBatch or textures Primitive ways to draw in screen I see something in the example project inside XNA, RetroAsteroids, but It draw with VertexPositionColor, and it isn't what i'm searching thanks a lot (sorry for my english, i know) PD: I hope the solution won't be a Matrix of Proyection... =S <quote>I'm not sure you understand how 2D graphics operate in XNA, or at all, with modern graphics cards. The age of actually ' ...Show All

©2008 Software Development Network