scaling matrix question
I can't seem to get the scaling matrix to work. when i apply it the sprite disappears on my application class CSprite { public: LPD3DXSPRITE pSprite; LPDIRECT3DTEXTURE9 pTexture; D3DXIMAGE_INFO...
View ArticleJava array of objects
Ok so what I am trying to do here is create an array of 10 squares pretty much, However it seems to be makgin an array of 100 objects 10 of each square. I feel thintk that i am missing something simple...
View Articlequestion about Recursion Function not returning proper output
I am having a problem with a function. The purpose of the function is to search through a large list for exact matches of strings. If the string ending matches one of the strings in the all_list, then...
View ArticleObject Orientation in Code
Hello, Recently I was working on a project on Genetic Algorithms that required a lot of calculation and data manipulation. Therefore my language of choice was C#. However due to my meager OOP...
View ArticleGrading System
Hi everyone, I desperately need help, my assignment is: Write a program that determines the grade for a class with the following grading criteria: 1. There are two quizzes (each worth 10 points) 2....
View ArticleChange timestamp on file to current time?
How to you change the timestamp on a file to the current time? essentially just "touching" the file so the time is changed to the current time
View ArticleObject Class extends JPanel, Won't Appear
I'm making my own object class Diamond for a school project which extends JPanel. I'm not getting any compile-time or run-time errors, but my object won't appear in the JFrame. Any help? Here's my...
View ArticleBetter way to write this?
I don't know if there is an easier way to write this in python #SEARCH BY NAME if user_choice == '1' and action == '1': print_files((search_by_name(all_list))) elif user_choice == '1' and action ==...
View ArticleProblem with PHP and PL/SQL
Good night, I need some help with my code because i cant get the output from the sql funcion to the table, i´ve looking in the php manual for solutions but i cant resolve this problem <?php $stmt =...
View ArticleCalculated Split()
I have a data table that contains a field called "ProductNum". Row items have a product number like "N-006504-S". So I can properly sort my on my column , I need to remove the "-" and sort on index 1...
View ArticleAdvanced - TableLayoutPanel Drag and Drop
Does anyone know if it's possible to set up drag and drop functionality to copy all rows in one tablelayoutpanel to another, when the rows in the first tablelayoutpanel were all created...
View ArticleWhen should use Inner Class instead (normal) Class
I have question about this.. When we use separated class definition? when we use inner class?? What I know is one object, one class.. But sometime I want to connect/relate several object (maybe because...
View ArticleHOW TO STORE SIGNED CHAR INTO AN INT ?
char is treated as signed char, what will be printed by this program: main() { char x = 0xFF; unsigned int y; int z; y = x; z = x; printf("%x %x\n", y, z) }
View ArticleMissing return statement
I'm very new to java and do not understand why I am getting this error. The program is not complete and I have tried to make it obvious where I will be adding code. The first method will be checking to...
View ArticleDefault value of primitive type char
public class Test { char ch1 = '\u0000'; char ch2; char ch3 = ' '; public static void main(String [] args) { // Do something... } } In the code above, (if I understand correctly), the values for ch1...
View ArticleCannot update value
Hi all, here is my code. With DGVMargin For i As Integer = 0 To .Rows.Count - 1 If txttype.Text = "NORMAL" Then If txtDiscount.Text = .Rows(i).Cells("DiscountNormal").Value Then decodeDiscount()...
View ArticlePath.GetFileName(saveFileDialog1.FileName) As String
This crashes: Dim filename As String = System.IO.Path.GetFileName(saveFileDialog1.FileName) file.Save(filename) This works fine: Dim filename As String =...
View ArticleNumber of query values and destination fields are not the same
Hi Experts, Im new to .net and im working on a project where i need to save and retrieve the image/picture or ole object data from mdb in my windows form in order to use it in my reports &...
View ArticleVariable from other class not being changed correctly
In my class 'booleanArgs' I'm trying to make methods to set the resource = true so that a hex will display a resource picture based on a random number. Here is the method public void...
View Articlepulling best match from textfile search
Hello the code below will pull a matched word from a text file and display the line it matched something on. It will even display 3 lines that matched the same word. but what I really want to do is to...
View Article