64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Lokolo

[code] FILE *infile; infile = fopen("coords1.txt", "r"); int num = 0; for(int num1 = 0; num1 < 5; num1++) { for(int num2 = 0; num2 < 4; num2++) { for(int num3 = 0; num3 < 3; num3++) { fscanf(infile, "%f", &num ); targetCoords[num1][num2][num3] = num; } } } [/code] I'm …

Member Avatar for Lokolo
0
266
Member Avatar for winrawr

Are there any reeeally good books on programming C++ that anyone knows of? Ones that just do an excellent job of teaching different techniques and clean coding practices, as well as things that can really be applied (like making and styling windows, communicating via TCP/IP, etc)?

Member Avatar for winrawr
0
116
Member Avatar for clem_c_rock

I have a strange situation. I want to have a create_user form w/ all the fields blank When I call the create_user method, the corresponding create_user.html.erb form is displaying the first record's data from the user table in the form fields Here's a quick view of my form: [code] <% …

Member Avatar for clem_c_rock
0
100
Member Avatar for Liszt

I use Visual Web Developer 2008 and have just started out a project. When pressing F5 that compiles the project the program opens a blanc Explorer window. What I now wonder is how it is possible to make this whole window to be completely Black instead. I am searching the …

Member Avatar for Liszt
0
86
Member Avatar for serhannn

Hello, I'm working on a code for my project at college. The goal of the project is to find and extract keywords, and the sentences, which contain these keywords from many text files, which I have already downloaded from Internet using another code. These text files are actually source codes …

Member Avatar for serhannn
0
263
Member Avatar for Lord Prime

Hi, I new here and currently learning as much programming languages as needed. To start with the simplest programming language, VB. I'm kind of having problems with producing an animation that uses the FOR Loop statement and the System.Threading.Thread.Sleep () command. I've placed two objects (rectangles) together and would like …

Member Avatar for Lord Prime
0
181
Member Avatar for kv79

Hi all I made a program who open excel for adding files in excel. I am asking you can for example 15 users uploading that single file ? Thanks advance

Member Avatar for kv79
0
140
Member Avatar for vimalfor5

Hi all, i want to create one crystalreport from following storeprocedure [CODE=SQL] CREATE PROCEDURE dbo.usp_proc1 ( @ID as int ) as declare @Var1 as varchar(1000); set @Var1 = ' select ID,Name,Email from Demo where ID='+Convert(varchar,@ID) print @Var1; exec(@Var1); [/CODE] This is not the actual code but its a demo of …

0
86
Member Avatar for wien

Hi all I am trying to write a C# dataform where a company ID is created from the first four letters of the customers name + a number. Any ideas? As Left() is not used. and I can't find a reference to substrings. Wien

Member Avatar for LizR
0
186
Member Avatar for abhi_elementx

Hi folks, I want to access Oracle 9i table "emp" in Java... I do not know what driver to use .. The name of the Oracle database under which "emp" falls is "Oracledb" I do not know what the connection string is? Pls help...

Member Avatar for gambling
0
175
Member Avatar for tomtetlaw

Why wont my gun show up? [code=c++] #include "DarkGDK.h" void DarkGDK ( void ) { dbSyncOn ( ); dbSyncRate ( 60 ); SetCurrentDirectory ( "resources" ); dbLoadObject ( "skybox2.x", 1 ); dbSetObjectLight ( 1, 0 ); dbSetObjectTexture ( 1, 3, 2 ); dbScaleObject ( 1, 5000, 5000, 5000 ); dbLoadObject …

Member Avatar for tomtetlaw
0
92
Member Avatar for JamieC90

Can someone explain to me what this is? I have been asked to code a tic-tac-toe board using an array which I have done, but the brief specifies using standard input, and I have no idea what that is, but I'm guessing does not include changing the values of the …

Member Avatar for javaAddict
0
218
Member Avatar for Whilliam

