43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for booker

Hello is this normal that the application I am running crashes when I try to instantiate e initialize a int matrix[512][512] where for smaller values doesn't? I just can't understand why. I could create I vector of vector but I want to use a pointer pointing to Aoo. Thank you

Software Development c++
Member Avatar for tux4life
0
225
Member Avatar for xyster

Hello again, got myself stuck again with my lack of time between coding c. Gotten myself lost with pointers this time i'm pretty sure. Declaration in header file [code=c] extern DiskRequest proc_new_disk_request(int procnum, int sectornum, ReadOrWrite rw); [/code] Where i'm calling it from and some code around it to make …

Software Development c
Member Avatar for xyster
0
147
Member Avatar for DaveD3

I am working on an application in Visual C++. I needed to generate a message box so I went to the help files and found the C++ example to do this task. I copied and pasted it into my code. When I built the application this code from the help …

Software Development c++
Member Avatar for DaveD3
0
106
Member Avatar for oNice

I'm trying to create a cipher that eventually will read an entire .dat file then re-write it encrypted and as of now I am using code blocks. Right now I’m just working on being able to do it one word at a time, but I get a really big error …

Software Development c
Member Avatar for oNice
0
97
Member Avatar for BestJewSinceJC

How can I check if an event is user generated? When the user clicks on a combo box and changes the displayed/selected content, I want the code in the itemStateChanged method to be executed. But I only want this code to be executed if the method call was due to …

Software Development java
Member Avatar for BestJewSinceJC
0
96
Member Avatar for valtikz

for example you have a: string test; [CODE] void ExampleWindow::on_clicked(){ ofstream myfile; string test; myfile.open ("/home/ws14/Desktop/trunk/minisip/minisip/share/test.txt"); mydialfile << test; mydialfile.close(); } [/CODE] how can I just add or insert a value on the file(test.txt). not just overwrite the file(test.txt) when the function(on_clicked) is being called. All I need is if …

Software Development c++
Member Avatar for valtikz
0
127
Member Avatar for tag234

Hello, ive got a quick question about changing characters within a .asciiz. Here is a snippet from the code im working with: [code] ## This is 300004D2 ## la $a0,value # Initialize the value lw $a0,0($a0) ## This is equal to 8## la $a1,count # Initialize the loop counter lw …

Software Development assembly
0
55
Member Avatar for skisky

