132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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... | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
[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++ | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
[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++ | |
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 | |
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++ | |
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 … | |
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++ | |
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 | |
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? | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 |
The End.