43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for riotburn

Hi, I have written a program for reversing a digit but I get "error C2664: 'strcpy' : cannot convert parameter 2 from 'std::string' to 'const char *' Which I don't get since strcpy is supposed to change a string to a char array. Any clues for whats going on here? …

Software Development c++
Member Avatar for riotburn
0
328
Member Avatar for DrkNite

OK not the greatest title but this one is not too easy to put in a few words i have a jpg file for example with a custom file extension of jjj for example now i associate .jjj with my application so that when i click a .jjj file my …

Software Development display file-system vb.net
Member Avatar for DrkNite
0
135
Member Avatar for Cap'nKirk

Hi, my app creates some components at runtime such as a PictureBox. Because they are only created at runtime I have no way of setting the ErrorImage through the properties section. I thought I could just add the images I required to the programs resx file but found out that …

Software Development assembly file-system
Member Avatar for Cap'nKirk
0
262
Member Avatar for sajithdil

hi guys, here's the deal i want to create a java program that will record a voice through a microphone and then save it in a reusable format.........only problem is i dont know how its very urgent that i get help for this much appreciated!!!!!!!!!!!!

Software Development audio java
Member Avatar for sajithdil
0
184
Member Avatar for anuragcoder

Hey guys, sorry for the bad rep. But, recently i've obtained a code in c++ which highlights c# syntax in a Richtextbox. [URL="http://www.c-sharpcorner.com/UploadFile/duncanharris/SyntaxHighlightInRichTextBoxP212012005044912AM/SyntaxHighlightInRichTextBoxP2.aspx"]LINK[/URL] I think the basic idea behind it is to specify an array of strings, and now the program should search and highlight the defined strings in a …

Software Development c++
Member Avatar for iamthwee
0
136
Member Avatar for haydensewell

from this starting point: matrix = [[0 for x in range(5)] for y in range(3)] I need to make this: |0 0 0 0 0| |0 0 0 0 0| |0 0 0 0 0| +-+-+-+-+-+ 0 1 2 3 4 I have been trying .append and .replace to try …

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for ollie60

I am trying to create a function that takes in a sorted vector of integers, loops through the vector and if there is a value in the vector that is repeated it deletes that entry. This is what I have so far and I am not too sure how to …

Software Development c++
Member Avatar for shahramjaved
0
757
Member Avatar for ally1002

hello peers, im working on a game, a pong-ish game there's is supposed to be a pause button but i dont know what to write. this is the first time i use vb. is there such a thing as a suspend method or somthing. im using vb6 thanx for the …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
426
Member Avatar for JameB

I just made a program that takes input from the parallel port(or printer port) of a computer and translates that input to English/Numbers. Its a Morse Code Transmitter translator and a Morse Code Calculator. Anyways, so I have to write a writeup about the program and I am kinda confused …

Software Development c++ printer
Member Avatar for Nick Evan
0
107
Member Avatar for Alex_

I'm trying to make the container to work with one of my classes. But i don't understand what should the overloaded operator contain. Maybe this is because i don't know the container too well... Please give me some insights. This is my class [code=C++] class Complex{ private: int re; int …

Software Development c++
Member Avatar for mitrmkar
0
167
Member Avatar for geoNeo_

Hi everyone! Just a quick question: I have made a little personal application using the notification icon class, and I would like the balloon tip message/title to pop up every 30 minutes - how would I go abou that ? Fanx guys ! Go well and happy coding ! :)

Software Development
Member Avatar for nick.crane
0
100
Member Avatar for Anigmalee

