132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cppgangster

Hi how to access standard input buffer to get 1 and second character from there? for c++ there is a function named peek() but in c libraries I can find one...

Software Development c
Member Avatar for Ancient Dragon
0
152
Member Avatar for Tarkenfire

Okay, I'm working on a project for class, and...I can't seem to get...subtraction to work right with regards to an object in a class, let me just post the code, here's the block in the main file: [CODE]class KeyHandler extends KeyAdapter { @Override public void keyPressed(KeyEvent e) { char character …

Software Development java
Member Avatar for Tarkenfire
0
114
Member Avatar for jemz

hello... can you help me please, i make a program GUI and my problem is that how can i change the GUI or to remove those minimize,restore,close on top at the right side of the GUI,is it possible?.Please help me thank you in advance hoping for your positive response...

Software Development gui java
Member Avatar for Majestics
0
246
Member Avatar for denkfix

Hi, I use the stl features to deal with string conversions, especially facets. Now, I am faced with the task to lower a string except its first letter. Please note that I am dealing with multi-byte characters and so I cannot simply replace the first character of the string with …

Software Development c++
Member Avatar for denkfix
0
223
Member Avatar for jaxber

Urgent! How to display this function,use symbol"*" to draw line Here teacher gave one method to perform this function [code] public static long evaluations; public static double func(double x) { double result; result = Math.abs( Math.sin(0.017453292519943295769236907684886*x) * (x/90) ); evaluations++; return result; } } [/code] question is how to use …

Software Development display java wordpress
Member Avatar for JamesCherrill
0
253
Member Avatar for zebnoon

hi everybody! I want to create a complete database (Tables,Fields name etc) in MS Access via vb6 database object and using SQL queries at run time this database will create when first time project load. may i have to create function in Module and where i will need i will …

Software Development visual-basic
Member Avatar for zebnoon
0
110
Member Avatar for samueal

Hi I have a access database that contains foreign characters(Hebrew language). How can i search the values in the column by using c#? This is my code: SELECT * FROM "table name" WHERE column_name LIKE '%שגל%' I'm getting this error: Syntax Error in SQl statement Can anyone please afford your …

Software Development c# microsoft-access
Member Avatar for samueal
0
112
Member Avatar for Arjun_Sarankulu

I am having a desktop application which take the csv file and dump the data to the database. At the Page Load there is table name in the combo-box I browse the file and select the table name from combo-box and data get dump to appropriate table It working fine …

Software Development
Member Avatar for Knvn
0
200
Member Avatar for deucalion0

Hey guys, I have created a piece of software that connects to a wii remote and detects hand gestures. The results trigger a command to a robot via infrared. So it is basically a simple game. The proigram done, I now need to establish a list of Functional and Non-Functional …

Software Development
Member Avatar for deucalion0
0
156
Member Avatar for xanawa

i have these two tables connected to each other [B]tblOrder[/B] ID - int (P.K.) DateTime - datetime TotalPrice - money StaffID - int OrderTypeID - int ReservationID - int (F.K.) [COLOR="Green"]can be null[/COLOR] Paid - bit [B]tblReservation[/B] ID - int (P.K.) DateTimeReservation - datetime NumberOfPeople - int DateTimeOfEvent - datetime …

Software Development sql
Member Avatar for xanawa
0
252
Member Avatar for SOME one2020

i have write that code i m new in programming this code doesnt work in one source file but when i type exact same in other file it start working [CODE]#include <iostream.h> main() { char std1[20], std2[20] cout << "enter your name student"<<"\n"; cin >> std1; cout << "enter your …

Software Development c++
Member Avatar for SOME one2020
0
88
Member Avatar for girishsp

hi all, i have designed a form which contains few controls,i want to do validation upon button click, i used errorprovider to set error if that field is empty i used the following code [CODE]bool No_Error = true; if(OfficeNameComboBox.Text == "") { OffNameErrorProvider.SetError(OfficeNameComboBox,"Invalid Input"); return No_Error=false; }[/CODE] i dont want …

Software Development
Member Avatar for Knvn
0
113
Member Avatar for Behseini

