64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jobs

I have a file pointer which was assigned in main. In the main, I just open a file to write stuff to it. I want to pass the file pointer to several functions so that they can write to the file. In the fucntion declaration I just add: somefunc(FILE *file) …

Member Avatar for Narue
0
1K
Member Avatar for galhajaj

Hello! :) i need to make something that change the image inside a picturebox every 1000 milisec for a 6 pictures (for example), so i search about a function that can hold the code for this time and i found Thread.Sleep(1000) (after use the "using.Threading" ofcourse) so i put that …

Member Avatar for galhajaj
0
217
Member Avatar for KnifeDarky

Hi everyone, I trying to figure out how to execute commands stored in string, let's say i have string called "command" and a textbox, so i want vb to run command that i typed in textbox, e.g. i type in textbox "label1.text = "bla bla"", and then type like "msgbox.show". …

Member Avatar for KnifeDarky
0
1K
Member Avatar for RazorRamon

Can you all tell me the difference in these 2 codes? I'm trying to learn JQuery and ive seen this code below in the tutorials. [CODE] $DB->Query("Select * FROM time"); [/CODE] I'm use to coding queries like this. [CODE] $res = mysql_query("SELECT timestamp, name FROM time ORDER BY timestamp DESC"); …

Member Avatar for P0lT10n
0
155
Member Avatar for adanaz

Hello I've made a program using JCreator. It was working fine and all of a sudden it won't run anymore. I get this message: [CODE] --------------------Configuration: <Default>-------------------- Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: …

Member Avatar for adanaz
0
2K
Member Avatar for MareoRaft

This code compiles but refuses to run. NONE of the cout statements appear, as if the program is in an infinite loop except that its not. [CODE]#include "matrixOpsLibrary.h" #include <iostream> using namespace MattsMatrixSpace; using std::cout; using std::endl; Mat pattern( unsigned K ){ cout<<"5"; Mat alpha; //this becomes our A variable …

Member Avatar for MareoRaft
0
187
Member Avatar for MichaelFL

Hi, I'm new to PHP, but not to computer programming. I'm trying to connect to ny MySQL database and thought I followed what the tutorial said exactly. Obviously not. I realize that this is an error indicating a missing control character, but I have no clue as to what it …

Member Avatar for MichaelFL
0
145
Member Avatar for petrakid

I am trying to write a script that will update my database(s) without the user having to click any buttons. I also want the update to occur whenever a field is modified in the form. So here is an example form [CODE] <form> <input type="text" name="fieldone" value="currentvalfromdb" onChange="updateDB()" /> <select …

Member Avatar for petrakid
0
1K
Member Avatar for cjohnweb

Let's say this is an unknown error, possibly a syntax error, possibly an HTML error - I can't be sure. Hey there, I'm a PHP expert, but not so well with JQuery - I'm just starting out with JS in general. I have a PHP based site I am working …

Member Avatar for Airshow
0
219
Member Avatar for faroukmuhammad

Is there a software that can convert [B].max[/B] files to [B].ojb[/B] files? Where can I find one?

Member Avatar for Sodabread
0
591
Member Avatar for wackytechie

Hello people..!!:) I'm a beginner in c++.. I made a program today which worked well when I ran it 2-3 times.. But now when I try to run it,nothing happens... All I see is a black screen which disappears in a second.. What to do..??:?: Please help me asap as …

Member Avatar for NIPHZ
0
4K
Member Avatar for xenhancd

I want to have the ability to rerun the following from the very beginning, however, I have only been able to get it to rerun from the middle of the program where it asks for sales tax. I've tried moving my do/while tags around to everywhere but nothing seems to …

Member Avatar for Ketsuekiame
0
276
Member Avatar for e060185

Hello, I need to create a code for formatting a file that I receive from Bloomberg, and has a line break at the end of each line. See below. (I have hundreds of paragraphs like this) [I] Italy’s debt is forecast to rise to 120 percent of gross domestic product …

Member Avatar for Ezzaral
0
151
Member Avatar for AngelicOne

I know I am doing this right but it just doesn't work. The condition for radiobutton that if it's not checked then an alert should display. But it won't work! [CODE]<script> function valid() { var element = document.forms["form"]["gender"]; var check = false; for(i=0;i<=element.length;i++) { if(element[i].checked) { check = true; break; …

