181 Posted Topics
Hello! :) I'm trying to achieve an 'engine' of a kind in a DLL project. I have successfully made a DLL that works, but as simple as Hello World. Now I'm coding a framework into the DLL project, but I'm having some trouble with the singleton function. Im getting this … | |
Re: Requires you to sign up with a phone service provider. There are some easy ones where you pay just a few bucks and get code for integration. Can't remember names. | |
Re: It could simply be because your upload speed isn't as fast as you think. What if you try a direct FTP transfer to him? - This doesn't apply if you are on LAN ofcourse, then speed should never be low as 15KB/s. What if you change chunk size? Have you … | |
Re: A week ago I bought an expensive ATI HD5870 card. I started up the drivers in Linux, prepared for some bugs or whatever when using compiz - that was the issues I was aware of. The performance was worse than with my old Nvidia card which today costs 1/6 of … | |
Re: Sessions funnily only lasts for a session, That's how they work you can't change that. You can't make a cookie non-deleteable. The user has control over his computer and that's it. I usually make cookie with expiry of 10 years, and honestly I've never seen any one not reinstalling a … | |
Re: You will have to iterate through all the values and sort them. By googling for half a minute I found this excellent piece of code to sort numbers: [I]sortme should contain the numbers to sort, and size should contain the count of numbers.[/I] [CODE] const int size = 0; int … | |
Re: You do not check for mysql errors, so that could be a reason you don't get errors :) Get used to, after all mysql_query(), add as shown here: [CODE]mysql_query(...) or die(mysql_error());[/CODE] If mysql_query returns false, which it will if something goes wrong, it will stop execution, clear page and print … | |
Re: I don't know the solutions to this. [I](this is a friendly and discrete bump because I think it is an interesting issue)[/I] | |
Re: Whats up with the fuc.. uhm odd formatting? Are you querying your results from an SQL database? Then it is easy to let MySQL return the values sorted. | |
Hello, [I]Before you get scared away - my issue does not particular seem to relate to Quaternions or Vectors. More generally, it appears to be something compiler or C++ standard related, as my return call from the function is acting strange. You can eventually start reading the [U]concluding issue at … | |
Re: 76MB? :O Will it work in Linux? Btw what a bad file share site you have used. I clicked download three times, all three different ads.. -_- Wtf is wrong with that browser game Metin2.. their ad is just a big DOWNLOAD button, nothing relating to themselves. Lol and another … | |
Re: If you do my high school graded writing assignment, then I will do your C++ program! Deal or no deal? ;) Just joking, however as your first post you've made many mistakes. You don't create a title saying "gimmeh the solution", you shortly describe your problem. It is not considerably … | |
Re: Check this out: [CODE]int main() { std::cout << "Enter something: "; std::string input; std::cin >> input; std::cout << std::endl << "Thank you, I will store it in a file now." << std::endl; ofstream myfile ("Data_file2.txt"); if (myfile.is_open()) { myfile << input + "\t\t"; myfile.close(); } else cout << "Unable to … | |
Re: Guess you are looping until eof? Every loop count an integer one up. After the loop, you just multiply the count integer with the amount of bytes read per read call (probably 1? ;)) I'm not sure if it is better or worse, but I like this method much more: … | |
Re: Possibly a Dell Studio 15? Checked the Hardware Drivers menu? | |
Re: Please specify your issue. You mention a warning.. what warning!? Please indent your code, it is unreadable in it's current state. | |
Re: Do you want to create a program which takes in an english string and then outputs the same string in another language? That can't be computed by C++, you would have to create a database of english word -> latin word. | |
Re: As for your first issue. You can't simply link to a page, and send post headers headers that way. You have to send them. Usually you would use a form to send post variables. You can also use javascript. There is probably some way to define the headers to be … | |
Re: Is the game in standalone flash or from a webbrowser? It is not hard at all to have two images and compare them for equality. - You could even easily implement features for sensitivity (how much can the picture change). But first of all you need a picture. You could … | |
Re: I don't quite understand why for() would be better than while() in this case. Anyway, here's an example: [CODE]$results = mysql_num_rows($result); for($sloop = 0; $sloop < $results; $sloop++) { $row = mysql_fetch_array($result); // do more stuff }[/CODE] .. I just thought you maybe wanted to loop x times whether theres … ![]() | |
Re: What do you expect to be in place of $_POST[aspirant_photo]? Does it just contain an URL? The mail client will not automatically parse an image url to an image. In this case you will have to send HTML headers, and use <img> tags to show the image. | |
Re: I completely agree with Nick Evan. Use Filestream and Stringstream. (f)scanf, atoi and relatives are C, not C++. Take a look at this code. I'm not sure if it will work, as I never use tabs, but I suppose \t should do it: [CODE]std::string line; // get a line from … | |
Re: Does this .htaccess apply to the root of your domain also? Maybe try a full URL. | |
Re: You can use the WinAPI to create a socket connection to the server and send headers to apache, requesting the file. Use Winsocket2 for this. | |
Re: Hi and welcome to Daniweb. I get lost from your first line of data file. You say it should contain the size of the array? But there is two numbers? Is it a two-dimensional array? And I'm a bit confused - you need to put data into structs, but also … | |
Re: [QUOTE=MurNesty;1269080]I'm using dev-c++ 4.9.9.2 version and allegro 4.4.0.1 version. I created a console project and done what DTV said in [url]http://www.daniweb.com/forums/thread248782.html[/url]. But i cant found liballeg.a so i add liballeg.dll.a. Then i try some example from [url]http://www.gillius.org/allegtut/index.htm[/url] but there is problem of alleg_init undeclared error raised. I had try other … | |
Re: In C++ use fstream, as VBNick also suggests, to load the data. Then you just need to perform your actions on the loaded data, you could store it in a string. | |
Re: You need access to the specific instance of ThreadContext. As your variable of interest, reg, is a part of a class, it will differ depending on the instance of the class. Find out where an instance is made, could look like: [CODE]ThreadContext* tc = new ThreadContext(???); or: ThreadContext tc(???);[/CODE] Then … | |
Re: I would gladly help you with this. - But I can't. Not because I lack C++ knowledge. No. The problem resides in your post formatting! [CODE]USE CODE TAGS.[/CODE] I guess those numbers you write in front of the errors are line numbers. We can't see the line numbers of your … | |
Re: Why do people want to become programmers and go to school trying to learn it, when they have absolutely no logical sense in life. You don't even consider general forum rules. Me and friends made games doing this kind of stuff when we were 10 years old oh god, and … | |
Re: Are you sure the server (apache) starts up, or fail in the progress? Applications like Skype and Teamviewer like to use the same port as Apache. Note: This would more fit in Hardware & Software category imo. | |
Re: It is not hard to develop a game working on both Windows and Linux, even on both OpenGL and DirectX. But it sounds like you want to modify the existing Unreal Tournament 3? First of all you would need access to the source code. Then, if the original developers has … | |
Re: Yes, it is common to have that kind of files looking like this [CODE]Peter;26;This guy is awesome![/CODE] or [CODE]Peter,26,This guy is awesome![/CODE] or you could specify multilined sections like this, but your need doesn't seem like this is any better unless you of course like the syntax. [CODE] { Peter … | |
Re: Take a look at this example MySQL query [CODE]UPDATE my_table SET password = '111111' WHERE id = '5'[/CODE] or [CODE]UPDATE my_table SET point = point+1000 WHERE rank > '0'[/CODE] I hope this answers your question :) | |
Re: [QUOTE]what all files this program accesses[/QUOTE] - Yeah what about them? I will gladly help you, if you would tell me specifically what you want to know. - Are you using this application as reference, to learn C++? If you would just tell me something like that, I could easily … | |
Re: > I have one Server code , and I have to test with 100 clients .... > > Clients has to read data from text file in local system and has to send to Server ... for that i want to write one client code to test my sever .. … | |
Hi people, I'm trying to compile my C++ project under Windows, which it should be able to. I've got a whole bunch of dependency libraries. When I compile everything seems fine until these error pop up: [CODE]1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\rpc.h(27) : error C2598: linkage specification must be at global scope 1>C:\Program … | |
Hi, I'm working on a shared library with a various of dependency libraries. They are all currently linked dynamically (shared object). I'd like a few of the libraries linked statically TO the main shared object. When I go ahead and try to link these libraries (.a) I get an error … | |
Hi people, I'm trying to match strings from a pattern containing[B] wildcards[/B]. Basically I need to be able to go through a stack of strings, and see which of them matches my pattern. Fx [B]My*.txt[/B] will match only one of these. [U]MyFile.txt[/U] [I]MyFile.php[/I] I'm aiming to end up with a … | |
Hello, I have a derived class, that I'm trying to delete. This causes a segmentation error, though. I'm fully aware of the virtual destructor thang, but I'm using it all the way around, and still this issue occurs. I'll post my headers only, please tell if more is required. DataStream.h … | |
![]() | Re: Very nice! :) I think that could come in handy for someone at least ;) I could probably use it - would it be too hard to build it for Linux? :) You could also put up the source, then maybe I could rewrite it myself... If you want to … ![]() |
Re: I suppose your problem is simply that you're not, by HTML, setting the charset? Try putting the following in the head area of your HTML output, or just output it at top if you don't have any advanced HTML yet. [CODE]<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> [/CODE] | |
Re: Hi and welcome to the business - and welcome to DaniWeb :) Well I hear a lot of newbies go with Allegro, but 2 years ago when I first time wanted to make a video game, I found Allegro confusing - maybe it was just me, but I never got … | |
Re: If you're very into this, I could give you some help over IM to get you started :) | |
| |
Re: Use code tags!!!!!! And btw, what are you trying to achieve? | |
Hello :) My program is supposed to load some data into a buffer - but it fails. This is where i get a segmentation fault... [CODE]char* buf = new char[size + 2];[/CODE] Where my debugging tells me that size is correctly containing the value "1957" which is the actual size … |
The End.