49,761 Topics
| |
anyone know how to convert C++ DLL to be compatible with C#? | |
int x=10; string y; How do I bring about this conversion y=x; with a single statement? should I use typecasting, somebody pls guide me. I dont know how to do it. itoa is so complex | |
[code=cplusplus] void CLine::Draw(CDC *pDC) { pDC->MoveTo(m_ptFrom); pDC->LineTo(m_ptTo); } [/code] 'void CLine::Draw(CDC *)' : overloaded member function not found in 'CLine' | |
ive been trying to connect my c program and a postgre database using VC++. but i cant compile it because it cant find "postgres_fe.h". and also i cant find any tutorials about this one too. When i searched google, most are for linux. if anyone here knows some links to … | |
Need assistance in the assignment on using an Array of structs. I need to know if the array is initialized properly or what i need to do to get it initialized. Some code has been commented out until i get the array initialized. Here is the code: [code=cplusplus] #include<iostream> #include<iomanip> … | |
Hallo, i have a programm, it works without errors , the only problem i have is that the .exe file works for one line and then it closes from itself how can i change this problem. i must give this .exe file in 4 days !! thanks | |
I am to create a program in which the user puts in a word and the program displays the definition. The words are 20 words I select. I have a comon idea on how to achieve this, but I never scaned for text before. I know char is for a … | |
Hi to all, I was wandering which is the best way to found the closer number in an array. OK not exactly the closer number, I explain my self: For example I have the array: Index: 0 1 2 3 Numbers: 750 500 300 200 * If I receive the … | |
My program seems all correct but when I run the program my outputs are all what they need to be but I just cant seem to figure out how to send my output into 5 seperate columns. After reading the teachers notes I am more confused with his explanation on … | |
[code=c] case WM_NCHITTEST: { UINT uHitTest; uHitTest = DefWindowProc(hwnd, WM_NCHITTEST, wParam, lParam); if(uHitTest == HTCLIENT) return HTCAPTION; else return uHitTest; } break; [/code] I came across this code that can be used to drag a window by its client area, which is what I need. However using this code stopped … | |
Hi everybody: I'm trying to do the practices on the top of forum. I started from beginner's level. This time I will show you my solution to implement a simple database in C++. If you could give some advice on the following aspects or other, it would be so nice … | |
Hi,sir.I encounterred a person who said that C++ is an unsafe language.I try the follow code ,but when I input an non-int type,the program will fall in a bad loop.(gcc4.1 in Linux) [CODE] #include <iostream> #include <string> using namespace std; class bot { private: int password; public: bot():password(567){} virtual ~bot(){}; … | |
Hello, I have generated a group of random numbers but I can not figure out how to display the numbers in groups of 4. Any suggestions? [CODE]srand ((unsigned int) time(NULL)); int i, high, low, number; high = 47; low = 19; for (i=0; i<20; i++) { number = rand() % … | |
Hello there, is there a scsipt.h version for Linux? I've been looking for this because I really need that header file. | |
Ok.. Im at work , and dealing with 2300 machines. I need the easiest way possible to get the computers name. for example.. say the pc's name is GA2032d1 I need to be able to simple get that name, and be able to manipulate the characters in it. So for … | |
I have been stuck on this one problem for sometime now and I have tried looking this up in all my references but was not able to come up with a solution to this error. Can someone help me with it please. My gratitude to you in a thousand years … | |
please help me i really need this badly i'm trying to write all the possible code but the outcome i needed is not right i write a program that you input a string then the output will be the last letter of you input will come first then follows example: … | |
Does anyone know of a "real-world" program with source that has good documentation and comments, so that say an intermediate-beginner programmer could look through it and get a general idea of how these programs are created? By real-world I mean a program that does something, not just show how a … | |
Hi, I was just browsing through some stuff about Initialization lists in C++ and got stuck with a doubt.. Why is it necessary to use initialization lists while giving a value to constants or references ?? Why is it not possible to do so in the normal way..i.e initializing them … | |
How would one handle right clicks on a specific control for example, if the user was to right click a static control and I would like to display a menu.. I thought that I could do something like this.. [code=c] LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM … | |
[COLOR=#008000]I am having problems with the following program. We are to create a biary tree that takes words form a text file and then create a link list the the number the word was found on. I have the tree created but I am unsure how to incorporate the link … | |
[code]class abc { public: virtual ~abc() {} static void operator delete(void*); }; int main(int argc, char *argv[]) { abc _a; return 0; } [/code] | |
I am relatively new to Borland 2006 C++ Builder. I have a form which has about 6 buttons and a text box for selecting and inputting values respectively (e.g. Clicking on Button 1 should return "100" to a variable in the calling form. Likewise, entering 100 into the text box … | |
i have taken a look around and it seems to me as if visual c++ is an outdated technology. I mean it appears as if no one is using it anymore. Even Deitel, which sells some good textbooks, list them as "old products". Is it worth the effort to learn … | |
In my program I have a loop with a variable that shows the players name, they choose something then it goes back to display their name and all it shows is arrows.... why? I'll post my code, run it and enter 3 or 4 players are playing, give them some … | |
error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [1]' to 'LPCTSTR' plz send me: [email removed -Narue] thanks | |
Okay I had a thread on this already but it was under my friend's account and when I replied to it under my own account nobody knew what was going on and nobody responded after that so thats why I'm making a new one. What I'm trying to do is … | |
I am just starting to figure out lotus but I am experienced in C++. Can I compare data from two different databases in lotus notes in C++? What is a good resource? Help! | |
Hi, I get equation in the form of a string from the output of a software that I want to modify further. I am no expert in C++ and I am wondering if some expert in C++ at this forum can do this for me. Pls see the attached Notepad … | |
I was wondering how I could access my several countryAttachedXX arrays(in this post they start on line 85), without many if statements, determined by user input. I was thinking maybe an array of arrays, but had difficulty finding out how to do that on the web. Thanks, -Matt [code=cplusplus]/**************************** * … |
The End.