|
They are part of the DirectX SDK. You'll need to download and install it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Nafiseh Salmani wrote: is that what you say?!!
Gee, does it LOOK like what I said ?
I recommend in future if people give you advice, you take the terminology they use and google it. You still need to download the DirectX SDK. .NET framework and DirectX are two different things, that's why they are spelled differently.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
.
|
|
|
|
|
Thanks , i install it and find those Dll .;)
|
|
|
|
|
What method in C# to View Text File ?
Thanks !!
|
|
|
|
|
View a text file? You mean launch a .txt file with the program currently associated with .txt files? That would be System.Diagnostics.Process.Start . Or do you mean show the contents of a text file inside your own Windows Form? For that, you just need to read the text of the file in using System.IO.File.ReadAllText, then put that text into a textbox on your form.
|
|
|
|
|
Thanks !!
Can U give me any example?
|
|
|
|
|
Can you first tell me what you're trying to do? Are you trying to launch a .txt file or show its contents in your own form?
|
|
|
|
|
I want to lauch a .txt, .doc, .xls File in my form
thanks for help !!
|
|
|
|
|
System.Diagnostics.Process.Start("c:\thefile.doc");
|
|
|
|
|
sottos wrote: in my form
Does that mean that your form launches a new form that shows the file, or do you want to view Word and Excel files within your app ( that is, within your program window ) ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
within my program window .. Great!!!
Thannks !!!
|
|
|
|
|
OK - I thought so. This will become possible with the new XML formats for Office 2007, in the meantime, the best you can do is to use COM or ( for the newer versions ) .NET to embed/control Excel/Word within your app. It can't be done so that it works for PCs without office installed.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hey guys,
My question is simple. How do I delete repeating characters? Say I have the string "Hello World" and after deleting ALL repeating characters (not just adjacent ones) the new string would be HeloWrd. I'm thinking of using a nested 'for' loop to compare each character to the one after it, but it's not working. Here's what I have so far... I appreciate your help!
for(i=0;i
|
|
|
|
|
Use the "Ignore HTML" option when you post code that contains <. Now half of your loop statements are missing.
-- modified at 18:19 Saturday 23rd September, 2006
And another thing: Why should the space be removed? It's not a repeated character.
---
b { font-weight: normal; }
|
|
|
|
|
This is what I came up with, but I only tested it with the "Hello World" and "This is a test" sample so far.
Please test it with different strings
string test = "Hello World";
StringBuilder b = new StringBuilder(test);
int removeCount = 0;
for (int i = 0; i < test.Length; i++)
{
if (test.IndexOf(test[i]) != -1 && i > test.IndexOf(test[i]))
{
b.Remove(i-removeCount, 1);
removeCount++;
}
}
test = b.ToString();
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Dear all,
Could you tell me please how to save an image in xml file and then read, kindly show me easy example, i searched too much but i did not find to the point solution.
Thanks
Seek knowledge from cradle to grave
|
|
|
|
|
Hi!
You could serialize it using a BinarySerializer and then convert the byte[] into a base64-encoded string that's written to the XML file.
Reading is simply the other way 'round.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hello
You can save it in stream, then get array of bytes, then save array of bytes in CDATA section of xml file.
Andriy Zhornyk, regards
|
|
|
|
|
Greetings:
How can i determine the system requirements of an application i developed?, especially in the RAM departement.
"Failure is the best reason to start all over again with more knowledge"
-Henry Ford
|
|
|
|
|
Well, your minimum requirements are those of the .NET framework. Anything beyond that you'll need to test manually; no magic formula here. You can use Virtual PC to test against different software installs. IIRC, VPC allows you to configure how much RAM the virtual PC instance sees, thus allowing you to test against different memory amounts without physically removing memory from your PC.
|
|
|
|
|
Greetings:
Thanks, Judah Himango, i kinda thought that, magic formulas are like a dream to programmers, i`ll try testing it in a virtual PC.
"Failure is the best reason to start all over again with more knowledge"
-Henry Ford
|
|
|
|
|
Hello,
I have a problem with the toolbar in visual studio 2005, when I compile and run my application in the 'Debug' Configuration everything is fine, but when i switch the configuration to 'Release' the images in my toolbar simply dissapear (I only the text next to the images, but no images).
Anyone have an Idea what might be wrong with that?
|
|
|
|
|
Hi grep2
I think it could be from image url that you set. make sure the address is correct. be careful that if you use of any related address with your project address it is different in release and debug mode.
let me know if it is useful
|
|
|
|
|
Hello,
I use the images from a ImageList, there also other controls which use images from the same ImageList and they are displayed properly. So I guess it has nothing to do with the address.
But thank you for taking your time to answer my question, although the problem is still not solved.
- Pawel
|
|
|
|