199,114 Archived Topics
Remove Filter ![]() | |
Does anybody know how member of function can be a pointer to a function. The following example crashes when I call the member that is pointing to a function. [code]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <windows.h> typedef long fooPtr(char *); typedef struct { fooPtr *func; long cnt; } MyStruct; … | |
# class.py # tpm # A program to calculate the volume and surface area of a sphere from its # radius given as input. [CODE]from math import * class Sphere: def _init_(self, radius): self.radius = radius def getRadius(self): return self.radius def surfaceArea(self): self.area = 4.0 * pi * self.radius ** … | |
i have the following code, however, the table that is created always starts at the begining of the document. so none of the text written beforehand can be seen. i also dont know how to write things after the table. [CODE]Private Sub wrd2() Dim c As Long Dim wrdApp As … | |
[B]Brief Summary[/B] I've written a Windows Service. It uses Process.Start() to launch a Console Application. The console application performs a File.Copy(), to copy a file from the local file system to a network share. [COLOR=Red]Problem: [/COLOR] The file copy fails. I get an exception that tells me "part of the … | |
hello on some examples, if the user presses F1, the help file comes, how do i create a .help file, is there a components for that | |
ok here it goes: I ahve 2 textbox within a form on my HTML page I want to display the text "SHOUVIK" (without quotes) on the second textbox as soon as I click on the first textbox Is this possible? Kindy help | |
I need to be able to preview a report in Landscape format. I've set all the margins etc to be landscape format. However, it still previews as portrait now that I've removed some of the fields. I've not yet tried to print the report. When I leave the other fields … | |
Has ASP.NET 2.0 introduced a simplified data control for displaying parent/child data? Imagine a HelpDesk application, where you want to display all the "open tickets". I can see how you'd use a GridView for that. However, each row in the resulting table should have the ability to, when clicked/selected show … | |
Hello! I have a dll library (AXACAC.dll) whuch was made in VS project. This dll exports one function: __declspec(dllexport) void CreateRasterFile (const char *pszFormat, const char *pszDstFilename) {} And I try to import this function in the DDK sample - unidrv interface plug-in: __declspec(dllimport) void CreateRasterFile (const char *, const … | |
I am doing a small assignement that has one class with two private members.....numerator and denominator. The question asks to make three overloaded constructors, some have arguements while one does not example .....fraction() now the deconstructor is basically has to print out the two private members now this works great … ![]() | |
I am having a problem implementing the pivot_r portion of the program. I have all of the rest as we have been working on this program for a while but the darn pivot_r portion is killing me. Please any help would be GREAT! [code]/*-------------------------------------------------------------*/ /* Program chapter5_8 */ /* */ … | |
Hello, Could someone help me, I don't know how to build project with Visual C++ toolkit 2003, that project has made with [I]Visual Studio .NET 2003 or is this generally possible.....[/I] Any suggestions? | |
Good afternoon all, I'm currently working on an education website for my company, and recently, my boss wants to add this new feature of adding images to the web server. I haven't never done this before, nor I managed to find any useful information from the web, does anyone know … | |
Hi all, i am new to java field, can anyone help me out to create a data base for security or Guard to enter the details of the employee and his phone number and also to replace incase his idcard is broken?? help me out using Java/JSP thanks in advance … | |
i have got this OOP project of implementing minesweeper using classes.Can anybody just hint me what classes i have to use and what would be their relationship like association,containment,weak containment and strong like that.anybody plz.If i failed to do so i would be getting an f!!!!!plz!!!!!!!!!!!!!! ![]() | |
Alright... first off I hate fgets with a passion :) Anyway, I am wanting to read a file into a 2 dimensional array and then randomly select one of those lines to output... What am I missing here? [CODE]void displayQuestion() { /* fp is a FILE pointer. This pointer will … | |
I am unsure why I am reciveing a segmentation fault: INPUT: ./a.out Enter the output file name (maximum of 15 characters): output.doc Enter the number of names to sort in lexicographical order: 3 Enter a name: John Smith Enter a name: Mel Gibson Enter a name: Mark Anthony Segmentation fault … | |
HI all could anyone please tell me where i can find some public domain source codes for Visual C++ 1.52, I am trying to teach myself programming as i dont have the patience for classrooms and i thought that some sample codes would give me some practice. I have already … | |
1:) Please, how can i make Visual Basic 6 open a HTML file (with Iexplore, let's say), or one MP3 (with Media Player instead of Winamp, let's say), when i click a button? It is possible? I mean, for the HTML, i need the default program to open the file, … | |
I have the following code This is the Point header file [code] #ifndef POINT_H #define POINT_H #include<string> using namespace std; //Class Point represents points in the Cartesian coordinate class Point{ protected: double xCoord, yCoord; //coordinates of the point string name; //name of the point public: Point(); //default constructor Point(double, double, … | |
[CODE]<html> <head> <meta http-equiv="Content-Type"content="text/html; charset=windows-1254"> <title>JavaScript</title> </head> <body bgcolor="#000000" text="#ffffff" vlink="#99FF33" link="#FF99FF"> <script language="javascript"> function ShowValue() { document.TextBox.value = "You clicked the button."; //Error on this line } </script> <input type="text" name="TextBox" width="128"><br> <input type="button" name="Show" value="Show" onClick="ShowValue();"> </body> </html>[/CODE] Text control doesn't show the text. Why doesn't it? | |
Hey all, Would anyone be able to help me out with some code to count how many characters there are in a string e.g. A label disaplys the number of characters that the user has typed into a memo. Katrix36 | |
Hi I have 3 tables that I need to display in a report TableA idxA valueA 1, a 2, b 3, c TableB idxB bidxA valueB 1, 1, aa 2, 1, bb 3, 1, cc 4, 2, aa 5, 2, cc TableC idxC bidcA valueC 1, 1, dd 2, 1, … | |
hello i have been told that there is a different method of writing this, such as using if, then , else, i have tried it and am getting all sort, do i need to use, if else then, or if else, condition to get the same result, i don't want … | |
hi i have to retrieve a webpage from database given i have the id which is passed to that page as q querystring. here is my code ave 2 pages the one where u clik on hyperlink <<A href="mailto:%@LANGUAGE="VBSCRIPT">%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% dim objConn, objRS Set objConn=Server.CreateObject("ADODB.Connection") objConn.open="Provider=Microsoft.Jet.OLEDB.4.0; Data Source= D:\Datastores\greeting.mdb" … | |
can any body help in implementing linked queues and also iterating it from the external main program????:?: | |
I tried several things. i get invalid char or no object. can one change fore color or setup a mask. the text box contains numbers and if the number is negitive i need it to show in red, black if not. var oRed = '#ff0000' var oBlack = '#000000' if … | |
I need this script: [URL="http://www.jscode.com/js_auto_bookmark.shtml"]http://www.jscode.com/js_auto_bookmark.shtml[/URL] i just dont know how to make the link as a picture, insted of "bookmark us!" text/ any help with this ?:eek: ![]() | |
This problem is making me alot of problem : A C program is given. Determine, for each global variable, the number of occurences and the number of lines where it is used by refference. I accept any help. Thanks | |
hai iam newbie in java programming. i declared like this: StringBuffer s1=new String Buffer("hello"); StringBuffer s2=s1; i want to know exactly how many objects created: 2 or 3 am not certain suppose i want to show the number of objets in System.out.println().... how i need to proceed.... regards ramesh :rolleyes: | |
I have an HTML which posts a form to a PHP page. The PHP page encodes the password from the form using md5() function. And then I tried to save this MD5 code into a file using fwrite() function. Here the error occures. fwrite() only accepts string parameter, but the … | |
I have an assignment dealing with algorithms and Big O notation. I am a little confusded about this notation stuff. Here are a few of the questions on the assignment: What is the O-notation for the following code? [code]cin >> N; for (int count = 1; count <= N; count++) … | |
Hello there, I need my page to randomly select a CSS document. I don't want the user to select it, but instead to do it when the page loads. This is the script I have so far: [INLINECODE]<script language="javascript" type="text/javascript"> var ranNum= Math.floor(Math.random()*3+1); document.write("<link rel='stylesheet' href='hd"+ranNum+".css' type='text/css'>"); </script>[/INLINECODE] This function … | |
my delete operation doesn't work.the element which is added last is being deleted.ı want to delete the one ı want; not the last entered.how can ı do that?can you help me?thank you very much for your consideration... [code]#include <stdio.h> #include <stdlib.h> typedef struct student { char name [25]; int age; … | |
Hello everybody, I am having a great problem in my class project. I have to play multiple files in different output ports of the sound card same time. Explanation: Suppose i hav 1 speaker and 1 headphone connected to my pc. Now i hav to play 2 files in such … | |
Ok, as usual, Internet Explorer is playing games with me in rendering code. I need a fresh set of eyes to look things over, cuz apparently I am missing it. Anyway, in the center of the page there should be some black text that says "Heading" a few lines of … | |
Is there a way to set the number of spaces shown for a tab? (tab as in a tab character) I've made an editor using a StyledEditorKit and StyledDocument, but tabs give more spaces than I would prefer. | |
Hi All. I have been given a task where I have been asked to implement a Java RMI version of an SFTP (Simple File Transfer Protocol) Client / Server. It must use the following commands: list - list files in current directory cd - change directory get filename - copy … | |
I have problems with this small class program, have two classes...registration and course. I am writing a small function for registration adds the credits. I made an array called ptr of type course in the registration class. Now when i try to access credit a private member in the class … | |
Hello to you all , Major problem in C , Files included Summary of problem : Program will not copy the feild "name" from struct "univ->std.name" properly. the rest of data is presented fairly. do not touch function "output_university" . Thank you , yotam , Israel . | |
Need help. What`s wrong? Read words from textfile (only [a-zA_Z]. Puts them to the binary search tree. If word already exists in tree has to add to counter in struct. [code]typedef struct puu_alkio { char sana[100]; int lukumaara; struct puu_alkio *vasen, *oikea; }puu_alkio, *puu_osoitin; void add_to_tree(struct puu_alkio *solmu, struct puu_alkio … | |
Hi people, I am new to the world of Java and i am stuck on something. let me explain. let say you had a program you opened up. Usually if you click on an Help menu then click "about" it dispays information about the program like version, copyright etc. Do … | |
Hi I am trying to change the way the message board looks. I would like to do away with the how many views and how many replies. Can someone help a new comer to code?? It is a language more complicated than traditional Japanese for an English speaker.:eek: | |
How can i move to next, prev,last,first records in ASP.NET? it was like DB.MoveNext in ASP but i dont know how in ASP.NET ! Thanks | |
Hi, I have a composite in a Microsoft Access Database that is not populating, when I add data to the two tables connected to it you would expect the Composite Key to populate as well wouldn't you? But this is not happening, can anyone expalain why and how this problem … | |
I need to make a login thing. I got some codes from another person, but it doesn't work for me. I double and tripled check to see if my apache server and mysql were set up correctly and they were. help? sign-in: [html]<html> <head> <title>无标题文档</title> </head> <body> <form action="checklogin.php" method="post"> … | |
I am trying to read in information from an external file using ifstream. I use fin >> to input the data usually. Now I have to input a full name. Can anyone tell me what I use to do this? do I use a string type variable and then just … | |
[code]import posix import string uid = `posix.getuid()` passwd = open('/etc/passwd') for line in passwd.readlines(): rec = string.splitfields(line, ':') if rec[2] == uid: print 'hello', rec[0], print 'mind if we call you bruce?' break else: print "I can't find you in /etc/passwd" :) [/code] | |
I can't find out how to complete • MIN_GROUP_SIZE x1 x2 .. xr at the expected time comp' Please help me i'm stack at this point for a week.. For the other function i had created a smart array with pointers. | |
Hello I am new to csharp and am having some trouble with a projec that I am working on. I have a database(access) and am using a window form for a login page. The login is supposed to check a couple conditions and then return an int from the database … |
The End.