Member Avatar for AngelicOne
0
123
Member Avatar for AngelicOne

I have table B that has reference to table A. I need to insert value to table B's foreign key. How to do it using PHP? Do I need to use mysql_insert_id()?

Member Avatar for AngelicOne
-1
103
Member Avatar for bluehangook629

Hey guys I am trying to use Microsoft.VisualStudio.Data.Services namespace in my project, and I look everywhere to find this namespace but no luck. I was wondering if anyone can tell me where I can go to include Microsoft.VisualStudio.Data.Services in my project. Thanks

Member Avatar for bluehangook629
0
122
Member Avatar for bhagawatshinde

Hi, I have blank in this type of question. Suppose i have an 100 records in my sql database. i am creating 100 files for each records (100 records) in 10 min. Now I want to create 200 files in same 10 minutes. Means double files in same time. how …

Member Avatar for Ketsuekiame
0
100
Member Avatar for highlite

I have created a simple gui using a windows form, which consists of some checkboxes, radiobuttons and textboxes. I also have my logic code which consists of several switch case statement and I want to know how to put my logic code into the gui I have created. Does anyone …

Member Avatar for highlite
0
353
Member Avatar for PROgamer

Im having a problem with this program why i am not able to set present total price of product if gonna seect the product form combo and the remove button cant get the selected index,retrieve the selected item and remove the selected item from the list using its index or …

Member Avatar for PROgamer
0
241
Member Avatar for dwinn

Hey guys, I have recently programmed a site that enables a user to upload and download files to and from an FTP site. I now wish to take it further by having an email sent out to a specific email account (Outlook 2010) confirming that a file has been uploaded …

Member Avatar for dwinn
0
174
Member Avatar for Prosammer

i was just wondering why can't i point something to void. without getting any errors like for example [ICODE] class cs_PureFunction { public: virtual void DoSomething() = 0; virtual bool CheckThings() = 0; }; class cs_EnableOverrideAction: public cs_PureFunction { public: virtual void DoSomething() { puts("Test123"); } virtual bool CheckThings() { …

Member Avatar for Prosammer
0
194
Member Avatar for AngelicOne

I don't what is wrong but there's an error [B]Error: Incorrect date value: '' for column 'DateBirth' at row 1[/B] I searched for answers but there seems nothing wrong with my code. I used date as datatype for date of birth. my php script. [CODE] <?php $m = $_POST["month"]; $d …

Member Avatar for AngelicOne
0
175
Member Avatar for karthik_ppts

Hi Frendz, I have datetime field in database. now i want to filter out the record which are in today date using mysql query?

Member Avatar for karthik_ppts
0
149
Member Avatar for sid78669

I am starting out with PHP and in my project I'm trying to fetch XML data from a url and parsing it for data. Now the url that I use is being fetched from a webpage and hence I know that it is correct and it exists. Still, when I …

Member Avatar for sid78669
0
263
Member Avatar for bhagawatshinde

Hi anybody can help me , i want to connect the sql serverdatase from local machine in windows application. i am trying this like this way but it give me an error my connection string [CODE] return new SqlConnection(@"Data Source=68.71.135.2,2121;Initial Catalog=DBTest;User ID=myId;Password=mypass;");[/CODE] how i connect to server database. Thanks in …

Member Avatar for bhagawatshinde
0
214
Member Avatar for rayidi

Dear Friends, Am developing a sms based website. i bought the gsm modem. problem how to connect the com port through php and querying the gsm modem with AT Commands ?? Please help me out [COLOR="Red"]Modem:- Visontek 82GH USB MODEM It supports at commands. [/COLOR] Note:- Am sending sms and …

Member Avatar for vattana ybm
0
2K
Member Avatar for TheNinjaForce

Im confused on how to get pgpMyAdmin I went to the website and downloaded the phpMyAdmin-3.4.3.2-all-languages.7z I opened it and all I see is a bunch of files now what?

Member Avatar for trbograndnat
0
177
Member Avatar for mosesmn

