199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Rass Saee

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; …

Member Avatar for Dave Sinkula
0
124
Member Avatar for butterflyTee

# 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 ** …

Member Avatar for butterflyTee
0
132
Member Avatar for skalra63

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 …

Member Avatar for skalra63
0
89
Member Avatar for tgreer

[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 …

Member Avatar for tgreer
0
391
Member Avatar for softwarecaz

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

Member Avatar for Kegtapper
0
98
Member Avatar for cancer10

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

Member Avatar for cancer10
0
98
Member Avatar for chancellor

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 …

Member Avatar for chancellor
0
258
Member Avatar for tgreer

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 …

Member Avatar for BoggyBoy
0
430
Member Avatar for remedius

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 …

Member Avatar for remedius
0
116
Member Avatar for chelo77

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 …

Member Avatar for iamthwee
0
790
Member Avatar for BURNEE

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 */ /* */ …

Member Avatar for Salem
0
209
Member Avatar for Tester99

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?

Member Avatar for WolfPack
0
236
Member Avatar for SeekAnswers

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 …

Member Avatar for campkev
0
177
Member Avatar for Mr.coolguy

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 …

Member Avatar for Mr.coolguy
0
145
Member Avatar for neno14me

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!!!!!!!!!!!!!!

Member Avatar for iamthwee
0
538
Member Avatar for jhdobbins

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 …

Member Avatar for Salem
0
3K
Member Avatar for Excal1502

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 …

Member Avatar for Salem
0
157
Member Avatar for Roujin

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 …

Member Avatar for WolfPack
0
257
Member Avatar for Prahaai

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, …

Member Avatar for Comatose
0
225
Member Avatar for worms707

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, …

Member Avatar for Bench
0
1K
Member Avatar for AhmedHan

[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?

Member Avatar for tgreer
0
101
Member Avatar for Katrix36

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

Member Avatar for daycartes
0
218
Member Avatar for PoisonElves

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, …

Member Avatar for campkev
0
140
Member Avatar for softwarecaz

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 …

Member Avatar for George Jump
0
121
Member Avatar for prats_20

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" …

Member Avatar for prats_20
0
103
Member Avatar for arrogant

can any body help in implementing linked queues and also iterating it from the external main program????:?:

Member Avatar for SpS
0
115
Member Avatar for sqlchopper

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 …

Member Avatar for sqlchopper
0
258
Member Avatar for erez131165

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:

Member Avatar for iamthwee
0
115
Member Avatar for virgilpal

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

Member Avatar for virgilpal
0
149
Member Avatar for arekondaramesh

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:

Member Avatar for kiran kumar
0
225
Member Avatar for AhmedHan

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 …

Member Avatar for AhmedHan
0
136
Member Avatar for skeet123

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++) …

Member Avatar for Rashakil Fol
0
225
Member Avatar for jiruiz78

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 …

Member Avatar for jiruiz78
0
119
Member Avatar for turkish_girl

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; …

Member Avatar for dude543
0
155
Member Avatar for shimul_bari

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 …

Member Avatar for shimul_bari
0
169
Member Avatar for Spycat

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 …

Member Avatar for Spycat
0
154
Member Avatar for Phaelax

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.

Member Avatar for Phaelax
0
218
Member Avatar for lwinn213

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 …

Member Avatar for jwenting
0
1K
Member Avatar for chelo77

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 …

Member Avatar for dude543
0
131
Member Avatar for YoTaMiX

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 .

Member Avatar for YoTaMiX
0
231
Member Avatar for antrea

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 …

Member Avatar for Salem
0
170
Member Avatar for computergenie

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 …

Member Avatar for jwenting
0
144
Member Avatar for wired4art

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:

Member Avatar for wired4art
0
143
Member Avatar for Fenerbahce

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

Member Avatar for Fenerbahce
0
161
Member Avatar for JC_2000

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 …

Member Avatar for JC_2000
0
236
Member Avatar for bbb777b7

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"> …

Member Avatar for bbb777b7
0
286
Member Avatar for lsu420luv

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 …

Member Avatar for lsu420luv
0
268
Member Avatar for sharma_vivek82

[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]

Member Avatar for alc6379
0
165
Member Avatar for baron

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.

Member Avatar for alc6379
0
169
Member Avatar for dave1323

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 …

Member Avatar for alc6379
0
119

The End.