344 Posted Topics
Re: Your borrowed code: https://github.com/andrew-smythe/3d_env/blob/master/tree.cpp How about you start reading some documentation and doing the work yourself. | |
Re: Create the control with `ES_READONLY` style or send the `EM_SETREADONLY` message to the control. | |
Re: Try scanning the PC with ESET's online scanner. http://www.eset.com/int/home/products/online-scanner/ | |
Re: The random 7 letter file extension is indicative of a CTB Locker aka Critroni variant. If so, there's no way to recover the private key needed to decrypt the files other than paying the ransom (playing ransom roulette). | |
Re: For WinDbg, `!peb` **or** `dt nt!_PEB` to get the structure. | |
Re: It sounds like the PC was hit by TeslaCrypt ransomware, which wipes out shadow copies as well as encrypting documents. You won't be able to decrypt the .ecc files unless you pay the ransom - not recommended. Your best bet is to restore your last backup and unfortunately lose some … | |
Re: AFAIK this 'function' is just a Borland specific macro used in Turbo c++ and c++ builder. As I don't have access to these ancient headers, I've no idea of the implementation. ![]() | |
Re: Just continue with the assistance you're receiving at BleepingComputer. :) http://www.bleepingcomputer.com/forums/t/569809/windows-security-helper-dll/ | |
Re: For a `template <class T>` function all you need to do is substitute the type 'T' for the POD type. e.g. template <class T> void showArray(T const arr[], const size_t size) { for (size_t i = 0; i < size; ++i) std::cout << arr[i] << ' '; std::cout << std::endl; … | |
Re: > You mean checking as in something like this? > > if (hr == S_OK) ? Yes. The main problem with your code is that the `szFileName` in `URLDownloadToFile` is invalid. "C:\users\my documents\visual studio 2008\projects\nq data\nqquotes.txt" should be either `"C:\\users\\my documents\\visual studio 2008\\projects\\nq data\\nqquotes.txt"` or `"C:/users/my documents/visual studio 2008/projects/nq data/nqquotes.txt"` … | |
Re: I've only skimmed over your code so there could be things I've missed. At first glance: In your execute function, you need to pass flower, water and path by reference, otherwise the variable values declared at line 25 will never change within the scope of main() You should also verify … | |
Re: AFAIK, the first call to LookupAccountSidW will return the buffer sizes needed in TCHARS. So you will need to allocate `bufsize * sizeof(wchar_t)` You also need to free the memory. | |
Re: It would appear that Ahmad is most adept at copy and paste. Compare his last post to CrateMuncher's comment at http://www.reddit.com/r/answers/comments/2dplea/whats_the_difference_between_c_c_and_c/ | |
Re: The executables created by Turbo C are totally incompatible with 64 bit operating systems. On 64 bit Windows you should be able to run both 32 and 64 bit executables, you just need a non-prehistoric compiler to produce the executable. Look into MinGW (GCC) and Visual Studio as already mentioned … | |
Re: Try running the 'AVG PC TuneUp and TuneUp Utilities Remover', available at http://www.avg.com/tools#tba1 | |
Re: This looks like it was copy/pasted with some modifications from another coding site. For the sake of consistency, you should always use CreateWindowEx and the WNDCLASSEX struct as CreateWindow and WNDCLASS are deprecated. You also need to check function return values and handle any errors. As for the main problems … | |
Re: Try the following: ; save ebx push ebx mov esi, array mov edi, array add edi, 16 reverseloop: ; move content of pointers into a register (dereference pointers) mov eax, [edi] mov ebx, [esi] ;swap elements mov [edi], ebx mov [esi], eax add esi, 4 sub edi, 4 cmp esi, … | |
Re: Also in line 11: `count<<"enter second amount";` It should be `cout << "enter second amount";` ![]() | |
Re: The first thing I'd do is update to the Orwell Dev-C++ fork, which is fully maintained and up to date. http://sourceforge.net/projects/orwelldevcpp/ | |
Re: Have a read of MSDN for the [WM_COMMAND](http://msdn.microsoft.com/en-us/library/windows/desktop/ms647591%28v=vs.85%29.aspx) message. For a menu, only the menu identifier is passed via the low word of the wParam, the lParam is zero. So your code: `SendMessage((HWND)lParam , WM_COMMAND, wParam, lParam)` will be equivalent to `SendMessage((HWND)OL , WM_COMMAND, wParam, 0L)` | |
Re: You should use `length` rather than MAX_ITEMS in `DeleteItem(ItemType x)`. | |
Re: Yes. Refer to http://www.cpu-upgrade.com/mb-MSI/G31M3-F_%28MS-7528%29.html#specs for all supported CPUs. | |
Re: Read the rules - https://www.daniweb.com/community/rules You will **not** receive help at these forums for any illegal activities. | |
Re: You need to make an honest attempt to write the code for your homework, otherwise you'll receive no help. | |
Re: Have a look at Don't Sleep available at http://www.softwareok.com/?seite=Microsoft/DontSleep | |
Re: Your error is that the function you've written is illogical. It looks like you wrote the first thing that came to mind and somehow hoped that it would magically solve the problem. Can you write the code that will copy the 'v' string to the buffer? Get that part working … | |
Re: Remove #include <string.h> and replace with `#include <string>` As the string object is in the std namespace, you can either replace all functions and variables in the Dog class that contain string to std::string or put `using std::string;` before the Dog class. | |
Re: At line 3: `for(int i = 0; i >= numWords; i--)` // how does this make any sense? I assume what you are wanting to do is to iterate from the the last word index to the first word index. ie. from numWords-1 to 0 So rewrite line 3 to … | |
Re: Could you post the code that you currently have? | |
Re: Have a look at Forger's Win32 tutorial at http://www.winprog.org/tutorial/ You can download it in pdf format. Under the heading 'Graphics Device Interface' http://www.winprog.org/tutorial/bitmaps.html Become familiar with the bitmap functions http://msdn.microsoft.com/en-us/library/windows/desktop/dd183385%28v=vs.85%29.aspx | |
Re: Who cares what I prefer, isn't it about which design you prefer? If I was to get a new Windows PC then I'd go for Win 8.1 simply because it's architecturally superior. | |
Re: Try ESET's online scanner - http://www.eset.com/int/home//products/online-scanner/ or Malwarebytes' Anti-Malware - https://www.malwarebytes.org/ (click on 'free version download') | |
Re: > Probably in a darker area of the internet. ;) Yes, Google software cracking forums > I AM NOT DOING THIS AS FOR HACKING PURPOSE, BUT I WANT TO KNOW. > AS TO CREATE THE BEST PROGRAMS WE SHOULD ALSO KNOW HOW TO PROTECT OUR PRODUCT BY HACKING. You have … | |
Re: There are further things that are immediately noticeable in the last code you posted. Check your spelling on lines 59 and 63 - `set_at_beign` should be `set_at_begin` | |
Re: You could call [UnregisterHotKey](http://msdn.microsoft.com/en-us/library/windows/desktop/ms646327%28v=vs.85%29.aspx) then RegisterHotKey. If this isn't what you need, could you clarify what you are wanting to achieve. | |
Re: The first computer I actively used was an Atari 1040ST, mainly to be able to run Steinberg Cubase. http://en.wikipedia.org/wiki/Atari_ST | |
Re: It seems that your laptop is overheating due to a massive build up of dust clogging the air intake fan, with the possibility that you may also have fan failure. Have look underneath the laptop, do you see a dust build up around the air intake? Leave the laptop off … | |
Re: http://www.startech.com/Cables/Audio-Video/Audio-Cables/35mm-4-Position-to-2x-3-Position-35mm-Headset-Splitter-Adapter-F-M~MUYHSFMM or any reputable place that shows up when you Google "headset splitter adapter" | |
Re: Why not just call a function that does the redrawing? LRESULT CustomDrawButton(HWND button_hwnd, WPARAM wParam, LPARAM lParam) { // drawing code goes here InvalidateRect(button_hwnd, NULL, FALSE); // TRUE to erase the background UpdateWindow(button_hwnd); return 0; } | |
Re: 1. Yes, use BS_TEXT combined with either BS_LEFT, BS_RIGHT, BS_TOP or BS_BOTTOM. e.g. with BS_RIGHT, the icon will be on the RHS of the button and the text will also be justified to the right. 2. No, for that you need to use BS_OWNERDRAW. 3. No | |
Re: Try `webBrowser1.Document.GetElementById("email").InnerText` | |
Re: Do you have an XP installation or recovery disk for the PC? If you do, refer to: https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader | |
Re: Warm today and hotter tomorrow, around 35°C in Sydney Australia. | |
Re: Have a look at line 10. What happens when either n or m reference the last vector index? | |
Re: I also can't get to page 6 of that thread. Win 7x64 - IE 11, any firefox based browser or via direct download. Wireshark capture shows: HTTP GET /community-center/geeks-lounge/threads/458329/things-i-hate-about-tv-shows/6 HTTP/1.1 HTTP/1.1 302 Found\r\n ~snip Location: http://www.daniweb.com/community-center/geeks-lounge/threads/458329/things-i-hate-about-tv-shows\r\n HTTP GET /community-center/geeks-lounge/threads/458329/things-i-hate-about-tv-shows HTTP/1.1 | |
Re: http://www.daniweb.com/software-development/cpp/threads/388558/changing-text-character-color-in-console | |
Re: Seeing as your data file contains white space between last and first names, you'd be better off using std::getline for the reading. void read_names(string names[], ifstream& infile, int& index) { index = 0; std::string str; while (std::getline(infile, str)) { if (!str.empty()) names[index++] = str; } } At line 68: `if(names[j].compare(names[i])<0)` … |
The End.