Topics
-
- 1 reply
- 2.5k views
This may be my first post, but I'm not a noob, been programming for some time, gonna have a crack at skinned meshes after sucessfully cracking animation with keyframes. took me a month but i'll get there. From what i gathered, its not about frames, but assigning matrices to vertecies and a hell of alot of matrix multiplying :D The aim is to get it in one class again. I'll let you know how i get on. .....Leade
Last reply by Leade, -
-
- Leaders
- 3 replies
- 4.9k views
Re: C# - Drawing an image (sprite) with Direct3D Split from http://www.xtremedotnettalk.com/showthread.php?t=92593 Note: Please do not reply in old threads. You may create a new thread with a link to the old thread if necessary. hi everybody 1) i try to code game 2D program using c# and directx i creat a sprite and it move on screet it is fine (frame rate about 60 fps) but i try to add more sprite it getting slower (frame rate about 2,3 fps up to sprite count) i load sprite image with texture object and draw it sprite.Draw(texture ... 2) which file format is faster i use png in project thaks a lot
Last reply by Leade, -
-
- 3 replies
- 5.6k views
I am trying to get my video to render to texture. The SDK example seems to only draw the scene when the video "creates" a new texture. However, I'm going to be using this texture in scenes where other objects are using regular textures, and everything will be running at higher framerates. When I tried to do that, my entire scene started flashing. I reduced the code to see if I could find the piece of code causing the problem, and got down to two lines: Video video = Video.FromFile("test.avi"); video.RenderToTexture(D3DDevice); If I comment out the 2nd line, everything works just fine. Adding it in seems to cause a problem. Like I said, the entire scene star…
Last reply by Leade, -
- 0 replies
- 1.2k views
Currently I have a windows service written in C# (running as LocalSystem) which creates a user account, needed for impersonation, by using the DirectoryEntry to add the user/password and associated UserFlags. Then it simply uses this account to perform some tasks (using impersonation) using the LogonUser() functionality - works perfectly. However this account should ONLY be used for impersonation by my service, a user should NEVER be able to login (even if he has the credentials) locally or via the network. To accomplish this I tried setting the Local Policies for �Deny logon locally� and �Deny access to this computer from the network� and added the user my service cre…
Last reply by Shaitan00, -
-
- Administrators
- 5 replies
- 5.6k views
I've been trying to make asynchronous connections, everything runs smoothly up to the EndExecuteReader(), it isnt returning any results. Before you take a look at the code, any documentation on .NET connector and using these asynchronous function would be appreciated, I've found ZERO documentation on asynchronous MySQL methods using C# and the provided connector. Here is the code of the method I'm trying to write: public int getLogin(string name, string password) { MySqlConnection connection = new MySqlConnection(connectionString); MySqlCommand command = new MySqlCommand("select * from players where name = '" + name + " and password = '" + password + "'"); conn…
Last reply by seanhogg, -
-
- 0 replies
- 830 views
If I want to put my vb.net application on the Internet, so it runs in a browser (like Zoho applications), do I have to rewrite the whole thing in ASP? If not, can you point me in the right direction for doing this? Thanks
Last reply by rbulph, -
-
- Administrators
- Leaders
- 4 replies
- 1.7k views
I and also the translator on developerfusion have trouble translating the following lines of code to VB.NET. I hope you guys can help me out. [CS] operation.Post(new SendOrPostCallback(delegate(object state) { EventHandler handler = SomethingHappened; if(handler != null) { handler(this, EventArgs.Empty); } }), null); operation.OperationCompleted();[/CS] And just in case here is the whole code that I am trying to translate: [CS] using System; using System.Threading; using System.ComponentModel; namespace SynchronizationC…
Last reply by JumpyNET, -
-
-
- Administrators
- 2 replies
- 2.4k views
I have a log file that is saves data every day, each day new data is append to a new line of this log file. I will show you what this log file kind of looks like. Each log file line has 4 parts of data separated by commas. 03-01-2011,4.05,87,141 03-02-2011,4.10,88,138 03-03-2011,4.17,90,135 03-04-2011,4.20,86,115 03-05-2011,4.25,84,126 03-06-2011,4.31,81,132 03-07-2011,4.35,82,109 03-08-2011,4.42,78,136 03-09-2011,4.47,86,110 03-10-2011,4.53,83,108 I just need my chart to load this log file and loop through it and populate my line chart. I am able to make a line chart and populate it from a text file but only in a long way. I first load all the dat…
Last reply by CWD, -
-
-
- Leaders
- 1 reply
- 1.3k views
Hi, I create some custom button items in code. I need to have some code for their Button_Click event and set Button.Checked = Not Button.Checked So I use this code: AddHandler MyAccount1Button.Click, AddressOf SubAccountButtonItem AddHandler MyAccount2Button.Click, AddressOf SubAccountButtonItem ... Private Sub SubAccountButtonItem(ByVal sender As Object, ByVal e As System.EventArgs) 'How to set every Button clicked to not to clicked? 'Button.Checked = Not Button.Checked End Sub
Last reply by snarfblam, -
-
-
- Leaders
- 2 replies
- 1.7k views
Hey guys, new to the forum as of today and am looking forward to learning a lot from you all. Currently I'm working on a VB basic form for my college programming class. One of the requirements is to display the text in a list box in reverse order and vertically. I have this for the reversal of the text: lstbxItemsPurchased.Items.Add(StrReverse(txtItemPurch.Text)) However, I have no idea how to make characters displayed vertically and seperately from each other in terms of the line they are one. Here's a sample but I want this to work regardless of the number of characters entered. "laptop computer" should become: r e t u p m o c p o t p a l …
Last reply by snarfblam, -
-
- 0 replies
- 1.2k views
Hello vb.net forum users, I'm an A level Computing student working on the A2 Coursework Project, where we have to make a software for a company. I chose to make a sales invoice system for a small computer hardware store, it had to involve an access database so that's what the backend for this is. We were however meant to be finished with the actual software about a month ago but I'm not very good at programming at all...so I left it until now! I've been working my hardest at it but nothing seems to work, I'm encountering numerous problems : coming up with a way of to subtract sold quantity of items from the current stock level when a sale is made saving changes a…
Last reply by noobprogrammer, -
-
- Leaders
- 2 replies
- 4.9k views
Ok, i have two programs one program writes to a text file on a consistent basis, while the second program is opening this text file on a consistent basis for reading.. Sometimes the programs are accessing the file at the same time and the user keeps getting this error : this process cannot access the file because its already in use.. Is there any class, in system.io that i can use to modify the settings of this text file so both programs can access it at the same time? Any help would be appreciated!
Last reply by kill4, -
-
- 0 replies
- 4.9k views
This one seems to be pretty weird. I'm using asynch TCP sockets in my program. I have one class called ConnectionManager (implemented on the server machine), which has this NetMain event running on its own thread: Private Shared Sub NetMain() Dim TcpListen As TcpListener = New TcpListener(m_ListenPoint) Try TcpListen.Start() Catch ex As Exception RaiseEvent Exception(ex) End Try ServerGroup = New EthServerPool() Do If (TcpListen.Pending) Then If (ServerGroup.UpperBound < m_MaxClients) Then ServerGroup.AddSock…
Last reply by gayouj, -
- 0 replies
- 2.8k views
I'm currently using GDI+ for my application. GDI+ Is so easy to use! Too bad its performance is not even moderately as good as its simplicity... I need a solution to draw images, rectangles and text fast and clean, but it must also be cross-plattaform, I believe this leaves me only with OpenGL. I know that there are a few OpenGL wrappers for .NET but I don't know about their performance and simplicity. Does anyone know about one that is easy to use and fast enough to be used in 2D ONLY?! Thank you!
Last reply by EFileTahi-A, -
-
- Administrators
- 2 replies
- 2.4k views
I have this .exe running in the background but I need it to be closed whenever a user switches account (instead logging off) and restarted when the user re-logs in it. If 2 users log in but do not close their accounts I end up having 2 .exe running at the same time which is quite problematic. Any suggestions in how to walk around this? Thank you.
Last reply by EFileTahi-A, -
-
-
- Leaders
- 3 replies
- 4.2k views
Hi Everybody, I think I have a somewhat difficult question, but perhaps it's easier then I think. I have a simple network with a pc connected to my modem/router. On this same router there is also a phone (Siemens DX800a) connected. With this phone came some software: Gigaset Quicksync. I installed this software and it works fine. I can call a number via the pc and when I receive a call a popup appears (see image) on my screen with caller details. So Gigaset Quicksync somehow listens to a network port (the address of my phone is 192.168.1.175). However I would like to built my own program that contains more possibilities and also detects incoming calls and of c…
Last reply by Leade, -
-
- 1 reply
- 3.2k views
I have a car model and i want to rotate it's wheels when car is moving but i don't know how can i do this. I found some examples about skinned mesh but is it the only way animating meshes in directx? Can't i easily rotate a part of mesh without bone system? And is there a any good tutorial about animating meshes in c#? Thanks.
Last reply by Leade, -
-
- Administrators
- 8 replies
- 5.7k views
I have a program written in vb on vs2010 which i have published to a NAS. The program requires "dgb.dll" (a custom dll) to be in the local PC's windows/system32 folder. How do i get vs2010 to get the published clickonce file to install this automatically and in the correct place? (also needs to be installed in wow64 for 64bit systems) I have been through much online info about prerequisites, bootstraps and references but am struggling to make much sense of it all...can someone point me towards a walk through or maybe walk me through it here? Many thanks! Steve
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.5k views
Re: DataGridView = SLOW Split from http://www.xtremedotnettalk.com/showthread.php?t=95433. Since this does not directly address the question, it was moved it to a new thread. Hi all! I have the same problem. I was on the blog listed above and tried to send an email but it gives me an error email. Does anyone know where to find this dll, please? Thanks in advance.
Last reply by sincos, -
-
- Administrators
- 1 reply
- 1.8k views
Re: Listview ( remove item ) in vb.net? split from http://www.xtremedotnettalk.com/showthread.php?t=42557, please don't reply to posts more than 30 days old, consider starting a new thread if it is a new problem. PD Hi, is there another way to delete an item in listview similar to the code you gave, but this time deleting a selected item like: Dim li As ListViewItem Dim sName As String For Each li In lvw.Items If [u]li.selectedItem.Index[/u] Then lvw.Items.Remove(li) ' If you only want to remove one item with that Text ' you can put an Exit For right here End If Next the underlined code is the one i want to ge…
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 31 Guests (See full list)
- There are no registered users currently online