199,114 Archived Topics
Remove Filter ![]() | |
Hi all, i'm looking into doing a little bit of work with the mouse in console applications on windows. I'm using windows.h to get access to functions such as ReadConsoleInput. I've created a simple program that just prints a string whenever the left most mouse button is clicked. However sometimes … | |
Hello. A friend of mine have decided to attempt to start a grass roots development of a mmorpg. We are both tired of the same tired and cookie cutter cloned mmorpgs out there that are all the same. It's a daunting task but even if we could get an alpha … | |
Well, i want to make an RPG (in the future it will become MMORPG). Anyway... I'll use C# and i haven't decided yet what graphical API I will use (DirectX, OpenGL, XNA, ..), but this isn't relative for my problem (an opinion would be good). Well, my doubt is: how … | |
Hello! I want to go through a string char by char and i've heard a byte ptr is the way to do this, but i'm having problems with using it. I tried with the code below, but i get an error saying: "comma or end of line expected" at the … | |
hi, i need to read a file and to store contents in buffer. to read the first 8 bytes and to move the pointer to read the strings in that file. could any one help me? | |
Hi I have exam after 12 hours, please help me to writing those programs…… And thank you 1. Write a c++ program to output the histogram of a sequence of 10 positive integers. this program first asks the user to enter 10 integers. then write the histogram of this sequence … | |
I have an Array A[N]={1,2,3,4,5,6}; and I want to split it to 2 arrays of size N/2 such that B = 1, 2, 3 and C = 4, 5, 6 here is my program but there is something wrong with array C Can you help me with it ? [CODE]#include … | |
hey peeps..i got a problem in this project and will be grateful if someone can help pls..thx | |
hi, i need to create a c shared library on unix platform using korn shell. can you provide me with some sample codes please. thanks | |
Hello, i have this code who ive been using whitout any problems. and then suddenly at says acces violation at address 004b84 in module "SecurityScreensaver.exe" when i trie to save a tstringlist to a file. this is how the code looks procedure TForm7.Button8Click(Sender: TObject); var s : tstringlist; begin savedialog1.Title … | |
I'm desperate for help with my attempts to make a coldfusion contact form. I've tried so many tutorials, but no luck. I have a windows testing server, so the servers so problem. Its just the code. Is there any premade forms that have name,email,textarea,image attachment? I'll give you 20 bucks. … | |
So I've spent the past 2 hours trying to work all of this out, but I am still getting an error message that seems out of place. import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class HiLo extends JApplet { Image cardImages; /** * An image that holds the … | |
Hi all. I have a very simple app, but I don't know how to get position of the circles. Here's the code: [CODE] from Tkinter import * master = Tk() global w def dotToDot1(event): global w circles = 0 x = event.x y = event.y c1 = w.create_oval(x, y, x+10, … | |
How do I code a C++ program that used an array to find an average of positive numbers. Then outputs the result | |
hi, ihave this code in c# for crating cookies : if (saveInCokies_CheckBox.Checked) { HttpCookie myCookie = new HttpCookie("AtterehWebCookies"); myCookie["userName"] = userName_TextBox.Text.Trim(); myCookie["password"] = password_TextBox.Text.Trim(); if(employee_RadioButton.Checked) myCookie["loginType"] = "employee"; else if(lawyer_RadioButton.Checked) myCookie["loginType"] = "lawyer"; else if(customer_RadioButton.Checked) myCookie["loginType"] = "customer"; Response.Cookies.Clear(); Response.Cookies.Add(myCookie); Response.Cookies["AtterehWebCookies"].Expires = DateTime.Now.AddDays(30); } after that i want to read … | |
Hello all, I am working on an assignment and with help I have managed to complete the following: [CODE]using System; using System.Collections.Generic; using System.Text; namespace StudentGradeDistributions { class Program { private static string asterics(double grade) { return new string(' ', (int)grade / 2) + "*" + new string(' ', 50 … | |
I'm trying to get the game below to work with 2 players. It's setup the way I need it (even the entering the numbers for the die instead of using a rand function and not allowing the bet amount to change(crazy teacher)) I just can't figure out how to make … | |
Hello everyone. I've read several articles on the internet in trying to figure this out; however, those article seem a bit over my head apparently and I can't seem to find a code example that is simple and to the point to implement. I'm coding a password manager program in … | |
I'm new at the whole code thing and I've never worked with this before but I have to fix it and I'm lost. When publishing an internal site I'm getting a RunTime error "Server Error in /Workorder Application." Runtime Error Description: An application error occurred on the server. The current … | |
Hi I am writing a function in C++ extern "C" { __declspec(dllexport) void CreateInputFilter() { ITestPtr pTest = createInstance<ITest>(m_Test); } } But I am getting this error m_Test' : undeclared identifier The main thing is above this function I have written the same code above in another function but there … | |
Hello friends, I've a category table, the structure is: category{ id int(11) autoincrement, name varchar(255), parentid int(11); } Now a node can have multiple child nodes and grand child nodes. now if I want to get all childnodes and grandchild nodes of a node id what should i do ??????? … | |
I have a PHP script I am trying to convert to PERL and need some help. Here is the code in PHP [code] $store_list_name = $prod[10]; $category = $prod[11]; $sub_category = $prod[12]; $searchfor = $store_list_name . "->" . $category . "->" . $sub_category; $getcat = mysql_query("SELECT * FROM categories WHERE … | |
hi to all again, I want to know how to disable the Maximize option of a window using a VB code. I believe one way to have a fixed window size is to disable the Maximize option?? Can anyone here please help..... Thanks a lot again in advance. Have a … | |
I want to add checkbox for each record in datagrid on windows form with c# vs 2003. Please any help can solve my problem. Howdo do this. | |
Hi, i want to create a search result page in which i want to display results in grid, grid must contain text box to take user input . In grid results must come from the database. and grid must also contain the link button. Please Help me out Thanks in … | |
Hi there, I am currently having trouble with one thing. I am working on application which should work like this: When I open it the login_form shows up, I insert login information and then it opens the main_form and gives it the login information and disappears. The problem here is … | |
EDIT for moderators: Yes that "one might think that swapbuffer is slow" was me. Heh. :D Could someone change the topicname to "Optimizing OpenGL"? Thanks. Hey guys, I'm trying to optimize this OpenGL program, so the problem isn't C, but the program is. The program loads a vanilla WaveFront .obj … | |
hi, I am trying to add a value to listbox. i use lstlistbox.items.add(new listitem(value)). this adds it fine in click event of button, but i need to use the selectedvalue of the listbox again in same event. as the listbox item doesnt show i cant use selectedvalue. is there a … | |
The following stored procedure is supposed to add a new record to the database OR update Mdescript if it already exists. However I keep getting errors such as primary key violations. Please take a look, many thanks :) [CODE=SQL] USE [COSHH2008] GO /****** Object: StoredProcedure [dbo].[CHSP_OR_ACTIVITYAREA_001] Script Date: 12/02/2008 13:59:33 … | |
I am new to the fascinating world of C++, I should of stuck with Spanish.. But I have an assignment due and I am so close I can taste it. I am having an issue with my global functions. I can not get my average function nor my maxGrade function … | |
How can I detect if ASP.NET is registered or not (programmatically)? I've read a lot of posts about checking register, for example: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\..., but I have not this key at all, and about existing the folder "C:\Inetpub\wwwroot\aspnet_client"(but it can be absent) Also I can't use the Metabase.xml because it has … | |
Hello, I've been working with threading these days. I want to put a progress bar which is in a separate form but in the same namespace. My form1 class has all the controls for my drag and drop functionality while in my form2 class will be my progress form in … | |
Hi can any one plz send me the java code for sending sms through some gateway plz reply this asap..or else plz assist me how to proceed.. Thanks, Srinivas | |
Hi I have build one dll project . I want to use that dll in another project. But when I include the header file of the project I am getting an error Error 2 fatal error C1189: #error : "include 'stdafx.h' before including this file for PCH" Am I missing … | |
I am working on an MFC application which has a chat module in which i want to implement File Transfer/Upload to server using HTTP Post Method . Please help me Thanks Dhiraj | |
Hi, Are there any software that I can get back from VB executable file to VB source code? Please help me. | |
Hi friends , :( I've made a programme that can read a file and if it finds a peticular string in the file it shows the whole line. I've used "stringstream" to extractone by one and I checked that by the If loop on true condition it prints the whole … | |
Hi all, I am working with a project which includes Crystal Reports in Vb.Net and SQL Server2000 as Back end. The code in button click is [code] str5 = "D:\AttendanceReport.rpt" If Not IO.File.Exists(str5) Then Throw (New Exception("Unable to locate report file:" & vbCrLf & str5)) End If str6 = "SELECT … | |
Okay, I have to store an adjacency matrix for a graph problem I'm doing. Let's use this picture to explain it right now. [url=http://i21.photobucket.com/albums/b272/DemonGal711/Program%20Pic/pic.jpg]Click here[/url] I figured, I'm use a linked list to store it where each node uses the struct [code]struct Node { char item; Node* vertex; Node* next; … | |
I'm coding for fun and I can't figure out how to compare two string in an if (string1 < string2) type statement. I figured if I could somehow get values for those strings it would be easy to do the if statement. All help is highly appreciated : ) | |
I have writtern some code but apparently i have not initalised two parts of it, now to my knowledgde i have and i can not see why it is showing warnings for it. i hope you can help. [CODE=cplusplus] double m, l, dm, dc, xsq, D; W_line_Sum(line ,t); W_line sums; … | |
hallo...this is my first post.. i want to validation my registration.. if there are anyone to regis but the username is already(in database), there are message " sorry, choose the different name please" i have no idea, i have tried but always failed... o..yeah i use ms.accsess for my database..and … | |
Hello, I have a program that's 95% written. I am getting weird results though, so I will need you to fix it and EXPLAIN why that worked. This should take an experienced programmer less then 30 minutes. I would post it on here, but it's over a thousand lines of … | |
hi i have a text area where i want to limit the number of charactersin each line. for example if the user enters more than 50 caharacters it should automatically move the cursor to the next line thanks | |
Hi All, Can anyone tell me about a library that helps me to read contents from /etc/resolv.conf file and also update the same file with new entries. Does this possible with Resolver library routines? Any useful links or sample programs regarding this? Thanks in advance. Renjith | |
I have had to miss my last classes due to having to go to my doctor in order to prep me for surgery. My professor has placed the final assignment online and i have no where to begin. I'll take any help and would like to add that while i … | |
I have the following code that produces an applet of two eyeballs. I have a mouseMotionListener that is set so that when the mouse is moved around the pair of eyes, the eyeballs follow the pointer. I have the eyeballs set up in four locations. To the left, right, north, … | |
hi I am creating an CSV file in java by putting the Korean values in a properties file like "\uc81c\ubaa9 \uc18c\uc2a4\uc5d0\uc11c \uc5b8\uc5b4" [B]which is properly coming in the CSV file (like "번호 출판물의") when I open it in the notepad and select the font as Arial Unicode MS[/B], but when … | |
[CODE]void StrCpy(char * Dest , char* Src ) { while(*Src){ *Dest = *Src++; cout << *Dest ++; } } void main() { char* string1 = "\0"; char * string2 = "EL"; StrCpy(string1, string2); //cout << string1; //must output EL } [/CODE] Im trying to output EL after its copied to … | |
Greetings! I just downloaded Python 2.6 from Python.org . It came with IDLE Gui. Poking around the internet, I see a bunch of other pthon related names like: IDLE, wxPython, Tkinter, Widget toolkit, PyGTK, PyQT, Tk GUI . I am not really sure what all I have, and what else … |
The End.