- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 9
- Posts with Upvotes
- 9
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
30 Posted Topics
Hello, I've had some problems converting a string into a char. I've tried many, many things, but it didn't seem to work. I'll post the code below: [code] char filename[1024]; char* url; string sUrl; HINTERNET hINet, hFile; hINet = InternetOpen("InetURL/1.0", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 ); if ( !hINet ) { … | |
Re: Wouldn't shellexecute work? [code] ShellExecute(NULL, NULL, "epi1.htm", NULL, "C:/folderwithmovies", SW_SHOWDEFAULT); [/code] This code can be used to open epi1.html which is located in C:/folderwithmovies. If you're not sure about that code pay a visit to MSDN and search for shellexecute. Greetz, Eddy | |
Hello, I want to be able to read the memory of a process in Linux. After some googling I've read that ptrace can be used to this. The syntax of ptrace is as follows: [code]int ptrace(int request, pid_t pid, int addr, int data);[/code] The first value (int request) is what … | |
Re: I don't know why these errors occur, but you might want to try creating processsnapshots to find the handles. This way is a bit harder, and it's much more code, but it might just work, right? Greetz, Eddy | |
Re: [QUOTE=whitemoss]Hi all, I'd posted this problem previously but in the wrong place..:)..Hopefully, I can get the answer from this thread. I'm a newbie in C..Right now, I have to write a code to read a text file and then insert all the info inside that text file into database. Should … | |
Re: : error C2143: syntax error : missing ';' before 'constant' : fatal error C1004: unexpected end of file found Error executing cl.exe. 1st: You need to add a ; somewhere. I have no clue where, but it's somewhere above defining a constant 2nd: You did not include <stdafx.h> | |
Hello everyone, I am trying to get an XTEA algorithm to work. I read the key from another process of which I'm sure it has a valid key at a specific location in memory. My encryption algorithm seemed to work, but when I tested it by making a buffer, encrypting … | |
Re: [code] [LEFT]int strLength = str.length()-1; int x= 0; while (x<strLength) { int j=0; while (j < 4){ newString[j] = str[x]; cout<< newString[j]; j++; } [color=red]cout << " ";[/color] x++; }[/code] Should work. This is not really splitting the string! It's just outputting the string with spaces in it. Greetz, Eddy[/LEFT] | |
Re: I am really sorry that you don't really feel at home on this nice forum. I do not know any of your posts, but I do believe that you could be a bit more precise with your spelling, punctuation etcetera. I know not everyone is good at English, but if … | |
Re: It might sound harsh, but we're (at least, Me) are not interested in how urgent this is for you. Next time you post please use proper English, punctuation etcetera. Also choosing a proper title would help a lot. The title you used doesn't give any information at all. You're not … | |
Re: I believe that you need to put 0x in front of a number if it needs to be hexadecimal (or was it $??) Greetz, Eddy | |
Re: EDIT: It seems like Micko was just a minute too fast. He is right. cin.get() won't work in C. --------------------old post---------------------- Then add cin.get() at the end of your code (before the return, of course). This will pause your program so you get more time to read the output. It … | |
Re: Please get a new compiler... Dev-C++ maybe (search google for dev-cpp borland). It's loads better. Greetz, Eddy | |
Hello everyone, I am trying to create a "proxy" for a program. I will try to explain how I am going to do that. The program I want to write a proxy for sends and receives data to/from a server. The IP and port the client connects to is somewhere … | |
Re: Wikipedia has a whole page dedicated to sorting algorithms: [url]http://en.wikipedia.org/wiki/Sorting_algorithm[/url] Snippet taken from the Dutch wikipedia, "invoer" is the array you want to sort and lengte is the number of values in the array [code] void bubblesort(int invoer[],int lengte){ int i,j,tijdelijk; for(j=0;j<lengte-1;j++){ for(i=1;i<lengte-j;i++){ if(invoer[i-1]>invoer[i]){ tijdelijk=invoer[i]; invoer[i]=invoer[i-1]; invoer[i-1]=tijdelijk; } } } … | |
Re: I suggest you use the search function next time. [url]http://www.daniweb.com/techtalkforums/thread50205.html[/url] Greetz, Eddy | |
Hello everyone, I downloaded the source of an internet file and need to filter a specific part of it. I know how the [inlinecode]string::size_type position = Line.find("World:</TD><TD>");[/inlinecode] function works, but this only tells me where the data I am looking for is located (the data is after "World:</TD><TD>"). I want … | |
Re: [QUOTE=iamthwee]Or better still get accustomed to the dot net framework, and learn c#. You can make quick GUIs wicked fast.[/QUOTE] C# is decompilable, so it isn't really usefull for bigger projects, unless it's open-source anyway. I have absolutely no clue about MFC tutorials, so I can't help you, sorry | |
Re: I don't think you'll be able to do this with 2 weeks of C++ experience. Of course I have no idea about how good you are at C++, but I think it's too advanced. You should search [url]www.msdn.com[/url], there are several APIs that will handle mouse-things. There is also something … | |
Re: Making GUIs in C++ is rather complicated. I suggest you try to download a tutorial about it. There are plenty of tutorials about GUI making out there. If you're willing to pay [url]http://www.experts-exchange.com/Programming/Programming_Languages/Cplusplus/Q_21902809.html[/url] is pretty nice. [url]http://www.rohitab.com/discuss/lofiversion/index.php/t11408.html[/url] Excuse me if I sound a bit rude, but next time please google … | |
Re: If you're planning on making rather simple programs Visual Basic is nice too. Designing a gui is really easy and to put code "under" a button is really easy. Still I always use C++, GUI of no GUI. Designing a gui may take a while, but IMHO it's worth the … | |
Re: Winsock hooking. You make 2 programs, an easy one, it injects the DLL into iexplore.exe, and a pretty complicated one. It hooks the WinSock functions of iexplore.exe and saves/outputs the data. There is a thread at the moment about injecting DLLs into applications. [url]www.madshi.net[/url] has a api-hooking library, you might … | |
Hello everyone, I 've been looking for a solution for this problem for some time now but I don't seem to figure it out. I want to download the source of a web page (the HTML source). I found several API function that have to do something with internet and … | |
Re: Sorry, but I wouldn't buy that book. My experience with the "in 24 hour" books is that they don't really contain information you wouldn't get if you read some tutorials. A better idea is to invest in Microsoft Visual Studio, so you can use the software everyone uses and is … | |
Re: C++ is a hard, but very powerfull language. C++ is pretty much made from C, so that's not the way to go. C# has really cool features, and it's a bit easier to use then C++, but it also has several disatvantages (For example, it's decompilable). I would say C++, … | |
Re: On google. Really. C/C++ are pretty much OS independent (if you don't use, for example Win32APIs). There are many, many free online tutorials about C/C++ programming. Just google... Greetz, Eddy | |
Re: Sorry, but could you please a little explanation of what your code is supposed to do? I refuse to read all code and try to figure that out. Thanks in advance, Eddy | |
Re: Taken from MSDN: [code] sizeof Operator Yields the size of its operand with respect to the size of type char.[/code] Wouldn't this be usefull? It would probably save you a loop. It's also usefull to check if the user entered a 6-digit word. Anyway, you made it, congratulations. Greetz, Eddy | |
Re: I used the following code to inject a DLL into an other process. You could make a processsnapshot and every time a process gets added inject a DLL to it. I used a different way to get the handle. [code] HWND WindowHandle; DWORD processId; HANDLE processHandle; // find tibia window … |
The End.