132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ShellB12

I am trying to copy the first three characters of a character array into another character array of length 3. For instance, if I use char trig [10] = "cos(50)"; //declare and assign the char array "trig" char t [3]; //declare char array t to store the "cos" part of …

Software Development c++
Member Avatar for iamthwee
0
107
Member Avatar for thehype2049

Alright so i have this assignment to do. The question is as follow's. ------------------------------Question------------------------------ Write a command line program titled joinTextFiles.cpp that concatenates the contents of several files into one file. For example, the following command line joinTextFiles chapter1.txt chapter2.txt chapter3.txt book.txt will create a long file titled book.txt that …

Software Development c++
Member Avatar for iamthwee
0
109
Member Avatar for tuse

Ok, I had posted this- [url]http://www.daniweb.com/forums/thread128689.html[/url] and got this piece of code from a link ([url]http://vb.net-informations.com/crystal-report/dynamic_crystal_report_from_sql_query_string.htm[/url]) [code=VB.NET] Imports System.Data.SqlClient Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Imports System.Data Public Class Form1 Dim objRpt As New CrystalReport1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim cnn As SqlConnection Dim …

Software Development api daniweb-api open-source vb.net
Member Avatar for tuse
0
108
Member Avatar for dilbert_here00

Hi All, I am using a python system command to execute a C++ executable file which takes certain binary input. For example: C++ exe name is "Test" "Test" takes the following input . '\x02\xfa\xcbQH\x00' command = '/opt/etc/Test %s' % ('\x02\xfa\xcbQH\x00') system command I am using is : os.popen(command) When this …

Software Development python
Member Avatar for dilbert_here00
0
625
Member Avatar for reyev

Hi everybody! I have a small prob here... I'm trying to assign a directory (folder) path to a variable while evaluating python script. Well, to be more clearer, I need to do run something like: getDirPath.py '[I]mypath[/I]' and after that I need to get this path as variable inside my …

Software Development python
Member Avatar for reyev
0
164
Member Avatar for rishabh2011

Guys I am an intermediate c++ programmer and want to start win32 programming in c++ but the problem is that how start . I mean where to get win32 libraries including windows.h , resource.h etc. I downloaded the win32++ generic downloads . It gave some libraries and I copied them …

Software Development c++
Member Avatar for marco93
0
149
Member Avatar for mafaisal

Hello All I am Using sql2005 My Doubt is How To Format Numbers in Sql Query Like Format(NOS,"0000") in vb ie I have Table Tbl1 Fields Nos1 Datatype int values 1,2,3,4,................1000 When Simple Query Select * From Tbl1 We got Following o/p 1,2,3,4 But I want Out Put Like below …

Software Development sql visual-basic
Member Avatar for mafaisal
0
155
Member Avatar for sdimantova

I am new to VB and am trying to create a program that will search for files in a user specified directory within a specified date range, and then list the files in a list view. I've managed to figure most of it out except how to specify the date …

Software Development listview vb.net
Member Avatar for waynespangler
0
1K
Member Avatar for tzushky

Hello, I've been swimming with Python for a while, but there are remote field of it which I don't find easy. For example I have made an API from some XML files, and there will be many versions of it. The API is actually several modules either with functions or …

Software Development api python xml
Member Avatar for tzushky
0
180
Member Avatar for msantosh18

Can any one help me in the following error. am connecting database and comparing 3 columns to find the biggest number. the code is executing properly when am compling(i.e. when i compile with F8 key). but at the run time the value am getting is 0. please help me in …

Software Development visual-basic
Member Avatar for Jishnu
0
158
Member Avatar for Clockowl

Hiya fellas, I just made this Knight's Tour program, and wish to speed it up without making it non-brute force. So it shouldn't have any intelligence. I did most I could, and was wondering if you guys know more ways to speed this program up. First thing I thought about …

Software Development c
Member Avatar for Jishnu
0
164
Member Avatar for purplegerbil

Hi, I have an array that contains 5 elements: i.e. a(0) = "A" a(1) = "B" a(2) = "C" a(3) = "D" a(4) = "E" What I want to be able to do is remove the first element then add information to the end. e.g. a(0) = "B" a(1) = …

