49,761 Topics
| |
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 … | |
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 … | |
please could you answer ... i searched all over but sadly could not find an answer | |
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 … | |
hello there's a simple method to track the build number of the application? | |
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* … | |
Creating my component, I'm using C++ Builder. And I wanna know how i can catch appearing scroll bar. Igor. | |
[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: … | |
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 … | |
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 … | |
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. … | |
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. … | |
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 … | |
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 … | |
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 … | |
[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. … | |
(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 … | |
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! | |
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 … | |
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. | |
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 | |
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 … | |
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. | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
| 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 … |
The End.