|
I'm not sure doing graphics programming with DirectX (XNA) is the correct thing to do if your find yourself "so bad in programming". Changing these values using the keyboard should be a thing of five minutes for any advanced programmer.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi,
Try this code:
<br />
float x = 0.5f;<br />
float y = 1.0f;<br />
<br />
if (Keyboard.GetState(PlayerIndex.One).IsKeyDown(Keys.Up)) <br />
{<br />
x += 0.1f;<br />
}<br />
<br />
if (Keyboard.GetState(PlayerIndex.One).IsKeyDown(Keys.Down)) <br />
{<br />
y += 0.1f;<br />
}<br />
<br />
effect.Parameters["xWaveLength"].SetValue(x);<br />
effect.Parameters["xWaveLength"].SetValue(y);<br />
Have a look at the Chase Camera example on the XNA creators club site. When I was beginning XNA I found that example to be very useful for learning the basics - primarily camera and model movement.
Mark.
|
|
|
|
|
Thank you so much..
[img]http://img488.imageshack.us/img488/6241/signaturesakirahku9.jpg[/img]
|
|
|
|
|
hi
I want to know how to install a software which is developed using dot net bar components.
Please do let me know
thank u
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
Let me get this right! You want to install software developed in .NET onto a Windows Computer right?
If so the there is already PUBLISH tool available in Visual Studio.NET. Goto your project properties and then Publish. Goto Build -> Publish yourAppName
This will create a setup file for for your application and then... you should know the rest.
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
|
|
|
|
|
thank you,
As in the refrences folder dlls will be added (DevComponents.dll)....
So i want to know how to register these dlls to the clients GAC
Publish will work,,
Please tell me how to add dlls to the clients system
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
Everything you are using or have used will automatically be added to the setup file. And as far as I know I don't think you will need to register dlls on client's GAC, because they are already registered in VS. But I may be wrong about this.
Read this artical it may help you understand Publish Feature.
http://msdn.microsoft.com/vstudio/tour/vs2005_guided_tour/VS2005pro/Smart_Client/ClickOnce.htm[^]
And simple way to find out is Test it! Create setup file and install on other windows machine.
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
|
|
|
|
|
killerp wrote: because they are already registered in VS.
If the software is being installed on a client machine, then VS will not be present
only two letters away from being an asset
|
|
|
|
|
Allright!
Well the easy way to do is to Create your Installing package and in that you can use the following code to register your DLL.
<br />
{<br />
<br />
System.Diagnostics.Process.Start("regsvr32", "LocationOfUrDLL /s");<br />
<br />
}
Hope you get it done!
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
|
|
|
|
|
Great, if the dll is a COM component.
OP: So i want to know how to register these dlls to the clients GAC
only two letters away from being an asset
|
|
|
|
|
Thank u i got idea about this..
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
|
i trying use my cursor in c# but my cursor colour not colourful, it's colour is black and white. how i do?
my code:
this.Cursor = new Curso("D:\\Cursors\\cls_m2.cur");
|
|
|
|
|
this.Cursor = new Curso("D:\\Cursors\\cls_m2.cur");<code>
this.Cursor = new Cursor("D:\\Cursors\\cls_m2.cur");
If you still have problems then add .cur file to Project Resources and try that!
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
modified on Saturday, March 15, 2008 2:13 PM
|
|
|
|
|
please show how do it?, please ......
|
|
|
|
|
Here is the explanation found from MSDN:-
<br />
<br />
<br />
<br />
<br />
<br />
this.Cursor = new Cursor(GetType(), "MyCursor.Cur"); <br />
<br />
Next time search on Google for something you don't understand.
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
|
|
|
|
|
thank you friends....
|
|
|
|
|
I am sure you can make out clearly from the ADT tht its an interface created for Set. Now this is supposed to test if it is empty, or if a element belongs to a set and find the inetersection of 2 sets and so on. But i wanted to implement this in C#. but i couldn't program it in C#. So can anyone help me please
// invariant: Cardinality >= 0
public interface ISet
{
// Pre: true
// Post: return the cardinality of the set
int Cardinality { get; }
// Pre: true
// Post: Object element is contained in the set and the
// cardinality increases by 1
void Add(Object element);
// Pre: Object element is contained in the set
// Post: Object element is not contained in the set and the
// cardinality decreases by 1
void Remove(Object element);
// Pre: true
// Post: return true if Object element is contained in the set;
// otherwise, return false.
bool IsMember(Object element);
// Pre: true
// Post: return true if Cardinality = 0; otherwise, return false.
bool IsEmpty();
// Pre: true
// Post: return true if all elements in the set are contained in
// set anotherSet; otherwise return false.
bool IsSubsetOf(ISet anotherSet);
// Pre: true
// Post: return true if all elements in this set are contained in
// set anotherSet and all elements in set anotherSet are
// also contained in this set; otherwise, return false.
bool IsEqual(ISet anotherSet);
// Pre: true
// Post: return a set that contains all elements in set
// anotherSet and all elements in this set
ISet Union(ISet anotherSet);
// Pre: true
// Post: return a set that contains elements in both set
// anotherSet and this set
ISet Intersection(ISet anotherSet);
// Pre: true
// Post: return a set that contains elements that are contained
// in this set, but are not contained in set anotherSet
ISet Difference(ISet anotherSet);
}
|
|
|
|
|
Read the post by Chris Maunder, "How to get an answer to your question".
Pay attention to number two.
No one is gonna do your work for you, only help with specific problems.
You have to try before asking a question, and if you run into problems, we're here to help.
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
|
|
|
|
|
If you can't program in C#, maybe it's time you learnt how to.
Or do you intend to go through life asking others to do your work for you? You won't get very far with this attitude.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hello,
I have a problem with using Microsoft Application Blocks Configuration manager with Visual Studion 2008, .NET framework 2.0 on a Vista machine.
I am using unencryped XML as the data store and provider. In my C# code I call ConfigurationManager.Write("MyConfig", myObject) after the user changes a value of myObject.
The MyApplication.vshost.exe.config file in my MyProject\Bin\Debug folder updates on the write. Its timestamp updates and if I open the file in a text editor its content changes the way it should.
The problem:
When the user closes the application the MyApplication.vshost.exe.config file's timestamp reverts to its original value and the contents of the file also revert to original.
I have researched this problem a good deal with no luck. I have found the same behavior in the sample code for MSAB that was installed on my machine from the Microsoft download. That is in the provided QuickStarts.Write project I can save a change to the XML configuration file and Write.vshost.exe.config updates until I close the application. The configuration file reverts to the original timestamp and content when the application closes.
Arrrrrgghhhhhh!
Thanks in advance for any insight into this headbanger.
|
|
|
|
|
Would it be possible that, after making changes to the application config file, you forget to call:
Configuration.Save() to save the changes ConfigurationManager.RefreshSection() to force reloading the changed section ?
SkyWalker
|
|
|
|
|
I don't think that is the problem. With the ConfigurationManager class that I'm using, RefreshSection() is not defined.
Best,
Bill
|
|
|
|
|
If you're using VS 2008, then you might want to see this comment[^] made by the Visual Studio Product Team
SkyWalker
|
|
|
|
|
Hello friends,
Now a days, i am getting some work like using existing vb, vc++, ATL, MFC etc.
code. I have task to to invoke or reuse the code in the C#.Net application.
I am able to invoke com component code in C#. But i am facing problem when i try
to invoke the win32 C++ code in C#.net. So can any one give me helpful sites, book list
for all types of interoperability which can be done with C#. That is under one umbrella.
It will help be to trace out or reach at decision can we do the interoperability.
Thanks in Advance.
|
|
|
|