49,761 Topics

Member Avatar for
Member Avatar for timbo2000

Im using visual studio 2005 on XP and am recieving an error in my program that looks as if the call is not matching what is in my lib. I have been doing some reading about the code generation phase of the compiler and find that I should look at …

Member Avatar for mitrmkar
0
94
Member Avatar for cam9856

Ok so at a specific point in my game, the game just shuts down. I am not sure what the problem is so I am going to throw all the source code up. Any Help is appreciated. [ICODE]#include <iostream> #include <windows.h> #include <fstream> using namespace std; string location = "Amasi …

Member Avatar for cam9856
0
102
Member Avatar for cbrules3033
Member Avatar for JoutPerl

Hello, I am currently working developoning C++ app. with the codeGear Ide. I want to keep trace of every stored procedure I call using ADO executeComplete event in my ADO connection object (just for loging propourses). My problem is that I can not access any Command property because of const …

0
108
Member Avatar for xyzt

hello there's a simple method to track the build number of the application?

0
53
Member Avatar for SwathiSangral

Hello, I have a sample code which is a header file and I am trying to write a CPP program which uses this file. But I am getting errors while running the code. Here is the header file: #ifndef FineInterfacePtr_h #define FineInterfacePtr_h template<class T> class CSafePtr { public: CSafePtr( T* …

Member Avatar for Radical Edward
0
121
Member Avatar for bbfree

Creating my component, I'm using C++ Builder. And I wanna know how i can catch appearing scroll bar. Igor.

0
34
Member Avatar for FTProtocol

[CODE] #include <windows.h> #include "Resource.h" HWND hWnd; LRESULT CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { DialogBox(hInstance, MAKEINTRESOURCE(IDD_Main), hWnd, reinterpret_cast<DLGPROC>(DlgProc)); return FALSE; } LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam) { switch(Msg) { case WM_INITDIALOG: …

Member Avatar for FTProtocol
0
123
Member Avatar for herms14

guys..I would like to ask for your help..I was given a programming assignment about searching a random number in a array of also random numbers. here's the problem: [B] write a program that creates an array of 100 random integers in the range from 1 to 200 and, then use …

Member Avatar for mitrmkar
0
108
Member Avatar for haber5

Hi folks I have a server written in C++ over ACE infrastructure. I'm using the ACE logging tools and here is how I create it in the main thread: std::ofstream* output = new std::ofstream (name); ACE_LOG_MSG->msg_ostream (output, 0); ACE_LOG_MSG->set_flags (ACE_Log_Msg::OSTREAM); I'm working with a multithreaded system and logging is working …

0
70
Member Avatar for AnjaliAnuradha

Hello, As a part of my program, I have to convert a column of strings in a vector(containing strings of both upper and lower case) to uppercase. The column is accessed as array.at(i).at(2) I have tried to convert character by character using toupper() , but I didnt work for me. …

Member Avatar for Nick Evan
0
131
Member Avatar for instructor_c

hey everyone am totaly stuck on these questions. am new to programming and a begginer is even a big word for me i guess am still at the scratch level so plz help :'( here are the questions 1. Write a program that asks the user to enter 10 integers. …

Member Avatar for Nick Evan
0
174
Member Avatar for camproject

I have a main dialog that is shown when my application starts running.It consists of a VLCplayer control that streams the live video and plays it.I have another dialog with a second VLCcontrol which is displayed when I select a menu item.What I have to do is play the same …

0
249
Member Avatar for jks1234

Write a program that will prompt the user for a purchase amount. If this bill amount is valid, then prompt the user again for the payment amount. If this is valid then compute the change to be returned. This amount should be displayed in pennies, nickels, dimes, quarters, single dollar …

Member Avatar for Ancient Dragon
0
101
Member Avatar for c++noobie

Ok, I was trying to write a program that formats a plain text file to the formatting standards of gamefaqs.com (no trailing spaces and no more than 79 characters per line). To my eyes, my code looks perfectly fine and effective. If I run it with anything but a file …

Member Avatar for c++noobie
0
193
Member Avatar for sniper29

[SOLO] Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and the highest and lowest temperatures for the year. Your program must consist of the following functions: a. FunctiongetData:Thisfunctionreadsandstoresdatainthetwodimensionalarray. …

Member Avatar for jephthah
0
489
Member Avatar for daviddoria

