199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bernadlosini

im given an very tuff assignment like this a. Introduction we have read all input from q sql file.the name of sql file should be read by a command line.please any body help me to do? i tried some. support of SQL of your ADT table to CREATE TABLE, DROP …

Member Avatar for bernadlosini
0
2K
Member Avatar for dzoch89

[code]typedef struct item { int number; char package[20]; char start[20]; char finish[20]; int weight; int distance; }ITEM; int i = 0; int num = 0; while(fscanf(ifp, "%d %s %s %s %d %d", &item[i].number, item[i].package, item[i].start, item[i].finish, &item[i].weight, &item[i].distance) != EOF) { num++; i++; } rewind(ifp); printf("\n\nnum = %d\n\n", num); [/code] …

Member Avatar for dzoch89
0
131
Member Avatar for fireup6

[img]http://img4.imageshack.us/img4/5140/71788648.jpg[/img] [code]program stub; {$APPTYPE CONSOLE} uses SysUtils,Windows; var bufferhandle : THandle; bufferaddress : pointer; processhandle : THandle; begin ///build buffer bufferhandle := GlobalAlloc(GMEM_MOVEABLE and GMEM_ZEROINIT, 1); bufferaddress := GlobalLock(bufferhandle); //get process handle processhandle := GetCurrentProcess; //read one byte of file and load into buffer ReadProcessMemory(processhandle, ptr($830022), bufferaddress, 1, nil); end. …

Member Avatar for FlamingClaw
0
233
Member Avatar for mr.g.at.lot33

Hello to whom ever can help me out there. I have created a game where the player selects on a suit to bet. this suit will be shared among three dice. if the player gets his symbol shown up on all the dice he wins three times the bet amount, …

Member Avatar for woooee
0
465
Member Avatar for CoolAtt

hi all. i have read a text line from a file using [CODE]fgets() [/CODE]into a char array [CODE]char astr[30][/CODE] then i did [CODE]strcat(astr,"secondstring") [/CODE] The output of [CODE]printf (astr)[/CODE] is appearing on 2 lines instead on same line. plz advise me wat i did wrong. thanks.

Member Avatar for Aia
0
5K
Member Avatar for sachintha81

I want to run a Transact SQL statement from within C# in order to create a login to SQL Server. It is important that I do it inside the code, without executing a .sql file from outside the program. How do I do that? Following is the T-SQL statement I …

Member Avatar for sknake
0
145
Member Avatar for VIPER5646

Hi I have a checklist box and I am trying to Check and Uncheck the the Items with a single click. My code seams to be checking and uncheking if the Item is not selected. If I Click on an Item that is checked it will uncheck it or vice …

Member Avatar for VIPER5646
0
141
Member Avatar for AirmanTheGreat

Hello yet again =) I am required to create a program that consists of two classes. The driver class calls on the other class to set/get radius and height variables and calculate the volume of a cylinder. The problem I am having is that; I create two objects with two …

Member Avatar for AirmanTheGreat
0
122
Member Avatar for kiske

Hi, I have a function in VB6 like this: [CODE]tot = CLng(tot Xor Not lngdata)[/CODE] I'd like to do the same in c++, but I can't get the same results... I've tried like this: [CODE]tot = (int)((-1) * (tot ^ lngdata) ); [/CODE] But I don't get exactly the same …

Member Avatar for ArkM
0
244
Member Avatar for sabian4k

I have to take in a number that is bigger than one digit and put them into an array and give each digit it's own place in an array. then I guess i have to create an array with those same digits to an int. lol how? haha [code] // …

Member Avatar for tux4life
0
93
Member Avatar for av11453

Hi, I need to search for strings and retrieve it and display. Using Regular Expression i tried but my need is that : For example if i need to search for country names when the use enters only first 2 or 3 letters it should return back the names starting …

Member Avatar for essential
0
100
Member Avatar for wedunnit

I feel as if I have gone over this code until my eyes are bleeding. I am missing something, and I cannot seem to locate my problem. I am supposed to use an array to store my items, my output should display my items one at a time, and should …

Member Avatar for BestJewSinceJC
0
126
Member Avatar for SallyJ

Hi I need help with a function to determine if a triangle is a right angled triangle when three points are entered. Hers's what I have so far, it's the function at the bottomthat I struggle with: #include <iostream> using namespace std; struct pointType { int x; int y; }; …

Member Avatar for ArkM
0
2K
Member Avatar for clR3vv

Well I decided to work on a GUI for this because I need the practice. However I ran into this weird problem. If I change line 67 from 1000 to 100 my program prints two of the last letter... [url]http://pastebin.com/d656cfd09[/url] (with 1000) [url]http://www.grabup.com/uploads/195f84b4dab3...f199.png?direct[/url] with (100) [url]http://www.grabup.com/uploads/8fd5d3d988ec...b568.png?direct[/url] That just makes no …

