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

Software Development Network >> Fraser Drysdale's Q&A profile

Fraser Drysdale

Member List

Programm3r
HarveyC123
Bawaj
White-Tiger-Eyes
Jim Perry
Olodu
Selva Kumar.T.P
s.sanya
giba7
Briam
magcianaux
LMSmith
kayers
weiran
Carl Bruneau
yanivpinhas
Atlantaazfinest
Jim Shipley
killerbambam
Phonics3k
Only Title

Fraser Drysdale's Q&A profile

  • Visual Studio Express Editions How do I do simple Telnet actions?

    What I would like to do (would be a dream, actually) is to create a little program that would check my current IP from time to time, and if the IP goes out of the 201.47.###.### range (due to my IP being dinamic), it would restart the modem as many times as needed to get an IP that would be in that range. I know the codes to reboot my modem through telnet are only these: telnet 192.168.1.1 **** (user) **** (pass) reboot Now I need to create a program that would check if my IP is in the range I want, and if not, it would run those 4 lines above, I just don't know how to input those simple telnet commands in VB . I've searched throughout the forums and Google and only managed to find large codes of stuff that wouldn't work and I wouldn't ...Show All

  • Visual C# Cross-string operation not valid...

    Okay, I searched for an answer to my question and found this: Erwin van Hunen wrote: Officially you are not allowed to update control properties from a thread different from the thread the control was created on (the control runs on the 'main' thread I assume where as you want to set the label of the control from a second thread). VS2005 is a bit more 'picky' about this (as it should). You will need to invoke the method on the control to set the property. I use a small helper method to solve this: delegate void SetValueDelegate ( Object obj, Object val, Object [] index); public void SetControlProperty( Control ctrl, String propName, Object val) { PropertyInfo propInfo = ctrl.GetType().GetProper ...Show All

  • .NET Development Help with TripleDES and RC2 cryptography.

    I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA tutorial!!! PLEASE!

    Hi. Can someone write me a little tutorial that teach me how use XNA Game Studio Express (beta1) I've downloaded it but I don't know how use it. I'm good in C# programming but i've never used Visual C# 2005 Express. How can I use the Spacewar Example with Visual C# Please Help Me!!! See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=682463 for keyboard with spacewar. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. ID3D10Counter usage

    I'm trying to test Counters, with some problems. Here is a code snippet: const int nCounters = 5; const D3D10_COUNTER type[ nCounters ] = { D3D10_COUNTER_GPU_IDLE, D3D10_COUNTER_VERTEX_PROCESSING, D3D10_COUNTER_GEOMETRY_PROCESSING, D3D10_COUNTER_PIXEL_PROCESSING, D3D10_COUNTER_OTHER_GPU_PROCESSING }; int Value[ nCounters ]; ID3D10Counter *Counter[ nCounters ]; for ( int i=0;i< nCounters ;i++) { D3D10_COUNTER_DESC d = { type[ i ], 0 }; HRESULT h = pDevice->CreateCounter( &d, &(Counter[ i ]) ); if (FAILED(h)) throw i; } The counter creation failed when the third counter is created (I tried permutations) with the following error: First-chance exception at 0x767edde0 in ezDXUT2console.exe: Microsoft C++ ex ...Show All

  • Visual C# creating id names on the fly?

    I have a need to create new tabPages. I've done it. Now I have to put some meat on them. Specifically, they will have some surfaces that I do not quite know what they are. One of them seems to be a grid. I am using a prepackaged NPlot source code for this. Everything works on one tabPage flawlessly. Now I want to generate another tabPage, and perhaps more and put those two surfaces on each and draw graphics on them. When I tried to Control.Add (object) where the object is one of those surfaces I ended up with a new tabPage generated, two grids riped off of the original tabPage and set onto the new tabPage with a perfect plot on it. The original tabPage lost all surfaces as well as the original diagram. What I want to do is do some mu ...Show All

  • Smart Device Development Emulator mouse driver problem

    Hi All, I have been able to develop an OS image using Plaform Builder and I am able to deploy the application on the ARMV4i emulator. However, when then application loads I cannot seem to use the mouse on the emulator. The mouse pointer remains at a fixed location and cannot be used, however I can use the keyboard to navigate through the application. I have included the S32410 Matrix Keyboard/Mouse English device driver when the OS image that was built. From my understanding, it is the device driver that the Microsoft ARMV4I Device Emulator supports. Just to clarify what is installed, I have the following; Virtual Machine Network Driver for Microsoft Device Emulator ARMV4I BSP for Windows CE 5.0 Microsoft Windows CE 5.0 Emulato ...Show All

  • .NET Development Generate and read config data in XML form

    I was just wondering if XML can be generated and parsed very simply. I need to write a number of operating parameters into a file before my app exits, and then read them back when the app starts again. Can this be done in a very automated fashion by generating XML into a file I am exceedingly lazy and would hate to have to write code to parse parameters in traditional Windows dot ini file format. Sounds like a task for the a User Settings action . The settings file, which is written in Xml, is used for such purposes like reading in a value at start and saving it on close with minimal effort on the developers part.... See Using Settings in C# . ...Show All

  • SQL Server MCMS Content inventory

    Hi, I would like to know how does CMS stores content inventory in SQLserver. Example-If I create or migrate an application to CMS in sqlDB how does information is stored Regards T.Gunaseelan Hi, MCMS stands for Microsoft Content Management Server. The MCMS handles all the web contents using SQL2000 DataBase . I would like to know how it is handling or managing the content repsitory or inventory in the DB Regards, Guna ...Show All

  • Software Development for Windows Vista Synchronized "raise event" for a state worfklow

    I have a state activity with a self implemented generic event service to raise a event for a custom IEventActivity within the state activity. On state initialization there is an activity which sets the possible responsibles for the state. After that a GenericEventService.RaiseEvent should be possible for the evaluated responsibles. That means the RaiseEvent method has to wait till the state initialization has completed and the IEventActivity.Subscribe method is called to enqueue the item. I have used the WorkflowIdle-event to perform the synchronisation, but this event is not called everytime( ) I assumed that the following events are raised on loading an instance: 1) loaded 2) idled (but it's only called if an execution is already q ...Show All

  • Visual Studio 2008 (Pre-release) XamlParseException Error

    I have xaml in Expression that has a button on it from a custom control library. When I test it, it works fine. I have now exported the xaml into a file and am now dynamically loading it at runtime with another EXE. Upon load I get the error... " The tag 'SearchButton' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. Line '23' Position '6'. " Both projects reference the custom library and the dll resides where the EXEs get compiled. Any ideas This is the xaml file that I am loading. (Scene1.xaml) <Grid xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " xmlns:mc=" http:// ...Show All

  • SQL Server Reporting Services for SQL 2005 Standard

    How do you enable reporting services in SQL 2005 When i initially installed SQL 2005 i allowed everything to be installed, but now i do not see how to get into reporting services to get it started. I also look in the Surface Area Configuration Tool to see how to enable it but did not find anything. Can someone please help me Can you launch the RS Config tool from, %programfiles%\Microsoft SQL Server\90\Tools\Binn\RSConfigTool.exe Thanks, Sharmila ...Show All

  • Microsoft ISV Community Center Forums How to fill worksheets with HTML

    Hi guys, I have a workbook which holds approx 5 worksheets, every sheet is a result from a transformations (XSLT). I've written a vba code that turns this transformations in html outpurs, now I'm desperally wondering to distribute every html result in each different sheet. Maybe I'm probably clutching at straws but, if you don't ask you don't get. In my VBA this string (sHTML) gets the transformation XSLT in an HTML format sHTML = xmlDoc.transformNode(xslDoc) I already tried this Application.Goto Plan1 ActiveCell.Value = sHTML ...and this Plan1.Range("A1", "E10") = sHTML But nothing fills this HTML output in one of my worksheet. Will be this impossible to do I just ha ...Show All

  • SQL Server how to show columns with two decimal places

    HI , I've table whose output is some coumns. The colums show 6 digits after decimal point . My problem is i want to show only two digits after decimal point .. How to do using query.. Thanks From your question i seem that you are having the FLOAT datatype. You can do this in two ways 1) Modify the table column to DECIMAL(10,2), if you always want to have results in the 2 deciaml place or 2) SELECT cast ( 2.456576 AS decimal ( 10 , 2 )), if you want temp. solution. Note: This will Round-off the values. Gurpreet S. Gill ...Show All

  • Visual C++ FindFirstFile returing wrong results

    hi all , i used FindFirstFile function to search for files in folder and supplied a input as 'sea*' and though there is no file starts with sea still it is returing results as SEER_CSpringRight.xxx and SEER_ESpring_F_L.xxx .. Any help is appreciated . Might that have to do with short 8+3 names Open a cmd console and do a dir d:\test\se* /x Do you see and short names which start with sea -- SvenC ...Show All

©2008 Software Development Network