No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
My program keeps crashing once I try to make my custom class use some of its own functions My custom class looks like this: Entity.h #ifndef _ENTITIES #define _ENTITIES #include "actual.h" #include "Manager.h" struct Position { float x, y, z; }; class Entity { public: Entity(); ~Entity(); bool Init(Actual*, int); … |
|
I need help combining the file name with the filepath my code: WIN32_FIND_DATA FindData; HANDLE hFind; hFind = FindFirstFile(L"../art/*.dds", &FindData ); if( hFind == INVALID_HANDLE_VALUE ) { PrintCharS("Error searching directory"); return; } do { char ch[260]; char DefChar = ' '; WideCharToMultiByte(CP_ACP, 0, FindData.cFileName, -1, ch, 260, &DefChar, NULL); string … |
|
Hi I got a problem with converting from LPARAM to std::string. What I do is getting the selected object from a Listbox, the example I found on how to do this is to convert the object to LPARAM. Now I want to convert this LPARAM to std::string and I've tried … |
|
I have a form with a richtextbox (my chat box) and two textboxes (one for message one for username) now I need to understand how I can send a message from the one textbox to the richtextbox while other users who is also logged on also gets the message. I … |
|
My code right now: std::string line; std::fstream localFile; localINIFile.open(MyToReadFile/*, std::ios::in || std::ios::out*/); // the MyToReadFile is declared somewhere else, and is being declared before this if (localFile.is_open()) { std::string Name = A[ID]; // ID is delcared somewhere else too std::string lookFor = Name + " false"; while ( getline (localFile,line) … |
|
Hi everyone I'm new to c++ but have had some luck so far. But I have of course met a problem. The program I'm making is supposed to find a a unkown file with an ID. The onliest thing I know of the file is the folder its in. so … |
|
well I need some guidance to how I can do what I wan't done as I haven't gotten any idea I got the GUI made, now I have these items I wan't the player to be able to paste onto the empty space (were there are no GUI) how can … |
|
Hi I got some trouble with my program and I need help. this is the code: public void actionPerformed(ActionEvent arg0) { Object source = arg0.getSource(); if (source == Button1) { System.out.println("Player has choosen the button: " + "button1"); String EP = JOptionPane.showInputDialog("Please enter your file location"); String Path = EP; … |