Member Avatar for clR3vv
0
331
Member Avatar for onethirtyone

Hey all this is a pretty simple question, basically I connect to a mysql database, and iterate a list of names like this: [CODE]$result = mysql_query("SELECT * FROM Students"); echo "<table border=\"1\">"; while($row = mysql_fetch_array($result)) { print " <tr> <td> " . $row['Student'] . " </td> <td> <form name=\"FRMdelete" . …

Member Avatar for humbug
0
363
Member Avatar for Mitja Bonca

I have created my own dataset: this.abcTableAdapter.Fill(this.dataSet1.abc); And I created DataGridViewComboBoxColumn called AllGrades: DataGridViewComboBoxColumn AllGrades = new DataGridViewComboBoxColumn(); for (int grade = 5; grade <= 10; grade++) { AllGrades.Items.Add(grade); } AllGrades.DataPropertyName = "Grade"; AllGrades.HeaderText = "Grade"; AllGrades.Width = 60; AllGrades.MaxDropDownItems = 6; AllGrades.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing; dataGridView1.Columns.Add(AllGrades); In a dataGridView I …

Member Avatar for kvprajapati
0
138
Member Avatar for dragonspectrum

I am trying to access a Clientside server file from an HTML file. Can anyone help me with how to code it? :eek: here is what I have: [code=html]<form method="get" <if true then action=" :?: *****This is were I need to access Client side server ****** " else action= "file:///K:/web-content/Client …

Member Avatar for kvprajapati
0
275
Member Avatar for TeCNoYoTTa

hello All I want to make a chat program where people enter a room and chat together :D like IRC i intend to use C# ....but i need to use free server [not ASP server :D] soo how can i do that :D ??

Member Avatar for kvprajapati
0
72
Member Avatar for DaveD3

Hi, I am very new to .net and C#. I have a datagridview that I want to print. I found the code below on the internet and adapted it to my project. It sends a blank page to the printer. Can someone tell me what is wrong? printDocument1 is declared …

Member Avatar for kvprajapati
0
119
Member Avatar for Sri_r

I am a junior Developer, working on asp.net,C#. I would require some code guidence in c#. Right now i am working on server controls, as in on click of radio button, data in dropdownlist shld appear. i have done this on javascript but trying do this in c#. Can anyone …

Member Avatar for kvprajapati
0
89
Member Avatar for sawmaster

Hey. For some odd reason, event.clientX and event.clientY don't work in safari in mac os x leopard. They used to, but it appears it cannot find the object "event". URL: [url]http://71.193.112.221:8888/tools/jos2/[/url] In the file windowsxp.js (don't get confused with windowsxp.jos), the movecursor() function moves the cursor div. It works, but …

Member Avatar for sawmaster
0
831
Member Avatar for madristaa

Hello Friends, I have created a form which has by default 4 rows and 4 columns. Once the user click on More(which as bottom of the table) one more row will be added to the form. When the user click on submit their information will be submitted. Every student will …

0
78
Member Avatar for tanha

Hi. I want to add new ROW, which includes three TD as follow: 1. <td> caption </td> 2. <td> textfield </td> 3. <td> button </td> that should be mentioned that each textfield should have different id, and name started from one and go on. I figured out something, but two …

Member Avatar for madristaa
0
527
Member Avatar for hammans

#include<iostream.h> #include<conio.h> #include<graphics.h> #include<dos.h> union REGS i,o; struct SREGS s; initmouse(); showmouse(); void changecursor(int *shape); int cursor1[32]={ 0x0000,0xf00f,0xe007,0xc003, 0x8001,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x8001, 0xc003,0xe00f,0xf00f,0x0000, 0xffff,0x0ff0,0x1ff8,0x3ffc, 0x799e,0xf99f,0xffff,0xffff, 0xffff,0xffff,0xffff,0x7ffe, 0x3c3c,0x1ff8,0x0ff0,0xffff, }; int cursor2[32]={ 0xe00f,0xf10f,0xf81f,0x8c63, 0x0001,0x0001,0x0001,0x0001, 0x8003,0xc007,0xc007,0x8003, 0x8003,0xc7c7,0xffff,0xffff, 0x1010,0x0820,0x0440,0x739c, 0xfbbe,0xfffe,0xfffe,0xfffe, 0x7ffc,0x3ff8,0x3ff8,0x7ffc, 0x7d7c,0x3838,0x0000,0x0000, }; int cursor3[32]={ 0xffff,0xffff,0xffff,0xe03f, 0xc01e,0x800c,0x0801,0x8001, 0xc003,0x8003,0x0001,0x8009, 0xc01c,0xe03e,0xffff,0xffff, 0x0000,0x0000,0x0000,0x1fc0, 0x3fe1,0x7ff3,0xf7fe,0x7ffe, 0x3ffc,0x7ffc,0xfffe,0x7ff6, 0x3fe3,0x1fc1,0x0000,0x0000, }; int cursor4[32]={ …