ok....so i have code that will return whether or not the string im searching for is found. Which is fine and dandy, but i also need the array index, for where the match was found. (names are read from a txt into an array, then the array is searched with …

Software Development c++
Member Avatar for skisky
0
93
Member Avatar for BruenorBH

I am using GetWindowText to take user entered data, then seperate it out into variables, then finally use the one variable I need. .The only problem is that when debugging, I am seeing 2:00 pm listed as "2:00 pm", '\0' <repeats 17 times> it should just be 2:00 pm or …

Software Development c
Member Avatar for nucleon
0
145
Member Avatar for DaveD3

I am new to .Net and I am having some problems. I have read the Kate Gregory book for visual C++ .net and successfully implemented her application to look up employees in a database table. I followed the same format to write an application I am working on. The adapter …

Software Development c++ dataset
0
72
Member Avatar for BestJewSinceJC

[CODE=Java]java.util.Vector<EmergencyContacts.ContactInfo> contacts = Application.getPatient().readEmergencyContacts().readContactInfos(); for (int i = 0; i < contacts.size(); i++){ EmergencyContacts.ContactInfo info = contacts.get(i); } public Vector<ContactInfo> readContactInfos(){ return contacts; } private Vector<ContactInfo> contacts = new Vector<ContactInfo>(); [/CODE] As you can see, it returns a Vector of ContactInfo. Why would I be getting an error saying, "Exception …

Software Development java
Member Avatar for quuba
0
132
Member Avatar for asilbek

public class QRYExecuter: SqlDataReader { } class is defined as above while building this, i get exception below: The type 'System.Data.SqlClient.SqlDataReader' has no constructors defined pls, can u solve it?

Software Development
Member Avatar for asilbek
0
117
Member Avatar for mem81

Hi guys, I am trying to create an windows application. What I need to do at this stage is I am trying to read a tab delimited file and the that same tab delimited file to go to another text file on my C drive. I have written some code …

Software Development file-system vb.net
Member Avatar for mem81
0
117
Member Avatar for nexocentric

This i the background to my problem, which is stated in bold text. I am currently working with a SAFEARRAY. I've declared a two dimensional array in VB6 and I'm trying to store data from a C++ dll in it. I have used the resources listed below to learn how …

Software Development c++
Member Avatar for nexocentric
0
418
Member Avatar for dinamit875

Hi there ever1. I have written a bracket checker program using stack, seems to me its working ok, but still I have one problem with it.Well, it compiles ok,but when you are entering value, it just doesn't show you any results, but it supposed to give you the results.Any help …

Software Development c++
Member Avatar for vmanes
0
113
Member Avatar for booker

Hello I think this is easy for experienced C++ users. I want to define and initialize a [512][512] matrix. The problem is that when I do int matrix[512][512] I get an error and the program it shuts down. I think this has to do with max reserve memory. What can …

Software Development c++
Member Avatar for booker
0
190
Member Avatar for sanstepsan

I have aseries of textboxes namely txtAlpha1, txtAlpha2, txtAlpha3 etc and txtBravo1, txtBravo2, txtBravo3 etc. I am trying to loop thro these by doing the following but of course it does not work. [code] For i = 1 To 25 If txtAlpha & i & .Text = txtBravo & i …

Software Development vb.net
Member Avatar for sanstepsan
0
164
Member Avatar for mielcita

I'm reading in a file and I need to skip any lines of length zero or starting with '#'. But I keep getting null pointer exceptions later in the code because it can never tokenize. What am I doing wrong? Thanks in advance. Below is the relevant method: [code] static …

Software Development java
Member Avatar for javaAddict
0
136
Member Avatar for bryanhjkim

I am a novice trying to use MS Visual C++ to record data through COM1. The data source is a sensor streaming ASCII characters, and the sensor and the COM1 settings were both checked with hyperterminal. In the code, I set the CreateFile to open COM1 with normal attributes, and …

Software Development c++ file-stream open-source
Member Avatar for bryanhjkim
0
221
Member Avatar for xyster

Hello, It's been ages since i've coded in c and i'm assuming im having a problem with the syntax. I am sure this is stupid and very in my face but i cant seem to work out my errors at compile time. disk.c: In function `update_rw_requests': disk.c:531: error: `rw' undeclared …

Software Development algorithm c c# c++
Member Avatar for xyster
0
162
Member Avatar for ihatehippies

I have a shared drive that I'm trying to access from another computer on the network with a script. I keep getting IO errors(does not exist), is there a module that deals with network locations? -thanks

Software Development python
Member Avatar for vidaj
0
94
Member Avatar for johnray31

Hi guys, I need a solution. I have a uint32_t variable say var1. I need to store current time value in this variable, and somewhere in my code i need that time in proper timing formet i.e hour minute and seconds . is this possible? Any other solution for storing …

Software Development c++
Member Avatar for johnray31
0
181
Member Avatar for evertron

I am having problems figuring out this problem. I am looking at my book and trying to follow along. i have used the get the way the book is showing and I have a couple of errors and I am not sure how to proceed with tying the the two …

Software Development vb.net
Member Avatar for Teme64
0
126
Member Avatar for smbusa

What's the code to show the second form in delphi?

Software Development delphi pascal
Member Avatar for FlamingClaw
0
215
Member Avatar for rEhSi_123

Hey! I am a newbie in windows form application in c++, so please guide me! As a practice I have created a new project in windows form using visual C++. I have added a button and listbox! Now say I click on button 1 and it opens a dialog box …

Software Development c++
Member Avatar for rEhSi_123
0
279
Member Avatar for crh0872

Hello DaniWeb! I've created a function that parses a long string of text (JSON format, but that's not really important) for the specified JSON key/variable name, and it returns the JSON value as pointer to a char array. For example, [CODE=C++] //the function looks like: char* extract_key( char* buf, char* …

Software Development c++ json
Member Avatar for crh0872
0
3K
Member Avatar for BruenorBH

I am getting error that I am doing an invalid conversion from int to char. I am using sprintf to change a user entered hour called ETHour to char, then strcat more chars onto it to create a time then trying to post it to a window.. [code] char cETime[8], …

Software Development c
Member Avatar for BruenorBH
0
335
Member Avatar for ithelp

which can pick up executable if it is available in PATH like [code] int execv(const char *path, char *const argv[]); [/code] I do not want to specify full path , I want it to search in my PATH and execute .

Software Development api c
Member Avatar for jephthah
0
88
Member Avatar for deedub

I need to write the while loop to terminate with a '|' character program does not terminate correctly when using two cin numbers in the same line or even on separate lines (i.e. cin>>num1>>num2;) when the program does terminate with ^Z it just scrolls a long list of the last …

Software Development c++
Member Avatar for tux4life
0
2K
Member Avatar for nonang

New python autodidact: please help with sorting the list "weather" in python using bubble sort, insertion sort, merge sort, quick sort, and selection sort.

Software Development python
Member Avatar for jlm699
0
117
Member Avatar for Psykocyber

Hi I'm having a problem with this piece of inheritance code. When compiling it displays this error " 'getAverage' : is not a member of 'Person' " but shouldn't the casting overcome that problem? Do i really need to have a virtual function in "Person" for this to work? Thanks …

Software Development c++
Member Avatar for Psykocyber
0
129
Member Avatar for Nawsheen

I have been surfing the net for hours but couldn't find anything as to whether it is possible to make a groupbox readonly. So if you can make it read-only how do you go about?Is there any code?Thanks

Software Development vb.net
Member Avatar for omotoyosi
0
505
Member Avatar for JimD C++ Newb

Good afternoon, all! I'm in the process of writing a chat program. The server is completed, and if I simply telnet into the server with 2 different windows, 2 people can chat in fluid fashion. However, when I connect 2 clients, the chat appears in lock-step fashion. (ie. Client 1 …

Software Development c client-server windows-server
Member Avatar for JimD C++ Newb
0
433
Member Avatar for JerryShaw

Hello, I typically hang out in the C# forum, however I hope someone here can help. I am converting a C++ program to C#, and I need to know how to handle a couple things: IOW I know almost nothing about C++, and this code is coming from a non …

Software Development c++
Member Avatar for JerryShaw
0
271
Member Avatar for Lee_Sonnenburg

I'm writing a program that accesses a public web service. The web service has one web method. After referencing the service and creating an instance of it i'm retrieving the data from the web method. The problem: The data that gets retrieved is a long string of xml. What I …

Software Development c# xml
Member Avatar for Lee_Sonnenburg
0
102
Member Avatar for nexocentric

Before I state my problem, which is in bold text, I need to give you a little bit of background. I'm working with 3 binary log files of about 35mb each. Each one holds approximately 65000 records. Each record, which is about 400 bytes, holds information containing the date, transmission …

Software Development data-structure visual-basic
0
65
Member Avatar for viki0077

I made this small C++ program, and it won't compile. Please if someone can help me to fix these 2 errors: error C2059: syntax error : ';' error C2059: syntax error : '}' The text is not in english, but it doesn't metter, just these 2 syntax errors so it …

Software Development c++
Member Avatar for waldchr
0
170
Member Avatar for ShadowScripter

I stumbled upon another what I think is initializer, like int and char, named [B]HANDLE.[/B] It's also used when creating an application, I've browsed the net and found that it is a sort of pointer to an object that can change without me knowing it... eh... It wasn't really that …

Software Development c++
Member Avatar for ShadowScripter
0
108
Member Avatar for booker

Hello I have a C++ project A which has to use heather/source files of project B. When I do include "B.h" then B's heather can't be seen because B and A are in a different sub-folders of the same folder.What can I do thank you

Software Development c++
Member Avatar for booker
0
99
Member Avatar for dustman

[I]<< split from [URL="http://www.daniweb.com/techtalkforums/thread28858.html"]this[/URL] >>[/I] [quote=Narue;145474]>u asking me if i cant code why should i be asking about sockets? No, I was asking you what you know so we don't waste time going over things that we don't need to. But if you want to be a dick about it, …

Member Avatar for jephthah
0
169
Member Avatar for Nickair

Hi i am trying to find a good C++ tutorial to help get me started with programming. Does anyone know of a good one?

Software Development c c# c++
Member Avatar for tux4life
0
104
Member Avatar for daviddoria

I found some code to parse command line arguments (is there an easier way? sed always seems so complicated...) [code] #!/bin/bash for i in $* do case $i in --files=*) FILES=`echo $i | sed 's/[-a-zA-Z0-9]*=//'` ;; --default) DEFAULT=YES ;; *) # unknown option ;; esac done echo $FILES echo "File …

Software Development shell-scripting
Member Avatar for hexram
0
110
Member Avatar for Trav580

Ok, so I just started using Python last week and I have written 4 VERY simple, non-GUI programs. This is for my intro to game physics class and I happen to be stuck on the last project until my next class. What this project is SUPPOSED to do is ask …

Software Development gui python
Member Avatar for Trav580
0
453
Member Avatar for viki0077

I'm really a beginner in C++ programming, and the above problem is just a part of c++ excercise. Can somebody give me a tip how to implement this in C++? The biggest problem for me is to implement and write this: • red+yellow light on cat traffic light is 2 …

Software Development c++
Member Avatar for tux4life
0
8K
Member Avatar for jomacho

Hi, this is my first post here. The fact is i'm not a programmer and i need help. I have a software that i need to solve a vehicle routing problem for my thesis. But i only got the source code for it, one header file and 6 cpp files. …

Software Development c++
Member Avatar for tux4life
0
127
Member Avatar for vidaj

Hi, In my current project I'm trying to compose some objects at runtime based on a string containing the object-configuration. Based on the "Favour composition, not inheritance" pattern, but done runtime. My usecase: I have a downloader that downloads web-pages. The downloader is configured with a set of request-handlers and …

Software Development python
Member Avatar for vidaj
0
105
Member Avatar for daviddoria

I need to get an unknown number of file names from the command line, ie ./python MyScript.py --Files 1.txt 2.txt 3.txt [code] parser.add_option("-n", "--NumFiles", type="int", help="Number of files") parser.add_option("--Files", nargs=options.NumFiles, help="a triple") (options, args) = parser.parse_args() [/code] Clearly this will not work because options.NumFiles is not available until after parse_args() …

Software Development python
Member Avatar for daviddoria
0
197
Member Avatar for daviddoria

I want to parse some simple arguments from the command line. This shows all of the arguments: [code] #!/usr/bin/python import sys #print all of the arguments for arg in sys.argv: print arg [/code] but I want to handle something like [code] --file a.txt [/code] or [code] --x 12 --y 13 …

Software Development python
Member Avatar for jlm699
0
111
Member Avatar for Grn Xtrm

Hello, I'm facing another problem with vectors, this time with the problem of converting infix to postfix. The compile process completes, but I recieve an error after I enter the infix expression. Here is the exact error I recieve: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 43 >= 2 at java.util.Vector.removeElementAt(Vector.java:511) at …

Software Development java
Member Avatar for Grn Xtrm
0
142
Member Avatar for serkan sendur

i have the following code : [CODE]static IScanningService scanningLayer = null; public static IScanningService BarcodeReader { get { if (scanningLayer == null) { string serviceName = GetServiceName(); try { if (deviceService == null) deviceService = Assembly.Load(serviceName); object o = deviceService.CreateInstance(serviceName + ".BarcodeReader"); scanningLayer = o as IScanningService; scanningLayer.AutoStartScan = Global.device.AutoStartScan; …

Software Development assembly
Member Avatar for serkan sendur
0
116

The End.