Am getting: Parse error: syntax error, unexpected T_DNUMBER $post_xml = "<?xml version="1.0" encoding="utf-8"?><PesapalDirectOrderInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Amount="".$order_total."" Description="".$transaction_details."" Code="".$code."" Type="".$type."" PaymentMethod="".$payment_method."" Reference="".$reference."" FirstName="".$first_name."" LastName="".$last_name."" Email="".$email."" PhoneNumber="".$phonenumber."" UserName="".$username."" xmlns="http://www.pesapal.com" />"; $post_xml = htmlentities($post_xml); If I use single quotes the error dissappears but it does not function the way i would like it …

Member Avatar for mosesmn
0
156
Member Avatar for mrbungle

Quick question... Say I have a login form with a user ID, then a text box on the main form. When the main form closes, it takes that value from the text box and inserts it into the column based on that users ID Here's my code- [CODE] '// Save …

Member Avatar for mrbungle
0
146
Member Avatar for utthu

I have attached the screenshot of my output. I guess, the syntax is wrong. Please help.! [CODE]<?php //initilaize the mysql user name and password //Database Config $dbHost='localhost'; //Database server $dbName='db'; // Name of the database $dbUser='root'; // Database username $dbPass=''; // Database password $source = mysql_connect($dbHost, $dbUser, $dbPass); if (!$source) …

Member Avatar for diafol
0
365
Member Avatar for nidajaffri

Write a program in C/C++/Linux to find the mean and then use that mean for further calculations. Make three threads to perform different task as follows: a) The 1st Thread will find the mean. b) The 2nd Thread will take the mean from the 1st Thread and display the numbers …

Member Avatar for nidajaffri
-1
2K
Member Avatar for auwi987

hello can somebody check my query cause i'm having a hard time working on it., i need to insert data on my database when i process it tells syntax error in Insert into statement pls. help thnx [CODE][COLOR="Green"]try { OleDbCommand cmdSave = new OleDbCommand(); cmdSave.Connection = cls_DB.cn; cmdSave.CommandText = "insert …

Member Avatar for Mitja Bonca
0
128
Member Avatar for M.S.

Hi All When trying to open a URL with bellow code, it Gives "TypeError: not all arguments converted during string formatting" [CODE=python]import urllib City="%D9%85%D9%87%D8%B1%D8%A7%D9%86" Province="%D8%A7%DB%8C%D9%84%D8%A7%D9%85" myurl = 'http://www.owghat.com/owghat.png.aspx?Province='+'%s'+'&City='+'%s'%(Province, City) #the real address is:http://www.owghat.com/owghat.png.aspx?Province=%D8%A7%DB%8C%D9%84%D8%A7%D9%85&City=%D9%85%D9%87%D8%B1%D8%A7%D9%86 a="e:\\img.png" urllib.urlretrieve(myurl,a)[/CODE] So, what I'm doing wrong? AND Another question: How to encode a utf-8 string(example: مهران) …

Member Avatar for M.S.
0
165
Member Avatar for Majestics

How to add flash objects in java without Java Flash Player Api? Any idea. Just hint required.

Member Avatar for Majestics
0
101
Member Avatar for IndianaRonaldo

I need a little help with algorithm for my code.Given a word "abacus" i have the code to find all its anagrams but i need to include also the words that are smaller in length than the original word. That is, I wanna be able to list ABA,AAB,ACA....ABAC,ABCS....so on. Thanking …

Member Avatar for IndianaRonaldo
0
294
Member Avatar for ineedsomehelp:3

