64,152 Solved Topics
Remove Filter ![]() | |
*Note: its not a fully functional hashTable for technical purposes My priority is to get it to store the strings properly. I approached this a different yet similar way to my other post and I have gotten much farther! The problem now is that my output prints duplicates each and … | |
Hi , I have a Questionnaire form in my application, which i am developing using C# & ASP.NET. The form should have a fixed number of main questions (8) and each main Question has a number of sub questions (say 6). I created a repeater to accomplish this. SOme Main … | |
This is for a frequency table that will eventually allow me to build a Huffman coding tree. I want the class FrequencyTable to simply hold a vector of the type FrequencyNode however I keep getting an error about ISO forbiding the creation of the vector. Any ideas why? Error: [CODE]FrequencyTable.h:11: … | |
Hi folks, Working on a small project with PHP spell checking features (pspell) and wind up with strings containing both plain text (properly spelled words) and drop down lists (misspelled word suggestions) such as: The large brown [dog] ate my [homework]. Where words in brackets are drop down lists containing … | |
I'm very new at C++ and would like to know how I would change a directory via user input? This will be a Win32 Project and [U]not [/U]a Win32 application. I know I can use (as standard - and without user input) the [U][B]chdir("\\dir");[/B][/U] - but how do I use … | |
Hi all there. I was given the task to write a simple Complex Number class as an exercise for a class I'm taking. I already met my professor and all went well (:)) but I'm left with a question which I forgot to ask her: how should I handle any … | |
i am in a first semester programming class and this probably might seem like a dumb questino to everyone here but i have been working on this for along time and cant seem to come up with anything. i am stuck on 2 programs. the first is to ask for … | |
Hi, i have bieng trying to write a method which takes a listbox index (1D array) and find the corresponding 2D index. I did this code with some help which get the 1D index of a 2D array. Now i need to do the reverse from listbox index (1D) and … | |
I have several questions: Here is the context: The ASP.NET application I'm building - a web service in essence - will be connecting to MSSQL to log requests to a table. These are basic INSERT commands. During high-volume hours, do I risk race conditions? How does MSSQL handle sequential INSERT … | |
Hi everyone, I have four forms. Form1 is the main form and needs to be kept open and visible at all times but cannot be clicked while the other forms are open. For example, the main form is open and after a certain amount of time the second form opens … | |
I have a reference to some string. I need to copy (clone) that string. This is what I tried [CODE=PHP] $newString = $refToString; //this just copies the ref - no new memory allocated $newString = clone $refToString; //this creates "__clone method called on non-object" error [/CODE] If anyone knows how … | |
I thought it was a simple task at first. Don't ask me why, but I wanted to display a number in it's binary form. Manipulating bits in C# seems a bit(no pun...) harsh. The best I could come up with was : [CODE=csharp]static void Displaybinary( uint i) { const byte … | |
Hi, I had posted this question before and I did appreciate the response I got. However I still need some little help as: [B]1.In the addMovieGoers method check that every member of the collection is a human and that they are old enough to watch the movie, if not throw … | |
Hello, I am reading this turorial [url]http://diveintopython.org/soap_web_services/introspection.html[/url] and i am trying to echo out all my wsdl method. I am trying to do this on my external web hosting server. I have got the modules installed but i am getting an internal server error [url]http://adamplowman.com/cgi-bin/test_xml.py[/url] here is the code [CODE] … | |
Hi, I working on COM Components in VC++.NET 2005, [CODE]HRESULT hr = spCrypt.CoCreateInstance(__uuidof(Cryptographer::TMMPlayerHelper), 0); if( FAILED(hr) ) spCrypt = 0;[/CODE] I am facing an error here. I debug the code and found that "CoCreateInstance()" is returning a message "Class is not registered" an my program gets crash. How can I … | |
Hi. The program works fine if i just compile and run. But for the program to get graded it has to pass a test written in python which it does not. Since i'm complete dummy at c and programming if you find to explain, dumb it down please... so here … | |
I was under impression that declaration of [icode]char(4)[/icode] can store only values of [B]exact length[/B] of 4 characters. However I was able to insert empty string and strings of less characters than 4. Is there some datatype that will only accept string of declared length? Strings with less characters should … | |
First off, I know that to set an indexed variable, say, mylist[3] = "Hello". I also know that you wouldn't be able to set mylist[3] if you didn't first state: [code = python]mylist = ["Whatever", "Whatever", "Whatever", "Whatever"][/code] But, if you had a variable with an extremely large index, it … | |
Im trying to connect from windows xp using my program using odbc connector and SQLyog to a mysql server which is installed in windows 2000 server.. i keep on getting the same error.. i tried to use wamp server also but i was not able to connect at all.. i … | |
Hi all, I have a shopping basket feature on my website which saves the product's primary key in the session array called 'cart', each one seperated by a comma, so example: '123,456,789'. Now in order to get each item from my shopping basket to paypal I need to write 2 … | |
I am having a problem with a class I am writing. I have defined a whole bunch of methods defined that the compiler is telling me in the implementation are different. The errors are: [QUOTE] 1>------ Build started: Project: prog6a, Configuration: Debug Win32 ------ 1>Compiling... 1>main.cpp 1>c:\users\philip\documents\visual studio 2005\projects\cs211\prog6a\prog6a\avltree.h(186) : … | |
Hi, let's say I define this two classes that do not inherit from one another. I get an error at line 10: field "DataNoFather" has incomplete type. 1.Any idea what that means and how to fix it? 2. Is it possible to have a variable like DataNoSon labeled with type … | |
I remade an equation-solver program from Java to C++, and I plan to post it soon but I would rather not until I can determine where modulus fits in with PEMDAS. To those who don't know, PEMDAS is the order in which mathematical expressions are to be evaluated. The order … | |
Hi there. I started with wxPython (Under Linux) a little while ago and I'm enjoying very much, however, there doesn't seem to be a control for working with Rich text. Iv found a few articles (mostly dated a few years ago) that suggest that such a control is on its … | |
Hello all, I am designing a database and, while I have used simple databases before, I am by no means an expert on relational dB design and so am seeking advice and help. The database functionality I need is as follows: A third normal database in the structure represented by … | |
Hello., Im learning C online, and one of the examples from the internet is this: [CODE] #include <stdio.h> int CalcVolume (int length, int width, int height); void PrintIt (int vol); void main() { int volume1, volume2; int x = 8, y = 15, z = 20; volume1 = CalcVolume (10, … | |
Hi, In my Insert SP, I have 5 local variables: @MemberID int, @VideoID int, @Total money, @DateRented datetime, @DateDue datetime insert into RentalRecord values (@MemberID,@VideoID,@Total,GETDATE(), DATEADD(dd,5,GETDATE())) When I try to execute the SP, I get this error: Procedure or function 'sp_AddRentalRecord' expects parameter '@DateRented', which was not supplied. Please advise. … | |
I have got two arrays. One for initializing and another for displaying. The display array always shows nothing if the initializing array has not been called. The problem now though is that if I want to insert something in a certain slot in the array nothing happens and I dont … | |
Hi, this is my first post here so I am not quite sure how to enter codes properly, but I will do my best to explain my problem anyway... Suppose I have a new form (Form1), and I insert a combo box (ComboBox1), and the items for ComboBox1 are 1, … | |
I am a bigginer in python and even programming. I want to use python in my thesis for reading and writing large size data. I have a little sample of code which access which runs over the lines and reads each element on a line. [ICODE]def get_site_only(pat): newpat = "" … | |
ok lets say I have my code file in my web server and any one can call that functions in that file ( assuming they know the name of the functions ) but they can't see the actual implementation in other word they can use the implementation but they can't … | |
I did make my dll file out off those two files dll.h [code] #ifndef _DLL_H_ #define _DLL_H_ #if BUILDING_DLL # define DLLIMPORT __declspec (dllexport) #else /* Not BUILDING_DLL */ # define DLLIMPORT __declspec (dllimport) #endif /* Not BUILDING_DLL */ DLLIMPORT void welcome(); class DLLIMPORT DllClass { public: DllClass(); virtual ~DllClass(void); … | |
the question description: when I read a jpg file, there is no any problem. but when I try to read a mht file, the service method was run twice. why? Can anyone give me a satisfying explain? Thanks first in here. [CODE]public class ShowImageServlet extends HttpServlet { public void service(HttpServletRequest … | |
I attach a file what was send by Shaik Akthar. I work with it a new access file. He use Table, I use querie. But it not work.I modify some code like: MSFlexGrid.FormatString = "<DATENOW|<NAME|<DIAGNOSIS|<REMARKS" MSFlexGrid.FormatString = "<Student ID|<Student Name|<Jamal|<Roll No" Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & App.Path & "\DB2.MDB" … | |
Hi Everyone I have been given the task of designing a database for a volutery organsiation and i have been give the following information as basis to design the database.The following information below is example of a paper record •Volunteer details Volunteer ID Name Telephone Address Services provided by volunteer … | |
I have 2 examples for inheritance in Java The first works but the second not. I wonder why. Does the extended class must implement constructor with [B]super()[/B] [code] class Counter { int i = 0; public Counter() { i=1; } Counter increment() { i++; return this; } void print() { … | |
I have this code. But it's not working. Please give me some code in PHP, so that I can attach a file using an HTML form and send it to some email address. The file type (I want .zip only) and size (I want 2 MB max) needs to be … | |
hi, would anyone please point out why my data don't go into the database table? it is tested successfully connected to the database and the table maapa thanks [code] <?php mysql_connect("localhost", "root", "") or die(mysql_error()); echo "successfully logged in </br>"; mysql_select_db("maapa") or die(mysql_error()); echo "successfully connected to database maapa </br>"; … | |
Hey guys =] First I just wanted to say I am excited to have found this forum, it looks like the members are very helpful and friendly! Hopefully I'll be able to contribute what I can but I'm not very knowledgeable :P Anyway, I am to create a grading program(utilizing … | |
hi guyz.. by the way im using crystal report 8.5 in my project. i have already a report but the report i have is to diplay the viewer.. i want it to automatically print it, without preview the viewer.. what code shall i used? shall i use crytal report? or … | |
I am taking a web design and development class and we have been thrown into MySQL along with java without much knowledge beforehand. Was wondering if anyone could help me with understanding how to query the database and update entries, as I am confused on how to accomplish this. I … | |
This is supposed to draw a line through the JButtons when square9 is clicked. It doesn't work but there are no errors and I don't see what the problem is. Ezzaral gave me the code to draw the line earlier. Obviously, the winning squares aren't always diagonal, so I will … | |
I have this idea that I want to write an operating system. I've started to learn C++, but I have a few questions...One is, obviously, am I using the right programming language? I have looked at a few forums on this site, and it seems to be half of the … | |
Hi Guys, Have a question regarding the exception filter. I have a MiniDump class which looks like this: class MiniDumpHelper { public: MiniDumpHelper() { ... } LONG WINAPI exitWithDump(struct _EXCEPTION_POINTERS* exceptionInfo) { ... return EXCEPTION_CONTINUE_SEARCH; } } then i have a host.cpp class where i have a `main()` I try … | |
I'm currently writing a program that requires me to check several char values using a while statement and I keep getting the error "operator || cannot be applied to char, char". My code works fine with a single value but as soon as I add || or && I get … | |
I just started learning SDL so I can make games in C++, but for some reason my code fails to compile. The code: [CODE=c++] #include "SDL/SDL.h" #include <string> using std::string; int SCREEN_WIDTH = 640; const int SCREEN_HEIGHT = 480; const int SCREEN_BPP = 32; SDL_Surface *message = NULL; SDL_Surface *background … | |
This is more of a general question to see if I got the concept. I defined a class with private member data: one is an int variable and the other is a pointer. 1. Where is the int variable stored?... on the heap or on the stack? 2. Where is … | |
When I enter a decimal into a field by the time it gets written to a recordset it has been changed to zero if the value is less than one and it is rounded up if the value is greater than one. Any suggestions? | |
![]() | Hey guys, I'm working on my homework assignment and I did all the code, but I can't figure out how to display the "hours of labor required" and The number of gallons of paint required. Here is the assignment: A painting company has determined that for every 115 square feet … ![]() |
The End.