51,593 Topics

Member Avatar for
Member Avatar for calavan11

I am working on a program that uses an array called Game that can store 26 characters. It asks the user to to enter a single letter and a number between 1 and 26. It then places the letter they entered into the position in the array referenced by the …

Member Avatar for wildgoose
0
96
Member Avatar for Acidburn

Hey guys, Is there a standard library for communicating with a USB device? I've got a smart card reader that works via USB, and implemented the PC/SC interface. To my knowledge and googling I've not been able to answer the question. Surely someone somewhere as written a library to allow …

Member Avatar for ddanbe
0
118
Member Avatar for trinity_neo

hello all need help in solving this problem print current time in a file for every 1min. thank in advance.:)

Member Avatar for trinity_neo
0
78
Member Avatar for fish786

I am new at programming and would like someone to assist me as to what I am looking for? As far as I know I have followed the instructions I found on one of the sites. Can someone please help? I am using VStudio 2008, creating an MFC application. I …

Member Avatar for fish786
0
206
Member Avatar for minime2100

Hello all, I have to do a mid semester project for my online C++ course and I am having trouble finding a place to start. We were given a list of what needs to be included within the program that I am to write. I just don't have anything that …

Member Avatar for Nick Evan
0
132
Member Avatar for veronica_0501

hello, is there anyone who could help in saving and loading binary trees? is there any source code i can refer to?? thanks alot. (:

Member Avatar for Nick Evan
0
80
Member Avatar for rahim_rasimin

Please advice me what is the most suitable Design Pattern for C++ to create Data Access Layer. Objective is to have clear separate layer for Presentation Layer, Business Logic, and Data Access Layer. Sub Question: 1. In C#, there was Dataset class to get data tabular records from query. What …

Member Avatar for Ancient Dragon
0
136
Member Avatar for wingers1290

Hi, I am having problem with a particular process of commands. My program begins with detecting whether a textbox is empty at the press of a button and if it is it will display an error code which i scripted to do, you can create up to 10 textboxes which …

Member Avatar for wingers1290
0
123
Member Avatar for Bladtman242

Hi guys and girls. I was wondering; is there a way, using winAPI or external libs and whatnot, to check the internet connection etc? more important; check the speed the conmputer is currently uploading at? The goal is to make a program that monitors the internet connection, and if the …

Member Avatar for Bladtman242
0
248
Member Avatar for tomtetlaw

When I try to build my project(im using VC++), I get this wierd error: [code] ------ Build started: Project: DarkGDK Engine - By Tom, Configuration: Debug Win32 ------ Embedding manifest... mt.exe : general error c10100b1: Failed to load file "..\Debug\DarkGDK Engine - By Tom.exe". The system cannot find the path …

Member Avatar for thelamb
0
128
Member Avatar for mediachicken

So I know I can run a terminal command, ok? What if I want to run say... a vi command or mkdir command INSIDE ssh? If I want to make it insert a directory in a server via SSH, possible? Last time I checked I think when you run commands …

Member Avatar for necrolin
0
127
Member Avatar for daimon

Greetings all, I'm working on a classic Elevator Simulator problem and have a quick question: How can I access a private data member of the container class from one of the contained classes? My Building class (container) "has a" vector of Floor objects and "has a" vector of Elevator objects. …

Member Avatar for wildgoose
0
108
Member Avatar for didijc

Hey C++ guru's... I would really appreciate some help... I'm building a general tree (a tree with one root and N children), I've written the code and compiled it quote/un-quote successfully... ...however, I can't seem to get my delete function working properly -- what I want to do is pass …

Member Avatar for wildgoose
0
125
Member Avatar for 23.12.2012

Hi! I opened this thread because I've found out that, as I'm making my way through a textbook, I find many problems which I can't figure out for myself. To start, **Thinking in C++** has this buggy program right in its second chapter. The code looks OK to me, but …

Member Avatar for 23.12.2012
1
214
Member Avatar for calavan11

So im trying to display the largest value entered and the smallest value entered. i can get my code to compile and run the largest number if its greater than o and the smallest number if its less than 0. but i want to be able to cover all numbers …

Member Avatar for calavan11
0
128
Member Avatar for Yaserk88

I have a csv file that is being read as a continous string of different characters and values(integers and Real #'s). I separated these 35 different values by interating with factor of 35. My goal now is to convert these different characters and values into int, float, and keep some …

Member Avatar for Lerner
0
108
Member Avatar for koculan

Hai,im trying to do program using strings.The difficulty is that, i want to remove double spacing in the sentence.I dont know which function to use and the coding for it?please help me? //to remove double spacing-task 6 int i,k=0; for(i=0;i<s.length();i++) { if (s[i]==' ') { ???????????? ????????????

Member Avatar for JameB
0
3K
Member Avatar for cougarclaws

OK, I hope I "wrapped it correctly, but if not, please advise and I will be sure to do this correctly from here. I am having issues getting my nesting to work. Can I go this deep? Should I try switches? The program function should return values based on age …

Member Avatar for cougarclaws
0
135
Member Avatar for atch

Hi, it's me again, Another two problems which I'm having with this example is that when in ofstream constructor I specify mode as binary: ofstream fout("my_file.txt", ios_base::binary); nothing is written to a file (at least I can't see there anything) and another problem which I cannot cross is that I …

Member Avatar for atch
0
73
Member Avatar for metdos

This is the situation, I wonder the reason. in .c file this works properly[CODE]vciDeviceOpen(&sInfo.VciObjectId, &hDevice);[/CODE] and this gives error :error C2440: 'function' : cannot convert from 'VCIID' to 'REFVCIID' [CODE]vciDeviceOpen(sInfo.VciObjectId, &hDevice);[/CODE] but in .cpp file this works properly[CODE]vciDeviceOpen(sInfo.VciObjectId, &hDevice);[/CODE] and this gives error :error C2664: 'vciDeviceOpen' : cannot convert parameter …

Member Avatar for m22
0
332
Member Avatar for whotookmyname

I need to do the following in a .csv file using a c++ code 1. open the file 2. read the first line...extract the number part of it 3. enter the user entered data at the end of the file (append) 4. now add the extracted integer and a certain …

Member Avatar for rdrast
0
98
Member Avatar for clisen

Hey there, I'm setting up a default program to use as a template for my future DirectX applications. The program compiled fine but I'm getting a run time error in my WinMain() function. Here is the WinMain() function. [code=c++]int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmd, int show) { MSG …

Member Avatar for ashishchoure
0
195
Member Avatar for #define:me

I have an urgent assignment to write a c++ program and I lack time to learn the whole language. Is there anyone willing to give a detailed outline enabling me to write the program myself? I simplified the assignment and will describe it in terms of algorithms. background The program …

Member Avatar for Salem
0
120
Member Avatar for metdos

I have this global variable. [ICODE]void * userInterface;[/ICODE] and this line in main.cpp [ICODE]_beginthread( ReceiveThread, 0, NULL);[/ICODE] and ReceiveThread [ICODE]void ReceiveThread( void* Param ) { ........... QString str; rovkonInterface *w=((rovkonInterface *)userInterface); w->ui.systemStatusText->insertPlainText("abc"); ........ [/ICODE] and I get runtime error: ASSERT:"qApp && qApp->thread()==currentQThread" in file .... and I tested same code …

Member Avatar for Salem
0
133
Member Avatar for atch

Hi, I'm trying to print to a file some data of objects and I'm trying to do this in pseudo xml format so my file would look like let's say: <node> data </node> I'm using write method: [code = C++] fstream fout("my_file.txt"); fout.write("<name>", sizeof(7)); fout.write("\n", sizeof(2)); fout.write(this->name(), sizeof(this->name()).length()); fout.write("\n", sizeof(2)); …

Member Avatar for atch
0
84
Member Avatar for dzhugashvili

Hello. I am working on a Kerberos 5 preauth password recovery tool. Part of an algorithm optimization involves checking the decrypted timestamp to make sure that it equals the year that the packet was recovered before continuing to compute a checksum. If the timestamp does not equal the year the …

Member Avatar for dzhugashvili
0
557
Member Avatar for DavidJ12345

Hi, i have written a programm in VC++ 6.0, in this i use a dll, which is created with VB 6.0. on my pc it runs well, but on other computers the class in the vb-dll isnt called. i have already installed the VB 6.0 Runtime Files on the test …

Member Avatar for DavidJ12345
0
106
Member Avatar for group256

Hi, I'm implementing a nested class and trying to implement some related functions in it. But it seems that no way whatsoever it decides to work. Could you please help me as I'm getting really exhausted. Thanks a lot. [code] #ifndef STOCKLIST_H #define STOCKLIST_H #include <string> using namespace std; typedef …

Member Avatar for kvprajapati
0
101
Member Avatar for zautner

Hello. I'm looking for some reference C++ code of IAccessible and/or IAccessible2 clients. Actually, any reference code, which deals with the major web browsers through their accessibility interfaces (in both Win and Lnx).

0
58
Member Avatar for gretty

Hello I have a problem where when if I call my 'Display' function from within my 'Menu' function it(the 'Display' function) does not work. But if I call my 'Display' function from within my 'Read'function it does work. [B]When I say it doesn't work[/B], I mean the information extracted from …

Member Avatar for m22
0
104
Member Avatar for lotrsimp12345

When you use getline(input,inputline) and you delete part of the inputline does it also ignore from the input file?

Member Avatar for m22
0
85
Member Avatar for mrinal.s2008

Hi, I have a header file in which I declare a class. A member function foo() is declared as inline. In another .cpp file, I define the function foo(). I create an object in main() (in another .cpp file) and invoke the foo() using that object. When I compile the …

Member Avatar for Nick Evan
0
81
Member Avatar for derekc4

[code] //This program asks the user for the number of tests, creates an array based on that response //the user enters his scores and then the program lists the scores in ascending order, finds the average //and then finds the average of the scores with the lowest one dropped #include …

Member Avatar for m22
0
112
Member Avatar for duka96

I'm having a problem with adding push button to a window. It is MFC document/view application in which i have some drawing in OnDraw method and I want do add button bellow the drawing. I'm trying with [code] m_wndPushButton.Create(_T("Button"), WS_CHILD | WS_VISIBLE, BS_PUSHBUTTON, CRect(100, 600, 200, 650), this, IDC_BUTTON); [/code] …

0
50
Member Avatar for duka96

How can I check if CPoint (or any other) variable has been initialized? I'm getting error for this: if(m_pointVar != NULL) saying binary '!=' : no operator defined which takes a left-hand operand of type 'class CPoint'

Member Avatar for duka96
0
110
Member Avatar for wingers1290

Hi, Is it at all possible to detect if a user has inputed text into a text box for example. [code] if (textbox1.Text == ("detect if text is in textbox") { // do something } [/code]

Member Avatar for wingers1290
0
265
Member Avatar for metdos

I want to add my header file as #include <vcinpl.h> instead of #include "vcinpl.h" how can I manage this? Thanks.

Member Avatar for metdos
0
177
Member Avatar for _dragonwolf_

I have tried different things to modify the following code and have been unsuccessful. The following code is to get the julian date number. I need to alter it to make it return the day number (between 1 - 366) within a given year. Can anybody help? (fyi - this …

Member Avatar for _dragonwolf_
0
245
Member Avatar for nuhendra

i have done a c++ project in banking application in a 16 bit machine but i have told to do it in a 32 bit machine . i have decided to use wxwidget but dont know how i can use . can somebody help me to change my 16 bit …

Member Avatar for Salem
0
25
Member Avatar for pltndragon

This program should accept array of integers and integers that indicate the number of elements in the array. the function should then determine the median of the array. Using pointer notation. I did research to see if someone had similar problem like me, but their was only other one, it …

Member Avatar for pltndragon
0
3K
Member Avatar for amen

i need help. i need to write a code that can extract word from string. i had use cin.getline(string,size) to get th string and strtok(string," ") to extarct token. now i want to know how can i insert the token in array because i want to use the token for …

Member Avatar for acsountharraj
0
311
Member Avatar for srilelkhahota

Hi I am tring to give gridlines in excelsheet in vc++. so if u can guide for this task i can solve this problem.

0
32
Member Avatar for gsuraj02

My program has two threads one for reading the data of the client (RXTHREAD) and putting that data of client in a structure called qstr(which contains client Ip address,message,etc), the object of this queue(put_inq) should be placed in a Structure called (que), the SXTHREAD should then pop the object put_inq …

Member Avatar for asadmalik
0
110
Member Avatar for phillipeharris

I have this code working to great now. but I am trying to pretty it up and now I cant see my cout ... Maybe a new set of eyes on it will help me. I am missing something .. I may have deleted a cout but I dont see …

Member Avatar for brian4092004
0
125
Member Avatar for naeem1973

[code]void my_Func(char source_file[1024] , char dest_file[1024] , unsigned int Exp , unsigned long Mod) { FILE *in, *out; int counter; int Ret; in = fopen(source_file ,"rb"); if(in == NULL ) { cout << "OOps! Source file "<<source_file<<" non-existing or corrupt file\n"; return; } out = fopen(dest_file ,"wb"); if( out == …

Member Avatar for Nick Evan
0
187
Member Avatar for Furtano

This is my first try with an API and HttpWebRequest Class in Visual Studio 2008 c++. I try to POST some variables to a link and want an link value from the API back, but I get an Response (not from API) : this->t_bbcode->Text = dataStream->ToString(); // [B][COLOR="Red"]System.Net.ConnectStream[/COLOR][/B] I think …

Member Avatar for Furtano
0
857
Member Avatar for walter clark

We use Windows Form1.h to interface an existing C++ program. The existing program is changed by other people and I have to update the interface. To do that I copy all folders of the older project to a different place and then introduce the changes there. The problem is, that …

Member Avatar for walter clark
0
93
Member Avatar for slatk3y

Hello, I have a problem when I try to double the length of the array if it is already full. For example, array arr has length 5, and I want to insert 7 elements in it. This is what should I get: arr = [1, 2, 3, 4, 5, 6, …

Member Avatar for slatk3y
0
106
Member Avatar for lost_scotsman

Hello all, I have what at first glance seems like a very simple problem but I have been getting bogged down with it for the last few days now and would appreciate some help. I have a series of text files to read in, and wish to convert them to …

Member Avatar for lost_scotsman
3
983
Member Avatar for sdmahapatra

I have a function under Base class and at the definition tine of this base class function I need to call another function which is define under the Derived class. how to do this?? My class declaration is below [code]class Base{ public: void showdata(double); }; class Derived : public Base{ …

Member Avatar for Laiq Ahmed
0
226

The End.