51,593 Topics
![]() | |
<< split from [url]http://www.daniweb.com/forums/thread67837.html[/url] >> I need to print post #15. How do I do that? I can't seem to find the button. I need it just as it was written here. Also, do I need to know C++ classes in order to be able to implement the in-game classes? … | |
I've copied an entire project/solution to another folder so I could create a different version. I made some changes in the source code that is unrelated to the Windows user I/O stuff. I've done that before, but this time, it found errors in a... form1.h instead of Form1.h Where did … | |
For the past 10 years I've been using NetShareGetInfo() to retrieve the PATH for my shares, this was done as follows: [Code] SHARE_INFO_2* share_info_2 = NULL; NET_API_STATUS status = LM_API.NetShareGetInfo ( (PWCHAR) (PCWCHAR) WZS (cszServer), (PWCHAR) (PCWCHAR) WZS (cszShare), 2, (PBYTE*) &share_info_2 ); return share_info_2->shi2_path; [/code] Up until a few … | |
Man, I hate having to get you guys to hold my hand through all this, but I've run into another problem. I have my ODBC connecting to a MS access database. This is all coded into a library that gets injected into a video game, and then macro commands call … | |
I can't figure out how to make my save function append to the txt file it always overwrites. Also, I'm trying to figure out how to make each set of words on a newline in the text file. Here is the function: [code] BOOL SaveTextFileFromEdit(HWND hEdit, HWND hEdit2, HWND hEdit3, … | |
Hi guys i just wana know how to disable a button without using MFC. It would be very kind if you could please help me out on this. | |
I need to delete a shortcut but the code I wrote will not work. [code=C#]System.IO.File.Delete("C:/WINDOWS/Example.Ink"); // This returns no errors at all, just nothing happens.[/code] Does anyone have an idea on an alternate way to delete a shortcut? Any help is appreciated =D | |
Hello! I am trying to open this CSV file separated by semicolons. I know how to open a text file and I tried searching the way to open a CSV, but most methods seemed extremly complicated. Does any one have a simple suggestion that would work with what I already … | |
I have a class called Scanner which casts rays into a 3d scene and records the resulting intersections. It has the following type of properties: Location (a 3d point) Forward (a 3d vector) Up (a 3d vector) min/max angle (the bounds of where to cast rays) theta/phi step (the directions … | |
I have Tabctrl in a dialog.I want to set its background colour for each tab .I tried ON_WM_DRAWITEM but the control never comes in OnDrawItem().Can you help? #define RED RGB(255,0,0) #define YELLOW RGB(255,255,0) #define MAGENTA RGB(255,0,255) #define WHITE RGB(255,255,255) #define BLUE RGB(0,0,255) void CVMListDialog::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpdis) { CDialog::OnDrawItem(nIDCtl, lpdis); … | |
Hi All, I am somewhat confused here and would need some assistance on how to fix this issue. The code runs for some time and crashes at some point. This problem occurs when I have a larger workload on the code. It works well for small loads. The error returned … | |
What does a progam on how to make change for 25 cents look like? | |
I was wondering. Is there any function like strtok to split into tokens a string, which is c++ standard? Also is there a way to store those tokens into separate char arrays? Thank You | |
I am working with large number and i found a free library that deals with it... I downloaded it but i don't know how to use it.. I mean where to put the folder of the library and how to include it in the project ... Here is the site … | |
Hey everyone, I've been working on a program that "flips" a stack of pancakes for the user depending on where they want to flip them. the problem that I'm having with the code is that I can't quite figure out how to "error check" the users input for flip location. … | |
Hi, This is a very simple question, but I just couldn't figure out any set of keywords that would point to an obvious answer. So here we go. Code example: int array [size] ; Size is, for example, given as an argument. Is this array initialization static or dynamic? It … | |
Is it correct to say that you can create a DLL which contains an abstract class that each programmer must declare instances of to keep segragated code working independently of eachothers progress??? I understand that most forums don't allow their users to delete their threads, so dont mind the Judge … | |
I have been given the task to Design,Develop,Test and Document an application on a stack class. The stack class's public interface should consist of methods to initialize a stack object, to check whether a stack is full or empty, to push integers onto the stack, to pop integers off a … | |
Hi, I want to add a new node at 5th position in a single linked list in C++.Please help me with this..as am new to linked list. | |
Hi, can someone plz tell me how to compile gtkmm in code:blocks? or actually, how to compile gtkmm at all in windows? | |
Hi! I've made this program, but not working :( First time I compiled it with MicrosoftC++ and gave me just 1 error, that corrected, then compiled it with DevC++ as teacher used it, and started giving me a lot of errors :S that some of them dont know how to … | |
hello. here i go again... were learning Arrays this week, and after a lot of trial/error, ive finally created a program that actually runs and compiles. my issue of the matter now is being able to put the user's 4 numerical inputs in order from low to high. if anyone … | |
i want similar help but i want the code to be in c++ if have modified this code and tried to use it but somehow its nt wrking...it ll b kind of sum1 to hlp me in dis... | |
The last few days I've been attempting to make a popup window with a menu outside of the WinMain class. [code]void CMFToolbar::GetQuote() { InitCommonControls(); if(m_pBrowser) { WNDCLASSEX wc; HWND hwnd; MSG Msg; wc.cbSize = sizeof(WNDCLASSEX); wc.style = 0; wc.lpfnWndProc = (WNDPROC)WndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = GetModuleHandle(NULL); … | |
Hi, I have been doing c++ for about a month and a half and have done 26 tutorials on Youtube and I feel rather proud of learning something I have wanted to do since I was 13 (I'm 20 now) and that is to program. Back to the point. I … | |
Hi I am writing a simple C++ win32 console application, with only one .cpp file. I want to show a windows form, for this i added a new windows form in my project, It said that i am adding CLR support in my project, i said ok and It created … | |
[CODE=C++] string word; cout << "type in the word you want to be decrypted >> "; cin >> word; char dword[] = word; [/CODE] this does't work, is it because yo can't use the line [CODE=C++]char dword[] = word;[/CODE] if it is because of that then please tell me what … | |
Hi all, I want to take the position of cursor from the command line and also want it to go to specific location. But I dont know how to accomplish that. I have tried with cout.seekp () and cout.tellp (). But they didnt worked as I hoped. seekp () and … | |
As I emphasize *piece by piece* in the question, I have to read the ANSI file piece by piece to conserve resources, say 40 kilobytes for each read. Now I am handling an ANSI file that contains Chinese characters (encoded using the GBK charset, two bytes for each Chinese character … | |
Hey, so I'm trying to make a program that sorts user inputted "pancake sizes" and then outputs the result after a selection sort. My problem is that with an input of 12.3, 14.2, 15.2 etc(doubles) the program won't work, and I have no idea what to do for the parameters … | |
Hi, My name is Oleg and I'm 1,5-year experienced C# developer working in Danish outsourcing IT company. I'm searching for freelance work here. If interested with my CV, please write to me, Best regards. | |
i want the user to enter the name of the file to open and i want it in c++, i have seen a similr work done in vc but i m nt abl 2 implement da same in c++ ![]() | |
Hello, This is a general question, so, I don't think code is necessary. I have a basic question about buttons in Win32 API... (Solution in MFC is also OK!). I was doing some experiments in push buttons, using MFC... I can enable/disable a button as I wish, but, there is … | |
I realize that there is another thread about this topic, where bitshifts are used, but I do not understand why my code is not working: #include <iostream> #include <bitset> using namespace std; int main() { bitset<5> b; int temp=0; for(int count=0; count<=10; count++) { temp=count; for(int check=4; check>=0; check--) { … | |
if anyone can check out my program below and see whats wrong, itd be greatly appreciated. my goal: user input a text file (i.e. data.txt) to open and read print the mssg within file to both console and text file (i.e. secret.txt) print the mssg as scrambled message (ASCII) my … | |
i have to create a program that calculates how many weeks it will take to become a millionaire given an allowance of pennies. for example... 1st week - 1 cent 2nd week - 2 cents 3rd week - 4 cents 4th week - 8 cents 5th week - 16 cents … | |
I've been wanting to use ADO in a c++ project i'm working on. I was having some errors on it, and have since reverted to ODBC but i'm finding it rigid, and frenquently frustrating to work with. I'm going back and giving ADO a shot again, but simple pasting the … | |
I have to write a textual scenario for a gamming code . Should i write about the game or should i be writing about the code? | |
write a program which takes student marks from user and it pass to student class object then that class decides whether the student getting first , second or third classes | |
I have the next piece of code: [CODE=C++] vector<ChatSession> ssid; void SessionCreator( void *ch ) { vector<string> users; ... ... ... ChatSession cs; // put chat session objects in vector array for (int i = 0; i < (int)users.size(); i++) { const char *t = users[i].data(); char t2[30]; memcpy(t2, t, … | |
Problem 2: Write a program which will accept the price and description of three items. It will then display the total price of the three items as its output. Here is a sample output: First Item: ruler Enter price: P 32.50 Second item: notebook Enter price: P 25.00 Third item: … | |
Hello, this is Metalcrunch. I've been learning C++ over the past days and I thought I'd make a calculator. So I looked over the existing code on the internet on how to make a calculator, understood it, then made my own from the very scratch. However, I'm having a few … | |
I am starting some threads using AfxBeginThread and they work by monitoring a flag (sent via lParam) and once they find the flag is set, they return. However, once they do return, they aren't deleted and I get a memory leak. Shouldn't this method work fine and not cause any … | |
Why did Microsoft Visual C++ developers choose "Form1.h" for us to put all of our source code in, instead of a Form1.cpp? I find the Form1.h file to grow without bound; thousands of lines... in an "h" file! Walt | |
Hi, How to set background image of CTreeCtrl? And also how can i set different colours to different items of CtreeCtrl? | |
Hi all.. I would like to convert a hex to CString format.. I had try like below I shown, but failed to convert into CString format that I wish to.. Here is the example I tried.. CString sz; unsigned short test = 0xB0FF0000; sz.Format("%X", test); then I got sz = … | |
whenever i compile in code-blocks for wxwidgets following error is generated but when i priview the wxform it shows the form . i really don't know what is this. ||=== banking, Debug ===| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\platform.h|196|wx/setup.h: No such file or directory| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\chkconf.h|103|#error "wxUSE_DYNLIB_CLASS must be defined."| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\chkconf.h|111|#error "wxUSE_EXCEPTIONS must be defined."| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\chkconf.h|119|#error … | |
These are my examples: [code] /*int WriteFile(const char* file_name) { fstream file; try { file.open(file_name,ios.out); file << "67"; //file << "I miss you very much."; file.close(); } catch(exception& e) { cout << e.what(); return 1; } return 0; }*/ /*int ReadFile(const char* file_name) { fstream file; file.open(file_name,ios.in); if(file.is_open()) { string … | |
Hi I am 'trying' to get my head around multi-threaded programs. I have a working program (single thread) that uses a socket to listen on a particular port and exchange info with a client(s). The basic program structure is this (most declarations and error-checking removed for clarity): [code=c++] ... /* … | |
Why does'nt the following code work? [code="cplusplus"] #include <iostream> class X { public: X() : m(0) { } virtual ~X() { } protected: int m; }; class Y : public X { private: class Z { void do_something() { std::cout << m << std::endl; } }; }; [/CODE] I get … |
The End.