132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jayee_spicyguy

Header file which contains follwing code please help me [COLOR="Red"]#define X {{1,1,2,3,4,5,66},{3,2,4,1,5,0}} [/COLOR] X was used as a member to another Macro [COLOR="red"] #define Y {X,F,I}[/COLOR] like this F and I also defined in the same format as X My question is how to acess these elements because No where …

Software Development c
Member Avatar for Ancient Dragon
0
81
Member Avatar for zinashamaa

Hi How can i convert code from c++ to VB ....step by step? Thank you in advance

Software Development c++ vb.net
Member Avatar for Jx_Man
0
209
Member Avatar for CoolGamer48

Hey, I'm writing an XML parser in C++. Currently it works, but too much of what needs to be done is left up to the end user. I'm trying to figure out a way to have a clean, more encapsulated interface for the parser, but I can't seem to think …

Software Development c++ user-interface xml
Member Avatar for dougy83
0
118
Member Avatar for Dell XPS

i want to make a hotkeys app ... i need to detect keystrokes even if the form is not active so that by pressing a button i can launh the calculator.... or games and stuff like that... any ideas ? Thank you

Software Development vb.net
Member Avatar for Dell XPS
0
252
Member Avatar for mzd12111

hi There Guys i want to design a mailbox(in windows application mode) so i need to draw a table (in fact a matrix ) which the Columns are "Sender" and "Subject" and the rows are different mails received. but i cant figure out how to draw a table on the …

Software Development database-design
Member Avatar for Ramy Mahrous
0
86
Member Avatar for vs49688

Hey, I have created a small application that has music playing when you run it. currently the mp3 file being played is external to the application. I have included the file in a resource script and is compiled into the application, but how do I get FMOD to play it. …

Software Development c++
Member Avatar for mitrmkar
0
322
Member Avatar for C_isoundu

Hello, I've got this kind of problem, where I want to change a word inside of a text file. apparently, I can use the char to change the character, however, it can't changes any word or sentence, so can any one help me out. much appreciated. [CODE]#include <iostream> #include <fstream> …

Software Development c++ file-stream
Member Avatar for William Hemsworth
0
104
Member Avatar for 13L4D3

I have a .txt file and need to connect it. So in visual c++ do i need ODBC. if yes then can anyone guide me how to start with it.:-/

Software Development c++
Member Avatar for mitrmkar
0
113
Member Avatar for kadajett

[CODE]#include <iostream> #include <fstream.h> #include <string> #include <vector> void input(int, std::string); void output(); using std::vector; using std::ofstream; int main() { std::string filename = "file.txt"; int number; vector<int> tileList(); std::cin >> number; tileList().push_back(number); input(tileList(), filename); output(); return 0; } void input(vector<int> tileList, std::string filename) { //vector<int> tileList; this needs to be …

Software Development c++
Member Avatar for iamthwee
0
102
Member Avatar for bob on whidbey

I'm using D2007 and trying to add a new, blank record to my Access database with code. The DB has a 'day' field and a 'event' field. All works fine when a record exists for the given day. I need to learn how to add a record to the file …

Software Development pascal
Member Avatar for waynera
0
133
Member Avatar for Shadoninja

Is there a command that hides the dos window while the program executes??

Software Development c++
Member Avatar for Prabakar
0
789
Member Avatar for kahaj

I'm trying to get an email generated when a form is processed. This is my first stab at such. It's not working for some reason. When I comment out the lines concerning the email generation, it works fine. The problem apparently lies somewhere in that section of the code, but …

Software Development perl
Member Avatar for kahaj
0
109
Member Avatar for fmwyso

Hey, I googled it and found TONS of pages, but most are for linux/C#/VB and I can't seem to get any C++ code for this X_X. I did a search on the forum, and couldn't find anything either... Anyway, I would like to have my program "ping" a host name …

Software Development c++
Member Avatar for Ancient Dragon
0
222
Member Avatar for soultrav

