132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blacklocist

Hi all, I am having a wee bit trouble with with the SQL Command Builder. It does not build anything but frustration. From all the books I have read and everything this is how you go about updating changes from dataset or datatable without writing your own updating logic. Build …

Software Development asp asp.net dataset laptop
Member Avatar for Paladine
0
198
Member Avatar for sgriffiths

Hello I am trying to write data to a file. When writing "STEPHEN", only STEP is written, can anyone help? below is my code fp = fopen(filename, "rb+" ); fseek(fp, final_seek_pos, SEEK_SET ); fwrite(update_record, sizeof(update_record),1 ,fp ); fclose(fp);

Software Development c
Member Avatar for sgriffiths
0
163
Member Avatar for crawf

Hi all, I'm making a applet, about a users reaction time for when a coloured square changes colour... Ive seemed to get something off to a bit of a start, but its very basic at the moment, and i would just like to ask for a bit of assistance or …

Software Development first-post java
Member Avatar for crawf
0
121
Member Avatar for JohnJohnUSA

I ran the following program to retrieve entries from the windows registry on Windows XP: [code] import win32api, win32con aReg = win32api.RegConnectRegistry(None, win32con.HKEY_CURRENT_USER) aKey = win32api.RegOpenKeyEx(aReg, r"Software\Microsoft\Internet Explorer\PageSetup") for i in range(100): Name, [URL="http://www.tek-tips.com/viewthread.cfm?qid=1249756&page=1#"]Data[/URL], Type = win32api.RegEnumValue(aKey, i) print "Index=(", i,") Name=[", Name,"] Data=[",Data,"] Type=[",Type,"]" win32api.RegCloseKey(aKey) [/code] Program output: [quote] …

Software Development python windows-xp
Member Avatar for a1eio
0
169
Member Avatar for ostkaka

I have just started with a tutorial in c++ and i wonder if anyone can tell me what´s wrong with this code [code]#include <iostream> using namespace std; //so the program can see cout and end1 int main() { for (int x = 0; x < 10; x++) { cout<< x …

Software Development c++
Member Avatar for dilip.mathews
0
79
Member Avatar for FireNet

K, It's fairly easy to use a ostringstream object or a derived class to output text like a normal stream class like cout. Eg. [code] class console: public ostringstream { public: void Render() { std::string buff = ostringstream::str(); //Some code to put it to screen //Write it to a file …

Software Development c++ file-stream
Member Avatar for FireNet
0
539
Member Avatar for dilip.mathews

