132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for philiop

Hi, I'm stuck trying to find a solution to this problem. Its a question taken from an exam for an interview. I have this object model: [B]Department[/B]: DepartmentId, Name [B]TeacherTeacherId[/B], FirstName, LastName, DateOfBirth, AnnualSalary, DepartmentId [B]CourseCourseId[/B], Name, TeacherId, DepartmentId [B]Student[/B]: StudentId, FirstName, LastName, DateOfBirth, AverageScore, DepartmentId [B]Department [/B]has a 1 …

Software Development
Member Avatar for philiop
0
143
Member Avatar for apanimesh061

I cannot find System.Web.SessionState and System.Web.UI in my Computer, though System.Web is there ! I can't even find any downloads on the net. Please help ... ! thanks

Software Development
Member Avatar for Momerath
0
111
Member Avatar for Labdabeta

I need to make a function: [CODE]void GenerateNormal(float x[3], float y[3], float z[3], float &ox, float &oy, float &oz) { //Calculate coordinates for a glNormal and return them ox,oy and oz }[/CODE] I have a sinking feeling that the math will be quite difficult. Can anybody help me?

Software Development c++
Member Avatar for Labdabeta
0
126
Member Avatar for moone009

I believe this should be a very simple task for anyone good at batch scripting. Basically I need a batch script that will run through a directory and produce a text file for me. Directory: D:\SQLBackup If any folder in this directory has more than 145 records I need to …

Software Development shell-scripting
Member Avatar for moone009
0
86
Member Avatar for MaYouSHka

hi all, i have been working for two months on a project and i have come up with an algorithm that is a mix of R. Mitkov's algorithm on anaphora resolution (robust, knowledge-poor algorithm) and several filters that are applied first to the xml file (a POS tagged text) to …

Software Development algorithm python xml
Member Avatar for TrustyTony
0
339
Member Avatar for vuyiswamb

Good Day All I have a Generic function that in my Static Class. i have this Class in Silverlight [CODE] public static BitmapSource LoadImage(Byte[] imageBytes) { BitmapImage bmpImage = new BitmapImage(); MemoryStream mystream = new MemoryStream(imageBytes); bmpImage.SetSource(mystream); return bmpImage; }[/CODE] Now this looked fine for me until i had to …

Software Development c#
Member Avatar for vuyiswamb
0
2K
Member Avatar for localp

I have a List [CODE]List<Food> item[/CODE] , which holds the following. 'Food foodID', 'Food foodName', 'Fruit fruit' Fruit is an Object. It is being saved into the 'List<Food> item' . Now i need to create an Object of 'Fruit' , and save all the 'Fruit' elements in the 'List<Food> item' …

Software Development java
Member Avatar for localp
0
167
Member Avatar for sourabhacooli

Hello All My question is How can i create insert,update,delete query by using class file and store procedure. This query is use for 3 tier. Please Give this answer as soon as possible.

Software Development vb.net
Member Avatar for debasisdas
0
84
Member Avatar for philiop

Hi, I'm doing a short test for a job interview that I have. The code is C# and I am very new to this (2 days :S). One of the questions is. Write method to get all IPeople - Write a method in the SchoolManager to get all IPeople (Teachers …

Software Development
Member Avatar for philiop
0
114
Member Avatar for endisbegun

so im very new to programming, its a miracle and a half i managed to get java reinstalled after a year and a half of not using it im taking a cryptography class, the teacher wants to show us the code behind some algorithms, like des and 3des, and in …

Software Development java
Member Avatar for NormR1
0
879
Member Avatar for theguitarist

[CODE] cout<<(char)290<<endl; [/CODE] I get " as the answer. [CODE] cout<<(char)20000<<endl; [/CODE] Here I don't get anything. When char can take integer values from -128 to 127 and both 290 and 20000 are welll out of this range, then why is there an output in the first case?

Software Development c++
Member Avatar for pseudorandom21
0
130
Member Avatar for bsunkel

HI, All I want to do is put a straight line under my 3 labels which I have loaded into a JFrame. After my JFrame has loaded I use the method `repaint()` which is supposed to call: public void paintComponent(Graphics comp) { Graphics2D comp2D = (Graphics2D)comp; comp2D.drawLine(0,60,100,60); } Which does …

Software Development java
Member Avatar for Nick Evan
0
377
Member Avatar for lochnessmonster

i dont see the point or why you would ever want to upcast an object for example class Shape { ..... }; class rectangle : public shape { .... }; int main() { rectangle object1; Shape *shapePtr = &object1; return 0; }

Software Development c++
Member Avatar for thekashyap
0
189
Member Avatar for navp

Heya guys, I am trying to make a desktop application for my assignment. I have to design an application that will have a JTable, JTextField and Buttons. I am done the GUI part. The input that user enters into the table should get stored into the database using an "insert" …

Software Development database-design gui java
Member Avatar for Buffalo101
0
1K
Member Avatar for rminator

Hello, I have a problem not far from the one quoted above, namely retrieving data from a text file containing the log file, and then convert each value and come out the graphic representation. And so far my code is not working as it should, and I just can not …

Software Development file-system
Member Avatar for abelLazm
0
460
Member Avatar for himvj

Hi, I want to know while creating setup how to put serial key form and validate it during the setup installation in c# vs2005. Thanks in Advance.

Software Development c#
Member Avatar for abelLazm
0
371
Member Avatar for Infame

Hi! When I made a winform for C# and C++, I got my window up, all the design and features... However, when I maximize it, all of it gets stuck in a corner to the left... Is there a way to resize the objects as the main window increases in …

Software Development
Member Avatar for abelLazm
0
91
Member Avatar for leo88

hi, I wants to do register function in window form application microsoft visual studio 2008 and insert the data into microsoft Access 2007 table by using C#. Below is my codes: [CODE] SQLStr = "INSERT INTO RegisterEmployee(EmployeeName,Password,Gender,ContactNumber)" + "VALUES ('" + SQLStrCmd.ReplaceStr(nameReg.Text) + "', '" + SQLStrCmd.ReplaceStr(passReg.Text) + "', '" …

Member Avatar for leo88
0
192
Member Avatar for Stefan_Lam88

Hi guys, I have a problem which make me headache. Suppose I wish to download excel file from what I have browse and some logic processing. But it returns me aspx.page content, in short a html page. [CODE] String FileName = excelApp.ActiveWorkbook+".xls"; String FilePath = input.PostedFile.FileName; System.Web.HttpResponse response = System.Web.HttpContext.Current.Response; …

Software Development
Member Avatar for Stefan_Lam88
0
193
Member Avatar for computerbear

I feel like I am having every possible problem this term, (good learning experience, right). Hopefully you can help me. I started this weeks program, had some glitches and restarted. I deleted the first project, began again and got an error when I saved saying that file already existed and …

Software Development vb.net
Member Avatar for computerbear
0
91
Member Avatar for apanimesh061

[CODE] using System; using System.Reflection; using MathWorks.MATLAB.NET.Arrays; using MathWorks.MATLAB.NET.Utility; [assembly: System.Reflection.AssemblyVersion("0.0.*")] #if SHARED [assembly: System.Reflection.AssemblyKeyFile(@"")] #endif namespace dotnet { /// <summary> /// The dotnetclass class provides a CLS compliant interface to the M-functions /// contained in the files: /// <newpara></newpara> /// C:\Users\User\Documents\MATLAB\waveCS\wavread.m /// <newpara></newpara> /// deployprint.m /// <newpara></newpara> /// printdlg.m …

Member Avatar for abelLazm
0
698
Member Avatar for ztdep

Dear friends: I am working on a C++ computational geometry code, and i want to make sure whether two points are the same by comparing their x y and z coordinates. The coordinates of the points are in the double formate. since the pc can not represents the double number …

Software Development c++
Member Avatar for ztdep
0
1K
Member Avatar for gsingh2011

The assembly code below is equivalent to: [CODE]a=1; b=1; if(a=b){ x=2+2 }[/CODE] It is generated code so don't worry about inefficiency. My problem is when I use the sete command I get the error "error: invalid combination of opcode and operands". Here is the code: [CODE][list -] %include 'win32n.inc' [list …

Software Development assembly
Member Avatar for gsingh2011
0
340
Member Avatar for Bheeman89

Hello Friends. Im a final year student for COmputer Security / Forensic. Im planning to do a project which requires me to do encryption and decryption. My possible choice of language would be VB.Net. I was wondering if wad is running in my mind can be executed. Well, I would …

Software Development encryption vb.net
Member Avatar for Bheeman89
0
305
Member Avatar for thecoolman5

hey, I was recently programming my own variable equation solver in C++ and out of nowhere, my computer crashed and all my code was erased. My computer booted up just fine but none of my code was there. i dont have the guts to start all over again. I dont …

Software Development c++
Member Avatar for thecoolman5
0
181
Member Avatar for Psyho

Hi I am in a bit of trouble. what is nedded: Reading a text file character-by-character, using the "get(char)" function. Count the words in the file which contains "w" or "W". The possible delimiters are: '\t','n',' '(space). Do not use arrays. The codes: [COLOR="Red"]MAIN.CPP[/COLOR] [code] #include <iostream> #include "enor.h" using …

Software Development c++
Member Avatar for Labdabeta
0
196
Member Avatar for warrior4321

Hello, I am very new to C++. I am learning the language by myself. I tried to make a program where the user inputs how old they are (in terms of years) and the program will output how old the user is, in terms of months. The problem I am …

Software Development c++
Member Avatar for warrior4321
0
131
Member Avatar for vextorspace

I am trying to deploy an application that uses JOGL for 3D rendering, so it is platform dependant. If a user with 64 bit windows tries to run it with a 32 bit Java it hangs or crashes. The java installations on windows 7 seem to be varied and I …

Software Development java
Member Avatar for vextorspace
0
141
Member Avatar for shyla

I need to verify with some one if my code is right i have to submit it in 3 hours from now and any help will be welcome The instructions are: Using an appropriate definition of listnode, design a simple linked list class with only two member function and a …

Software Development c++ linked-list
Member Avatar for fatima mustaf
0
713
Member Avatar for Mr. K

I created my own Pong, but the ball is not moving. I don`t have any error in my error list. In this game I used time.h to move the ball. Why the ball is not moving? What is wrong with my code? Thanks in adbvance [CODE]#include <allegro.h> #include <time.h> int …

Software Development c++
Member Avatar for raptr_dflo
0
107
Member Avatar for dotancohen

I am replacing some very small bash scripts with Mono (C#). I have noticed some differing practices in C# tutorials online regarding convention. I'd like to know the reasoning behind them. If I should break this question up into multiple questions, let me know. 1) Use a namespace? I see …

Software Development c#
Member Avatar for dotancohen
0
146
Member Avatar for maxicube

Hey there, was wondering if anyone else has this issue. I've checked to see if it was my drivers, but no. the GL window wont move, it won't accept any inputs at all. but it shows everything else. I've tried everything in my memory bank.. and still nothing. this is …

Software Development c++
Member Avatar for maxicube
0
148
Member Avatar for tirambad

Can JMF( java Media Framework) be used to capture video from webcam for a WEB BASED APPLICATION...... it is not a desktop application..... does Operating System allows to access webcam for a web based application

Software Development java operating-system webcam
Member Avatar for harinath_2007
0
89
Member Avatar for vedro-compota

Hi guys!) There's a peace of code and I can't understand - what's wrong in it - [CODE]#include <unistd.h> #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> int main (void) { int status; pid_t pid; if (!fork ( )) return 1; pid = wait (&status); if (pid == -1) perror ("wait"); printf …

Software Development c
Member Avatar for vedro-compota
0
520
Member Avatar for zenv0id

Hello, I'm a C++ newbie with the following problem (I've used the search function but haven't come up with what I'm looking for. I'm not asking anyone to write this project for me, but a lot of good pointing/ideas is going to help me a lot): I currently have a …

Software Development c++
Member Avatar for WaltP
0
118
Member Avatar for txwooley

In the book "How to Think Like A Computer Scientist" on the website openbookproject.net the tutorial leads you to draw a house with a pre-written script. It then instructs you to: # Wrap the house code in a function named draw_house(). # Run the script now. Do you see a …

Software Development api python
Member Avatar for shasta90
0
591
Member Avatar for gianks

Hi All, i'm here due to an unexplainable winsock problem. I've wrote a simple TcpSocket class to wrap in an object oriented way, the winsock functions. For testing purposes i've written two applications too, a client and a server, wich just send/receive 10 bytes in a giant loop. Now the …

Software Development c++ client-server
Member Avatar for gianks
0
623
Member Avatar for ilovec++

Can someone please tell me about an alternative command that I can use instead of the [B]system()[/B] function? I have another question - If [B]system("pause")[/B] only pauses the program before it exits, can I use [B]getch()[/B] funtion from the [I]conio.h[/I] header file for that purpose.(I know i can use the …

Software Development c++
Member Avatar for katmai539
0
2K
Member Avatar for Dcurvez

hi guys i am wondering if anyone can direct me to a beginners tutorial on creating crystal reports that are specifically based off the sql server compact 3.5 database in visual studio 2008? most of the examples i can find are all related to Sql Server Full..or Access..ect. i have …

Software Development sql vb.net visual-studio
Member Avatar for Dcurvez
0
275
Member Avatar for tejaminnu

Hi, I have been trying to execute this program and i am getting an error. Kindly help me. #!usr/bin/perl -w # The filename of the file which contains the protein sequence $proteinfilename = '/users/sukeerthiteja/desktop/perl/NM_021964fragment.pep'; # First open the file and associate a filehandle with it. for readability purpose lets use …

Software Development file-system perl
Member Avatar for d5e5
0
241
Member Avatar for Nurder

Hi everyone ... I've a problem with fill color. I just want to fill a part of it. For ex.: if we have a face with eyes and red mouth, i wanna to color each part of the face when the user click down the mouse. Thanks for your advice....

Software Development c c# c++
Member Avatar for Nurder
0
361
Member Avatar for ichigo_cool

Hey all, I want to add a vector to my inventory class so that it can hold whichever item data type is passed in. I'm having trouble with setting the size of the vector so that I can put items in it. Here's my code.. Whenever I run it I …

Software Development c++
Member Avatar for ichigo_cool
0
197
Member Avatar for Jollyyy100

Hi, im using dreamweaver and i have a table in which i have an image. When i add another table under the table existing it comes right at the bottom. What should i do to that table so i can move it and place it anywhere around the page. Is …

Software Development ide image vb.net
Member Avatar for anuj6928
0
115
Member Avatar for zezinho

Hey, Plz, I need some help with this code, In another workbook it worked. Specific on this one it's not working. The error is occuring on the red line, right after it's added a new serie on the graph. Sub Graph() Dim y As Byte Dim x As Byte Dim …

Software Development visual-basic
Member Avatar for zezinho
0
332
Member Avatar for mungil

i want to call a void from other form. there is no error when i called void from same form. when i called from another form it return "index was out of range" error [CODE] namespace browser { public partial class mainF : Form { int bo; public List<string> home …

Software Development
Member Avatar for jfarrugia
0
164
Member Avatar for frogboy77

I wrote this test code trying to work out a problem. The code gives the correct answer for the example (zero) but to understand the problem i need to understand what the code is doing on a sort of step by step basis. In other words how to do it …

Software Development c++
Member Avatar for frogboy77
0
116
Member Avatar for Zurompeta

Hi, Basically, I'm trying to parse a string into a char for submitting into an array, this is what I have so far: [CODE]String strVariable; Char charVariable; strVariable = "Some String"; charVariable = String.ParseString(strVariable);[/CODE] The bottom lines yields an error...is this possible to do?

Software Development java
Member Avatar for siviwe
0
307
Member Avatar for Thijk

For my code I need to change a arrayList to a string array. I did it like this [CODE] ArrayList tempList = new ArrayList(); //some code to put strings into the list stringArray = (string[])tempList.ToArray(typeof(string)); [/CODE] It's the last line I don't get. In the ToArray method you set the …

Software Development
Member Avatar for antechindia
0
158
Member Avatar for gregarion

Hey guys , i have a small problem regarding calculation in c++. Here is an example below [CODE]int main() { int f = -32; int d = 2; int re = d - f; int re2 = 2 - (-32); int re3 = 2 - - 32 } [/CODE] The …

Software Development c++
Member Avatar for tkud
0
121
Member Avatar for raj03

I am unable to solve the errors found in this program. Can someone be kind to help me solve it? Thanking in advance. :) [CODE]#include "stdafx.h" #include <iostream> using namespace::std; class detail { protected: char address[50]; int age; char name[25]; public: int a; int b; int c; void getdetail(void) { …

Software Development c c# c++ engineering
Member Avatar for tkud
0
192

The End.