Software Development visual-basic
Member Avatar for Jishnu
0
115
Member Avatar for fishwater00

First of all, thanks! I have a problem about the arrays of structure in C, the following is my codes: #include "system.h" typedef struct { int x, int y, int z; short *velocity ; float *wave ; } Modeldim ; void myfunction(Modeldim *submodel) ; int main(int argc, char *argv[]) { …

Software Development c
Member Avatar for jephthah
0
126
Member Avatar for indu_shreenath

Hi: I want to reach through a batch file that has many lines of which I want to do further processing only if there is a line starting with "call ..." Also the line should not contain call %_anyvar% How do I search for a pattern where it matches call …

Software Development python
Member Avatar for bvdet
0
106
Member Avatar for USUAggie

So I have figured out everything with this program, except one thing which is escaping me. I have created a General Tree(or sometimes called left most tree) where the node points to its left most child, and the child points to its right sibling and also its leftmost child. Creating …

Software Development c++ file-stream image
Member Avatar for Duoas
0
230
Member Avatar for rogdawg

I am using MS Visual C++ to do a "quick" little project to create a tiny dll that I need. I hope this is the correct forum for this question. I have a fairly simple project that compiles with no errors but, when I try to build it, I am …

Software Development c++
Member Avatar for rogdawg
0
273
Member Avatar for Ole Raptor

hello, I am having a problem getting all of my items to display correctly. I have a form that has a combobox. When this combobox changes I need to display different items on the form. This is the code to do this but for some strange reason not all items …

Software Development vb.net
Member Avatar for Ole Raptor
0
157
Member Avatar for Haktivex

Greetings. Would anybody happen to have a prebuilt GNU MP Library (static) for Visual Studio 2005? I cannot seem to find one and cannot compile it myself. When I attempt to use it, I get unresolved symbol errors. If this is not possible, does anybody know a simple class or …

Software Development c++ encryption visual-studio
Member Avatar for RenjithVR
0
106
Member Avatar for EduardoT

I am running a very simple python application and I noted that the memory allocation is something like 4,5M. This is a problem in my case, because I have to run 2 thousand process at the same time. The memory I need is 100k or less. Is there any way …

Software Development python
Member Avatar for EduardoT
0
92
Member Avatar for a_elsayed2010

Hello, I'm student in Faculty of Computer and Information , Cairo University I'm working in project [B]The Project Specification :[/B] 1- load 3D Environment 2- enable the user to interact with surrounded environmnet 3- the environment content painter stand that enable the user to draw on it [B]The Problem:[/B] I …

Software Development java
Member Avatar for a_elsayed2010
0
273
Member Avatar for &rea

Hello, I want to save the image binaryImage in a file (bmp) so that I can open binaryImage.bmp and this way working with it in another programme. I have tried different ways (see below) but I don't find a solution. I have no idea how to use this method.Could anyone …

Software Development c++ image
Member Avatar for &rea
0
95
Member Avatar for Ancient Dragon

I've downloaded and compiled wxWindows using VC++ 2008 Express. Also am able to compile/link the Calculator example program (haven't tried the others yet). Now I want to begin writing my own program. So I searched google for tutorials to help get starte. None of them contain main(), and neither does …

Software Development c++
Member Avatar for Nick Evan
0
163
Member Avatar for gest

Hi. I am opening jpg file with [code] a = Image.open(sys.argv[1]).convert("P")[/code] then I'm getting it on a list with [code] c = list(a.getdata()) [/code] could someone help me to conver this list to array?? I would be glad :)

Software Development python
Member Avatar for tzushky
0
98
Member Avatar for paulcat

I've taken C++ courses before but never programmed any GUI applications. Well for this job I was asked to program a GUI for a solar hybrid project that displays information such as battery charge, temperature, etc...sort of like the thing you see in a Prius. Can anyone give any recommendations …

Software Development c++ gui
Member Avatar for Maulth
0
269
Member Avatar for preethi_ga

