49,761 Topics

Member Avatar for
Member Avatar for M3SSIAH

Hi, im trying to make my .dll program written in VC++ search for an aob(array of bytes) in its own process. It's supposed to retrieve the aob from a textbox, search for it and return an address. For example i type the following aob in the textbox = B8 ?? …

Member Avatar for M3SSIAH
0
295
Member Avatar for Pascode

Hi, Im new to c++ and this site but I have been reading it for the last few weeks to month. I have a problem with a battleship game im trying to finish. Basically I have the random and custom boards working, the function to prevent overlapping and placement off …

Member Avatar for Pascode
0
175
Member Avatar for seanman13579

I have to write a program to check for balanced HTML tags here is what i have so far. My problem is it is not working right. My stack implementation is fine, i believe my problem is when i am looping through the string ( lines58-70 I marked with comments …

Member Avatar for WaltP
0
2K
Member Avatar for plang007

[B]****Output[/B] There were 305 birds in this list. Species: Snow_Goose Number: 305 There were 567 birds in this list. Species: Canada_Goose Number: 567 There were 4 birds in this list. Species: Tundra_Swan Number: 4 There were 31 birds in this list. Species: Wood_Duck Number: 31 There were 60 birds in …

Member Avatar for plang007
0
241
Member Avatar for WolfShield

Hey everyone, I'm trying to figure out how to convert from an Integer or a Double into a string. I want a string variable to print out on a command line. Thanks for any help. - [B][I]WolfShield[/I][/B]

Member Avatar for rubberman
0
192
Member Avatar for triumphost

Hi All, Im new to threading and forms and really bad at API. Jonsca pointed me to Backgroundworker because my original problem was to constantly check if a window is open. If it is open, terminate my program. I failed at that so I tried Hotkeys. The problem is: My …

Member Avatar for jonsca
0
234
Member Avatar for finchh

I need to write a program square that calculates the squares of all numbers that are contained in a file of floating point numbers. The obtained new numbers form a new file. For example if the file contains the numbers 1, 2.5, 0.1, the numbers 1, 6.25 and 0.01 form …

Member Avatar for Ancient Dragon
0
161
Member Avatar for joru819

Hi everyone, I have been a long time forum viewer but first time poster. I am really struggling with this project I am working on. I created the three functions but they are not being called when the input matched the else ifs. I really don't understand this problem. I …

Member Avatar for Fbody
0
753
Member Avatar for hawita

I am supposed to write a program to output Pascal’s Triangle. Ask the user to input the number of rows of the triangle to display. Also output for each row, the sum of the elements of the row, and show that it is equal to 2n, where n is the …

Member Avatar for abhimanipal
0
98
Member Avatar for Vindal

Hello everyone, I am having some problems with my code and allowing it to do what I want. I need within main to have the account balance from my class to be allowed to change value through "transactions" adding negative numbers for a withdraw and positive numbers to put in …

Member Avatar for abhimanipal
0
196
Member Avatar for biancaW

hi, i need help with this: Assume that your computer has the very limited capability of being able to read and write only single-integer digits and to add two integers consisting of one decimal digit each. Write a program that can read two integers up to 30 digits each, add …

Member Avatar for abhimanipal
0
195
Member Avatar for jfunchio

I'm writing an Observer Pattern program that uses an UpperCaseMonitor subject or concrete subject to monitor when there is an uppercase letter in a line of text entered by the user. Everything seems to work fine until i try to access the state changes to keep count, store, and print …

Member Avatar for nezachem
0
118
Member Avatar for fibbo

Alright, I suspect there is already a solution here somewhere on the forums but I'm not quite sure I'm searching for the right terms so I hope you dont mind me asking the question anyway. My goal is to make a constructor for a class called building. instance variables are: …

Member Avatar for mike_2000_17
0
2K
Member Avatar for inzombiak

Im writing a program that creates matrices and what not then count different things based on the elements in the matrix. That all works fine except 1 part, dividing 2 specific numbers. What htis is for isint important because everything works fine EXCEPT that one part. Anyway, im supposed to …

Member Avatar for VernonDozier
0
104
Member Avatar for CodyOebel

I am using the following code and it's working perfectly for windows XP. The game I am creating this for is known as Dransik. What this does is when I my character gets poisoned. My program automatically cures this issue using basic macro's. The problem is my program is not …

Member Avatar for makman99
0
250
Member Avatar for mas51

I am getting myself deeper into trouble on a program I am working on. I strated out with only four errors and am now up to twelve (I am currently learning and working with six languages-c++,html,javascript,PHP,SQL,and c#). I think my languages are running together! This program is from a textbook, …

Member Avatar for jonsca
0
218
Member Avatar for lochnessmonster

[CODE]typedef struct _IMAGE_OPTIONAL_HEADER { WORD Magic; BYTE MajorLinkerVersion; BYTE MinorLinkerVersion; DWORD SizeOfCode; DWORD SizeOfInitializedData; DWORD SizeOfUninitializedData; DWORD AddressOfEntryPoint; DWORD BaseOfCode; DWORD BaseOfData; DWORD ImageBase; DWORD SectionAlignment; DWORD FileAlignment; WORD MajorOperatingSystemVersion; WORD MinorOperatingSystemVersion; WORD MajorImageVersion; WORD MinorImageVersion; WORD MajorSubsystemVersion; WORD MinorSubsystemVersion; DWORD Win32VersionValue; DWORD SizeOfImage; DWORD SizeOfHeaders; DWORD CheckSum; WORD Subsystem; …

0
78
Member Avatar for GhostMonkey

Hi, I need some help writing a text file into an array. I've got the text file opening and displaying but its at the bottom of the page instead of where the array is. Would it work if I just set the position to (0,0)? Heres the code for the …

Member Avatar for GhostMonkey
0
75
Member Avatar for ashrafu1

Hello am trying to do this program as my project.and i was able to fix lots of errors but this few errors i do not know what to do. as my 1st and last semester for programing, am not really good in this subject. i added the errors list hope …

Member Avatar for ashrafu1
0
196
Member Avatar for ztdep

Dear friends: I write a vector class "vec" based on the template, i am confused greatly by the "const" keyword appeared at the left most when the = operator is defined. const vec& operator=(const vec & a) Could you please tell me what is the function of this "const". I …

Member Avatar for mike_2000_17
0
182
Member Avatar for mincuu

i have this assignment to submit tomorrow(friday) and i am having difficulties updating my text files. actually, i have to be able to update the text files by searching and deleting items. please, check the code below.. so far, i am receiving no errors except that the calculation part gives …

Member Avatar for jonsca
0
296
Member Avatar for triumphost

How do I find a window by partial title.. or if the title contains a certain word.. I was thinking GetWindowText but that requires that I have the handle already.. I was going to enum windows I think that I can search for a window title containing the string.. if …

Member Avatar for Ancient Dragon
0
270
Member Avatar for Tellalca

Hey there; I'm having trouble with fork() and wait() functions. In the code below I'm trying to create a child process and first let the child process do its work then parent process finish execution. I use wait() function in the parent process but the output shows that child process …

Member Avatar for Tellalca
0
237
Member Avatar for pseudorandom21

Hello, I'm hoping you can help me make a smart decision. I have some code written in native C++, a full program actually--and I need to use it with C#. The application is, at the moment, very basic. It has a console user interface, and settings need to be changed …

Member Avatar for George Truesdel
0
779
Member Avatar for stereomatching

[code] template<typename anyFunctor = printTxt> //printTxt is somekind of functor void testFunctor() { anyFunctor f; } void testFunctor2() { testFunctor(); } [/code] 1 : if [b]type anyFunctor[/b] need 3 arguments to initialize it, what should I do? Do I have another way to make this become more adaptable except of …

Member Avatar for stereomatching
0
133
Member Avatar for a.muqeet khan

[CODE]#include "stdafx.h" #include <iostream> using namespace std; class distance { int feet; float inches; public : distance ():feet(0),inches(0) {}; distance(float in,int ft): feet(ft),inches(in) {}; void getdist() {cout<<"enter the values of feeet and inches "; cin>> feet>>inches;} void showdist() {cout<<"feet= "<<feet<<"\n inches="<<inches;} distance add_dis(distance);}; distance distance::add_dis(distance d2) { distance temp; temp.inches= …

Member Avatar for a.muqeet khan
0
167
Member Avatar for kumarmpk4u

hello all, i am working on a project where a 16 bit code has to be changed to a 32 bit code. it is a mfc multiple document interface. when i try to compile a dll file i get a error "fatel error c1083: Connot open pre compiled header file". …

Member Avatar for drkybelk
0
500
Member Avatar for Derek Elensar

Hello, I was working with my C++ homework, and I wanted to combine a couple of projects. Now I've never done anything with project-projects before... it's all been one-file console applications in single "*.cpp" files. Well, I tried my hand at combining two projects into one project file, so I …

Member Avatar for Derek Elensar
0
227
Member Avatar for frenzra

helo juz want to ask if i write like this cout<< ' \n 1-package a \n2- package b " ; then what should i put in cin??

Member Avatar for frenzra
0
135
Member Avatar for lil_miss_choc

I'm working through an exercise to create a short program to calculate E using the series 1 + 1/1! +1/2! + 1/3! + ... The summation has to stop when value of a term is less than a value entered by the user. The code I have to produce the …

Member Avatar for lil_miss_choc
0
227

The End.