Hello! I am trying to make a program for string compression using LZ compression techniques, but the program is at the beggining - I fail to realise what goes wrong, but I think it is a problem with string operations. [code=C] #include <stdio.h> #include <conio.h> typedef struct comp { char …

Software Development c
Member Avatar for Narue
0
149
Member Avatar for tommy1988

hi i wanna start programing with python just wondering if any one knew any sites which has python source code? would appreciate any help :)

Software Development python
Member Avatar for AKarnisky
0
216
Member Avatar for kzdev

The following is a visual basic code [CODE] dim Msg1(5) Msg1(1) = "xMessage1" Msg1(2) = "xxMessage2" Msg1(3) = "xxxMessage3" Msg1(4) = "xxxxMessage4" Msg1(5) = "xxxxxMessage5" For cnt = 1 To 5 Debug.Print Msg1(cnt) Next cnt[/CODE] How can I do the same thing with ANSI C? (Instead of Debug.Print can be …

Software Development c visual-basic
Member Avatar for kzdev
0
83
Member Avatar for Shadoninja

I ran into a bug on my program that I couldn't find on my own so I decided to transfer my project from Dev C++ to Microsoft Visual Studio. In Dev I got away with [code] string sName; cin >> sName; [/code] But MVS doesn't like doing that. What is …

Software Development c++ visual-studio
Member Avatar for Narue
0
181
Member Avatar for javax_

[CODE] public class test { public static void main(String [] args) { Person p = new Person("ABC"); p.setName("DEF"); changePerson(p); System.out.println(p.getName()); } public static void changePerson(Person p) { p.setName("GHI"); p = new Person("JKL"); p.setName("MNO"); System.out.println(p.getName()); } } class Person { String name; Person(String name) { this.name=name; } public void setName(String n) …

Software Development java
Member Avatar for javax_
0
131
Member Avatar for bloody_ninja

[code=java] import java.io.*; class Factorial{ public static void main(String[] args) { try{ BufferedReader object = new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter the number"); int a= Integer.parseInt(object.readLine()); int fact= 1; System.out.println("Factorial of " +a+ ":"); for (int i= 1; i<=a; i++){ fact=fact*i; } System.out.println(fact); } catch (Exception e){} } } [/code] Trying numbers …

Software Development java
Member Avatar for mzd12111
0
204
Member Avatar for sciwizeh

are there any good (comprehensive) tutorials that anyone knows of for the SAX parser? i cannot find a good one

Software Development java
Member Avatar for sciwizeh
0
83
Member Avatar for brk235

Hi friends i have one question about OOP. I have [CODE]class A { /function body here }; class B:public A { /function body here }; class C:public A { /function body here }; int main() { B b[20]; C c[40]; } [/CODE] Each object of the derived classes(B and C)has …

Software Development c++ oop
Member Avatar for vijayan121
0
124
Member Avatar for shadwickman

Hi, just a quick question but I couldn't find an answer to it. Say I have 3 variables, "a", "b", and "c". I want to assign each one a value of None. The only way I know of doing this is: a, b, c = None, None, None Is there …

Software Development python
Member Avatar for shadwickman
0
122
Member Avatar for zhouj

In the following code, f1 is an overloading function. In what situation will be the first called, in what situation will the second be called? #include <iostream> using namespace std; class A { public: void f1(){cout<<"f1 "<<endl;} void f1() const {cout<<"f1 "<<endl;} }; int main() { A a; a.f1(); return …

Software Development c++
Member Avatar for vijayan121
0
171
Member Avatar for abhimanyuancha
Member Avatar for vijayan121
0
661
Member Avatar for leegeorg07

Hi i want to be able to open a python program on someone's computer but they don't have python installed and they don't have room to install it. how could i 'compile it' if that is the correct word, so that it can be opened as an exe file?

Software Development python
Member Avatar for vegaseat
0
109
Member Avatar for mhil_joy

Please help me guys.. i need all your knowledge about this program.. kindly check where's the wrong here.. i need to program a tic tac toe. ONLY user can input.. i dont have any idea.. tnx.. have a great day [code=cplusplus] #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <graphics.h> #include …

Software Development c++
Member Avatar for William Hemsworth
0
172
Member Avatar for Edwards8

So, I wrote a little script to convert tifs into jpegs. The tifs are about 600mb in size, I reduce the size, and then convert. Here is the code in its entirety: [code=python] ## First we import the image library, Image object, and garbage ## collector, as well as os …

Software Development os-x python
Member Avatar for woooee
0
436
Member Avatar for ALPHA_Wolf

One of my clan members put together the following script in python. It works great but I have a small problem. I have to have a 2nd copy under another name to take care of our game servers with a different password. Now I know nothing whatsoever about python so …

Software Development python
Member Avatar for woooee
0
187
Member Avatar for Shadoninja

I am making a text game where at each situation the user may type in his/her choice on what action to do. Is there a way to make it where if someone were to type "save" or push the "s" key to have the game save or go back to …

Software Development c++
Member Avatar for Prabakar
0
120
Member Avatar for Zozel

Hi...I'm Zozel...I am trying to make a program and to use the cleardevice() function to clear screen...but I'm not satisfied of this function...calling it, it flashes the screen...it "blinks" my whole screen.....how could I avoid this flash?...please help!...I appreciate any answer ...:)

Software Development c++ flash
Member Avatar for Zozel
0
3K
Member Avatar for kavithabhaskar

I am pretty sure that the VB.NET code is right but I am sure my SQL statements are completely wrong ..can anyone help me figure out my mistakes and as to how the SQL statements need to be framed to get the results correctly from the Access Database ? Thansk, …

Member Avatar for SheSaidImaPregy
0
274
Member Avatar for mengmarc

Pls.,, help me to find the error in ths program... this program should accept white space,so i use string and getline...it doesn't have error detected but it doesn't come up with the desire output. thank you in advance... [code] #include<iostream> #include<string> using namespace std; struct node { string name; node …

Software Development c++
Member Avatar for Narue
0
278
Member Avatar for sasikala123

I need some simple c++ codings for the below program. A book shop maintains the inventory of books that are being sold at the shop the list includes details such as author, title and publisher and stock position. Whenever a customer wants the book, the sales person inputs the title …

Software Development c++
Member Avatar for Sky Diploma
0
136
Member Avatar for Black Magic

Hey, I decided to make a little visit to [URL="http://winprog.org/tutorial"]Winprog[/URL] and decided to go on the page "Menus and Icons" and so i copied and pasted the code from the website to give me.. [CODE=C++]#include "resource.h" IDR_MYMENU MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", ID_FILE_EXIT END POPUP "&Stuff" BEGIN MENUITEM …

Software Development c++ gui
Member Avatar for mitrmkar
0
168
Member Avatar for kavithabhaskar

hi: I have a problem filling my combo box from my Access Database values.. Can you please help me with this ? Thanks, Kukki. Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Using con As New OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=C:\Documents and Settings\bashkark\Desktop\Copy of USERS.mdb") con.Open() Dim objcmd As …

Software Development microsoft-access open-source vb.net
Member Avatar for warun
0
130
Member Avatar for l2u

Hello I've been wondering what would be the best way to manipulate with my application - server (send commands, etc.). I've come accross SSH but this would take too much work to implement it and I dont want to use openSSH - 3rd part source code which is compilable only …

Software Development c++ user-interface web-server
Member Avatar for l2u
0
191
Member Avatar for KJBB

When an Access database is being updated and an apostrophy ' is embedded in a user input string, (txtArray[0].Text here), the query fails. I am using OLEDB. I am hoping I do not have to parse each user input searching for single quotes and probably other naughties like ". I …

Software Development
Member Avatar for KJBB
0
119
Member Avatar for rekha gautam

Hello , I'm using access 2003 and i'm trying to save the data of combobox and textbox to the listbox and i want when i click on save button then ,record just added should be highlighted/selected in the list box. how can i do it , can anybody gives me …

Software Development visual-basic
Member Avatar for rekha gautam
0
62
Member Avatar for camproject

I am doing a project in vc++,mfc.what i have to do is,identify static objects in a scene and track them for changes(in position).for that i have to get the pixels of the objects.is there any method to detect all objects and identify their pixels.i have to use the frames obtained …

Software Development c++
Member Avatar for vmanes
0
79
Member Avatar for arupa

write a program to calculate the Highest Common Factor of three input numbers

Software Development
Member Avatar for puneetkay
0
105
Member Avatar for C++masterinneed

i need to find a way to print the number of arguments --- example ---- ./a02 er t r child process : counts four argument ---- what the output is now ---- er ; t;r; and problem 2) how can i make a call to reader for every character----instead of …

Software Development c file-stream
Member Avatar for Ancient Dragon
0
100
Member Avatar for Capt.Micro

Hi all, Ive been working on this script for a while, but, when I try to send it I get an IO error because, from what I see, its not saving the "temp.jpg" file. Not so important, the save function has the same problem. All the ports are okay, And …

Software Development image os-x python tkinter
Member Avatar for Capt.Micro
0
253
Member Avatar for nemtaro

Hi there, I need to move the mouse cursor and generate mouse click events in X, and I'm hoping to use Python. I understand that the standard Xlib library provides a XWarpPointer function which moves the cursor around. This works for me in C, but I can't seem to find …

Software Development python
Member Avatar for nemtaro
0
528
Member Avatar for seacat123

i have written the code . the while loop works good for right and down only. when i=9 and j=5 then it do not execute further . iam trying to fix the problem but not successful. #include <cstdlib> #include <iostream> #include <fstream> using namespace std; //----------------------------------------------------Print maze void fnPrintMaze(int m,int …

Software Development c++ ios
Member Avatar for seacat123
0
119
Member Avatar for Q8iEnG

Hi all my friends :) I hope you're alright.. :) first of all, I'm doing my assignment *don't worry I'll not ask to solve it :D* I just got an error, don't know what's the solution for it this is the error I'm getting: [QUOTE]C:\Documents and Settings\BoJaSoOM\Desktop\Data Structure\5\HashTable.cpp(200) : error …

Software Development c++ data-structure
Member Avatar for Q8iEnG
0
135
Member Avatar for dilbert_here00

Hi All, I made a python ftp client on Windows XP which does binary get & put. The issue here is that when I do FTP manually the time taken to either GET or PUT is about half the time taken by my ftp client. Following is a snippet of …

Software Development python
Member Avatar for jlm699
0
97
Member Avatar for Jennifer84

I have a Form with a Multilined textBox. With the code below that I use in a buttoncontrol, I try to select these indexes. When pressing the button, no selection can be seen but when I click on the area where it should be selected, it ´blincs´ very fast and …

Software Development c++
Member Avatar for mitrmkar
0
97
Member Avatar for Alex Edwards

I'm getting ridiculous results in my program! Seconds work fine Decaseconds (1/10 of a second) work ok Centiseconds seem a bit off Milliseconds are completely off... Here's the code-- [code=java] import javax.swing.*; import java.awt.event.*; public class Clock{ private Timer t; private long startTime = 0, finishTime = 0; private boolean …

Software Development java java-swing
Member Avatar for Alex Edwards
0
142
Member Avatar for poonams

hi friends Iam developing my appliction in vs.net2003 & ms access.I am creating reports using crystal report.I want to filter the output of report.User has to select the option which data has to be display in reports.I used the parmeter wizard to sort data.But if I add new data in …

Software Development vb.net
Member Avatar for lukabrol
0
196
Member Avatar for fmwyso

I would like to have an array that is pretty huge along with being able to hold atleast a sentence in each value. I want to be able to check if a string exists inside it (hopefully fast :P). Why? I want a program to read through a tab seperated …

Software Development c++ visual-studio
Member Avatar for Narue
0
323

The End.