Hi, I am bit confused with the concept of pointer to a data member of a class. In the below program what actually will the pointer variable be storing? When i tried printing the value of address I got value 1, Whatt does it mean? [COLOR=blue]class A{ public: int d; …

Software Development c++
Member Avatar for dilip.mathews
0
170
Member Avatar for uxohus2b

Hi, Could someone tell me how I can delete files using a shell script or c++? The condition for deleting files: compare all files (say *.deb files) in folder A to those in folder B. If any file in B is also contained A, then delete the one in B. …

Software Development c c# c++ shell-scripting
Member Avatar for uxohus2b
0
105
Member Avatar for Ene Uran

Does Python have a module to display when a file has been last modified? Also, how do you get the file length?

Software Development file-system python
Member Avatar for bumsfeld
0
671
Member Avatar for msaenz

Hi everyone, I am doing a bioinformatics project and I have this code: [code]def three2one(prot): code = {"G" : "6", "A" : "7", "L" : "1", "I" : "4", "R" : "2", "K" : "3", "M" : "5", "C" : "8", "Y" : "9", "T" : "10", "P" : "11", …

Software Development python
Member Avatar for bumsfeld
0
81
Member Avatar for zidane28

Help!!!!! I'm sorry to ask for help again but...... This question even difficult than the previous one..... Please write C++ code for the following algorithm: 1) Store first memory location of program into base register 2) Set program counter equal to address of first memory location 3) Load instruction of …

Software Development algorithm c++
Member Avatar for WolfPack
0
148
Member Avatar for leb

I need help with my python project. I am supposed to draw something "cool" that includes loops, variables, if-statements, modules, etc. Some ideas given are to draw snails, constellations, a face, daffodils, etc. Anyone help please?

Software Development python
Member Avatar for Jayzilla
0
108
Member Avatar for zidane28

Halo....I'm new here...... Can somebody help me with this question? Its a assignment but I REALLY DON HAV ANY IDEA HOW TO DO IT!!!! So....Plz help...... Write C++ code for the following algorithm: 1) Determine job's reqeusted memory size 2) if job_size>size_of_large_partition then reject job print appropriate message Go to …

Software Development algorithm c++ queue
Member Avatar for zidane28
0
121
Member Avatar for b.janahi

hello, i'm trying to run a progrm written in perl this is the code i wrote perl aramorph.pl <infile> outfile where aramorph is a notpad file with my code saved in c:\perlscripts infile is the file that should be read from outfile ................................wirte the output to. both saved in c:\perlscripts …

Software Development file-system perl
Member Avatar for b.janahi
0
111
Member Avatar for TuoPohc

I'm not going to post the code on this one just incase it's a little confusing. But here's the jist: I have a couple of nested loops with multiple (var)++'s inside as counters. Each counter resets itself after reaching 25 and the total of the counters much equal 120 in …

Software Development c++ first-post
Member Avatar for TuoPohc
0
92
Member Avatar for robertlees

I have a 5 column flexgrid. I want the user to click a column and get the grid sorted by that column. Works fine for non-date collumns. For date columns, I firstly loop through all rows changing them from dd/mm/yy to yy/mm/dd. But the sort doesn't do anything.

Software Development visual-basic
Member Avatar for robertlees
0
672
Member Avatar for ljungmichel

ive been searching through at least 5 different forums on various sites (including this one) and i still cant understand why i'm getting the error message illegal start of expression at [code]public static overallNumGrade(int quiz1, int quiz2, int quiz3)[/code] here is the full program: [code]import java.util.scanner; public class Jungmichel3 { …

Software Development java
Member Avatar for ljungmichel
0
171
Member Avatar for timzukas

I am using VB6 to poke data into Word 2002. Even when I open Word minimized, it maximizes when the poke executes. I can can execute a word macro to minimize word again, but it maximizes on the next poke. I have tried turning word screen updating off before the …

Software Development visual-basic
Member Avatar for Comatose
0
243
Member Avatar for shalini_roy

how do i add items to a combobox from a listbox that is in another form??

Software Development visual-basic
Member Avatar for Comatose
0
102
Member Avatar for lalit2512

Hi, can anyone hel me how to connect to database in struts? I am using Oracle DB of personal pc. Tomcat 5.0 and struts 1.2.9 thanks lalit

Software Development java oracle
Member Avatar for jwenting
0
66
Member Avatar for praveenmanchu

plz suggest some good books for servlets and jsps and struts

Software Development java
Member Avatar for jwenting
0
108
Member Avatar for vbnewbie

I am attempting to populate a listbox with data from a table and don't have the methods .dataValueField or .dataTextField or .DataBind in my selection menu. Can anybody help me understand why? ex. lstServices.DataValueField = "item#"

Software Development vb.net
Member Avatar for williamrojas78
0
76
Member Avatar for ninnay

hello friends .i am troubled in to carry the tables in one computer to another computer. i want information about that: i did the project in VB with back end Oracle. i want to carry tables to another system. i dont know how to carry the tables to another system …

Software Development oracle visual-basic
Member Avatar for ninnay
0
104
Member Avatar for amethystglow

Given a set of data (two columns of data, flight path angles and lift coefficients) in a separate file, I need to write a program so the user can input a flight path angle and the program will return the appropriate lift coefficient given (if their angle matches one in …

Software Development c++
Member Avatar for Salem
0
145
Member Avatar for julesjacobs

What is the best way to create/call procedures? Which argument-passing-styles are available? Thanks in advance, Jules

Software Development assembly
Member Avatar for julesjacobs
0
115
Member Avatar for rags

I am working as a java programmer and have no experience writing shell scripts or prior experience in UNIX...I would appreciate if someone helps me write a Shell script that: a) Runs from one machine. b) ssh into all of the other machines. c) Collect the cpu% usage from each …

