199,114 Archived Topics
Remove Filter ![]() | |
Here is my code of the function in questiion: [CODE]void DrawScene(LPDIRECT3DDEVICE9 p_dx_Device, LPDIRECT3DVERTEXBUFFER9 p_dx_VertexBuffer, LPDIRECT3DINDEXBUFFER9 p_dx_IndexBuffer) { p_dx_Device->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0,0,60), 1.0f, 0); p_dx_Device->BeginScene(); p_dx_Device->SetStreamSource(0, p_dx_VertexBuffer, 0, sizeof(OURCUSTOMVERTEX)); p_dx_Device->SetFVF(D3DFVF_XYZ|D3DFVF_DIFFUSE); p_dx_Device->SetIndices(p_dx_IndexBuffer); D3DXMATRIX m_Rotation; D3DXMatrixRotationZ(&m_Rotation, flt_Angle); D3DXMATRIX m_Translation; D3DXMatrixTranslation(&m_Translation, 32, -32, 0); D3DXMATRIX m_World; D3DXMatrixMultiply(&m_World, &m_Translation, &m_Rotation); p_dx_Device->SetTransform(D3DTS_WORLD, &m_World); p_dx_Device->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, … | |
Hi all, How Can i call a paricular function in PHP From HTML through href.Anybody can help me for solving this....... Rajeev | |
{ This is an exploratory question to just find out if something is possible. } The facts are these : 1. The java program is closed source, but is running on an accessible workstation. 2. The gui is written in AWT. 3. OS is windows 4. Windows tools like Spy++ … | |
can any one help how can i create a self-runing program?? it is like a anti-virus that run when ur booting ur PC | |
Hi all, I have obtain an error while making thumbnail images from the uploaded images. The error displays like as below [B]Fatal error: Allowed memory size of 16777216 bytes exhausted [/B] Actually the size of uploaded image is 208kb.. but it displayed the above error with memory size of neary … | |
I m going to build a data modelling software project by java like DDS LITE I am coding the algorithmic part of the project where I have to build some composite data at the preliminary phase of the implementation of the algorithms, such composite data items are entity , relationship … | |
hi everyone, i need a 'lil help here. i'm just starting to use vbdatabse. can u help me? i need an example, a simple one. i'm really interested .... thanks a bunches.... P.S. someone pls help and reply hehehehe cAth | |
I am writing a program that is supposed to generate 10 random numbers all of them with in the range of [-0.5, 0.5] (the data type that is supposed to be produced by the program are 10 random floating point numbers with in the interval [-0.5, 0.5]). But the problem … | |
Hi I need help. I know what I want to accomplish, but I do not know how to do it. The events are recurring every month, but not recurring at the same time or on the same day of the week. WHAT I NEED HELP ACCOMPLISHING: How to do I … | |
Hi , can any one tell me how to disable the back button in asp.net i have done like this <script > window.onlad = "window.document.forward(1)"; </script> but no use...is there any other way to do this. | |
How can you insert a hyperlink in your site that does not include an underlined text? This is for a basic reason that most of the text of a hyperlink is underlined. How can I get rid of it? | |
My program works properly under windows, however, it seg faults when I try to compile/run it under linux. [code=c++] #include <fstream> #include <iostream> using namespace std; int main() { char command; char infilename[80]; char outfilename[80]; char fileline[80]; char nextline[80]; char temp[80]; char temp2[80]; char * location; char sentence[250]; int loc … | |
I have a Crystal Report that I am running in ASP.NET, and it has two parameters. When I run the page, the parameters are prompted for, and the report generates fine. But when I try to go to another page of the report, it re-prompts for the parameters, and then … | |
i know this could be very simple for you guys but i do have a problem with this. The program searches for a particular array from a text file(i don't know how to import a text file too) and counts the number of occurrence in it. The text file is … | |
I have an array that has read from file as follows: 1 0 0 2 0 0 3 1 2 4 1 2 5 3 0 For the first two lines ( the ones that end 0 0) I want to enter two additional sets of data, so an additional … | |
Hi, I am trying to write program that will recognize when a device such as a magnetic swipper is used. I was thinking that I could somehow bind the device to something in my program but I am not sure what I would use to bind it. I thought that … | |
Hi all My bro rang me up, and for some reason he asked me to make him a "simple" program that creates a folder and the user enters the name for that folder then it acopies pre set files in to that new folder. The folder will be created in … | |
Good Morning, I have a script that is working just fine as it stands, thanks to ya'll :) I wanted to make a change to it but am having trouble making this change work. The scripts says to "select * from my databases", using "Where" three data inputs. This tells … | |
Hey all. Can some please confirm some winsock items, I am starting to doubt my self about it now. The question is this: If you created a client server program, what port does the client winsock.localport actually connect? Is it the same port that you request it connect to, or … | |
Hello All! I would like to create a message box from one of my "C" applications. I have looked at prior posts and received a snippet such as this one: [code] #include windows.h MessageBox(hwnd, "You have bla bla", buffer, MB_OK);char buffer[100]; [/code] Well, the problem is that during the build … | |
Hi everyone. My friends recommended me to this site. Hopefully someone out there knows a bit about the Socket Api. ... I am trying to transfer a text file from one folder to another (all on the same machine). On the server side, I am able to put the entire … | |
I used turbo c++ to make a program.....the program has lots of different menus with big graphical text (used outtextxy())...the problem is when i run the program, after going thorugh a couple of menus, all the big graphical text (GOTHIC_FONT etc...) changes to DEFAULT_FONT ....what could be a possible reason … | |
I am hoping somebody can help with a very frustrating problem I am facing. I am working with a MDIChildFrame that has one panel called mainPanel. I set the background style of both the panel and the child frame to wx.BG_STYLE_SYSTEM. Yet, when I run the program the background is … | |
hi, i am facing the problem with reuglar expressions. my requirement is if type the word like `$var` in a input field and select the EXACT WORD radio button and i click the search button then i want to display all files with the word `$var` all in my directory. … ![]() | |
please write a simple script to check for the existence of all the frames in the directory. So, you give it to frame range and it makes sure that all the subdirectories have the right number of frames. Doesn't check whether the frames are black or not but certainly whether … | |
Hello, I would first like to thank everyone for their help so far, i really appreciate it. Well, i have been learning perl for my job now for about three weeks. Things have gone pretty well so far. I have written a few scripts here and there. However, i have … | |
Hi am so stuck with the following question, I have input my code at the bottom and it gets me the following display Data items in original order 2 6 4 8 10 12 89 68 45 37 Data items in ascending order 2 4 6 8 10 12 37 … | |
Hello All, I have very basic knowledge of C and I'm trying to write a program to read a single line from an ASCII data file which has following format " 1337936.4550 6070317.1261 1427876.7852 APPROX POSITION XYZ" The problem is the position of line is not fixed. Its different in … | |
Please find attached Doc2.doc. It is a pic of my program. (this program successfully outputs the entire database. Yet I would like to learn the general steps to click the search button and perform a query. further please find the method I have for a search @Action. I am not … | |
hi there, creating a structured databse (maybe in SQL) that I want accessable from a UI in c#. Is SQL the best way to go about this ? cheers | |
Hello, I want to make a message box which would show me how many points have I earned. So I have: [CODE]unsigned int points; //code points++; MessageBox(hwnd, "You have bla bla", "Total points /*HERE I WANT TO DISPLAY CONTENTS OF points VARIABLE*/, MB_OK);[/CODE] Is possible to do that? | |
Hey All, I have a form that i want to be able to change the look of, it displays within an HTML page and is basically a rectangle with my input fields in it. I'm using a [code]<form action="fromform.php" method="post">[/code] type form. What i want is to be able to … | |
Hi I am new here and I got no programming skills at all, but I think this tool is very easy to write. Please do me a favor. This is how the tool works, you open a ini text file. In the ini file there is something called "Weapon" that … | |
Hey all, I am continuing with my self study and now I have come across classes. I have read about this and read about this but it seems very alien to me.The problem I have selected to do is as follows: Here is a rather simple class definition: [code=c++] class … | |
Can anyone help. I have written my application in visual basic 2005 and access database. my problem is i want users to have different menu items depending on their user profiles. How do I enable menu items like administration for administrator and disable it or hide it completetly for general … | |
Hi I've developed an app that reads in a csv file, strips it out to its component fields, validates them and writes it up to the database. So far, so good. I now want to enhance it so that the dataloading take place in the background enabling the UI to … | |
It is late here, I am tired. I know this is probably out there somewhere, and that I am not showing effort by not looking for it, but I really am too tired, so tomorrow morning if this is answered (takes you like 2 seconds to answer it) I'll mark … | |
hi I am trying to write into a file which already has something in it. like for example i have x y z in the file and if i want to put k after x,y and z like x y z k. my code goes this way [code=c++] int main … | |
Hi, I'm workin on a website where i need to update a password using a stored procedure. I tested the stored procedure on SQL server and its working fine. but somehow i cannot seem to call it from C#. Can any one please help me? Stored Procedure CREATE PROCEDURE dbo.sp_ChangePassword … | |
Hi frds, I have a page which contains the reference of another page .. <%@ Reference Page="../example.aspx" %> A listbox is there in the example.aspx. I want to call a javascript function, for eg, listbox1.Attributes.Add("onClick", "alert('hi');") that will be shown in main page. Plz help me to find the solution. | |
hello friends... i want to get the browser name is asp code without using js and include the css file depending upon the browser of the user. i dont want to use js. because i am unable to include file in js. what i did in js is --- var … | |
I want to develop process viewer for windows in c or c++. Is there any api or any information so i can start from that. Anyone know about this please help. Thanx in advance. | |
![]() | Hi. I have been trying to access Microsoft Outlook from Java. This be in case of jsp page or traditional Java. Is there anyone how knows how? In the same case i would also ask if someone have tried to use mail session in Apache Geronimo. There is a plugin … |
Hello all, actually i need to open a CHM file when i click on Help's submenu "Documentation",how to do this,how to open a file.Please help me. | |
hi. i'm planning to use visualc++ as the language for a pcb layout artist/designer. i'm wondering if it's possible to create a command line interface (just like in AutoCAD) using visualC++. | |
Hi, I have a program that lets the user choose from four options. The user can choose more than one and can choose all of them if he/she wants to, but must choose at least one. Out of the choices chosen, the program picks a random one and executes it. … | |
Could please help me in the code,of how to extract the no of words in each sentence(if there are 2 or more sentence).But i want the code to use string function????????? | |
here's my code: [code=c++]cin>>figure; switch (figure) { case '1': //figure is circle system("cls"); cout<<"input radius: "; cin>>rad; cout<<"\nsurface area of your circle is "<<pi*rad*rad; break; case '2': //figure is rectangle system("cls"); cout<<"input length: "; cin>>length; cout<<"\ninput width: "; cin>>width; cout<<"\nsurface area of your rectangle is "<<length*width; break; }[/code] 1)when i … | |
Hey everyone, this is a very tough problem I am facing right now in JavaScript. I'm designing this script to load a page like an IFrame but is using AJAX, the only problem is that I need to edit certain attributes before displaying them through changing an element's innerHTML attribute. … | |
Read multiple columns data from SQL query ( 1 row ) Hi all. I am using an SQL express where I’ve designed a table named User_DB_Main I have also created a procedure that makes some selections : [code] @UserId varchar(20), @UserPassword varchar(30) AS /*- Check if UserID exists*/ SELECT COUNT(UID) … |
The End.