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

Software Development Network >> ron nash's Q&A profile

ron nash

Member List

KC.M2Family
GunaChinna
swingme
Apollo13
sofakng
Cindy Liu
Raphael Chan
cremated
Gondore
aliasx
LennardF1989
KarimG
guilhermecvm94558
Tomas Jecha
Mikes2nd
EricLeBouffon
geedubb
aniketr
TurboTom
nmfl
Only Title

ron nash's Q&A profile

  • Visual C++ TCHAR[]... How to manipulate it?

    Hi, I have a variable declared as TCHAR szFileName[260]; This variable contains a filename which is correctly printed out using the _tprintf() function. How can I check whether the string contains "iexplore.exe" I've been searching through google and trying to convert it to CString without any success. Pls help. Granted that szFileName is null terminated, if(_tcsstr(szFileName, _T("iexplore.exe")) != NULL) { /* ok, deal with it */ } TCHAR is a macro which expands to wchar_t if _UNICODE is defined, and char otherwise. The _T() seen above is also a macro, which will prefix the string literal with L if _UNICODE is defined, which is necessary for unicode strings. ...Show All

  • Visual Studio Express Editions opening a user selected file with excel from a vb app

    Im writing a front end in VBExpress, and I am having trouble with the following The user selects a file to "analyse" Openfildialog1.filename () I want to pass this file name to Excel and have it open it automatically..... I can open excel independent from any file using "shell" But I dont know how to pass the selected file as the file to open... I know its probably easy, but Im stuck, and cant find any information anywhere Thx If your needing to actually extract the data from the Excel file and use it in your VB Application the process.start is not the solution. This will merely start up the excel spreadsheet in the default application (ie. Excel) I ...Show All

  • Visual Studio Tools for Office Right Click Event on Email Item

    Right now i am trying to edit the right click menu of outlook 2003 using VSTO. also i want its events so that i can do some necessary work becore the right click menu. Any help regarding this would be appreciated. In versions before Outlook 2007, Outlook does not directly expose the right-click context menu in its CommandBars collection. You will, however, see a new right-click command is when the item selected is using a custom form that includes one or more custom actions. You can also add a custom action without using a custom form, as demonstrated at http://www.outlookcode.com/codedetail.aspx id=526 Richard Kagerer has posted a code sample at http://www.outlookcode.com/codedetail.aspx id=314 that shows how you might trick Outlo ...Show All

  • SQL Server USE Command - Reference a different Server Instance?

    I would like to transfer data between two instances of SQL Server 2005, using simple T-SQL. Is this possible to include something like: USE [SERVER1].[dbo].[databasename] Thanks in advance, John. Thanks Jens, this now works. I did have to perform one additional step before doing this. I had to add the server in question to sysservers. To do this, ran the following query: EXEC dbo.sp_addlinkedserver 'DatabaseServerMachineName', 'SQL Server' Thanks again, John. ...Show All

  • SQL Server Problem:long running validation when pointing OLEDB Source to a view.

    One of our developers has written a view which will execute completely (returns ~38,000 rows) in approx 1 min out of SQLMS (results start at 20 sec and completes by 1:10 consistently). However, if he adds a data flow task in SSIS, adds an OLEDB Data Source and selects Data Access Mode to "Table or view" and then selects the same view, it is consistently taking over 30 minutes (at which point we've been killing it). I can see the activity in the Activity Monitor, it is doing a SELECT * from that view and is runnable the whole time. If we modify the view to SELECT TOP 10, it returns in a short time. Has anyone run into this problem Any suggestions It is very problematic, as if the views change we have to hack around this problem. Thanks for ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Drawing 3D objects

    I am wondering which programs are recommened to draw or create 3D objects/pictures for C#. P.S. I hope this is the right spot for this question. If it isn't, sorry. There is now a managed version of DirectX, which can be used to draw 3D graphics, see: http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_m/directx/directx9m.asp Mark. ...Show All

  • Visual Studio Team System Skipping a webtest in the PreWebTest event

    Hi, I need the ability to skip an entire webtest if my test meets certain criteria. Currently I'm just stopping the webtest, but in the results it still counts it as a fully run test. Anyone know how to have it skip the test entirely so that it doesn't show in the Total Tests run Thanks, Cliff Yeah, I messed with that but it's not exactly what I need. Basically I need to skip the entire test so that it doesn't count in the total tests run. I my case I have a set of data that may be in use and can't be run synchronously. Thanks! Cliff ...Show All

  • Visual Basic DLL Creation

    I want to create a DLL for editing HEX Data I want that if it is referenced for editing any bytes you need write this line: WriteB (File , Seek, Byte) File= Files to open with FileStream ( Imports Sytem.IO is necessary obviously) Seek= For moving the pointer in a offset Byte= Byte to write in the Offset Now if i want to edit a byte i need write this code Dim str As New FileStream(OpenFileDialog1.FileName, FileMode.Open, FileAccess.ReadWrite) str.Seek(&H18D, SeekOrigin.Begin) str.WriteByte(CByte("&H" & ComboBox3.Text)) And i want to create a Function in the DLL Imports System.IO Public Class Class1 ' Start Function Public Function Nome_funzione As CallType ......... ...Show All

  • Visual C# Make stand alone exe

    I posted this in one of the visual studio 2005 forums and someone suggested I try posting it here. In Visual Studio 2005 is there any way to actually make just a standalone exe file, like in visual studio 6.0 where you just go to Build or Make EXE or something similar All I can find is the publishing section which creates a setup.exe which then "installs" the program and checks for updates etc. I just want to make one exe file that can be run from any PC anywhere that you just double click and away it goes, straight into your program, in visual studio 6.0 this was no problem at all yet I have spent hours searching and am still unable to do this in VS 2005. Thanks OK ill try that and have a look. Is it just me though or ...Show All

  • Visual C# Convert the following line from Class Diagram to code ?

    Hello Guys, I got a class diagram and it had something like this +Find(obj:Object):ICollection<Test> Now to move this to code... I have a Test Class so this is what I did public ICollection<Test> Find(Object obj) { //Now the Test class doesn't inherit ICollection, if I need to return the Result how should I do it. Or do I need to make change to Test class (keeping in mind that code is written by someone else and I can make almost no changes there) } Please advise.... Thanks, Harsimrat The Test class I have doesn't implement that, as I'm getting it from someone else and I have no privilege to change anything there. In that scenario what I can do .... T ...Show All

  • Windows Forms Printing DatagridView

    Hi, I'd like to print only certain columns of a DataGridView. How would something like this be done I couldn't find any code examples. Thanks Ok i managed to solve that. But now i got one serious problem! This code print all rows from my DataGridView except last one. It always show one page more that actually exist. I have try your code too CoNNect but there is same problem with last row... Some help will be very wellcome! ...Show All

  • Software Development for Windows Vista Vista / Services / Interact with Desktop?

    I understand that with the new service hardening that services will run in session 0 and can no longer interact with the desktop, but this raises two questions: 1. Why is there still the checkbox "Allow Service to Interact with Desktop" in the services control panel applet 2. Secondary Logon Service (It is still around...) The secondary logon service looks to still be supported (I understand that it is the back end for CreateProcessWithLogonW). A simple test of the runas command succeeded, therefore, how did the secondary logon service interact with the calling desktop to launch the application if services cannot interact with the desktop Is Microsoft taking a shortcut/short-circuit here See ...Show All

  • .NET Development Basic XSLT issue...

    I have an ASP.NET app making two very basic XSL transforms. The first of which works perfectly, and the following XML result is stored into a database. Subsequently that XML is retrieved and put through another transform to be displayed as HTML. This does not work so well, and the issue is very strange... The node names by themselves are NEVER identified by any 'select,' 'test,' or 'match' attribute. Some simplified XML code and XSL findings are below: < xml version="1.0" encoding="utf-8" > <notesCollection xmlns=" http://my.fake.namespace.com/generalNote.xsd "> <note> <title>some title</title> <body>some text</body> </note> </notesCollection> ...Show All

  • Visual C++ D8004

    A C/C++ project consistently adds /D to the end of the response file in debug configuration. This leads to a D8004 error. The extra /Ds do not appear in the command line, only in the repsonse file. This is not a problem in release configuration. There are no /D to edit out of the command line. Build Log Build started: Project: WatSat, Configuration: Debug|Win32 Command Lines Creating temporary file "d:\naldll\watsatclo\Debug\RSP00003830125768.rsp" with contents [ /Od /I "d:\watwin\includes" /I "d:\watwin\s" /I "d:\naltool\s" /I "d:\naltool\includes" /D "_DEBUG" /D "_WIN32_" /D "_EXPOR ...Show All

  • Smart Device Development Form disappears automatically

    HI, I try to load a new form from the main form, after closing the main form. The code seems to work fine except that the new form loaded closes automatically. Can anyone tell me how I can solve this problem Thanks very much using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Sockets; using System.IO; namespace MyClient { public partial class mainForm : Form { RequestForForm RequestForm; public mainForm() { InitializeComponent(); } private void connectButton_Click( object sender, Ev ...Show All

©2008 Software Development Network