Software Development shell-scripting unix
Member Avatar for jim mcnamara
0
423
Member Avatar for dev.cplusplus

Explination: Ever notice how the URLs of search engines and other sites are cluttered with % symbols and other numbers? This is known as URI encoding, which is simply % signs followed by nonalphanumeric characters that have been converted to their hexadecimal values Hi to all, I have the following …

Software Development c
Member Avatar for dev.cplusplus
0
307
Member Avatar for Sannn

Hi, I'm not sure if there's another topic about this but couldnt find it with the searchoption.. I'm creating an app which uses a cardreader, it works perfectly.. but now i have to let the app run in the background, but the cardreader still has to work, when a card …

Software Development visual-basic
Member Avatar for Sannn
0
96
Member Avatar for kakeen

Yea, just recently I enrolled into a basic computer programming class. We use Turbo Visual C++ and umm so far it went okay until we talked about do-for-while loops... Can anyone help in making a program in loops >_< I mean I tried using the goto statements but my professor …

Software Development c++ first-post visual-basic
Member Avatar for WaltP
0
139
Member Avatar for huffstat

I am starting a new project and a couple of tips would be helpful. I wish to read all the files in the Windows Favorites Folder or Directory and extract the link information. I know how to read the files once I have the name of the file. What I …

Software Development c
Member Avatar for huffstat
0
115
Member Avatar for bigdill

Could anyone tell me the function this program is using? [code]#include <iostream.h> #include <stdlib.h> void My_Name_Is() int main() { My_Name_Is() //Calls function that prints user's name }[/code] Thanks!

Software Development c
Member Avatar for jim mcnamara
0
69
Member Avatar for julesjacobs

Hi, I'm trying to construct a compiler for a really simple stack based language to learn how my computer really works, and to learn how to create a compiler. So far, I have never done anything in assembly (only higher level languages). Could you give me advice about the following …

Software Development assembly
Member Avatar for huffstat
0
329
Member Avatar for shalini_roy
Member Avatar for shalini_roy
0
113
Member Avatar for sgriffiths

Hello I am trying to write some data to a certain position in a file, but cannot get it to work I want to write "XX" to position 6 of a specified file, but the data is just being written to the end of file. see below [code]#include<stdlib.h> main() { …

Software Development c file-stream file-system
Member Avatar for sgriffiths
0
2K
Member Avatar for Ricky_v.s_C++

How can I separate an integer into digits using for loop? eg. before: 123 after: 1 2 3 anyone can help me with that?

Software Development c
Member Avatar for Ricky_v.s_C++
0
401
Member Avatar for thomas_joyee

hi all, i create an application to sending email's. this is the code i used. Dim mailmsg As MailMessage SmtpMail.SmtpServer = "127.0.0.1" mailmsg = New MailMessage mailmsg.To = txtFrom.Text mailmsg.From = txtTo.Text mailmsg.Subject = "demo" mailmsg.Body = "Its a simple test" mailmsg.BodyFormat = MailFormat.Text SmtpMail.Send(mailmsg) But i got an error …

Software Development email vb.net
Member Avatar for Embeza
0
257
Member Avatar for mikki2

hi i have a problem but i'm not sure if this post goes here or not. anyway here goes. i just started a course in chinese and the name is"huibian yuyan sheji" (for those that understand chinese) which translates to "compilation language and design". now i have typed the english …

Software Development assembly first-post google
Member Avatar for julesjacobs
0
91
Member Avatar for kathryninvt

hi.i am not sure if i posted this in the right area.if i didn't please forgive me.i am learning how to do this.i am not sure how to explain it,so i will try to explain and tell you what i see happening.please bear with me as i don't really understand …

Software Development java
Member Avatar for Phaelax
0
169
Member Avatar for Steinway

Like the title says, my VB6 hangman program freezes when I do a test run. I'm not a big expert in Visual Basic (in fact, I'm only a clueless highschool student..) so maybe you can help me. I'm not quite sure what causes freezing to occur, but I've pasted the …