Hi, Can anyone tell me hoe to work in MSFlexGrid controll. Bcoz i tried to bind the records into that FlexGrid. But when i click in that data property, it shows some intrinsic error. So can anyone tell me about FlexGrid in detail with some coding?

Software Development visual-basic
Member Avatar for eanastacio20
0
120
Member Avatar for EJK972

Does anyone know a way in which I can execute PL/SQL statements in a VB.NET program? Any input is appreciated. Thanks.

Software Development sql vb.net
Member Avatar for dadelsen
0
835
Member Avatar for Black Magic

Hey, I got bored so decided to make this pointless program but am a bit confuzzled.. [CODE=C++]#include <iostream> using namespace std; int main() { int decision; do { system("cls"); cout << "Welcome to my pointless menu!" << endl; cout << "1 : Do Nothing." << endl << "2 : View …

Software Development c++
Member Avatar for Prabakar
0
125
Member Avatar for ahmbil

please can somebody help me to load a records from a textfile(random acces file)and display it into te lisview.

Software Development listview visual-basic
Member Avatar for eanastacio20
0
114
Member Avatar for Spunkerspawn

First and foremost, I've read a bunch of links on the web and I still can't implement the methods I've found in this specific context, please help me by providing me some sort of guidance. The object in question is the Property Object. It has 3 attributes int value, int …

Software Development java
Member Avatar for Spunkerspawn
0
148
Member Avatar for ymf

Hi, I'm going over this topic in unix and i'd be glad if someone could explain this bit of script: [ICODE]sed 's/\(abc\)*/xyz/'[/ICODE] so the input would be [ICODE]abcabcabc[/ICODE] which results in [ICODE]xyz[/ICODE] Also how come 'xyz' doesnt repeat 3 times because the input is 'abc' x 3 ? Thanks in …

Software Development shell-scripting unix
Member Avatar for ymf
0
86
Member Avatar for Kob0724

I can not understand why I am getting this memory leak. First, here is the ouput from valgrind. [code] ==27078== 24 bytes in 1 blocks are definitely lost in loss record 45 of 827 ==27078== at 0x4A061A5: operator new(unsigned long) (vg_replace_malloc.c:167) ==27078== by 0x434B8F: ETArray::ETArray(QString const&, QWidget*) (etutils.cpp:343) ==27078== by …

Software Development c++ qt
Member Avatar for Ancient Dragon
0
192
Member Avatar for xcard14
Member Avatar for cdome27
0
120
Member Avatar for Alex Edwards

I'm getting a really odd error in my program. The lvl value retains its initial value if it's left alone, but when the program runs after you've assigned it a value it get's a ridiculous number... then the previous number after another assignment... and the process continues. Here's the code. …

Software Development c++ session
0
98
Member Avatar for Jeff1

Hi Every one, I have a visual basic programme written in VB4 need to find a package that will automatically translate it to VB 6 Any ideas will be welcome Thanks Jeff1

Software Development visual-basic
Member Avatar for Jeff1
0
49
Member Avatar for nemom

Hello everybody,, this is a simple java method that calls itself,, [code=java]class ex{ public static void main(String [] args){ simpleMeth(5); } static void simpleMeth(int i){ if(i != 0){ rec(--i); System.out.println(i); } } } [/code] If you follow the the codes you will find after sending number (5) to the method …

Software Development java
Member Avatar for nemom
0
172
Member Avatar for mahoretti

Hi everybody. I want to use rdo at the vb6 and my web data. client running vb6 code, connect the internet data (sql, mysql or access) and get data to combobox. How can I ? Please help me.. thanks.

Software Development visual-basic
Member Avatar for mahoretti
0
70
Member Avatar for remk

Hi, I have the following C++ code [code] #include <string> #include <iostream> //maybe std::string using namespace std; int main() { size_t r = 134480; size_t c = 268960; size_t **opt; opt = (size_t **)malloc(r * sizeof(size_t *)); if(opt != NULL) { opt[0] = (size_t *)malloc(r * c * sizeof(size_t)); if(opt[0] …

Software Development c++
Member Avatar for tesuji
0
114
Member Avatar for joelbaby