Hello, Im trying to insert some integers to make a sorted list. I am using cursor-based. Here is the function: [CODE=c] void insert_sorted(virtualheap *vh, list *l, int x) { int temp, *p; if(vh->avail != -1) { temp = mymalloc(&(*vh)); vh->h[temp].elem = x; for(p = l; *p != -1 && vh->h[*p].elem …

Member Avatar for Whilliam
0
117
Member Avatar for Clawsy

I need little help on creating shortcut for my C# app. I want programmatically do this. I intend to create a shortcut in startup menu folder. Maybe you could also show me how to start my app automatically using a registry entry. Thanks!

Member Avatar for Diamonddrake
0
946
Member Avatar for tomtetlaw

In DarkGDK how do you place objects? I know about and how to use the dbLoadObject ( ); function but i dont know how to place it where i want to, like XYZ co-ordinates. also when i run this: [code=c++] #include "DarkGDK.h" void DarkGDK ( void ) { dbSyncOn ( …

0
61
Member Avatar for enim213

hi All, I want to ask if is there any possibility to separate column data in different columns using php code.. really dont know if i have solution in php or here in mysql.. any idea would be really appreciate Thanx enim

Member Avatar for enim213
0
146
Member Avatar for Liszt

I am using "Microsoft Visual Web Developer 2008 Express Edition". I have created a First page with a button and 2 textBoxes( see attached file) In my project I have added a new item/Page 2 to this project. What I now is trying to do or wonder how it is …

Member Avatar for Liszt
0
110
Member Avatar for JackieW

I have a simple form that collects names in time slots. The form lists all the time slots with the names and blank spots available. The problem I'm running into is people are overwriting other names so they can get a time slot they want. I've done some research and …

Member Avatar for JackieW
0
88
Member Avatar for piotr_kast

Now I still learning C#, and in one of the tutorials I found this program: [code] using System; namespace Returning_a_Class_From_a_Method { public class MVADate { private int dayOfBirth; private int monthOfBirth; private int yearOfBirth; public void SetDate(int d, int m, int y) { dayOfBirth = d; monthOfBirth = m; yearOfBirth …

Member Avatar for LizR
0
146
Member Avatar for mercury113

i have this code in java swing... im getting an headaChe thinking what to do... how do i add events in my ComboBox?? wHat i want is that when i sElect a comBoBox iT will tell wether the one you selected is correct or wrong... then the comBoBox will be …

Member Avatar for mercury113
0
177
Member Avatar for VernonDozier

I have a tic tac toe program. The game board has a table with 9 cells. The cells need to be clickable, but when I click them, nothing happens. Cells are created in line 25. The [ICODE]cellClicked [/ICODE]function on line 10 is supposed to execute, but line 12 appears to …

Member Avatar for hielo
0
99
Member Avatar for findlay

Hello All, I am experiencing a problem with the STL map class (or rather the map class is experiencing a problem with me). I am trying to store a number of 2-dimensional vectors of type int, whose corresponding keys are strings. The problem arises when I try to index a …

Member Avatar for findlay
0
130
Member Avatar for Stefano Mtangoo

I found on net this: "Mixins are classes that further enhance the functionality of a wx.ListCtrl. Mixin classes are so called helper classes. They are located in wx.lib.mixins.listctrl module. In order to use them, the programmer has to inherit from these classes. " Please someone explain me the way this …

Member Avatar for Stefano Mtangoo
0
96
Member Avatar for brunope

Hello everyone, At first, I would like to wish an happy new year for everyone. Now, my problem! I'm starting a new web app (which is the first one I will completely write) and after modeling the database, I encoutered a problem for adding datas in my category's table: [code]-- …

Member Avatar for verruckt24
0
1K
Member Avatar for uxp

I would like to say thank you to all the contributing members of the forum. Daniweb has been the result of many late night google searches and has provided some valuable knowledge to myself and I'm sure countless others. I'll start by saying I'm no _real_ programmer. I've played around …

Member Avatar for uxp
0
141
Member Avatar for winrawr

Just wondering, since assembly code is more or less what every other language is compiled into, would it be useful to learn how to do things in assembly before learning say, C or C++, pascal, python, etc? I am already fluent in Visual Basic but I want to get to …

Member Avatar for winrawr
0
159
Member Avatar for mr.white

Hello, I'm building a web application which has Users and these Users have permission to access certain bits of the web app. After a user logs on, according to it's permissions which will be read from permissions table, he will see the bits of the app that he can access. …

Member Avatar for LizR
0
144
Member Avatar for winrawr
Member Avatar for sumit-saini

Hi, Im saving a file in MS Word and when i open it it shows me message to convert the file here is the code i am using Public Sub SaveDocumentAfterValid() Dim fs, f, fc, f1 Dim fbase, fsubfol, fsubfol2, fsubfol3, fsubfol4, fsubfol5, fsubfol6, fname As String Dim fname1, fbase_1, …

0
211
Member Avatar for mr.khurrams

i need a java script that should take pictures from a Folder and automatically play the slide show of these pictures when HTML page load......i need it urgently....plzzzzz help me

Member Avatar for bappaditya
0
233
Member Avatar for prashanth s j

Hi any one please tell me why the warning is generated when the address of pointer to a local variable is passed. [U]The following is the warning generated:[/U] Icore.c:228: warning: passing argument 3 of foo from incompatible pointer type [U]The function declaration is:[/U] int foo(void * , int , void**); …

Member Avatar for grumpier
0
145
Member Avatar for Traicey

I am developing a website and am struggling to make sure that even if my web page is minimized a user can still see the entire content of the page without maximising the page, I believe thats achievable bcoz I have seen websites like that even this one, anyone knows …

Member Avatar for Traicey
0
89
Member Avatar for cVz

Hey there, ok i finally get my list of directories from my server , but these look like this -x 10 test mail 4096 Dec 1 12:01 users -x 10 test mail 4096 Dec 1 12:01 admin etc etc... basically i only need "users", or in the second string "admin" …

Member Avatar for cVz
0
148
Member Avatar for FTProtocol

I need need it to update my ListView before continueing [code] if (chars.Length > 0) { string log = string.Format("{0}:{1}", acc.Username, acc.Password); UpdateListView(); sWorking += log + "\r\n"; foreach (IJJIAccount.GunZCharacter gc in chars) { log = string.Format("\t{0} - Level {1}", gc.CharName, gc.Level); sWorking += log + "\r\n"; } } [/code] …

Member Avatar for LizR
0
149
Member Avatar for thesaintbug

hi, I am new to Cold fusion... I have defined a session level variable in one page1.cfm as follows <cfset session.testing = "test"> and when I am trying to access it on another page page2.cfm (browser window is not closed meanwhile) it gives an error that "testing" is undefined at …

Member Avatar for thesaintbug
0
109
Member Avatar for arun_lisieux

Ques: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? I came up with the following code. This did compile in VC++ Express Edition without any errors/warnings. But i only get a blank output screen. Someone plz …

Member Avatar for arun_lisieux
0
229
Member Avatar for revenge2

hello there, well im back;) with a few more questions that i would like clarification with. I have completed up to data structures in python and my next topic is 'object oriented programming':| . Just wanted to clear up some things first:) [CODE]guess=int (input ('enter a number:')) [/CODE] Q1. in …

Member Avatar for mn_kthompson
0
363
Member Avatar for ddanbe

When I want an array of integers with 4 rows and 2 columns I do [B]int[,] array = new int[4, 2];[/B] and then use [B]array[0, 0]=123;[/B] to set the first element. So for the matrix input usercontrol I'm working on I thought I need something like : [B]TextBox[,] elements = …

Member Avatar for Ramy Mahrous
0
117
Member Avatar for mrnutty

hi, I started learning openGl yesterday. I made a simple program that supposed to create a triangle and a square, but its not working properly, any help please? [code] #include<iostream> #include<Gl/glut.h> #include<cstdlib> using namespace std; void handleKeyPress(unsigned char key, int x, int y) { if(key == 26) exit(1); } int …

Member Avatar for mrnutty
0
118
Member Avatar for ucza

I made some simple mistake (conversion?) in my program.. I will be gratefull if anyone has an idea what's wrong with it;) The problem is not with the algorithm itself so I am not explaining it - the problem is: why the condition placed in the code between // HERE …

Member Avatar for ucza
0
131
Member Avatar for Kostas Theof

Hello to everyone and Happy New Year. Is it possible to execute external files via event handlers?? I want from an HTML (including JavaScript) web page to execute external files via event handlers. What I actually want to do is to execute in the background some php files (and do …

Member Avatar for Kostas Theof
0
135
Member Avatar for dthree

hi folks, I'm writing a program for a punch press that displays the pattern to be punched. I have learned how to retrieve the data from a spreadsheet calculate the hole angles and draw them on my form [code] { Using g As Graphics = Me.CreateGraphics Dim pn As New …

Member Avatar for dthree
0
122
Member Avatar for clutchkiller

For the 2 parameters lpClassName and lpWindowName in FindWindow, what do i throw in there to hide all open windows? Is this possible? MSDN makes it sound like if both parameters are null, that will do the trick, but before i test it, i want to make sure that works …

Member Avatar for clutchkiller
0
206
Member Avatar for mn_kthompson

I've written some code that will download a web page and extract all the links from that page into a list. Then I want to make a second pass down the list and repeat the process for each on the links found on the first page. But for some reason, …

Member Avatar for Gribouillis
0
299
Member Avatar for rmlopes

Hello all, I am using VS2008 and I have a solution with 3 projects. One is the Loki library, another one is a library designed by me and the other is a small application that uses a part of my library. The Loki project is a static library. Mine is …

0
93
Member Avatar for jeffrey16

hi, i am new in this forum and i cannot find a free downloadable activeX button, i want to make my design beautiful, can anyone here pls help me where to find cool buttons for free. im using VB6..

Member Avatar for johnkeartson
0
230
Member Avatar for kiddo39

This code from Vegasseat worked when I made my own bitmap image to count red pixels. I now want to count green pixels so I changed the code. Again, when I make my own bitmap it will count the green pixels but why won't it count them in an image …

Member Avatar for kiddo39
0
343
Member Avatar for JamieC90

Hey all, first post, hope I'm not doing anything wrong I'm taking a Java module next term at university, and in preparation, they want us to code two things. They reckon there's a help file up on their intranet but the intranet is very unstable, and doesn't seem to handle …

Member Avatar for JamieC90
0
183
Member Avatar for smelf1

Hi, In the reg key below there can be 50 different keys, how can i read through each one and get its display name and then show those display names in a lsitbox or combo box. hkey_local_machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall I am using the code below to get the data in that single …

Member Avatar for Ramy Mahrous
0
654
Member Avatar for jaiprakash15

Dear All.. I been working on XML for the past 2 weeks and am bit new to this concept..however i have put my effort to solve my problem.. I have suceeded in creating and appending a node to a XML file..But i have problem in Removing a node in a …

Member Avatar for jaiprakash15
0
177

The End.