Software Development visual-basic
Member Avatar for agrothe
0
273
Member Avatar for mrjaiswal

Hi All, I am new member of this forum. I am trying to implement the simple c logic for the following problem : I want to come out of a [B]while[/B] loop only when I press the key 'e' But [B]condition is that, it should not wait for me to …

Software Development c
Member Avatar for spaceboyz87
0
193
Member Avatar for TheVerve51

I'm having trouble. If I try to open up a new window by clicking on a link, my computer just freezes for a couple of minutes and then doesn't even open the window. I'm basically computer-illiterate, so I have no idea what's wrong. Is it something with javascript? i thought …

Software Development java javascript
Member Avatar for TheVerve51
0
84
Member Avatar for MrConfused

I have a program that produces various reports. I need a way to send the reports to MSWorks/MSExcel. At the moment the reports are sent to a locked scrollable text box on-screen. This allows you to copy and paste the information to most word processor programs o.k. Unfortunately as I'm …

Software Development visual-basic
Member Avatar for friedolin
0
112
Member Avatar for slacke

I start to write a code for a shell with some basic functions: open files, save files, create files... I try to use the ifstream for opening files. I found the constructor - ifstream openfile("file.txt", ios::in); I try to use this constructor in the way (function openfile()) that I can …

Software Development c++ ios
Member Avatar for Dave Sinkula
0
101
Member Avatar for khwo

Hi All, i facing problem here, the following is my coding for move previouse recored. [COLOR=#008000]'Open connection [/COLOR]ConnCust = [COLOR=#0000ff]New[/COLOR] ADODB.Connection Cust_String = "Provider=Microsoft.JET.OLEDB.4.0;data source=\\AAA\ABC.mdb" ConnCust.Open(Cust_String) [COLOR=#008000]'Open recordset from Customer List [/COLOR]RstCust = [COLOR=#0000ff]New[/COLOR] ADODB.Recordset Last_SQL = "SELECT * FROM CustomerList WHERE CustomerID <= " & lblCustID.Text & " ORDER …

Software Development open-source vb.net
Member Avatar for williamrojas78
0
305
Member Avatar for Gowrishankar

Hi,I am having problem in displaying the returned value from one function.I write one function for creating db connection,in that function I returned the string value of username.I want to display the string username value in different label through a button click event.What is the C# ASP.NET syntax ?Can any …

Software Development asp asp.net
Member Avatar for campkev
0
316
Member Avatar for dannyfang

HI, I'm new to the licensing mechanism, and I would like to gain an understanding on the Java FlexLM API usage. I was wondering if anyone could point me to any examples or share any of their references as to how the FlexLM Java APIs are being used to segregate …

Software Development api java
Member Avatar for pould
0
10K
Member Avatar for squirrel

Hi, I have a program which is hard coded, I need to enter a value(n2 in the below code) in the program, and the program processes the file according to the value n2. how I compile now is as follows: cc -o test testprog.c ./test [filename] What I need to …

Software Development c open-source
Member Avatar for squirrel
0
259
Member Avatar for NewVBguy

Hi Everyone, This is probably simple but I don't know how. Can someone show me a code the test if the child form is currently active or currently the one open in front of my screen. Thanks in advance. newvbguy

Software Development visual-basic
Member Avatar for NewVBguy
0
100
Member Avatar for thlegendkiller

good day, I am an incoming 2nd year IT student and am encountering a problem in creating a "turtle graphics"(from the famous Logo Language) program using C. This case is found in the book of deitel and deithel, "C how to program" in the chapter of Arrays. it has almost …

Software Development c++
Member Avatar for Dave Sinkula
0
1K
Member Avatar for asmith3006

Hello new world. I'm new to C# and very new to GDI and drawing and would really appreciate some help. I'm trying to draw some boxes (rectangles). I wont put code up as I don't think it's nessesary... but you never know. As a test I've made a form and …

Software Development c# first-post
Member Avatar for asmith3006
0
129

The End.