Hi, I have dates/times in UTC, and need to convert them to New York time. My pc is not based in new york, so I cannot use the local time. So far I have found: BOOL WINAPI SystemTimeToTzSpecificLocalTime( __in LPTIME_ZONE_INFORMATION lpTimeZone, __in LPSYSTEMTIME lpUniversalTime, __out LPSYSTEMTIME lpLocalTime ); lpTimeZone: A …

Software Development c++
Member Avatar for tesuji
0
102
Member Avatar for smi1in

Hi, I want to make a macro in MSExcel which can copy data from one window to another. Can any one help me in this.

Software Development visual-basic
Member Avatar for smi1in
0
104
Member Avatar for P90K

hello, I'm working on a little project now but I have some problems. I want to control my computer whit my pocket pc using bleutooth. the plan was dan you push a button on the pocket pc, it will send a value to te pc using bleutooth. then a vb …

Software Development visual-basic
Member Avatar for Jishnu
0
83
Member Avatar for kinyuadave

Hi there? I have this program that i need help with. I have created a program that by clicking a file menu an excel dbase is created and stored. Now the problem is i have many excel files and i want to enter data into them and this is done …

Software Development visual-basic
Member Avatar for Jishnu
0
113
Member Avatar for kinyuadave

Hi there? I have this program that i need help with. I have created a program that by clicking a file menu an excel dbase is created and stored. Now the problem is i have many excel files and i want to enter data into them and this is done …

Software Development visual-basic
Member Avatar for Jishnu
0
323
Member Avatar for Alex_

Hello, i am supposed to solve a problem using this Method. Can anyone pls tell me what this exactly is, and how does it work?Or maybe a link to a source ...? i'd be very thankfuly! Pls this is urgent.It's for my thesis!

Software Development c
Member Avatar for Alex_
0
99
Member Avatar for kux

I understand that visual studio has a nmake tool for building a project from a makefile. What I want to do is to be able to build my project outside the Visual Studio IDE, from command line using nmake. I found some tutorials about writing a windows makefile for nmake, …

Software Development c++ ide visual-studio
Member Avatar for Prabakar
0
404
Member Avatar for rraj.be

I have very good ideas about c-programing. But i have just programing simple experimental and ,learning stadge program like some data structures or experimenting codes. I want to know actually how to build a good, working , professional, APPLICATION. Please any one could help me by taking me to a …

Software Development c
Member Avatar for Jishnu
0
122
Member Avatar for tusharvichare

Hi, I want to create XML in VC++ please if any one have solution for that then please forward me. I want to create XML as per below, <STUDENT> <ID>S202<ID> <NAME>TUSHAR<NAME> <PHONENO>96874525<PHONENO> </STUDENT> please any one have code please forward me Thank you.

Software Development c++ xml
Member Avatar for tesuji
0
99
Member Avatar for joshmo

I am trying to do a simple queue using linked list. I am failing to perform dequeue because I cant get the logic straight. If there is anyone who could explain to me about the simple logic of this then it would help alot. Thanks. I have also posted the …

Software Development c++ linked-list queue
Member Avatar for Lerner
0
156
Member Avatar for Yuichi

Hi guys,i am new to both c++ and this forum...I got a problem with a question i m supposed to do.I am supposed to create a queue system but i am stuck at a point where i can't add numbers to the queue system.This is the question... You have been …

Software Development c++ queue
Member Avatar for Yuichi
0
208
Member Avatar for chsarp_vijay

Hi, I have created one table in MySQL database. I want to use that table in my C sharp application through ODBC. I have installed the ODBC driver also. I have created the project in visual C#, Smart device and WINCE 5.0. Now i want my application will interact with …

Software Development mysql
Member Avatar for bbkidsdad
0
106
Member Avatar for yap

Dear guys I am rather new to Java and Java databases. Now I have just installed netbeans v6.1 together with derby (javaDB) on win XP, SP 2. Creating and running java programs is ok, but I can't start derby server from netbeans services menu. NetBeans tells me: java.lang.NoClassDefFoundError: org/apache/derby/drda/NetworkServerControl. Exception …

Software Development apache java java-netbeans
Member Avatar for peter_budo
0
177

The End.