199,114 Archived Topics
Remove Filter ![]() | |
I have the following code: tb_Job_No.Text is a combobox This is the code [code] Public Sub RepCD_process() ssql_Job = "SELECT * FROM Rep_Dist" ssql_Job = ssql_Job + " WHERE (Job_Number = '" & tb_Job_No.Text & "') " Dim Main_Form As New Main_Form With Main_Form .DC_Reps.Open() .DS_RepDist1.Clear() .DA_RepDist.SelectCommand.CommandText = ssql_Job .DA_RepDist.Fill(.DS_RepDist1) … | |
Hello, What I am trying to do is edit the variable of a class through a separate class function. I have tried to do things like [code=C++] int player::attack(int *enemy) { srand(time(NULL)); int randomNumber = rand() % 100; *consolePlayer.health = *consolePlayer.health - randomNumber; } [/code] and I get the error … | |
hi below is code it is only a part of my program simplified for understanding the main problem i am facing .................... actually the code runs well but while exiting from main [B]displays Null pointer assignment[/B] . May i please request the forum member to debug the program..... the code … | |
Hi everyone I need major help with coding for a library system its relatively small scale but, im not grasping concepts and there get stuck often | |
Hi I have newly installed VB 20008 Express. What extras do I need to have to allow me to create standalone exes? This for giving to fellow model railway club members and not for commercial use. Thanks Davy ![]() | |
Fatal error: Call to undefined function write_log() in /home/poetryba/public_html/install/inc/class.sql_import.php on line 105 here is my code <?php class Sql2Db { private $sql_file_name = ''; private $debug = ''; public $debug_filename = 'vshare_upgrade'; function Sql2Db($sql_file_name, $debug = 0) { $this->sql_file_name = $sql_file_name; $this->debug = $debug; } function import() { $comment = … | |
Hey Guys, I have a quick question. I want to make sure I am doing this right, according to my understanding of the PHP manual. Here's my question: If I have an "address" input field for my form and a user inputs their address and then this information is passed … | |
[CODE]if($firstname == '') {print "You have not entered your first name, please go back and try again.";}[/CODE] How do I make the text look like the entire site? Or even better - is it possible to get a popup window on this instead of opening a full sized page? Thank … ![]() | |
delete this, solved, had to do with how a variable was declared | |
Hello, Any way of when a customer goes to [url]www.domain.com/testtest[/url] it stores the IP and then it automatically block that? or give me the opertunity to block it by htaccess? Thank you | |
I have three files: main.cpp [CODE]#include "CMain.h" int WINAPI WinMain(HINSTANCE hIn...) { return 0; }[/CODE] CMain.cpp [CODE]#include "CMain.h" using namespace Program; LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; } CMain::CMain(void) { … | |
im trying to install my youtube clone script i brought from Vshare.com on my server and this is the error message i keep getting. Warning: fopen(../include/config.php) [function.fopen]: failed to open stream: Is a directory in /home/poetryba/public_html/install/install_collect_info.php on line 86 Warning: fputs(): supplied argument is not a valid stream resource in … | |
Hello, How can i change the root directory to the current working directory.. I need to use some form of an exec call to run a program found in the current working directory but the problem is that the path of that program is required to start with '/'.... my … | |
I'm looking to display only 1 line of text from a source where characters range from 0-255. I do not want the text to exceed 1 line, and if it would, I want to truncate and display "...". What is the best way to determine if text will exceed 1 … ![]() | |
Hello I'm creating a game engine. In order to draw everything correctly I need to sort a vector (vector<game_object*>) by each contents z value I miserably failed to do it with std's sort() so Id like to know what's the most efficient way I could sort this vector [If its … | |
[URL="http://i41.tinypic.com/n2ef5k.jpg"]Screenshot.[/URL] Hello, I have a problem already for like a week and I seriously can't get out of it. Take a look at the screen shot. The server sends a packet to the client to spawn an NPC. If you look to the top commandline-window, the client does recv the … | |
I am fairly new to PHP-MYsql and HTML programming. So Please bear with me, I'm trying to create a function which will produce an array of 'Fields in a Table' and combine that array with an array of 'Column Headings' to produce an associative array like this; $labels= array('IDno' => … | |
So I have the following implementation of linked list: [CODE=c] #ifndef LINKED_LIST #define LINKED_LIST struct Student { char* name; char* surrname; char* signin_number; char* grade; char* date; struct Student* next; }; struct Student* begin = NULL; void push_back(struct Student* student) { struct Student* temp = NULL; if(begin == NULL) { … | |
I want to know what is "Vector for the buckets in hash table". I gathered data and stored into hash table. And I want to know how to convert hash table buckets into Vector. If you guys have source, It would be helpful or theory, also welcomed. Thanks you in … | |
I just wrote my first program using methods (I am only on chapter 5). I am not sure where I would use javadocs other than the ones that I already have in my code. Can someone help me? [code]/** * @author Brock Shelton * Date: March 15, 2010 * purpose: … | |
Hello everyone :) My problem is that my input will not be transfered when i build a new Object. To understand my problem i give you first the output: Welcome Hero! Show me your Attributes! Enter your Name: KIKI Enter your Strength: 50 Enter your Health: 60 Enter your Intelligence: … | |
I'm having troubles understanding global variables in python. I am trying to keep track of when a function gets called and once it does I want it to be unavailable to the user. However for some reason its not working :\ [CODE] psycStat = False def main(): form = cgi.FieldStorage() … | |
Hey I have a use for working with basic binary search trees but I cant seem to find good examples on the basic operations such as sorting, insert data, delete and search for data. Can someone give some basic examples? Thanks. | |
#include <iostream> using namespace std; int main() { int list[12] = {8,1,11,4,2,9,10,5,3,12,6,7}; cout<<list; return 0; } I run the above code and get this: 0x22fef0Press any key to continue . . . Please help!!! New with C and new with Dev-C++ which my University wants us to use... Running from … | |
ok so im doing a project for a class, no body but me is doing c++ for it, im the only one in my school that knows some of it, and heres what i have so far, havnt gotten into too much detail for it because i need to know … | |
Hey Everyone, I am getting an error with a PHP script made using the Authorize.net AIM (Advanced Integration Method) API for my donation form. I have gone over the code dozens of times and still do not know why it is not working. Everything works except the most important part...it … | |
I need to create some kind of web interface that will allow users to view all of our conference room Outlook calendars/availability at one time. From there, they should be able to select a date/time and automatically bring up a new appointment in their Outlook client and schedule a meeting … | |
Hello DaniWebbers, I've got several href's that take the user to different forms. However, in order to have access to the forms, they have to log in. So when they click the link, they are redirected to a login page if they have not already logged in, otherwise they are … | |
Hey all! I'm new to C++ and am having trouble with the Do...While loop terminating. My problem is I want the loop to end when the user enters 'X' when asked for an operation. When 'X' is entered it still asks for a number and then displays the current total … | |
I have written a program for a linux box running on a davinci (arm processor). The program communicates with a server over the lan, calls some scripts, and delays different amounts of time depending on what the server tells it to do. It all works great, most of the time. … | |
Hello. I am creating a template class derived from another template class to basically mimic the behavior of the STL stack for a school project. I am getting a compile time error when try to use a variable named "copy" when testing the overloaded '=' (defined in the base class) … | |
I'll do my best to be as clear as possible about what I'm trying to do. In short, I'd like to know if a switch statement can check multiple variables simultaneously (I have a feeling it can't, but I'd like to confirm). If it can't, can someone recommend a way … | |
I am making Railway reservation sys. i want to pass these set of statements into a function how can i do that???? I have used structures in the program... [CODE]cout<<"--TICKET SUMMARY--"<<endl; cout<<"Passenger Name :"<<o2.pass_name<<endl; cout<<"Age :"<<o2.age<<endl; cout<<"Sex :"<<o2.sex<<endl; cout<<"Train Name: "<<o1[x].train_name<<endl; cout<<"Arrival Time: "<<o1[x].t_arr.hrs<<":"<<o1[x].t_arr.min<<endl; cout<<"Departure Time: "<<o1[x].t_dep.hrs<<":"<<o1[x].t_dep.min<<endl; cout<<"Seat Class: 2A"<<endl; … | |
I need some dire help. Whenever I execute my program I get this message "./main: free(): invalid next size (fast)". Which leads me to believe something with my dynamic allocation of an array. I've used a debugger and pinpointed the error to the method where I'm trying to increase the … | |
I'm using NetBeans 6.8 + MinGW + MSYS I try to develop a simple Winodws application e.g: [CODE] #include <windows.h> int WinMain(HINSTANCE,HINSTANCE,LPSTR,int) { MessageBox(0,"Hello, Windows","MinGW Test Program",MB_OK); return 0; }[/CODE] Or something like this: [CODE] #include <windows.h> char *AppTitle="Win1"; LRESULT CALLBACK WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); int … | |
hi everyone, i'm new in c#, so i have some questions: i have this piece of code: [code=c#]Graphics gfx = this.CreateGraphics(); Pen myPen = new Pen(Color.Azure, 1.0f); Rectangle myRec = new Rectangle(10, 10, 30, 30); gfx.DrawRectangle(myPen, myRec);[/code] and i want the rectangle myRec appear on the form1 when i press … | |
import java.awt.*; import java.awt.event.*; import java.io.*; public class StudentWriteApp extends Frame implements ActionListener { //Declare stream objects FileOutputStream outputStudent; //Stream to create file ObjectOutputStream objSaveStudent; //Stream to save an object //Declare components TextField txtStudentName = new TextField(20); TextField txtAddress = new TextField(20); TextField txtResults = new TextField(25); Button btnSave = … | |
Does anybody know of any libraries or scripts or even code snippets that can generate HTML code from a diff or comparison of the contents of two files? I know of the HtmlDiff class in difflib, but the format it outputs is not the one I want (it puts both … | |
I have a multi form, In a form, i have the <back and Next> button. So i used the form action in these to button, I also have a validation which i did using javascript , [CODE] <head> <script type="text/javascript"> function validate_name(field,alerttxt) { with (field) { if (value==null||value=="") {alert(alerttxt);return false} … ![]() | |
So I'm making this program, and this is what I have so far [CODE]private: System::Void load_Click(System::Object^ sender, System::EventArgs^ e) { outs("ComputerName", SystemInformation::ComputerName); outb("Network", SystemInformation::Network); outs("UserDomainName", SystemInformation::UserDomainName); outs("UserName", SystemInformation::UserName); outbm("BootMode", SystemInformation::BootMode); outi("MonitorCount", SystemInformation::MonitorCount); outb("MonitorsSameDisplayFormat", SystemInformation::MonitorsSameDisplayFormat); outad("ArrangeDirection", SystemInformation::ArrangeDirection); outb("MousePresent", SystemInformation::MousePresent); outb("MouseButtonsSwapped", SystemInformation::MouseButtonsSwapped); outb("UserInteractive", SystemInformation::UserInteractive); outr("VirtualScreen", SystemInformation::VirtualScreen); } public: System::Void outs(String^ x, String^ … | |
I'm trying to declare a vector as a global variable, and am getting a linker error. I read up on linker problems with multi-file projects, pretty sure I've included the proper headers, used extern, and #ifdef properly, but I can't get it yet. Here is what we have: [CODE] //in … | |
hai experts i am a beginner in php....how to create autosuggestion box in search page..and how to create search box... pls give me the solution.... | |
Hello Everybody, Most of my coding experience is in C. Although I have a background in C++, I know very little of STL and the advanced topics in C++. I came across this code [code=c++] struct g { g():n(0) { } int operator()() { return n++; } int n; }; … | |
hi i have a problem with datagridview. I have about 5 datagridviews displaying different items. Now my issue is that how will i know which datagridview the user selected and add from that datagridview only? at the moment the user can add from different datagridviews because the first row of … | |
Hi; I have an edit control that takes string input from user and a CButton 'Record' to record that input. I want to catch the control and disable it when the user input is empty. I want to make sure that this enable/diable happens with the click of Record CButton. … | |
hi everyone, i'm new in c# and events handling techniques, and i have a problem: how can i call paint event inside of mouseclick event? [code=c#] private void Form1_MouseClick(object sender, MouseEventArgs e) { Form1_Paint(?, ?); //i need something like this... } [/code] i want to move rectangle(paint event moves it, … | |
Hi all, I am creating a Genetic Algorithm, and I have two Arrays contain int values, I would like to know a easy way of Split each array into 4 random sections e.g. Array 1 = [1| 4 5 3| 1 4 |6 7 8| 1] Array 2 = [2| … | |
Hi everyone. I, like the majority of us web developer's, despise internet explorer. So on my site, i want to put something in just for the fun of it that detects IE and says something. Right now i have just a plain alert asking to please change to a different … | |
I got a simple javascript function in my asp.net page that just checks to see if one value is smaller than the other. The condition value is 15000.00 and i'm comparing it to 920.00 Why does it evaluate to false? [CODE] var moo= 15000.00; var orig= 920.00; var bool = … | |
Hi I have a problem with this code. I'm trying to save a values in the database.. When I click the save button the table is being updated and showing the new values I entered. But the problem is it is not actually saved in the database, when I re-run … |
The End.