I'm suppose to make a code that is suppose to check errors on inputted letters but I can't seem to get it right cause when I input something either wrong or right it still prints "ERROR" [CODE]void check(char a, char b, char c, char d,char e,char f, char g, char …

Member Avatar for ineedsomehelp:3
0
217
Member Avatar for geekme

I'm a beginner looking for Windows 7 phone app development. Have downloaded the kit and emulator. I follow tutorials to develop apps but I don't understand the steps.I use visual C# 2010 as the IDE .Please help as to what should I learn so as to understand the coding in …

Member Avatar for gameprogramming
0
109
Member Avatar for IMJS

I am trying to utilise a development kit for software that we use at work. I think I have found a member function that would address a problem I have and I'm trying to test it. The documentation says that it is used thus: [CODE] int SDKclass::SDKclassmethod( a_data_type** a_data_array_ptr, char*** …

Member Avatar for fruitymo
0
117
Member Avatar for lrh9

I'm interested in a generic event system for Python. I've searched the forum for similar topics, and I've searched the web for existing implementations. I haven't found exactly what I'm looking for. I'm familiar with the Observer pattern. However, my implementation and other implementations lack strong support for concurrency and …

Member Avatar for lrh9
0
116
Member Avatar for Lowchernhwee

well guys , i want to make a read and write from textfile ... but the problem is when i click the calendar, and click create now(button 1), it cant work... if i didnt click the calendar, it works well.. so how to solve this problem anyone? [CODE] using System; …

Member Avatar for Lowchernhwee
0
293
Member Avatar for cozmo87

I'm writing an application for processing scientific data. The data is displayed in a jTable. I'm done with the data processing itself, now I want to do some conditional formatting to make interpretation easier for the end user. [LIST=1] [*]The last column of the table contains a threshold value, and …

Member Avatar for mKorbel
0
2K
Member Avatar for MarkGia

I have question about shell command well lets say i have this [CODE] Shell("\bin\game.exe", AppWinStyle.NormalNoFocus) [/CODE] Well as you know the command will come up an say File Not Found [CODE] FileNotFoundException [/CODE] So how can i put this command and when the file is not found turn up with …

Member Avatar for MarkGia
0
454
Member Avatar for Slyvr

I have 2 classes. One get/set BlockData, and one main class that loads,draws,updates. I have a big list of public Texture2D types that I have in the main class. I need blockdata to be able to get the texture2d types for each block and send it back to main...but blockdata …

0
72
Member Avatar for vaironl

Hello, I'm a student in a summer workshop and i'm trying to make a python table from which people can choose the type , and within a mile radius. It's suppose to be compatible with an Arcgis map. If anyone knows how to make something similar please tell me how …

Member Avatar for vaironl
0
328
Member Avatar for Niharika Jain

Hey, I've just started with JSP! Was trying my hand at this Shopping cart app.here's the code..[CODE]<%@page import ="java.sql.*"%> <%! Connection con = null; String query = null; PreparedStatement stmt = null; ResultSet rs = null; %> <HTML> <BODY BGCOLOR='ORANGE'> <CENTER> <H2>YOUR CART CONTAINS</H2> <% try{ Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost/shopping_mart?"+"user=root&password=root"); …

0
92
Member Avatar for sharathg.satya

help me in using ajax controls in C#.net i am using them but finally they are not getting displayed. the watermarker is not being displayed as the default text moreover the box is empty... here is the code [CODE] <asp:ScriptManager ID="ScriptManager1" runat="server" /> <br /> <br /> <br /> <asp:TextBox …

0
55
Member Avatar for phoenx

I have a problem in my game about button how I can display the random number example "3 + 5" in the upper button ...I try one button here but you need to click it in order to see the random number and only one number will appear..please any idea.. …

Member Avatar for phoenx
0
166
Member Avatar for mangel.murti

hi guys ,, i want all th and corresponding td value like Beds=>7 , Baths=>8 , House Size=>12000 sq ft [CODE] <table cellspacing="0" class='abc'> <tbody> <tr> <th>Beds</th> <td>7 bed </td> <th>Baths</th> <td>8.5 bath </td> </tr> <tr> <th>House Size</th> <td>12000 sq ft </td> <th>Lot Size</th> <td>2.62 Acres </td> </tr> <tr> <th>Price</th> …

Member Avatar for mangel.murti
-1
136
Member Avatar for bhagawatshinde

Hi, Can anybody tell me how to set values to textarea. i have an value from sqldb which are to be set. I can retrive the values like this [CODE] string add1 = Request.Form["txtadd1"];[/CODE] but not able to set the values to the textarea.

Member Avatar for bhagawatshinde
-1
138
Member Avatar for rhuffman8

I am working in an older version of Python (2.6, I believe). I cannot update to the latest version because it is not currently compatible with the other program I need the code to run with so, unfortunately, the "decimal" module is not available to me (as far as I …

Member Avatar for Gribouillis
0
240

The End.