132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for stereomatching

compiler : visual c++ 2005 os : win7 64bits [code] #define PARSE_AND_SERIALIZE_WRAPPER(HANDLE, VENDOR) \ template<> \ struct parse_and_serialize_wrapper<HANDLE> \ { \ template<typename Request> \ bool serialize_req(Request &request, std::string &serialized_msg, \ xml_schema::namespace_infomap &xml_namespace, boost::mpl::vector<serialize_query>); \ }; \ \ template<typename Request> \ bool parse_and_serialize_wrapper<HANDLE>::serialize_req(Request &request, std::string &serialized_msg, \ xml_schema::namespace_infomap &xml_namespace, boost::mpl::vector<serialize_query>) \ …

Software Development c++
Member Avatar for stereomatching
0
161
Member Avatar for moone009

[CODE]Dim FilestoCopy As String Dim NewCopies As String FilestoCopy = "C:\Users\Documents\*.txt" NewCopies = "D:\New\Documents\" If System.IO.File.Exists(FilestoCopy ) = True Then System.IO.File.Copy(FilestoCopy , NewCopies ) MsgBox("File Copied") End If[/CODE] I was wondering how to switch this to copy all .txt file from FilestoCopy to NewCopies

Software Development vb.net
Member Avatar for GeekByChoiCe
0
354
Member Avatar for Kyle Willett