(see next post for the question about makefiles!) I have this line in ScanScene.h [code] bool ScanScene(LiDARScan &Scan, LiDARScanner &Scanner, vector<geom_Triangle> &Scene); [/code] and in ScanScene.cpp [code] bool ScanScene(LiDARScan &Scan, LiDARScanner &Scanner, vector<geom_Triangle> &Scene) { ... } [/code] then in another file, I [code] #include "ScanScene.h"; int main() { LiDARScan …

Member Avatar for Duoas
0
154
Member Avatar for e_pech

I'm working with OpenGL and MFC. I'm able to output text on the view using glCallLists but I'd like to position the text on the screen. How can I do that? I'd appreciate any suggestions.. thanks!

Member Avatar for Duoas
0
247
Member Avatar for Alex Edwards

Okay so I have a program that tests for collisions using a complicated and 80% accurate method, but I want 100% accuracy. Like someone posted earlier about shapes colliding into each other, I realized that there will be cases where my method wont work. However, I've looked into a calculus …

Member Avatar for Alex Edwards
0
129
Member Avatar for SakisLam

Let's say I have the integers A1,A2,A3 and x. I want when the value of x is 2 (for example) , the caption of a label to return A2's value. If x = 3, to return A3 value and so on. How do I do that? Thanks a lot.

Member Avatar for Tigran
0
94
Member Avatar for kux

what method is to be used to get the selected row in a CListCtrl ? i tryed GetCount() but it returnes the number of selected items i searched the method list, but found no GetRow() or something thx in advance

Member Avatar for Ancient Dragon
0
231
Member Avatar for Tigran

Hi guys, As my first post, i'd like to post something usefull instead of "Hi, i'm new here". The reason for this topic is because i don't understand a few things, mostly about classes. Here are the things i don't understand: 1) Why do some people set a "_" before …

Member Avatar for Alex Edwards
0
228
Member Avatar for SakisLam

Is there a way to copy the image's data (the actual picture) to another image? I am using Borland C++ Builder. Thanks a lot.

Member Avatar for Tigran
0
91
Member Avatar for daviddoria

Is there a way to check for a keypress every time through a loop without forcing a key to be pressed. ie. if you use scanf, the loop will not continue unless a key is pressed. I'd like to say "if a key was pressed, handle it. If not, keep …

Member Avatar for Ancient Dragon
0
79
Member Avatar for timbo2000

I have a program that has several header files in a folder. Is there a way I can have the program automatically search through this folder whenever the particular .h is called?

Member Avatar for timbo2000
0
89
Member Avatar for mariaczi_pl

binary '+' : 'System::Int32 ^' does not define this operator or a conversion to a type acceptable to the predefined operator. I have this error in this line : [code] Account = Account + 100; [/code] Account is pointer to Account i main class. some stange is this, that this …

Member Avatar for Ancient Dragon
0
235
Member Avatar for Nematoad

hey Guys and Gals, There has been lots of discussion about fopen64, fseek64 and fread64 functions in C / C++ and Linux. So Far no one has produced anything useful. Just lots of false rumors. Anyone see an implementation that I can use right now? I need it for RHEL …

Member Avatar for jephthah
0
127
Member Avatar for gctarzana

Hello , I'm having trouble with a C++ assignment. We're supposed to create an inventory program for keeping track of books, CDs and DVDs. We are supposed to use an abstract class InventoryItem, and classes Book, CD, DVD. Also a class Inventory will contain all the functions needed to enter …

Member Avatar for Sky Diploma
0
2K
Member Avatar for Nemoticchigga

I have a server running using winsock2.h TCP/IP. I open two ports on my pc, and then in a different application connect and send and receive to and from the server respectivly. In my client application receiving port, everything is working perfectly. In my server that is receiving though, it …

0
58
Member Avatar for Thew

Hello, When I was running some demo applications I've found that I'm getting an exception in the std::list. After some time of debuging I found that the error coms from here: [CODE] bool operator==(const _Myt_iter& _Right) const {// test for iterator equality #if _HAS_ITERATOR_DEBUGGING _Compat(_Right); #else _SCL_SECURE_TRAITS_VALIDATE(this->_Has_container() && this->_Same_container(_Right)); #endif …

Member Avatar for Nick Evan
0
88

The End.