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

Software Development Network >> Pedro A. G. Carvalho's Q&A profile

Pedro A. G. Carvalho

Member List

danych
Ronald Widha
Mark Hotton
Ponnurangam
Hassan Ayoub
elsamma
Kohl.Mike
Jordanspringer
briendjf
Neal Hudson
Geir F
Krenshau
Sam Tyson 92
kjak
Andrew Feldman
ashk1860
Spangltk
Tryin2Bgood
dudeness
Capt Howdy
Only Title

Pedro A. G. Carvalho's Q&A profile

  • Visual Studio Express Editions Hex Calculations help Please

    I think I have presented myself with a rather difficult challenge. I need to convert a hex value to Radix 24. I'm not sure if this these are the right terms but I think it's converting a Base16 to a Base24. If any one could maybe help me out I would be extremely grateful. I have searched the internet for a long time and was only able to find calculators. I do need this for VBEE that's why I'm asking here <br> Well as far as I know you end up helping me 99% of the time. Thanks. As for changing Dims to Long and CLng I still get "Value was either too large or too small for an Int64." It happens at: N = CLng(Number) 'Convert.ToInt32(HexNumber, 16) This is what I'm trying to convert: 417173139863451964492081697286136322 And this is ...Show All

  • Visual Basic How to implement createevent() old api function in .NET?

    Any link would be very appreciated. TIA ...Show All

  • SQL Server Teradata, SSIS OLE DB Source error (0x80040E21)

    I am trying to use SSIS to pull data from teradata to SQL2005. 1. When setup ole db source, firstly i setup the connection manager. I tested the connection to teradata, it prompted Okay without problem. 2. then, there are 4 types of data access mode for selection.     If I select view directly, it works fine for copy specific view directly. But if I select SQL command(or from variable), it will prompt an error msg as below Error at Data Flow Task [Source - Testing]: An OLE DB error has occurred. Error code: 0x80040E21. An OLE DB record is available.  Source: "OLE DB Provider for Teradata"  Hresult: 0x80040E21  Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if avai ...Show All

  • Visual Studio Express Editions Delete content of txt file

    How to delete the content of an existing txt file What command to use thats not correct. The user would like to delete content of a text file , not textbox :-) you can use the FileStream/StreamWriter/Reader to go through the textfile and delete the text you like. its not a really efficient task but this is one way of doing so when reading/writing to a textfile http://msdn2.microsoft.com/en-us/library/system.io.filestream.aspx http://msdn2.microsoft.com/en-us/library/system.io.streamreader.aspx http://msdn2.microsoft.com/en-us/library/system.io.streamwriter.aspx http://msdn2.microsoft.com/en-us/library/ms404278.aspx There are many ways of doing this. One way would be to read th ...Show All

  • Visual Studio Team System Creating new reports for defects

    Hi. I'm having some trouble getting the reports in Project Portal to work. I need to provide a periodic status report showing defect counts by state for a couple of team projects. I'm thinking to myself "Hmmmm Visual Studio 2005 & TFS is so incredibly powerful, these reports are very likely built in". Am I high Question: Can a report of this type be easily created, and if so, how If the solution to create these reports is to go to the project portal, then click on Reports, then I've got anotner problem. When I do this I'm getting the following error: The report server is not responding. Verify that the report server is running and can be accessed from this computer. So there are a couple of pr ...Show All

  • Visual Studio 2008 (Pre-release) IList Best Practice

    Hi, I'm creating an operation that returns generic IList implementation (Collection or List). The proxy class generated returns an array of the generic type. I would like to know the best practice of doing this. Can svcutil be tweaked to return the collection or list Or am I stuck with arrays Thanks! That's not what I meant to imply. What I mean is this: You can convert a List<T> into an array of T in one line of code, and you can create a List<T> from an array of T in one line of code, so the "limitation" that XML serialization of service type responses forces conversion into an array isn't really that big of a nuisance. ...Show All

  • Visual C++ varaible conversion problems

    I can't work out how to convert data types to another data type: eg. An int object to a char. Below is my source code: // rand.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <fstream> #include <stdlib.h> #include <stdio.h> #include <time.h> using namespace std; int main( void ) { int i; int x; ofstream ofsout( "c:\\test.txt" , ios::app); /* Seed the random-number generator with current time so that * the numbers will be different every time we run. */ srand( ( unsigned )time( NULL ) ); /* Display 10 numbers. */ for ( i ...Show All

  • Visual Studio Express Editions the default settings SQL Server does not allow remote connections

    Hi, I just downloaded VS Express a few days ago. I tried running the personal website wizard, got the code generated, and I hit Ctr + F5 to run it and drive test the thing. I get the following message: Server Error in '/WebSite2' Application. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified). What can it be I am running a brand-new machine w ith Win XP Professional SP2. I am trying to migrate my skills from ASP (VBScripts) to this .Net thing. I get this pretty quickly, ...Show All

  • Windows Forms programmatically change datagridview pointer column size

    The pointer column in a datagridview is manually sizable with the mouse. How can I set the pointer column width programmatically Thanks If I understand correctly, you want to programmatically set the width of the datagridview column correct if so.... this.theDataGridView.Columns[ indexOrColumnName ].Width = newWidthValueHere; ...Show All

  • Visual Studio 2008 (Pre-release) hosting WCF in IIS

    Hi, I have a WCF service which works fine when i run it locally (using http://localhost :...) When i try using it from the webserver we have (IIS 6.0) I get this: "Unrecognized configuration section system.serviceModel." Does this mean i have to get my webserver admin to install .net 3.0 on the machine (he's not too keen on the idea..) Can anyone tell me what exactly are the steps needed to get this up and running Thanks in advance ...Show All

  • Visual C# Beginning C# / .NET Questions ( Timers, Strings, and HTTP servers)

    I've been a Delphi developer for several years but am trying to learn .NET and C# but I have a few questions... 1) Does C# / .NET have timers I'd like to setup a timer so that a function is called every XX minutes. 2) How can I split a string containing linebreaks into an array (or any other object) For example let's say I have "Hello<CR>To the world!<CR>" then I'd like a[0] = "Hello" and a[1] = "To the world!" 3) Does C# / .NET have any simple built-in HTTP servers I'd like my application to have a built-in webserver for remote configuration (sort of like a router configuration web server) Thanks for any help! sofakng wrote: 1) Does C# / ...Show All

  • .NET Development Navigating XML with C#

    Hello, I want to be able to go up and down the XML once I find the data element I'm looking for and retrieve it's associated data in other nodes of the tree. This is a TV lisings XML data set and here's a very small portion of it. < < xml version="1.0" > - <xtvd> - <schedules> <schedule program="EP0019520018" station="16123" time="2006-12-18T09:00:00Z" duration="PT00H30M" tvRating="TV-G" /> </schedules> - <programs> - <program id="EP0019520018"> <title>Green Acres</title> <subtitle>Oh, Promise Me</subtitle> <description>An error may mean Oliver and Lisa are not married.</description& ...Show All

  • SQL Server Which SQL priveledge is required for SQL user to execute DTS job?

    Question regarding SQL Server 2005 (sp1) Hello, I need to give a domain user the ability of executing a DTS package from command line using DTS run and I needed to know what specific grants to give to that user to databaseA 1. I added a domain user (domain_name/user) to the SQL Server and granted ddl_reader/writer and admin role. 2. installed SQLclient on user machine and showed user how to execute dtsrun.exe command with /E. I am not sure if these priveledges are correct. can somebody guide me on this thanks, Jigar there are new database roles provided in MSDB of SQL Server 2005. If the pakages are stored to MSDB then u can implement these restricted role. Refer : http://msdn2.microsoft.com/en-us/li ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA - Redistributable License Clarification Please

    Hi all, Hi all, I realise the XNA is only beta form, but I would like to make 100% sure that we would be allowed to distribute the xna dlls ourselves with any game we made. In my case this isn't for a commercial venture, rather there are a couple of development competitions I'm interested in, particularly at gamedev.net and xbox360homebrew.com - that I would like to enter a game based on xna for. For the xbox360homebrew.com competition, the rules are lax and the audience is basically other people messing with the XNA too. The gamedev.net 4E5 competition however is more strict as far as what has to be installed on an end-user machine to get a game working. I expect demanding them to download and install the 100s ...Show All

  • Commerce Server Getting SoldToName in Pipeline Component

    I'm building a C# pipeline component to handle credit card processing. I'm able to get the order form values without a problem. However, I'm not sure how to get the value for "soldtoname" which is stored at the PurchaseOrder level. Does anyone have any code examples where they've done this, or have suggestions Joseph is correct if you need a sample of how this is done look at my blog: Everything you ever wanted to know about pipelines but were afraid to ask (Part III) Here is a sample code (from ASP.NET): Basket basket = CommerceContext.Current.OrderSystem.GetBasket(userID); PipelineInfo pipeinfo = new PipelineInfo("Basket"); pipeinfo["OrderContext"] = Commerc ...Show All

©2008 Software Development Network