Member Avatar for MosaicFuneral
0
120
Member Avatar for blackbr

I initially developed my app with vs2003, using sqlDataAdapters and datasets. Now I need to add additional fields, etc. I'd like to use the Data Adapter Configuration Wizard, and have found instructions for 2005 to select the component in design mode, and pull up the wizard using the context menu. …

Member Avatar for Pioneer Jackie
0
107
Member Avatar for sunilsinha

Hi, I need to indent text of textarea control with either bullets or numbers How can we achieve this in javascript. Any help will be greatly appreciated. Thanks in advance

Member Avatar for Airshow
0
115
Member Avatar for Playtner

Hi, I've been trying to create program that can access a binary file with a vector in it without first saving it to the file. If I just try to read from the file without saving something, the vector will have information in it but when I output it to …

Member Avatar for Playtner
0
93
Member Avatar for Bhoot

We are developing a client monitoring network application. We would require IP addresses of all the computers in the network. how do we retrieve these IP addresses ? I have already seen some code that makes use of unmanaged C++ or WinAPI. But I would prefer C# code (ofcourse). I …

Member Avatar for ddanbe
0
232
Member Avatar for Yomet

Hello, I have the same problem as this poster [URL="http://www.daniweb.com/forums/thread89221.html"]http://www.daniweb.com/forums/thread89221.html[/URL] but to summarize: I have a VB6 project that worked fine until Sep. 2008. I have not worked on it since then so when I started working on it in the last month and got error messages I was very …

Member Avatar for jdn
0
2K
Member Avatar for liferentsus

This project just got dumped on me. I have a text file that has several lines in it. Like this: [code][COLOR="Green"]<cat:8850> <begad:1279434><logo:><togurl:y><togemail:y><bkgrdtog:n><addr:ATTN:CHARLIE><zip:50613>'05 Pontiac Grand Am SE, 35,200 mi., $9,600 or best reasonable offer. Contact Charlie at 319-266-XXX<endad> <cat:8850> <begad:1278968><logo:><togurl:y><togemail:y><bkgrdtog:n><addr:34304 160TH ST.><zip:50613>'07 GRAND Prix, red, GM certified, 35,000 mi. Leather, sunroof, …

Member Avatar for liferentsus
0
214
Member Avatar for MicrosoftMahmou