Hi, I want to set Textbox1 to textbox 55 to .readonly =true by using says For loop,so i need not key in one by one. Any ways to do it? I know sonthing like [CODE] For index As Integer = 1 To 55 Me.b.Controls("Textbox" & index).Text = index Me.b.Controls("Textbox" & …

Software Development vb.net
Member Avatar for crazyhorse09
1
1K
Member Avatar for tinanewtonart

In this program we are going to simulate a simple card game. The rules are that the player selects a card out of a deck of 52 cards. The computer picks a random card out of the deck. The person with the highest card face number wins. In this program …

Software Development c++
Member Avatar for kvprajapati
0
6K
Member Avatar for tuomari

Hi! I have been looking into this the whole day, and I haven't found any good straight answers to my problem. So what i am trying to do, is that I have a XML file where i have defined for example what is the name of the column (In this …

Software Development asp.net c# xml
Member Avatar for kvprajapati
0
201
Member Avatar for P00dle

I wrote a program that has to process any files that are put in a specified folder. I would like to keep track of those threads, though, preferably via some sort of process id or something. is there any way that I can get a list of the threads that …

Software Development java
Member Avatar for P00dle
0
187
Member Avatar for stabzagg

Hey there, I have written some code to draw a grid on a canvas but the code is far to long.. so I was wondering what the most efficient way to write my code would be. [CODE] self._canvas = Canvas(self, width = 450, height = 450, bg ='white', highlightthickness = …

Software Development python tkinter
Member Avatar for morgadao
0
5K
Member Avatar for ypdev

Hi, I am trying to pass query string from one page to popup window as follow: [CODE]Dim popupScript As String = "window.open('cFinder.aspx?cName=" & c_TextBox.Text & "','', 'width=420,height=200,menubar=no,scrollbars=yes');" If (Not Page.ClientScript.IsStartupScriptRegistered("popup")) Then Page.ClientScript.RegisterStartupScript(Me.GetType(), "popup", popupScript, True) End If[/CODE] The popup window comes up very well only if the text I typed …

Software Development open-source vb.net
Member Avatar for kvprajapati
0
272
Member Avatar for zizi

I really do believe that I’m not asking a good question, but I’m new newbie When I’m programming for example I try to use the contain method for finding a value in the dictionary data type: I cud do it in my mind by two way: dict.Values.Contains(str)(however I had an …

Software Development
Member Avatar for apegram
0
99
Member Avatar for sachintha81

The following registry key contains many system default folder locations. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders The value for the path of the All Users desktop, which is found there, is as follows: XP or earlier : %ALLUSERSPROFILE%\Desktop Vista or later: %PUBLIC%\Desktop Whereas the actual paths of the All User desktops, respectively, are …

Software Development microsoft-windows windows-vista
Member Avatar for sachintha81
0
338
Member Avatar for dorotalp91

is it important to close a file thats been opened with FileWriter? if yes how come??

Software Development java
Member Avatar for dorotalp91
0
116
Member Avatar for PinoyDev

Good day guys! I just want a little help about recordset navigation to act when i click Previous and Next button. I have created the navigation code but it jumps the records on a table..My code below. [code=vb] '==========================In class module(clsCheque_Navigation)======================== Option Explicit Private Nav_chkno As String 'Store current page …

Software Development visual-basic
Member Avatar for PinoyDev
0
105
Member Avatar for fougere

Hello. I am writing a program with some dynamic arrays of pointers to objects (not arrays of objects). Since there will be A LOT of tacking on new objects to the arrays, for the purposes of efficiency, I am implementing an algorithm to fill up a buffer array first and …

Software Development algorithm c++
Member Avatar for fougere
0
153
Member Avatar for abhimanipal

Hello Everybody, I have a small doubt regarding how we can call constructors in a C++ class [CODE]class test { public: test() { cout<<"In test\n"; } }; int main() { test t1; test t2(); // This call does not give compile time error but does not call the constructor cin.get(); …

Software Development c++
Member Avatar for abhimanipal
0
107
Member Avatar for niehaoma

Newbie. Sorry for lame question. I want to use each bit in an int (binary number) as a boolean. In essence (this is c"ish" pseudocode): [CODE] bitVal = 0x01F; // 32-bit value for(i=0; i <LIST_SIZE; i++){ if(bitVal[i] == 1) printf(List[i]) }[/CODE] So, for Python, I just need to know how …

Software Development python
Member Avatar for TrustyTony
0
123
Member Avatar for domingo

hi, I found on the net that to make a query one needs to create a dataset. therefore i have created a datatable to this dataset with 3 columns into into. Now i have created a query to display the information according to the query. the problem is that i …

Software Development dataset
Member Avatar for domingo
0
179
Member Avatar for mcheng

Hi, i'm new to C++ and i understand someone else has asked this question on this forum before. I read the replies but still don't know how to resolve my error. gcc version is 4.2.2. The linker error i encountered is build_products/shared/x86/sgos_native/debug/gcc_v4.4.2/ced.o: In function `CEA_Disk_lister::CEA_Disk_lister(CEA_Disk*)': ced.cpp:(.text._ZN15CEA_Disk_listerC1EP8CEA_Disk[_ZN15CEA_Disk_listerC1EP8CEA_Disk]+0x25): undefined reference to `vtable …

Software Development c++
Member Avatar for Narue
0
1K
Member Avatar for Prakash_8111

Hi gusy, Can any one suggest , how to install DBD::mysql on windows mechine. (Its eating my head). I tried all the possible ways , but its not installing. 1) I tried to install directly from cpan , failed 2) manually downloaded, and tried to install, still failing : showing …

Software Development mysql perl
Member Avatar for dseeland
0
171
Member Avatar for Cap'nKirk

Hi, in part of my app I have to load an XML file and read an Attribute from it to output in a MessageBox. The MessageBox is called from a click event on a DataGridView. The way I have the code below I get an error that my INT gSize …

Software Development xml
Member Avatar for Cap'nKirk
0
121
Member Avatar for geoNeo_

Hey guys! Hope you all doing well :) I have the following error in my assemblies: 'System.CodeDom.Compiler.CodeDomProvider.CreateCompiler()' is obsolete: '"Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class. Those inheriting from CodeDomProvider must still implement this interface, and should exclude this …

Software Development
Member Avatar for geoNeo_
0
549
Member Avatar for kvass

Hey guys~! I am working on a code and I am having some difficulties with it -- Basically I have a 3x3 grid of JButtons that represent the squares on a TicTacToe grid. The code seems to run fine but then after it determines a victor it crashes and says …

Software Development gaming java java-swing
Member Avatar for BestJewSinceJC
0
475
Member Avatar for Cowbox

Hai, I've been fiddling around with char, char* and string and thoroughly confusing myself as to what the actual differences are but all in all, I couldn't seem to figure out a way to edit a string/char/char* to do something like this automatically: [I]"File1.txt" "File2.txt" "File3.txt" etc.[/I] None of the …

Software Development c++
Member Avatar for Cowbox
0
109
Member Avatar for vlady

Hello, I am learning dictionaries and I need help. Here is a script and the task is to modify print_hist to print the keys and their values in alphabetical order. I imagine that the result should be like this: d 2 o 1 r 1 v 1 thing is I …

Software Development python
Member Avatar for woooee
0
143
Member Avatar for bufospro

Hi all, I would like to make a method that replace from a string the character k with x if the number of characters k is bigger than the x number, and the opposite replace. My code is : [CODE] class Replacing_class { public static String changeString(String str) { char …

Software Development java
Member Avatar for bufospro
0
103
Member Avatar for anuragcoder

As the title suggests Any help for keypress action folks?? Do we have a keypress func in c++. I'm runnin Win Xp Dev c++

Software Development c++
Member Avatar for daviddoria
0
116
Member Avatar for Usura

hey, i need both the import.sql.date; and import.util.date, at the moment im importing them like import.sql.*; import.util.*; How do i specify which library i want for any particular Date object?

Software Development java sql
Member Avatar for ~s.o.s~
0
122
Member Avatar for BDS_AT

All, I have a DataGridView bound to an XML file, then I add an unbound column of checkboxes to the DGV. [CODE] private void btnReconcile_Click(object sender, EventArgs e) { DataSet ds = new DataSet(); ds.ReadXml(txtPath.Text); DataSet modds = new DataSet(); DataTable dt = new DataTable(); dt = ds.Tables[0].Clone(); foreach (DataTable …

Software Development dataset vb.net xml
Member Avatar for BDS_AT
0
2K
Member Avatar for coop123

[code] string sqlInsert = "INSERT INTO Transaction " + "(VIN, Price, TranDate, TranType) " + "VALUES('" + VIN + "', '" + price + "', '" + aDate + "', '" + transType + "')"; // check SQL string in Output window for debugging Console.WriteLine(sqlInsert); myDataAdapter = new OleDbDataAdapter(); //insert …

Software Development sql
Member Avatar for coop123
0
111
Member Avatar for anuragcoder

This is my code to create a new file below. The main problem is that the program does not halt for entering file name and also the program creates a file .txt and doesn't save anything in it. Please Help [CODE]int newfile() { system("cls"); cout <<"\t\t-------------------------------------" <<endl; cout <<"\t\t| NEW …

Software Development c++
Member Avatar for daviddoria
0
107
Member Avatar for bettybarnes

im having a problem with making stack with array converted to linked list so far this is my code ... [CODE]import java.util.*; public class Nkakainis { public static void main(String[] args){ Stack <String> istak = new Stack<String>(); String[] names = {"john", "mark", "peter"}; List<String> list1 = Arrays.asList(names); System.out.println("pushed " + …

Software Development java linked-list
Member Avatar for bettybarnes
0
79
Member Avatar for bausahab

hello all, I need assistance on MS Access 2007 database with C#, I have a form with many textboxes.. and i need to store these userfilled data to my database! and after that I need to see detail of any perticular item form database!!! please say how to do this...

Software Development c#
Member Avatar for finito
0
152
Member Avatar for addxztion

So uhm...I want to do the bubble sort and i found a code but actually i don't really know what's missing...ok...sorry but i am just a newbie and not so average of logic(lol. :p). My goal here is to complete this code, 'cause i tried to run it but it …

Software Development c
Member Avatar for addxztion
0
169
Member Avatar for deanus

Hi, can anyone tell me how to access a specific memory location in C++ (I use Dev-C++ 4.9.9.2) without the OS giving me an error and stopping the execution of my prog? I've tried the following code on both WinXP and Win98, but they both gave me an error : …

Software Development c++
Member Avatar for deanus
0
227
Member Avatar for ceyesuma

Hello I am learning how to use setString() for "?" and using passwords in resultsets. my password ends up with the error [icode]java.sql.SQLException: Invalid cursor state - no current row.[/icode] Can this error be corrected? thanks. [code] run: driver tableName from xml: org.apache.derby.jdbc.EmbeddedDriver in StudentDAO.JAVA and in connect of the …

Software Development apache java xml
Member Avatar for ceyesuma
1
1K
Member Avatar for pritesh2010

Many of the student don't know how to find connection string, if they find then there will be some mistake. it's a simple idea to find connection string try it. and vote for it how to find connection string of any database or any server like, access or sql or …

Software Development oracle vb.net
Member Avatar for etftw
0
1K
Member Avatar for ceyesuma

Hello if I create newUser which is new StudentBean() why is StudentBean studentBean not equal newUser? [b] output [/b] [code] run: driver tableName from xml: org.apache.derby.jdbc.EmbeddedDriver in bCreatedTables: created table: createAdminTable created table: createPayeeTable created table: createStudentTable created table: createInstructorTable created table: createBookingTable created table: createInstrAvailableTable created table: createInstrumentTable created …

Software Development apache gui java xml
Member Avatar for stultuske
0
184
Member Avatar for Nitin Daphale

[COLOR="Red"]I just want to know that how to make a (NoOfChildrens)[B][I]tinyint[/I][/B] data type to an [B][I] unsigned tinyint[/I][/B] data type through SQL Server Management Studio Express ?[/COLOR] Where 'NoOfChildrens' is a column in table named Family in the database.

Software Development
Member Avatar for Ketsuekiame
0
394
Member Avatar for priyam1309

I have created a DLL file using VB6.0 and the registered the DLL into another server. Now I have created a DTS Package (ActiveX Task) which will create object of the DLL and call a particular function. The problem is when I execute the DTS task from my ID, everything …

Software Development sql visual-basic
Member Avatar for finito
0
447
Member Avatar for KE50

Hello All, I have been trying to send data to a pole display i.e. DigiPos WD202, I am trying to use the following code but nothing appears on the display [B]Procedure CSPortWrite(PortID, PortData : string); var f: THandle; NumberWritten : dword; begin NumberWritten := 0; //assigns the stream to the …

Software Development display pascal printer
Member Avatar for KE50
0
408
Member Avatar for chialoo

The two characters (one, two) have the same values generated. How can I make them have different numbers generated? Currently, the out put is: "The character has 2 eyes, an age of 66, and 8 legs. The character has 2 eyes, an age of 66, and 8 legs." I want …

Software Development c++
Member Avatar for WaltP
0
126
Member Avatar for JMChurch25

Hello, This is my first post on DaniWeb and will probably not be the last so I hope I'm doing this right: I'm currently working on a Sudoku Solver that allows the user to type in the name of a Sudoku text file that looks like this: 6 8 . …

Software Development first-post java puzzle
Member Avatar for vanessa1106
0
973

The End.