NedNed's Q&A profile
Visual Studio Express Editions open new outlook email window in program
Can anyone point me in the right direction on how to click a button and open and MSOutlook new email window. I would also like to program to add an attachment as well. Thanks Thank very much works perfectly! I am trying to attach a local file (c:\text.html) that is displayed in a webbrowser. I tried the following but none works: theStringBuilder.Append( "&attach=" + WebBrowser2) theStringBuilder.Append( "&attach=" + WebBrowser2.url) theStringBuilder.Append( "&attach=" + WebBrowser2.text) ** the content of the webbrowser changse based on the contents of a combo box ie c:\text.htm, c:\test2.htm, or c:\test3.htm** ** I would like t ...Show All
Visual C++ OpenFileDialog and SaveFileDialog crashes windows application
I built a simple windows application in C++ with the .NET framework (using Visual Studio .NET 2005). The application used to run fine (it opens the OpenFileDialog and SaveFileDialog properly), but after I added more (unrelated) features, when the application tries to display an OpenFileDialog or a SaveFileDialog, the application closes abruptly on another computer with no warning message , not even that annoying warning beep sound. However, the application "sometimes" ran properly for the computer on which the application was compiled. By "sometimes" I mean for some builds of the application. Builds of my application that crashes does so consistently. Some more description: In earlier builds of my program, disp ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The Relation Of Math And DirectX?
Do I Really Have To Be Professional In Math To Be Professional In DirectX Matrix understanding is important, so is the fact that a Matrix * a Vector will give you a vector and stuff like this Also you need to understand a little about tangente that are vector on surface of object, Normal that are perpendicular vector That vector are simply 3 values x,y,z That matrix can contain Rotation/translation/Scaling Also their is math involved in Calculating light, math formula like this : Light = Material Color * (Light1 + Light2 + Global Ligth ) This is not the exact formula but DirectX microsoft help will give this to you Those mathematic formula are crucial to understand how color component give the final light ...Show All
Visual C# Catch an exception in DLL...?
Hi... I want to catch an exception in opening Serial Port. I have a line in my DLL code as - SerialPort.Open(); For this line i want to catch a exception using try...catch() & i want to pop up a dialog box (MessageBox)...Thisline is in DLL so how i can pop up a MesageBox from a DLL is it Possible... Thanks, Vinay Yes it's totally possible (just reference System.Windows.Forms.dll). Whether it's a good thing for a class library to report errors using message boxes is another question. I wouldn't recommend doing it. Let the UI application handle reporting errors to the user instead. ...Show All
Windows Forms How do I play a sound from my Applications Resource file?
I have added my sound to my applications resource file... But when I go to call on it: Manage__.Properties.Resources... It does not show up in the list of resources. All my images show up in the list, just not any of the sounds I have added. All my sounds are in the .wav format.... Any ideas as to why I can't access them (I am using C# Express) Hi Dave, I tried, but i couldn't reproduce it. (I added it through Resources.resx, chose Audio and Add Resources. ) By the way, is 'Manage__' your namespace Or have you tried to use the manifest resources, which are embedded with no type information ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA compiling problem
Hi. I've just downloaded and installed XNA GSE. I've opened my first XNA Game aplication with Visual C# 2005 Express, but when i trycompiling it i get an error on line: " this.GameComponents.Add(this.graphics);" with following error message : "Microsoft.Xna.Framework.Components.NoSuitableGraphicsDeviceException was unhandled Message="The values used in the attempt to create the GraphicsDevice were invalid." I've read that it should get a blue screen when i compile a default XNA project with no other code in it, but that ain't happening. What could be the problem I haven't installed DirectX SDK yet...could that be it Thx for the help That is a DirectX 7 card that does not sup ...Show All
Smart Device Development CONVERT WCHAR_T TO LPCWSTR
I AM TRYING TO DISPLAY AN ARRAY OF WCHAR_T FROM MY C PROGRAM INTO MY WINDOWS PROGRAM USING DRAWTEXT WHICH CALLS FOR A LPCWSTR POINTER. CAN THE WCHAR_T BE CONVERTED TO A LPCWSTR IF NOT IS THERE ANOTHER DRAW COMMAND THAT WILL I AM TRYING TO BYPASS USING font.drawtext !!!!! I CAN'T GET font.drawtext TO WORK!!!!!! thanks a whole lot. i am going to put an & in front of my message. all my arrays r WCHAR (wchar_t). &&&&&&&&&&&& why didn't i think of that thanks again. ...Show All
Visual Studio Express Editions .exe file
I can run a project by clicking on the project's .exe file located in the debug/bin directory created by VB Express. However, if I move that file to a different directory I get an error when I try to run it. How can I run a project's .exe file when it is loacated in a different directory Thanks, Antonio Does your project/exe reference any other assemblies or libraries (.dll's) that may be in the same build dir If so, you'll need to copy those over to the exe's destination in order for it to run properly. ...Show All
Windows Forms Datagridview / Backgroundworker and Web Service
Hi There I have a datagridview1 filled with data. A user multi-selects certain records after which I take the selected records and add them to datagridview2. This is the final review process for the user. From here I need to insert these records into a new table. Everything is done using an XML webservice I'm writing. I know how to get data from the webservice into the datagridview1. I also know how to add the selected rows to datagridview2. I also know how to insert a new record from the datagrid1 using a webservice into the database using an INSERT stored procedure in SQL server 2000. But here's the catch, I use a backgroundworker to do the inserting/calling the webservice to insert the record. When I loop through datagridview2 row by ro ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Detecting device capabilities
Hi. Now i'm trying to get the hardware capabilities, because one of my friend was trying to run an example that i give to him and the sample didn't work because his graphics device don't support: ' SupportsHardwareTransformAndLight' //(i saw that using MDX 1.1) So i want to modify the device creation to make it with 'GraphicsDevice.SoftwareVertexProcessing = true' but at this time i don't know how ask about the default device capabilities before the device was created. How can i do that thanks. Unfortunately, a very long call, but here it is: graphics.GraphicsDevice.CreationParameters.Adapter.GetCapabilities( DeviceType .Hardware).DeviceCapabilities.SupportsHardwareTransformAndLight ...Show All
Visual Studio Team System Changes since a label was applied
I'm trying to find out what's been checked into a branch of my repository since a particular label was applied. I'm trying: tf history /format:brief /version:L mylabel ~T /recursive * This does indeed produce a history, but exactly which items are included is a mystery to me - it's clear that it's not what I'm looking for though. I've also tried: tf difference /version:L mylabel ~T /format:brief /recursive . This shows which files have changed, but the output is mostly noise (listing names of directories where nothing's changed). But what I really want to see is a list of changeset numbers and descriptions - not the list of files that are different. So, what's the secret sauce for getting history since a lab ...Show All
Gadgets Request non-XML data via Web.Network.createRequest
Hello all, First off, good to see that gadget development forum on MSDN. Anyway, what I am posting for is this: I'm trying to request normal plain text data (in non XML format) via the Web.Network.createRequest method. However, I can not find a Web.Network.Type type that represents regular data. I've tried XML, which responds with an "invalid xml" in the body of the response, and Stream throws an exception somewhere about not being able to load the target object. I haven't tried Script, CSS, Image, etc. but that probably won't work either because they are for specific purposes. Is there a way to make it do cross-domain requests for regular, plain text data, or Is there some sort of bug in the proxy for Spaces, perh ...Show All
SQL Server Connecting to Oracle 9i Server using ODBC from an SSIS package
I am trying to connect to a Oracle 9i Server to execute a sql task, but the connection when tested seems to fail with the following error from the Integration Services Project: Test connection failed because of an error in initializing provider. ERROR [NA000][Microsoft][ODBC driver for Oracle][Oracle]ORA-12541: TNS:no listener ERROR[IM006][Microsoft ODBC Driver Manager] Driver's SQLSetConnectAttr failed ERROR[0100][Microsoft ODBC Driver Manager] The driver does not support the version of ODBC behavior that the application requested (see SQLSetEnvAttr). The connection was configured and tested from Oracle's SQLPlus session. Please note that the port that the TNS Server is listening is not the default. Is there somewhere I can sp ...Show All
Visual Studio Team System Error creating a TS Project
Hi there, I have a problem when I try to create a team project. I saw others post talking about (almost) the same problem, but this is my error log: Error Unable to connect to the Windows SharePoint Services at INTAN3 Explanation The Project Creation Wizard was not able to connect to the Windows SharePoint Services at INTAN3. The reason for the failed connection cannot be determined at this time. Because the connection failed, the wizard was not able to complete creating the Windows SharePoint Services site. 2006-10-12 16:09:14Z | Module: WSS | Thread: 6 | Verifying site template exists on the server using http://intan3/_vti_bin/Sites.asmx ---begin Exception entry--- Time: 2006-10-12 16:09:14Z Module: Engine ...Show All
Windows Forms Transparent label Control in VB 2005
I am trying VB 2005. The label control has no transparent (backstyle) option. The help says that this is so and to overcome it by setting the background color to transparent. I tried this but still get error that backcolor transparent is not supported. This is very annoying as I use transparent labels and text boxes all the time. Can anyone tell me what I am doing wrong or an alternative. I just tried this as well. setting the transparency key just makes holes in the form. although a kewl effect. I have been trying to use a label for the text display, perhaps will try a different way panel or textbox or even a button, although the flat button approach didnt work either. ...Show All