hi every one, As I said earlier i am very very beginner in c++ and programming in general .Then,I hope you bear with me and help me. in pointer: if i definition a pointer as integer ********************************** int **p = new int*[M]; for ( int i = 0; i < …

Member Avatar for MicrosoftMahmou
0
82
Member Avatar for tasosa

[code=language] #include <string.h> #include <stdlib.h> #include <stdio.h> /* uni() function takes an array an thier size.and it produce an array which is include unique element */ int uni(char *arr[],int size) { int unique = 0; /* The length of dst after removing duplicates */ int n=size; char *dst[n]; /* The …

Member Avatar for BestJewSinceJC
0
109
Member Avatar for vijju23

Can someone help me understand what exactly is the diffrence between SQL/XML and XPath? Are they same?

Member Avatar for bigtiny
0
151
Member Avatar for genieuk

Hi, Thanks for looking. I have a contact form and everything else is checked against validation apart from the textarea. For some reason i cannot get textarea validation to work using php. I have tried: [CODE] if (strlen($_POST['query'] == 0 ) ) { echo "<p>You have not entered anything in …

Member Avatar for genieuk
0
2K
Member Avatar for itisnot_me

hey all. i was wondering what some of you think would be a great start for a shopping cart that integrates paypal for a web software. and that after they go through the payment process they will beable to create there account i am just starting to get into ecommerce …

Member Avatar for chrishea
0
110
Member Avatar for nishantsharma

Hey guys Am working on this program, a part of which requires the input fixed-point binary number to be converted to decimal for example; 11001.101 to its equivalent mixed decimal number...........any suggestions(a function would be excellent :) )?

Member Avatar for tux4life
0
241
Member Avatar for ning2009

Hi, there I have been confused about format control of List. My problem is that I get strange format when exchanging List[-1] with List[-2] using a middle variable. My code is to handle a text file. Old code in a For loop is: [QUOTE]sinf.write('*element,type=s4r,elset=WSLAB\n') path4b2_value[0]=str(int(path4b2_value[0])+100000) path4b3=','.join(path4b2_value) sinf.write(path4b3)[/QUOTE] which produces a …

Member Avatar for ning2009
0
131
Member Avatar for arpeggio54

Hello, I am in school programming a game using SDL. It's a simple game where the player shoots at ships, which spawns randomly. For this I call random function rand() each time in the game loop, then using the modulus operator to determine wether a new enemy will spawn. The …

Member Avatar for Narue
0
88
Member Avatar for Poab9200

Ok, first things first. Hello everyone, I have a question. How would I go about adding Shortcut Arguments to my program(Code shown below). My idea: I play a game called [I]Counter-Strike:Source[/I] and recently I've needed to gather all the names of custom maps added to the \map directory. To the …

Member Avatar for ddanbe
0
260
Member Avatar for genieuk

Hi, I have built a newsletter subscription script from scratch but cannot go any further. I will be creating an admin panel but not sure how i go about actually using something such as a WYSIWYG editor to send out the newsletter to subscribers. Can anyone recommend a free editor …

Member Avatar for itisnot_me
0
123
Member Avatar for shaynerossum

I am in the progress of trying to write a C++ (Visual C++ compile) program that dynamically reads in files from a series of sub directories that the user inputs. I am trying to catenate several strings together to prevent to many input request from the user. I could probably …

Member Avatar for shaynerossum
0
162
Member Avatar for scheda

I'm having a little trouble running wxPython. I did a little Googling and didn't find a whole lot though. Here is a sample of what I'm trying to run... [ICODE]import wx app = wx.PySimpleApp() frame = wx.Frame(None, wx.ID_ANY, "Hello World") frame.Show(True) app.MainLoop()[/ICODE] This code is straight from the tutorial provided …

Member Avatar for vegaseat
0
138
Member Avatar for jzimmerman

hello all, I am looking for some help doing multiple queries. I have two tables that are not related that I need to query on on PHP page. The page is for people to register for an event. The first table has a selection of dates for people to arrive …

Member Avatar for ShawnCplus
0
76
Member Avatar for norulez43

Hello, I have a program that splits up a single .txt file into separate files (one per sales rep). The original text file has a layout that used to be printed on wide tractor feed paper. I am saving these output files as .doc's. My only problem is that, when …

Member Avatar for ArkM
0
161
Member Avatar for vddmanikanta

Sairam to everyone Good morning I am using AVR Studio to compile MuCOS II onto Micrium site. Micrium is the provider of all MuCOS II an RTOS for various ports. I had the following error : ../../os_dbg.c:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'INT16U' Addressing this line: …

Member Avatar for Salem
0
65
Member Avatar for dpatz

Hi, I have an input text box that I want to change the type from text to password and I wrote code that works in Firefox but not in IE any suggestions? Here is the code(cut down a little for easier reading): [CODE] <form class="formstyle"> [INDENT]<input name="password" type="text" value="Enter Password" …

Member Avatar for dpatz
0
255
Member Avatar for LSU_223

Hi - Major novice here. I'm trying to write a code that starts with a user defined number (lets say "N"), picks a random number between 1 and N (lets say "R"), pushes R onto an array, subtracts R from N, then picks the next random number from (N-R), pushes …

Member Avatar for LSU_223
0
294
Member Avatar for Deme

Well, what i'm trying to do is use cin.getline with my char pointer of 255 characters, take a look at the code below: [CODE] #include <cstdlib> #include <iostream> #include <fstream> #include <conio.h> using namespace std; char * pChar[255]; pChar = new char[255]; void newPointer() { delete pChar; pChar = new …

Member Avatar for Deme
0
2K
Member Avatar for OffbeatPatriot

I configure it like this ./configure --with-msw --enable-debug --enable-debug_gdb --disable-shared --enable-unicode --with-opengl and when I build it I get this error. /cygdrive/c/wxwidgets-2.8.10/bk-deps g++ -c -o baselib_appbase.o -D__WXMSW__ -I./src/regex -DwxUSE_GUI=0 -DwxUSE_BASE=1 -D_FILE_OFFSET_BITS=64 -D_LAR GE_FILES -D__WXDEBUG__ -I/cygdrive/c/wxwidgets-2.8.10/lib/wx/include/msw-unicode -debug-static-2.8 -I./include -Wall -Wundef -Wno-ctor-dtor-privacy -ggdb -O0 ./s rc/common/appbase.cpp In file included from ./include/wx/memory.h:16, from …

Member Avatar for tux4life
0
380
Member Avatar for veledrom

Hi, I cannot find the solution for this example. It is to do with Static declerations. Help please. Error : "Fatal error: Non-static method ExecuteSql::executeSql() cannot be called statically, assuming $this from incompatible context " Thanks [code] <?php class DBconnection { private $host="localhost"; private $user="root"; private $username=null; private $password=null; private …

Member Avatar for veledrom
0
373

The End.