Hi Can you please let me know if I execute several sql query with one open connection? For example if I have a code like following: [CODE] using System; using System.Data; using Oracle.DataAccess.Client; class OracleCommandSample { static void Main() { string constr = "User Id=scott;Password=tiger;Data Source=oracle"; OracleConnection con = new …

Software Development open-source oracle
Member Avatar for Alan81
0
1K
Member Avatar for tonysun

Hi, I'm trying to link c object with c++ (using QT Library) object and find the following error. tonysun:~/tmp# g++ -c main.cpp tonysun:~/tmp# gcc -c mainlib.c tonysun:~/tmp# g++ -o main main.o mainlib.o [ICODE]main.cpp:(.text+0x64): undefined reference to `para_prep()'[/ICODE] <<main.cpp>> [CODE]#include "mainlib.h" int main(int argc, char *argv[]) { para_prep(); /* Here are …

Software Development c++ qt
Member Avatar for tonysun
0
4K
Member Avatar for caierhui

i am using netbeans and MySQL. i made an inventory application with a server host name "local host:3306". how do i distribute it to other computer? should i change the server host in mysql?

Software Development java java-netbeans mysql
Member Avatar for mKorbel
0
129
Member Avatar for ankitkshah

Hi all, I have some code as following. BOOL qw = ExtractResource(AfxGetResourceHandle(), IDR_DLL1, _T("C:\\VBDLL.dll") ); bool ExtractResource(const HINSTANCE hInstance, WORD resourceID, LPCTSTR szOutputFilename) { /*LPTSTR sArgv = argv[1]; LPTSTR sArgv2 = argv[2];*/ TCHAR sResName[5] = _T("#101"); TCHAR sRestype[4] = _T("DLL"); HRSRC hres = FindResource(AfxGetResourceHandle(), sResName,sRestype); if (hres == 0) { …

Software Development c++
Member Avatar for ankitkshah
0
259
Member Avatar for ankitkshah

Hi.. I am working with vb.net .. I am new in vc++. I need to write some code in vc++ in some case. I need vc++ for following reason. I created one dll in vb.net and make a tlb file based on vb.net dll. I import physical tlb file in …

Software Development c++ visual-studio
Member Avatar for ankitkshah
0
285
Member Avatar for valter

I am finding that vs2010 seems to have problems playing videos. I will be very grateful if anyone can point me in the right direction. I can play avi etc on Windows Media Player ok. But I need to play mov files in my app. I have tried quicktime, but …

Software Development video
Member Avatar for valter
0
528
Member Avatar for yongj

So with my program I'm trying to count the number of operations it takes to perform a insertion sort/quick sort. And because functions are calling other functions from inherited classes, it gets a bit confusing as to where I can place the operation to increment the number of operations. Right …

Software Development c++ dataset visual-studio
Member Avatar for mitrmkar
0
264
Member Avatar for zachcoenen4

I have been trying for about 6 hours to get this program to work. It's a C++ program for for loops. I am trying to go through a book, but I don't have source code for how this should be. I need to make a program that looks like this …

Software Development c++ open-source programming-construct
Member Avatar for zeeshan soomro
0
470
Member Avatar for sushanth08

hello, i have a win application which im doing using C# and .NET in Visual Studio 2010 i have a data grid to which im binding some data from the database. i also have two radio buttons to which im binding distinct values of a particular column from the same …

Software Development visual-studio
Member Avatar for Mitja Bonca
0
120
Member Avatar for jmcginny5

I have this code written. One of the problems that I am having is in "Test 6". It should be totaling to $1.11 but it is totaling to $1.8 because it is switching the 6 and 3 and I cant figure out why. Another problem is that for some of …

Software Development c++
0
91
Member Avatar for Khoanyneosr

So i need to find a way to prompt the user for an answer (cin) while a timer is running. Like if the user doesn't answer in time then... or after a certain period of time passes an event occurs. Please Tell me if i'm being too vague. Thanks

Software Development c++
Member Avatar for triumphost
0
86
Member Avatar for odane4eva

I would like to download a Java applet to my pc. Can someone please help me. Here is website that has the applet. [url]http://www.digital-recordings.com/cgi-bin/www-dfg-warble.cgi[/url]

Software Development java
Member Avatar for souki1991
0
1K
Member Avatar for jimmymack

[CODE]// test.cpp - Script 6.7 #include <iostream> // Function prototype. // Function takes two arguements. // Function returns no values. void changeVar(int *myVar, int newValue); int main() { // Create a new variable. int myNum = 20; // Print its current value. std::cout << "myNum is " << myNum << …

Software Development c++
Member Avatar for jimmymack
0
168
Member Avatar for Behseini

Hi guys, Can you please let me know how I can assign the result of a simple SQL query into a string? Let's say I have a query like: [CODE] string cmd = "Select FName From Emp Where EmpID = 20"); OracleCommand oc = new OracleCommand(cmd, oraConnection); [/CODE] As you …

Software Development sql
Member Avatar for Mitja Bonca
0
236
Member Avatar for chintan_1671

I am creating a Win32 Dll Wrapper around my C# class library. I am able to pass string from my C# to C++ application. But i am not sure as to how can i pass string array in Win32 C++ project. [CODE] //C# code void Test(string lFile, int ver); //C++ …

Software Development c++
Member Avatar for Ancient Dragon
0
444
Member Avatar for zachattack05

I haven't had enough coffee this morning yet and for some reason this doesn't look right. I have two objects that I need to convert into one byte array. One object is already a byte array, and the other is a Guid. Given that sockId is a Guid and commandData …

Software Development
Member Avatar for zachattack05
0
13K
Member Avatar for komyg

Hi, I am developing a REST WCF Web Service using the webHttpBinding. This service is supposed to receive a parameter through HTTP POST and return a byte array (byte[]). However whenever I call the service I get the following respose: [CODE=xml] <base64Binary xmlns="http://schemas.microsoft.com/2003/10/Serialization/">AQEBAAEAFFBBAPQ=</base64Binary> [/CODE] Is there a way to configure …

Software Development xml
Member Avatar for komyg
0
430
Member Avatar for eman 22

How can i get th execution time ?? I tried to use library <time.h> [CODE] clock_t tStart = clock(); //put here my code double executionTime=(clock() - tStart)/CLOCKS_PER_SEC; [/CODE] here the excution time always zero. so what's the error here??

Software Development c++
Member Avatar for eman 22
0
190
Member Avatar for burntout

this may seem stupid, but i wanted to understand a few equations ive incountered. given these declarations of a two dimensional integer [code] Dim table As Integer(,) = New Integer(2,4) {{2,3,5,4,0},{4,3,1,2,6},{1,3,0,5,2}} Dim intA as integer = 1 Dim intB as integer = 4 [/code] figure out the value of int …

Software Development vb.net
Member Avatar for Tarkenfire
0
199
Member Avatar for L0s3r

[CODE]int main() { FILE *fp; unsigned long size; unsigned char *loc; fp=fopen("Hello.exe","rb"); if(fp==NULL) { printf("\nCouldn't load file"); getchar(); return 0; } fseek(fp,0,SEEK_END); size = ftell(fp); fseek(fp,0,SEEK_SET); loc=(unsigned char*)malloc(sizeof(size)); printf("\nSize of file is : %d",size); if(loc==NULL){ printf("\nError in allocating memory."); } printf("\nFread called"); fread(loc,size,1,fp); printf("\nFread fails:"); return 0; } [/CODE] I …

Software Development c++
Member Avatar for nezachem
0
190
Member Avatar for DaveTran

I have a Ref class [code] public class Ref<T> { private Func<T> getter; private Action<T> setter; /// <summary> /// For XML Serialization /// </summary> private Ref() { } public Ref(Func<T> getter, Action<T> setter) { this.getter = getter; this.setter = setter; } public Func<T> Getter { get { return getter; } …

Software Development xml
Member Avatar for DaveTran
0
164
Member Avatar for Shruti4444

I have a text file for example abc, cde,fgh, jkl, rty qwe,erty, tyujk,werty , lkjh I want to read these tokens from the text file, into different variables row wise (ie one row at at time) Number of tokens in a row is fixed. (ie 5 in this case) Please …

Software Development c++
Member Avatar for sfuo
0
172
Member Avatar for aanders5

Ok...my mind is exploding right now lol. I can't figure out a good way to parse Google results. I am making a game tool, that will look up the 5 most recent news for a specified clan, within the past month, and for only 1 site. So what I have …

Software Development html-css java
Member Avatar for aanders5
0
153
Member Avatar for dyingatmidnight

Hello, I haven't done any work with reading or writing from/to files in C++, I think we did some C in school but its all a little fuzzy at this point. What I need to do is store the values for a couple different functions in a text file, have …

Software Development c++
Member Avatar for VernonDozier
0
171
Member Avatar for lee.j.baxter

Hi folks, Okay, here's the scenario; I've got 2 DLLs, "A.dll" and "B.dll", that I'm referencing within my VS2010 C# project, "ProjectC". "B.dll" also contains a reference to "A.dll". "A.dll" contains a class, [ICODE]ClassA[/ICODE], which contains an automatic static property called [ICODE]ClassA.StaticProperty[/ICODE]. Now here's where I'm a bit uncertain as …

Software Development
Member Avatar for lee.j.baxter
0
171
Member Avatar for mbouster

Hi guys, I need to implement a program for simulating the flooting algorithm. Can someone suggest from where to start. I will use structs or classes? How the flow of the program will be?

Software Development algorithm c++
Member Avatar for mbouster
0
2K
Member Avatar for Darion

Well i just bought "python for the absolute begginer" and title says it all. The task at the end of the chapter wants me to print "Game over" and then write something like '\n\nPress the enter key to exit.' which i causes the program with double click however this is …

Software Development python
Member Avatar for Darion
0
371
Member Avatar for qasimhasnain

hello i am try to write a c compiler i have written a lexical analyzer code next is parser can i integrate it with some standard parsers what should be my next step can some one help me through

Software Development c
Member Avatar for L7Sqr
0
156
Member Avatar for eman 22

is there a way to convert from pointer array to array I tried the following, but it doesn't work. [CODE] int[]a={1,2,3}; int* p; p=a; a=(*P);// doesn't work [/CODE]

Software Development c++
Member Avatar for mike_2000_17
0
88
Member Avatar for confusedman

Hello i am new to python and i am getting increasingly worried. I have a deadline on tuesday and i have to make a game in python. I have tried and tried but i am useless at python. Therefore i have decided to finish off a piece of code that …

Software Development python
Member Avatar for TrustyTony
0
314
Member Avatar for choboja621

I`m new in Programming stuffs. So here is my codes: [CODE]#include<iostream.h> #include<conio.h> float records[5][5]; float ave; int ctrX, ctrY; main() { clrscr(); ctrY=0; for(ctrX=0;ctrX<=4;ctrX++) { cout<<"Student Number: "; cin>>records[ctrX][ctrY]; ctrY++; do { cout<<"Quiz 1 Score: "; cin>>records[ctrX][ctrY]; if ((records[ctrX][ctrY]<0)||(records[ctrX][ctrY]>30)) { cout<<"The score supplied must be from 0 to 30 only!" …

Software Development c++
Member Avatar for Moschops
0
99
Member Avatar for kay19

Welp, another problem arise albeit small. Just with Decrementing hours, seconds, and minutes. I seem not get the final results right at all. Keep tinkering with it, and still not getting it. This is my answer 23:00:00 23:00:00 23:00:00. First is right, but the 2nd and 3rd should be 22:58:00 …

Software Development java
Member Avatar for kay19
0
750
Member Avatar for IDC_Sharp

OK, i made a program that you can drag and drop mp3 files to it and it's write there's name. i want that when i will click the button "Save" it will save the mp3 files with the new name in the Desktop. how can i do it? there is …

Software Development xml
Member Avatar for Razer_90
0
144
Member Avatar for sciprog1

Hello Members, I am beginning to work with the JGrapht library. The following is described as the syntax for creating a weighted, directed graph: [CODE]SimpleDirectedWeightedGraph<String, DefaultWeightedEdge> graph = new SimpleDirectedWeightedGraph<String, DefaultWeightedEdge>(DefaultWeightedEdge.class); [/CODE] What is the meaning of including " DefaultWeightedEdge.class" in the above line? I will be grateful for any …

Software Development java
Member Avatar for sciprog1
0
218
Member Avatar for jay.barnes

Hello! I'm working on VBA within MS Access XP, and can't seem to get the proper usage of the split function down. I've been trying to make this work, but I keep getting the "Run-time error '9': Subscript out of range" error. Since the code of my project is kind …

Software Development visual-basic
Member Avatar for BitBlt
0
207
Member Avatar for jeffpro

Hello again guys, I've got kind of a noob question. I have a wchar[260] and I need to compare it with a char* and im getting the error error C2664: '_stricmp' : cannot convert parameter 1 from 'WCHAR [260]' to 'const char *' Thanks!

Software Development c++
Member Avatar for Narue
0
120
Member Avatar for jrp370

i have the code for a simple mail transfer protocol but when i go to compile it in eclipse i get an error along the lines of cant find "main" class, program will now terminate, ive attached the code and would love it if someone could take a look and …

Software Development email java
Member Avatar for jrp370
0
119
Member Avatar for tstory28

I have been working on a pythagorean theorem calculator and am actually stuck on the final bit of code. What I am trying to do is check the values (integers) inside a listbox, remove duplicate number (both values), and input one of the values into a textbox. Here is an …

Software Development vb.net
Member Avatar for tstory28
0
1K

The End.