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

Software Development Network >> JamesPMiller's Q&A profile

JamesPMiller

Member List

NickNotYet
srinivasintouch
ZaaM IT
Will Merydith
Thomas Greenleaf
Han Qiao
haba
ShannonMurphy1234
Shan McArthur
lagu2653
Wei Ming
ACKH
Wellnow
WinFXGuy
gauls
Yogesh Kumar
Steve Jensen
JGP
Joshizzle
Sarah Cameron
Only Title

JamesPMiller's Q&A profile

  • .NET Development SerialPort

    I’m develping an application to send SMS using a celular phone as modem. Everything works perfect, the problem is when a I try to send a message , with a length over 130 . The limit for the SMS is 160 . Raise an excpetion in the command : sp.WriteLine(comando); In spanish it said "Uno de los dispositivos vinculados al sistema no funciona.", "The device don't work " or something similar. If the variable comando has a length of 255 (130 + other internal data) , it works. If it has a length of 257 (131 + other internal data) , raise the exception. If I send the variable to a log file, and then use that string in the Hyperterminal, it works perfect . What’s the problem Thank you, and sorry by ...Show All

  • Visual Studio Team System LoadTest PerfCounters and 64Bits WebServer

    Hi all. I'm running ASP.Net2.0 in a 64b server. When I run LoadTests from a 32b machine, the ASP.Net related perf counters are empty. To see this counters with perfmon (locally in the server) I changed the key: HKLM\System\CurrentControlSet\Services\Sysmonlog\imagepath to %SystemRoot%\syswow64\smlogsvc.exe It works fine in the server, but not when I use perfmon from remote (32b) machines How can I include 64b the perf counters in the LoadTest Session inside a VS 32b Thx in advance rido check out the following link. Reading 32-bit counters on a 64-bit machine ...Show All

  • Visual C# Delegates calling overhead

    Hello, I need to retrieve the value of an object’s property but the member property is not known at compile time e.g. I have object of Type Foo with properties FirstX, SecondX and ThirdX. So instead of having multiple if-else statements then having x = foo.SecondX (depending on some condition) , now I have something like x = pfoo.X where pfoo is simply a type that dynamically maps to a set of properties on Foo. The X property on pfoo is nothing more than an open instance method delegate that explicitly supplies the hidden first argument as the instance of Foo. Here is how pfoo looks like: class FooMapper { private Foo foo; private TypeUtility<Foo>.MemberCallback<int> x; public Foo Foo { ...Show All

  • Windows Forms i want to change the datagrid column header how can i do this

    i want to change the datagrid column header in the following function for example "Supplier ID" instead of SupplierID how can i do this Public Function Load( ByVal dg As DataGrid) Dim objSupplier As New Supplier Dim SupplierID As DataGridTextBoxColumn qry = "Select SupplierID,SupplierName,Address,City,Telephone,SupplierType,CreditFacility FROM Supplier WHERE IsDeleted = 0" mTable = objDataBase.GetData(qry) dg.DataSource = mTable End Function Dim TableStyle As New DataGridTableStyle Dim ItemIDCol As New DataGridTextBoxColumn mTable = objDataBase.GetData(qry) dg.DataSource = mTable ItemIDCol.MappingName = "ItemID" ItemID ...Show All

  • Visual Studio 2008 (Pre-release) How to: SSL passthrough from BigIP?

    We have a BigIP that proxies SSL handling for all of our servers. Our service however is using: < security mode = " TransportWithMessageCredential " > How can I configure WCF to understand that SSL is being proxied by the BigIP Thanks, Drew So it turns out there's a problem with this when I put it out into the test environment. Basically the username token implementation must have some hardcoded logic in it because it's trying to validate the endpoint address is something other than what is actually configured for the service. I've logged the bug here in Connect . I hope Microsoft is paying attention because I've been providing a bunch of feedback on this stuff and haven't heard ...Show All

  • Visual C# Defining custom functions for code snippets

    Code snippets allow you to use functions to do some processing on the data that gets inserted. AFAIK, currently there are only three functions available for C# (for instance SimpleTypeName). Would it be possible in any way to expand this set of functions For instance, I'm looking for a CamelCase function to be able to create a code sinppet that outputs code such as this: private int _myNumber; public int MyNumber { get { return _myNumber }; } Because of this naming convention, I only want to specify the type and name, and not as in the current propg code snippet, also specify the fieldname. Any ideas You might check here: http://www.devexpress.com/Products/NET/IDETools/CodeRush/ ...Show All

  • Visual Studio Express Editions only allow 1 number in textbox

    I only want to allow people to input one number into a text box how can i do this Here is the method (if you want to use TextBox) : Private Sub TextBox1_KeyPress( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If ( Not (TextBox1.Text.Length = 0 ) Or IsNumeric(e.KeyChar) = False ) And Not (e.KeyChar = Chr( 8 )) Then e.Handled = True End Sub ...Show All

  • SQL Server Active Directory and Stored Procedures

    I have a need to access the active directory from a stored procedure. I am certain that CLR is the answer but I am having a hard time finding and example and I am a true newbie to AD and CLR. Has anyone ever attempted to do this I would love to see an example in VB if possible. Thank you, I had seen the first link and had started working with it. I now have to find a way to convert the SID from a byte array so I can store it in my application. I am only storing the SID and will make "round trips" to the AD for all user information. I appreciate your help. Rick ...Show All

  • SQL Server SSL To SQL Server 2000 From VB6 : Error

    Hi All, I am trying to connect to SQL Server 2000 database from my VB6 code. The SQL Server is having the setting ON to force all incoming connections to use SSL. It is using a valid certificate with the same name as FQDN of the server and has been provided by the security department in my organization. I have got my client code on my desktop. I have installed the root CA certificate for the SSL certificate on DB server in my desktop's Trusted Root Certificates. When I try to access the database from my .NET 2.0 code, it works fine. The .NET code gives an error if I remove the CA certificate from my desktop. This behaviour is as expected. I am using Encrypt=True setting in my code here although I dont think it is necessary when se ...Show All

  • Visual Studio 2008 (Pre-release) Video in 3D environment

    Hello, Can Anyone tell me how to display a video inside a viewbox or a viewport3D in XAML code THX Actually it would appear the the Rectangle is not responsible for the reflection. If you look at the MeshGeometry3D declarations you can see that they each have 6 texture coordinates (enough to display the texture once, and once mirrored within a single MeshGeometry). - Doug ...Show All

  • SQL Server Connection closes abruptly

    My application consists of two modules, one in VB6, which performs Inserts and Updates on an SQL Express Server, and the other in VB.NET which performs Select operations on the same server. From last two days the .NET module (which performs heavy select queries), randomly gives an error : "Connection closed for this operation", and rarely gives an error : "SqlException: A severe error occurred on the current command". I don't know whether these two errors are linked to each other. But the former error is a very high priority for me, as it is application wide. This problem is occuring only in the .NET module. The VB6 module which uses the same server is working fine. Please help. Girish ...Show All

  • .NET Development .NET framework 3.0 setup CPU problem

    i try to install on windows xp sp2 (with visual studio 2005) and when it says please wait while loading components this could take 2-3 minutes bla bla bla....it just does that forever using up 50% of CPU.No log no nothing....any idea what i should do to install it First thing I would suggest is to disable your Anti Virus software. That should be the first rule of thumb. The next thing I believe someone else, or the guru Aaron (MSFT) will guide you correctly ...Show All

  • Visual Basic Getting a VARIANT* from activex control

    Hi all, I am using Visual Studio 2005, and have created a Visual Basic project where I use an ActiveX control. This control has this method; void getArray(VARIANT *); This VARIANT consists of a CComSafeArray of double precision floating points. Now I want to access this method from a Visual Basic application. As far as I have understood Visual Studio 2005 is using Visual Basic 2005 and that doesnt support the VARIANT data type. Therefore I have tried like this: Dim myVariant As Object = DBNull.Value myControl.getArray(myVariant) Now, my problem is how to access the elements stored in the safeArray which is in the VARIANT Hope someone can help me here! Thanks! ...Show All

  • Visual Studio Express Editions Uninstall Questions

    I'm going through the control panel, add or remove software tool, and the uninstallation has now crashed 2 completely different computers. It never finishes. Then when I come back and go to uninstall again, I receive nothing but errors. Any ideas Thanks in advance. [08/23/06,10:43:01] Setup.exe: [08/23/06,10:43:01] Setup.exe: ========== Logging started ========== [08/23/06,10:43:01] Setup.exe: ===================================== [08/23/06,10:43:01] Setup.exe: GetGlobalCustomProperty({481CEF9F-033A-11D3-ACE2-00C04F8EEBA1}) [08/23/06,10:43:01] Setup.exe: GetGlobalCustomProperty(B51015E7-26A5-4c8f-B871-26ABA9BEFB65) [08/23/06,10:43:01] Setup.exe: AddGlobalCustomProperty [08/23/06,10:43:01] Setup.exe: Com ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Heightmap Terrain Component

    I thought the whole component concept was pretty cool. So I threw together a quick heightmap terrain component. http://i9.photobucket.com/albums/a59/craigory666/heightMapTerrain.jpg http://i9.photobucket.com/albums/a59/craigory666/heightMapTerrain2.jpg http://i9.photobucket.com/albums/a59/craigory666/heightmapprop.jpg It should work with square .raw files, and for the effectPath I'm just using the default texture shader found in the help file. The view and projection matrices of the terrain are exposed, so you should be able to hook up whatever camera you have going and just update the terrains view, and projection matrices during your games update. using System; using System.Collections.Generic; using System.IO; using Microsoft.Xna.Fr ...Show All

©2008 Software Development Network