In my cs2 class we are covering simple lists very quickly. I was assigned to add some functions to a basic list class, and after much thought I can not understand how to solve the problem. Here is the assignment: [QUOTE] you will add the following methods: + removeNode(val : …

Software Development c++
Member Avatar for Kyle Willett
0
182
Member Avatar for toldav

Hello everyone its me again try to learn VB. I need help to make sure if my code needs to be modify. Here is the instruction: 1- The list box that contains the city names is not visible when the program runs. lstCity.Visible = Not lstCity.Visible (still showing at run …

Software Development vb.net
Member Avatar for toldav
0
206
Member Avatar for pwnerboy

Here's my code: bigInt.cpp [CODE]/ // bigInt.cpp #include "bigInt.h" bigInt::bigInt() { int i; for(i = 0; i < SIZE; i++) //Sets all the values of digits to 0. digits[i] = 0; sign = true; numDigits = 1; error1 = true; overflowFlag = false; } bigInt::bigInt(const char temp []) { int …

Software Development c++
Member Avatar for pwnerboy
0
1K
Member Avatar for dolfan55aj

I have a Graph that I'm making using an adjacency matrix to hold edge values. The noEdge value is zero and all edgeweights are positive integers. I have to delete a node from this graph and I'm having trouble figuring out how to update the Adjacency matrix after the deletion …

Software Development algorithm c++ matrix-multiplication
Member Avatar for mrnutty
0
966
Member Avatar for corby

im trying to overload the operator+= and use that to implement operator+ in my string class. i keep getting a segmentation fault when i try to evaluate something like s1 += s2 where MyString s1("");and MyString s2("hello"); any suggestions as to why this is happening? this is my operator+= function …

Software Development c++ operating-system
Member Avatar for corby
0
183
Member Avatar for redrobby02

Hi i am very new to delphi and have only been working with it for a few months, i need to calculate the difference between 2 TDateTime Variables regardless of the number of days passed. Currently im using this: [CODE] var StartTime, EndTime, TimeDiff: TDateTime; begin StartTime := (Now); EndTime …

Software Development delphi pascal
Member Avatar for Morten Brendefu
0
6K
Member Avatar for demroth

I am trying to write a lexical analyzer program that will read in input from a file and produce a formatted output. I need help as I am stuck. I am sure I am not passing the file stream, and the function parameters correctly. Do note some of the functions …

Software Development c++ file-stream
Member Avatar for demroth
0
3K
Member Avatar for coolbeanbob

Help! Why am I getting the following error on line 100?? I don't get an error when I use storage in other places? error C2065: 'storage' : undeclared identifier [CODE]#include "utility.h" struct masterFile // master file record { int employeeID; string employeeName; string departmentID; int YTDhoursRegular; int YTDhoursOvertime; double regularPayRate; …

Software Development c++ storage
0
57
Member Avatar for Gaiety

Hi, I have recently gone through some C internal stuff, addressing schemes(logical,relocatable and physical). what i dint get here is how are these inter-related.I do understand that these three are genearated by different tools. I want to know how exactly one is useful for other in executing the program in …

Software Development c
Member Avatar for Gaiety
0
160
Member Avatar for techlawsam

total += nValue; so would that mean that whatever the total is it will be added towards nValue, or is something being incremented? Thanks

Software Development
Member Avatar for jnmisa
0
113
Member Avatar for mc3330418

I have a student name, wins, losses. In that order in a txt file. I'm trying to read it in and them print it out, but i'm not real sure what I'm doing [CODE] #include <iostream> #include <fstream> using namespace std; const int MAX_SCORES = 50; ifstream infile; void report(int …

Software Development c++
Member Avatar for mc3330418
0
84
Member Avatar for Thug_life

Hi i had to write the program that prompts the user for integer values. Place these values into an array. What i cant figure out is the following i will be highly thankful to you if you can help me on these [I]Compute Sum – add up all of the …

Software Development c++
Member Avatar for Clinton Portis
0
104
Member Avatar for mags11

Hello again! I'm almost finished this project. However, the Clear button stopped doing its thing. It keeps giving me an "Invalid Cast Exception" whenever I am pressing the clear button. The project includes 2 forms--- JobInformation and Summary. The code follows: [CODE] 'Program Name: JobInformation 'Programmer: Zabinga 'Date: 11/28/2011 'Description: …

Software Development vb.net
Member Avatar for mags11
0
413
Member Avatar for psvpython

Hi, I have created a checkbutton within a dialog box. But, I am not able to capture the value of the checkbutton. The value always seems to be 0 whether checked or not. [CODE] class MyDialog: def __init__(self,parent): self.Frame1= Tix.Frame(parent) self.Frame1.pack(side=Tix.LEFT, fill=Tix.BOTH) self.enabled = Tix.IntVar() self.checkbutton = Tix.Checkbutton(self.Frame1,text = "Enable …

Software Development python
Member Avatar for psvpython
0
138
Member Avatar for pointers10

I am trying to let the user search an external file for 2 things after they tell me one of the things.. There are 3 different products and prices in the txt file in the form of: apple 1.99 orange 9.99 coconut 1.59 however, this only shows the price of …

Software Development apple python
Member Avatar for woooee
0
86
Member Avatar for VB 2012

Okay hi people i just want to is it possible if you can use a Certain copy / Write Function that writes your file from Resources to where you want but with Progress(Progress bar) while its copying or Writing and if so can you give me a example please:'(

Software Development vb.net
Member Avatar for VB 2012
0
1K
Member Avatar for alaa sam

hi everyone , I have finally finished my firsy c# project and I want to make a .exe file for it , so any help??

Software Development
Member Avatar for KazenoZ
0
161
Member Avatar for Taino

Hi, I am running an application and wish to add random outputs when the user answers correctly. example 1 + 1 = 2 cout << " great"; I wish to randomly cout << excellent or very good or fantastic as well. Thanks! This is my code: #include <iostream> #include <cmath> …

Software Development c++
Member Avatar for mikrosfoititis
0
125
Member Avatar for henpecked1

I'm looking for a line (or more) of VBA that would tell me how to set the "required" property of a field to "No" instead of "Yes" Just so you have the context, I'm helping someone write a module that imports data into an Access database. Of course, sometimes a …

Software Development visual-basic
Member Avatar for henpecked1
0
188
Member Avatar for sofia85

Hi, I have a file containing one column with values: 3.258 1.345 5.769 1.00 etc... I want to sort this data. I tried to use sort() directly on my raw data but I get error message saying 'str' object has no attribute 'sort'. I now it's basic, but I'm a …

Software Development python
Member Avatar for sofia85
0
133
Member Avatar for Manswab

[B]HI Friends..i want to import an excel file to DataGridView .In My code its working Fine For all excel sheet that have less number of columns...but its showing error(External table is not in the expected format.) for excel sheet having more number of columns...please help me...my code is below [/B] …

Software Development dataset
Member Avatar for KazenoZ
0
352
Member Avatar for KazenoZ

Hello, I'm having this issue with copying files with .NET's File.Copy() method. I have a file, that I want to copy to a couple locations, but when doing something like: [CODE]File.Copy(source, target1); File.Copy(source, target2);[/CODE] I keep getting an exception error about the file being in use. Seeing that if I …

Software Development file-system
Member Avatar for KazenoZ
0
160
Member Avatar for mahavairavan

Hi all, Can anyone please enhance the following code to print a string reverely ina consecutive manner using two dimensional array. The program which i tried in codepad.org is follows: [CODE]#include<stdio.h> #include<string.h> int main() { char a[4][4]={'j','u','s','t'}; int i,l,j,k,b=4,n; printf("Enter the string"); printf("\n"); for(i=0;i<1;i++) { for(j=0;j<b;j++) { printf("%c",a[i][j]); } } …

Software Development c
Member Avatar for Tumlee
0
1K
Member Avatar for Xaviorin

So new here to daniweb and just finished my first semester of programming 1 and I'm trying to do some extra curricular work to get me prepared for my spring semester. Would appreciate any and all help or suggestions anyone could give me. Here's the issue: So i was trying …

Software Development c++ file-system
Member Avatar for Xaviorin
0
127
Member Avatar for meowbits

I have been messing around with this code forever.. I know im missing something but I am completely lost at this point. The code is suppose to print the array, then shift all the values to the right with SHRD, then reprint the array. Please help! Thank you! [CODE]INCLUDE Irvine32.inc …

Software Development assembly
Member Avatar for meowbits
0
195
Member Avatar for Tom_Weston

Hi, I'm wondering how to remove a specific part of a string.. [CODE] #include <iostream> #include <string> using namespace std; int main() { string str1 = "How,Are"; cout << str1; //remove the comma, and everything behind the comma! so the output would only be 'Are'. return 0; } [/code] Thank …

Software Development c++
Member Avatar for Xaviorin
0
382
Member Avatar for junoh1991

# I wanted to change the question. I have a list something like this: list1= ['NNW 30', 'SE 15', 'SSW 60', 'NNE 70', 'N 10'] For this list, if the element in the list starts with N, i want '+' to be inserted before the integer. If the element in …

Software Development python
Member Avatar for valorien
0
4K
Member Avatar for mcconnell_34

What is wrong with this program? Can someone make it work?

Software Development c++
Member Avatar for thines01
0
101
Member Avatar for Lemony Lime

I'm pretty new to programming, so this may be really obvious, but I'm having trouble with it. I'm trying to learn python, so I thought I'd make a simple program in python to help me write similar lines of java code faster, (I'm going to easily have hundreds of lines …

Software Development file-system python
Member Avatar for Lemony Lime
0
544
Member Avatar for rithish

i used turb0 c++ in windows 7 but i does not display a full screen mode.are there any tools that run c and c++ in windows 7???

Software Development c c# c++
Member Avatar for Schol-R-LEA
0
409
Member Avatar for alaa sam

I need to to send variables between two forms in the same project is that possible ?? also can I change the color of some text in text box but not the whole the text ?? Thanks in advance

Software Development
Member Avatar for alaa sam
0
114
Member Avatar for R3AL

my code: [CODE] ... DWORD WINAPI myGWTHPID(HWND hWnd, LPDWORD lpdwProcessId){ __asm { MOV EDI,EDI PUSH EBP MOV EBP,ESP JMP [DLLFunc] } } int main(){ hInst = LoadLibraryA("user32.dll"); DLLFunc = (DWORD)GetProcAddress(hInst, "GetWindowThreadProcessId" + 5); HWND hwn= FindWindowA(NULL,"Untitled - Notepad"); cout<<"Window handle: "<<hwn<<"\n"; DWORD pID; myGWTHPID(hwn,&pID); cout<<"Process id: "<<pID; getch(); return 0; …

Software Development c++
Member Avatar for R3AL
0
147
Member Avatar for momin90909

I am making a calculator which shoul not use cmath.h. I was just thinking that how is it possible to calculate trigonometric functions without cmath.h. Please help me. Thanks in advance.

Software Development c++
Member Avatar for WaltP
0
276
Member Avatar for caseyt88

Hello, I am taking a computer programming class this semester and working on a project. I am trying to read a text file into a 2D list. The text file contains ten rows and ten columns of numbers, either a 0,1,or 2. When i try to read the file it …

Software Development python
Member Avatar for caseyt88
0
421
Member Avatar for anoop4real

Hi, Is there any tool available to convert sql CE db (*.sdf) file to SQLITE db?. I got some from code project but it converts only SQL Server DB. -anoop

Software Development sql sqlite
Member Avatar for davidcarta
0
305
Member Avatar for kusel1030

I'm trying to write a program that will read in a file to a 2-d array and find out how many groupings (blobs) of characters there in the file. It then uses a recursive function to delete the already counted blobs, to avoid recounting. The program compiles fine, but when …

Software Development c c# c++
Member Avatar for kusel1030
0
720
Member Avatar for Labdabeta

I have a project that I have formatted for Doxygen. I use extra header files to hold extra classes. The thing is that Doxygen only generates documentation for the first header file. How do I get it to document all of the files I specify?

Software Development c++
Member Avatar for Labdabeta
0
2K
Member Avatar for Thermalnuke

I am having trouble with my looping sequence in this program at the end of the program it will let the user choose if they would like to exit the program or start all over again and it exits for both chooses and sometimes it will continue on to the …

Software Development c++
Member Avatar for Thermalnuke
0
182
Member Avatar for itzcarol

HI All, I am having a little difficulties here. Here is my requirements: Play the game of paper-rock-scissors. In main ask the user how many hands he/she wants to play. This must be an odd number, so you must validate this input to make sure the number is odd! After …

Software Development c++
Member Avatar for Tumlee
0
252
Member Avatar for galhajaj

Hello :) i worked many time with the Point structure on my projects i noticed that there is a brother to Point calls PointF (its Point with floats as X & Y) the thing i dont understand is why i saw a lot of drawing functions that uses RectangleF and …

Software Development
Member Avatar for gusano79
0
96
Member Avatar for schrei

Hi, I'm looking at shared memory in C and I seem to have encountered a bit of a problem. I'm fairly sure that I may be misunderstanding something here. I'm trying to send an array of structs to another process via shared memory. When the other process goes to read …

Software Development c ubuntu
Member Avatar for schrei
0
307
Member Avatar for polinolin

i am trying to make web browser control at my form.. my url is : www. gmail.com but, when i'm running my project..i'm getting error.. you can see the error at [url]http://i917.photobucket.com/albums/ad15/popopardede/abcd.jpg[/url] anyone can solve my problem? big thanks

Software Development vb.net web-browser
Member Avatar for polinolin
0
130
Member Avatar for gourav1

please tell me that as i have learnt core java and i want to give SCJP which is coming in january? what exactly this exam is all about? how should i prepare for it? what is its value if i will pass this exam? please me all info about this. …

Software Development java
Member Avatar for stultuske
0
161
Member Avatar for gameguy91

#include <iostream> using namespace std; int main() { int n1,n2,n3,n4,n5; cout<<"input number\n"; cin>>n1; cout<<"input number\n"; cin>>n2; cout<<"input number\n"; cin>>n3; cout<<"input number\n"; cin>>n4; cout<<"input number\n"; cin>>n5; if (n1>n2 && n1>n3) return 0; }

Software Development c++
Member Avatar for gameguy91
0
156
Member Avatar for gameguy91

#include<iostream> using namespace std; int main() { int n1,n2,n3,n4,n5; cout<<"input number1\n"; cin>>n1; cout<<"input number2\n"; cin>>n2; cout<<"input number3\n"; cin>>n3; cout<<"input number4\n"; cin>>n4; cout<<"input number5\n"; cin>>n5; if(n1 < n2) n1 = n2; if(n1 < n3) n1 = n3; if(n1 < n4) n1=n4; if (n1<n5) n1=n5; cout << "The largest number is\n" << …

Software Development c++
Member Avatar for gameguy91
0
262
Member Avatar for Diogo Martinho

This is probably an easy thing to do but I don't know how. How can I declare in the .data section one pointer to an integer?

Software Development assembly
Member Avatar for Diogo Martinho
0
74
Member Avatar for asong

This should be written in Python. The program will determine all of the magic squares when given an n, display permutations that match the magic squares to the screen AND write it to a file. It will only test when n == 3!!! But code it for n of ANY …

Software Development python
Member Avatar for asong
0
2K
Member Avatar for rotten69

Hey everyone, I'm wondering why I can't print the values that are in the array. I'm passing an array to the method below and trying to print the result.. the compiler says that "ArrayIndexOutOfBoundsException" What's the problem really? [code] public static int[] treble(int[] nums){ for (int i=0; i <= nums.length; …

Software Development java
Member Avatar for stultuske
0
155

The End.