199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for CB44

I have an assignment due tonight. I am in the hospital with kidney stones and in much pain! I brought my laptop but am kind of out of it. Could someone please help so I do not get a bad grade, please! This is for a module of an electrical …

Member Avatar for MosaicFuneral
0
135
Member Avatar for BLUEC0RE

Kind of programing in general question but I'm doing it in c so I'm posting in the c forum. My class is dealing with VCards and my prof talks about a process call "unfolding". I have no clue what this means so can anyone give a quick briefing or point …

Member Avatar for MosaicFuneral
0
77
Member Avatar for tedelston

Hi, I recently installed jcreator and jdk 1.6 i was testing out the program to see if it worked correctly I used a really simple program(below) but whenever I type a second integer, the error "Make sure you enter an integer" appears, I've tried a few simple programs to the …

Member Avatar for tedelston
0
280
Member Avatar for lyrico

Hi again to all, Can anyone know how to do this? [code] <?php // let say the time now is 06:00 PM $time = Date('h:i A'); $time1 = strftime('$time'); // I know it is wrong coz the output of this code is $time only. I just include this for you …

Member Avatar for lyrico
0
114
Member Avatar for moshe12007

hi i write some code to write for access file (.db) but i have some problem and i dont know how to solve it... Here is the code : [CODE] string a = ""; foreach (Control c in this.Controls) { for (int i = 1; i <= 80; i++) { …

Member Avatar for lolafuertes
0
97
Member Avatar for MasterGberry

I know that arrays have to be given a size when using them, so I tried to, but this piece of code doesn't seem to want to be accepted by the compiler. data is a std::vector<char> so i tried using the .size() function to use the size of the vector …

Member Avatar for MasterGberry
0
127
Member Avatar for MrCapuchino

Hello, I have a textfile added to a resx file. The resx file is called Resources. I have a filestream, and I want to create a filestream object with the textfile. I swear it was working, but now it throws me an argument not valid exception here is my code …

Member Avatar for MrCapuchino
0
130
Member Avatar for Resentful

I've got a simple string problem I can't seem to fix. The string itself contains things like "random" & random.next(1,3) & "random2" etc. The string registers all of this as a string and doesn't actually calculate random numbers. Is there any way to fix this? I know that was confusing, …

Member Avatar for Resentful
0
121
Member Avatar for scottdurica

I'm building a program allows me to answer questions with radio buttons, and then save a list of the questions and the selected answers to a .txt file which I can convert to a .pdf from Word or some other program. Im using a PrintWriter to write the file, and …

Member Avatar for mcriscolo
0
736
Member Avatar for XerX

In a statistics book there is an algorithm of generating pseudo-random numbers with uniform distribution [0,1]. It says: I. Enter an initial variable X positive integer. II. Multiply X by variable "a", which should be at least 5 digits long. III. Divide a*X by value p (positive integer). IV. Take …

Member Avatar for mrnutty
0
4K
Member Avatar for PhysicsExpert

[CODE]Table table; table.UpdateSeats(false, false, false, false, false, false); std::list<bool>::iterator Test = table.GetSeats(); std::cout << "The current status of seats: "; for (int i = 0; i < 6; ++i) { std::cout << " " << *Test; ++Test; std::cout << std::endl; }[/CODE] No compiler errors or warnings, just a Debug Assertion …

Member Avatar for PhysicsExpert
0
814
Member Avatar for dotancohen

Hi all, first post. I am a C# novice, but I have some experience in other C-derived languages. I am trying to close a Windows Form and open another. This is the code that I am trying to use: [code=c#] FormChat fm = new FormChat(client, username); fm.Show(); fm.Activate(); this.Close(); [/code] …

Member Avatar for dotancohen
0
189
Member Avatar for agam360

I have tried every thing but it wont work...This program get md5 hashes of files. Here is all of my source code, please help me: ERROR: When trying to put data of MD5Hashes the program automatically sends an empty slot in the array, I even tried to push it one …

Member Avatar for ShahanDev
0
218
Member Avatar for SpecialForce

I have the following code: [CODE] #include "stdafx.h" #include <windows.h> #include <GdiPlus.h> #pragma comment( lib, "gdiplus" ) int GetEncoderClsid(const WCHAR* format, CLSID* pClsid); void gdiscreen(); void gdiscreen() { using namespace Gdiplus; GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); { HDC scrdc, memdc; HBITMAP membit; scrdc = ::GetDC(0); int Height = …

Member Avatar for SpecialForce
0
657
Member Avatar for plasticfood

[CODE] vowels = wordcount.vowelNum(); //counts the vowels consonants = wordcount.consNum(); //counts the consonants, this is not working properly. [/CODE] the consNum() method: [CODE] int length = word.length(); for(int i = 0; i < length; i++){ if(word.charAt(i) == 'a' || word.charAt(i) == 'u'|| word.charAt(i) == 'i'|| word.charAt(i) == 'e'|| word.charAt(i) == …

Member Avatar for plasticfood
0
102
Member Avatar for zakben1

Advice on vb graphics By john g in VB.NET Hi I have been searching the internet for some time but am none the wiser reguarding my problem. I am trying to build a drawing application The idea is to use mouse down, mouse move, mouse up events On mouse down …

Member Avatar for zakben1
0
84
Member Avatar for Mr_PoP

TIMERS.h: [CODE]#include "includes.h" class servtime { public: int sec() { int sec; time_t rawtime; tm * timeinfo; time(&rawtime); timeinfo=localtime(&rawtime); sec=timeinfo->tm_sec; return sec; } int mint() { int min; time_t rawtime; tm * timeinfo; time(&rawtime); timeinfo=localtime(&rawtime); min=timeinfo->tm_min; return min; } int hour() { int hour; time_t rawtime; tm * timeinfo; time(&rawtime); …

Member Avatar for Mr_PoP
0
355
Member Avatar for v_janssens

Hi there, Im a structural engineer (so excuse my limited knowledge of C++ and programming in general) and write analysis programs using microsoft visual studio. I've developed a few programs that run within VS but am wondering how I would go about making these stand alone apps/programs anyone could use …

Member Avatar for v_janssens
0
3K
Member Avatar for vedro-compota

Hi friends) I have such error in my code- [QUOTE]Object reference not set to an instance of an object[/QUOTE] code - [CODE] int n1, n2; if (dataGridView1[2, 0].Value != "") [B]if (int.TryParse(dataGridView1[2, 0].Value.ToString(), out n1) == false)[/B]{}[/CODE] If I do not specify the value of the cell - this code …

Member Avatar for vedro-compota
0
113
Member Avatar for The 7331 Geek

Hello everyone. I am working on a simple program called "Who's Connected?" where it runs a command (netstat -aon) and then displays the results in a multi-lined textbox. However, when I press the button that will run the command, it tells me that it can't convert the string to an …

Member Avatar for The 7331 Geek
0
3K
Member Avatar for AngelicOne

How to utilize a webcam to capture an image that will be store in database. The form has a button "take photo", and a form will open wherein the webcam is running and a button "capture" would be click to take a photo shot. How to do this?

Member Avatar for OnePostWonder
0
88
Member Avatar for AhmedGhazey

Hello I make java application that read String from text field and convert it to another String it may consider type of encoding . but i want process character by character when user still typing on the the text field. i.e. a-->s ah-->sd ahm-->sdf ahme-->sdfg ahmed-->sdfgh any one can help. …

Member Avatar for AhmedGhazey
0
89
Member Avatar for alexchen

I need to calculate the area of a triangle using this formula. What is wrong with my code? error C2063: 'p' : not a function [CODE]#include <stdio.h> void Area(int a, int b, int c) { int p = a * b * c; int area = (p(p - a)(p - …

Member Avatar for alexchen
0
115
Member Avatar for hannesvdc

Hi all, I want to make my own widgets in c++, but don't know where to start. I didn't find any examples, tutorials,... on google. I know there are some toolkits like qt, gtk+, wxwidgets, and i've used them already, but i want to make some myself. Qt says to …

Member Avatar for hannesvdc
0
1K
Member Avatar for vn412

Hi, I m usng Ms-Access 2007 with vb.net. My problem is that I have a table with column name strval which has following values: 2,3,43,5,6 etc in each row. Now I want to search for that row which contains e.g 2 in cloumn strval . i use SELECT * FROM …

Member Avatar for zinnqu
0
80
Member Avatar for SpecialForce

Hello, I am trying to create a program to read text from clipboard. It works great, but when I copy a file the program crashes. I am trying to make it to ignore any files and only output text. My code so far is the following: [CODE]#include "stdafx.h" #include <iostream> …

Member Avatar for Ancient Dragon
0
153
Member Avatar for SpecialForce

Hello, I am trying to upload a file via ftp using the library curl. Of course I looked [URL="http://curl.haxx.se/libcurl/c/example.html"]here[/URL] but the exemples don't say how to do this using usarname and password. Aslo the code is in C and if I compile it in C++ I am getting: [CODE]error C2664: …

Member Avatar for SpecialForce
0
2K
Member Avatar for EntangledDesi

I need to create a script that will validate all of the text boxes the user must fill out by ensuring that: 1. the user inputs doesn’t leave any boxes empty 2. the user inputs a valid zip code 3. the user inputs a valid a email address [CODE][color="Red"]<!-- Hide …

Member Avatar for foxytease07
0
154
Member Avatar for terabyte

I coded a simple program that pretends two users input random characters and the program tells you which user wrote what [CODE]#include <stdio.h> int main(void) { int x; char user; char ch; puts("type a character"); for(x = 0;x < 9; x++) { if(x%2 == 1) { user = 'x'; } …

Member Avatar for terabyte
0
105
Member Avatar for sonakrish

hi there... i need to know the difference between varchar and varchar2 datatype in oracle

Member Avatar for sham.karankal
0
97
Member Avatar for headedtomexico

this was probably a bad idea to begin with since i've never messed with multithreading or the sapi... but i got the sapi working on its own, but when I put it in its own thread it wont speak anymore. I've tried over and over and over.... i'm not sure …

Member Avatar for donaldw
0
435
Member Avatar for nalasimbha

Hello, I have a dll that I wrote and a driver program to call that dll. Both the programs were written in VC++ 2008 express edition. The program takes in 2 strings as a command line argument and passes it to the dll which prints the 2 strings in the …

Member Avatar for Narue
0
308
Member Avatar for MrCapuchino

Hello, I have a Text file containing the english dictionary, it is 237,000 words long and in each line of the text file there is a word. What I want to do is obtain a word from the textfile randomly. I don't think reading the text file to end and …

Member Avatar for MrCapuchino
0
2K
Member Avatar for newbie14

ear All, I have java function as below. If you notice this class calls another class that is SMSClient and in that class I have other classes called too. So then I write a php as below and is just call this function and return the results. I want to …

Member Avatar for newbie14
0
358
Member Avatar for Mr_PoP

[CODE] time_t rawtime; struct tm * timeinfo; char sec [80]; char min [80]; char hour [80]; char year[80]; char month[80]; char day[80]; time ( &rawtime ); timeinfo = localtime ( &rawtime ); string timetest; timetest= strftime (sec,80,"%S",timeinfo); timetest= strftime (min,80,"%M",timeinfo); timetest= strftime (hour,80,"%H",timeinfo); timetest= strftime (year,80,"%Y",timeinfo); timetest= strftime (month,80,"%m",timeinfo); timetest= …

Member Avatar for Mr_PoP
0
89
Member Avatar for darkseid

hi. i'm trying to convert a value from an array to a value from another array based on the index ex: string[] abc = {"a", "b", "c"}; string[] xyz = {"1", "2", "3"}; so let's say a have a text "aabbcc" .. and where the items from string abc are …

Member Avatar for darkseid
0
149
Member Avatar for AdriftUniform

Hi, I have a successfully working system at the moment where a user can choose a file and upload it to my MYSQL database as a BLOB, but before the image gets saved as a BLOB I want to resize it. I have been giving this a try by using …

Member Avatar for AdriftUniform
0
2K
Member Avatar for ronnieaka

the answer to this i found on the web was this: The AWT event dispatcher thread is not a daemon thread. You must explicitly call System.exit to terminate the JVM. and what i understand of it is that the thread which is terminated when we close a JFrame or Applet …

Member Avatar for JamesCherrill
0
565
Member Avatar for scottdurica

Hi all, Im trying to create and write to a file to create a "list" type document that I can convert to .pdf and print out later on. Below is an example of what I'm doing. [I]out[/I] is my file and list in a string array that holds the answers …

Member Avatar for scottdurica
0
207
Member Avatar for branding4you

Im new at PHP but learning fast, I need help on getting the mysql result into the $imagedir value [CODE]//Select Query for images from db $query="SELECT id, fld_imagename FROM tbl_banner"; $result = mysql_query($query) or die(mysql_error()); //Loop to get path from query while($row = mysql_fetch_array( $result )) { $mydir = "imge_uploads/".$row['fld_imagename']. …

Member Avatar for diafol
0
83
Member Avatar for p0l4rb34r

I have posted in some other forums and im sorry for people who have already seen something like this from me, but i was hoping if i could get some different views and opinions. I have probably very bsic computer knowledge and no programming knowledge, however, i have recently took …

Member Avatar for asterix15
0
175
Member Avatar for PM312

i am using font style [B]Bookman Old Style [/B]and size 12 for my Project but the default font type is Ms Sans Serif and size is 8. Can default size be set to Bookman Old Style and font size 12. Thanks

Member Avatar for PM312
0
134
Member Avatar for h20

Hi all, I have trouble in updating my data using update query in which i need to update the a particular student id.Currently in my database table, I have the attendance table below and i need to update it using php update statement. ID Date 143 1/1/10 143 2/1/10 143 …

Member Avatar for diafol
0
207
Member Avatar for sureshg09

HI Friends, On Button click(postback), my dropdownlist of gridview is getting blank, so i m getting error of "Object Reference...." on the line "ddl.selecteditem.value" Also, dropdownlist's selectedindexchanged event is fired on Button Click(Page Postback), which is making the dropdownlist to go blank. AutoPostBack of dropdownlist is set as False, still …

Member Avatar for jugosoft
0
749
Member Avatar for Rass Saee

The following program compiles (using MS Visual Studio 2010) with no errors or warnings and runs without any error, why? Thanks in advance for explanation. [CODE]#include <stdio.h> int f[3] = { 1,2,3 }; int g[4] = { 12,45,55,65 }; int main(int argc, char *argv[]) { printf("%d\n", f[5]); return 0; } …

Member Avatar for asterix15
0
100
Member Avatar for jamesyrawr

I am fairly new to php but i do have some knowledge of it im justnot sure how to code what i want. if anyone can give me some idea of what code i need i'd really appriciate it :) anyway photo names will be uploaded to database with a …

Member Avatar for AdriftUniform
0
962
Member Avatar for vaibhav1983

Hi All, What is the importance of adding a favicon. I recently added a favicon to my site, just because I had it as an action item to do. Does it really affect your Search Engine Rankings, etc. or is it only a part of creating brand value?

Member Avatar for diafol
0
82
Member Avatar for meensatwork

Hello, Is it possible to use ctypes for this? I tried a sample code from net but it is not working. [CODE]from ctypes import cdll myDll = ctypes.LoadLibrary('C++dll.dll') mydll.testString()[/CODE] Can u tell me how to load a C++ dll and call the functions from python?

Member Avatar for TrustyTony
0
1K
Member Avatar for altarek

i have two tables like this i want retrive cname from person where cid duplicated at per_db and did at per_db=$value i want sql statment return "wael" from person person cname | cid ----------- gamal | 1 wael | 2 samy | 3 ------------- per_db cid | did ---------- 1 …

Member Avatar for smantscheff
0
123
Member Avatar for Xintare

Hi there, I have two tables. The first one holds information about cities: Locations: [code] locID | locationID | locationName | countryCode | 1 | 2922239 | Berlin | de | 2 | 291074 | Paris | fr | 3 | 295522 | Orlando | us | 3 | 292345 …

Member Avatar for smantscheff
0
151

The End.