nc-ghost's Q&A profile
Smart Device Development Starting up a dialog
Hi im was waundering how to open up a dialog i made. For instance. IF I hade a console.write ("opening application") what would i do to start up... one sec... Dialog1 is the name of it. Please help me out.. this is the real place i need the code.. its for a game i made. and that is what happens when you type exit. NO it don't reboot the computer so don't just give me a command that's like reboot.now or sumthing. Again i want to start up (DIALOG1) End If Console.WriteLine( "Rebooting Computer" ) Console.Beep() Console.Beep() Console.Beep() Console.Beep() Console.Beep() Console.Beep() Console.Beep() Console.Beep() Console.Beep() Console.Beep() Console.Beep() Console.Be ...Show All
.NET Development How can I save dataset as an xml file???
Hi I am trying to save the dataset as xml file (one row from the table).Saving xml is fine but it look like the following (the below is flat xml file without root nodes and child node) But I want the data to go under xml Root Node, child node, children node and so on. My question is How can I save the dataset as xml file with Root Node, child node, children node and so on Please help !!! Urgent!! < xml version="1.0" standalone="yes" > <MS> <SDLTID>1</SDLTID> <UTRN>303783jMJ</UTRN> <TransPropertyType>01</TransPropertyType> <TransInterestCreated>FP</TransInterestCreated> <TransEffectiveDate>2006-04-05</TransEffectiveDate> and so on..... ...Show All
Smart Device Development Dll Import from Regular C++ to C#
Hello, I am developing a smart device application in VS.NET 2003 and want to import dll from C++ program. [DllImport("mydllimportTest.dll")] public static extern int GetInt(); While the import command works fine with normal windows application project, the following error is generated in smart device application. "An unhandled exception of type 'System.MissingMethodException' occurred in.." Can you please help me out Thanks Tijnars If you can use it on desktop, it means it could not possibly work on device. You need to use different DLL, compiled for specific device OS and CPU from the same (probably tweaked a bit) sources. To do so you would need to u ...Show All
Visual C# Copy file to folder
string cpath = listBox2.SelectedIndex.ToString(); string cpath2 = cpath + "temp"; if (cpath.Substring(cpath.Length-3,3).ToLower() == "xml") { File.Copy(cpath, cpath2); } I have a listbox of folders and when i click a folder the files appear in my listbox2...i want to select one the files click by button and that file is copied to my c:\\temp folder.....I am getting the exception that my start index must be less than zero....any help...thanks! File.Copy() expects filenames as its two parameters, but you're passing a folder name as the second parameter. Try changing your File.Copy() so that its second parameter specifies the full filename of the destination file: File.Copy(cpath, ...Show All
Visual C++ How to call thread functions within the same thread?
My reference only states that it is possible to call SuspendThread() from the same thread, or from other threads too. How is this done Is there a GetHandle() sort of function for threads, or do I pass it via the LPVOID pParam I tried static_cast the handle to LPVoid, then back again in the threadproc function, but it didnt work. I did something like the following: CWinThread pThread = new CWinThread; pThread = AfxBeginThread(ThreadProc, static_cast<LPVOID>(pThread->m_hThread)); UINT ThreadProc(LPVOID pParam) { HWND* temp = static_cast<HWND*>(pParam); ::SuspendThread(temp); } Argh, found it! I was looking at the parameters needed for AfxBeginThread and AfxCreateThread when i stumbled on ...Show All
Windows Forms vb self installers
hello, I am at the stage where I need to create a self-installer that will install my application in a specified area, include certain files, and include the .NET frameword all in one installatin package. Where can I find information on how to create this type of package I am using VS2002 Thansks for your time and help! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Tiger Model Textures don't look right...
I've been having some problems with textures and the content pipeline. I've tried exporting some textured objects and the textures seem to repeat a small section over the whole model. As a sanity check, I decided to load the Tiger.X model from the DirectX SDK, and it seems to exhibit the same problem. What exactly is going on here Does your shader transform the texture coordinates You have to make sure it properly moves the texture coordinates from the input structure to the output structure in the vertex shader. ...Show All
SQL Server Exceptions in Data Flow Scripts
What is the "correct" way of dealing with exceptions in a data flow script component. i.e. am I supposed to catch all exceptions and then set some failure flag The reason I ask is I've got a script in a dataflow which is occasionally throwing exceptions when trying to convert an empty string to a decimal. Problem was the package locked up and had to be terminated when the exception was thrown (and not caught in the script) The only thing which differentiates this package from others I've created is the data flow has a conditional split which creates 2 seperate paths loading 2 seperate SQL tables - the exception is being thrown in a script on one branch which seems to hand the entire flow PS I have fixed the script so t ...Show All
Visual Studio Express Editions saving file into excel problem
hi there...... hi i have a problem regarding saving i saw some example here it seem's ok..... but i want is to gather the data from datagridview and save it into excel file... here's the example which we can save using richtextbox Private Sub SaveFile(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim x As New SaveFileDialog x.Title = "Save Rich Text File" x.Filter = "RTF Files|*.rtf" If x.ShowDialog = Windows.Forms.DialogResult.OK Then Me.RichTextBox1.SaveFile(x.FileName) End If End Sub End Class in this example only rtf file perfectly save but when i change it into excel there's a bunch of garbarge before my data/text..... can some one help me rega ...Show All
Visual C++ pdh.h - Error Occured
When I include the pdh.h header file I recceive the following error: error C2040: 'HLOG' : 'void *' differs in levels of indirection from 'struct _HLOG' The error occurs in the header file. Any idea what could I be doing wrong Thanx in advance The only programmers that are better than C programmers are those who code in 1's and 0's..... Programm3r yes you are abs Right here .So OP has to avoid this Condition .he can Check it by Removing any of One File From his Workspace According to his requirement and then can try Once again.hope THis Will help him to resolve his Problem.. Thanx ...Show All
Visual Studio Express Editions code for title bar X
Hi everyone, I have a simple question, the "X" or the close icon in the top right of the title bar, can you write additional code for this What I'm looking at is putting a messagebox onto its click event, like "Are you sure you want to close this application " and then have the Yes/No option. I know all about the messagebox part but I can't seem to figure out where to look for the forms "X" code. Any pointers greatly received. Scott Scott, If you are not seeing the message box, your program is probably not executing the routine. Have you "hooked up" this routine to the FormClosing event In the designer, select the Form. In the properties window, click on the lightning ...Show All
SQL Server SQL Server 2005 for TFS Backup&Restore
Hi, Our Sharepoint of TFS was down a couple of days ago. By luck, we had fully backed up SQL database. Now, the problem is, I uninstalled everything and tried to move TFS to a new server machine on the domain. I installed freshly everything and tried to restore all the databases (with tables also). Now the problems are these: 1 - Since there are lots of different backup-restore procedures telling on the Internet from some forums and this forum also: What should i do basically to make the configuration of Sharepoint and Reporting Services to make them work correctly 2 - Secondly, even if i fail in the problem above, I, at least, want to save the source control files and sharepoint files. Where can I find them and how can I take th ...Show All
Visual C# Upper Case Letters in DataGrid
I am a newbie in C# . I have a datagrid control and i want my user to enter only upper case letters. I dont know how to do it. Please help me out. Thanks in advance When you post a question about the data grid please be sure to mention whether it is web or WinForms as the control exists in both but is not the same. Additionally be aware that in v2 an entirely new set of grid controls were introduced but they are still often referred to as a data grid. If you have a DataGrid with a DataGridTextBoxColumn then you will need to get access to the underlying DataGridTextBox after it is created. You can then set the CharacterCasing property to force it to upper case. You will need to wait until the co ...Show All
Visual Studio 2008 (Pre-release) MediaElement fails to play audio and video.
I've been developing an app that uses MediaElement to play music and movies and while we've been testing it we've been having some problems with playing media in the mediaelement. In the early WPF-CTPs and with WMP11 beta installed we had problems but with the final version of WMP11 and the RTM of WPF it has worked like a charm. However, we recently released a preview-version of our program and we've got many people complaining over that it can't play any media. So apparently the famous* silent-mediaelement-problem is still alive. We've asked our testers what version of WMP they have installed. Some of them have 10, some of them betaversions of 11 and some the final version of 11. Same problem for everyone. Everyone was using XP. ...Show All
Software Development for Windows Vista failed install of vista
Hi, I recently tried to install vista beta ( whatever number it was....) I couldn't complete the install due to losing my serial number, now when i boot up I'm given an option to start an older version of windows ( XP home) or windows setup rollback. this is becoming a pain because I used to use a cordless keyboard which doesn't become active until windows is booted and i can't select older windows, so now I'm back to a wire keyboard. the main point of my question is How do I get rid of this screen so that XP home boots straight off everything i seem to read about it mentions BCDedit which is not on my system and boot.ini doesn't do the job! any suggestions would be greatly appreciated!!! Thanks in advance!! ...Show All
