5,331 Posted Topics
Re: Exactly what Moschops said. Here is a proper implementation, but still pretty useless... :-) void* aFunction(int* pToInt) { cout << "something" << endl; return (void*)pToInt; } void f_voidFct() { void *(*voidPtr)(int *); voidPtr=aFunction; // here I get the error int a=5, *ptr_a=&a; void* p = voidPtr(ptr_a); // p should have … | |
Re: Jason, I know what you mean, though I do some of my best work at stupid o'clock, after a couple of shots of good scotch. My head hits the keyboard, and it finishes the task for me! :-) | |
Re: Go on their web site and find out... | |
Re: I think the problem is that the tasks are running as threads, hence simultaneously. Rather than as runnables they should just be normal functions with a wait at the end of them. Since they are running inside another thread, it should not interfer with other processes/threads running in the environment. | |
Re: Is there an audio icon in the docking bay of the task bar? | |
![]() | Re: The extern keyword declares that a variable or function is implemented elsewhere, likely in another translation unit (source file). The static keyword is another beast, and depends upon whether it is declared such in a header or in a source file. If in a source file, then that is a … |
Re: This shows that your computer is trying to boot from the network. Go into the BIOS and disable PXE (network) booting. | |
Re: You may also have to blacklist the default nouveau driver. To do that, edit the file /etc/modprobe.d/blacklist.conf and add the line: blacklist nouveau | |
Re: Look for the command "split". The man page tells you exactly how to do what you want, and it will do it all at once. | |
Re: Some VPN services are quite efficient, using hardware engines that have specialized chips to decode/encode the data on their end. The only encoding/decoding in software is going to be on your desktop end of the tunnel. I use VPN connections for work daily and the speed is pretty decent. It … | |
Re: Actually, that doesn't create new variables, but simply sets the value of an array member. | |
Re: Since you are running Windows 8 on a UEFI secure-boot enabled system, have you enabled secure boot? If so, have you registered the Windows 8 key with the UEFI BIOS? ![]() | |
Re: Assuming both systems (AMD and Intel) use the same type of RAM SIMMS, and using the AMD RAM in the Intel system exhibits this malfunction, then it is likely a RAM problem. Are you using 2, or 4 SIMMS? In any case, try leaving out one of the SIMMS (in … | |
Re: Huh?? Do you want to elaborate on this? The algorithm is embedded in the function, but naturally matlab doesn't provide source for you. Have you tried Googling this yet? :-) BTW, we don't do your homework for you. Work it out, and post the code here. We will then be … | |
Re: Since you say that it also was a problem with other versions of Windows it is likely a hardware or bios problem. Try updating the bios first. | |
Re: The terms of use for these forums is that we don't do your homework for you. Make a reasonable attempt and we will try to help you understand where you went wrong, but YOU have to start the process. | |
Re: It should be noted that VPNs are also utilized for anonymizing services such as Tor. | |
Re: You use software development processes to build any software, including display (GUI) applications. You need to do some serious reading before you go any further, especially in this day and age of security exploits and malware. One good text on software engineering/development (very dated, but still a good foundational text) … | |
Re: Good exercise! Get started, and then we may help you. We don't do your homework for you. Think about the problem. Your professor has already broken the work down into manageable chunks. Look at each first in isolation, and then as a gestalt of all the parts. Thats how real … | |
Re: Was the ink you purchased from the printer manufacturer? Also, what is the make/model of your printer? Some manufacturers these days are embedding chips into their ink cartridges in order to block other ink manufacturers from selling product for their printers - so if you get an aftermarket product, it … | |
Re: Pick your poison! Both are hot topics these days, though web security is probably hotter. However, do bear in mind that if you do present a paper at such a conference, you better know your subject! | |
Re: Have you tried one of the other php mysql libraries, such as the mysqli class? I have had good results with that connecting to remote servers. Here is some code, the class I use to connect with mysql servers from my php applications: <?php // php_flag register_globals on // Some … | |
Re: Thanks - we like to think so! After all, in the mobile phones and services division (just bought by Microsoft), we have 32000 employees focussed on just that! :-) | |
Re: So, what's your problem? In any case, you need to guard against values of r < 1 as well, returning 0 in such a case. | |
Re: Internet connections can be via WiFi, cable (via some sort of hard-wired link, such as a modem, DSL, or other media), BlueTooth (to a device that can act as a modem), or a LAN that has internet access. | |
Re: I don't know about Astra32, but if it is looking at the smart interface of the SSD, then it is probably correct. SMART is a tool on most all current drives that monitors in real-time the behavior of the drive, including disk read errors, sector remapping, temperature, etc. On my … | |
Re: Please explain exactly what you mean by "bad signals". In any case, it is probably a case of bad hardware (cell phone transceivers) in which case it will require a visit to the warranty repair center. | |
Re: If it is still under warranty, take the disk drive out and send it in for repair/replacement. The OS on the drive is likely ok, hence the advice to keep the drive, otherwise they will replace that also, and you will lose all of your data. Dell hase (in the … | |
Re: Well, you could always fall back on the old C standard fprintf() format strings. Sometimes it is a lot easier than C++ output manipulators, though if your class is trying to teach you C++ output manipulators then that may not be an option... :-) | |
Re: Have you connected with your Apple "Gurus" about this issue? It certainly isn't normal behavior, though I don't know a lot of people who use dual displays with their macbook laptops. I use dual displays on my Windows 7 laptop (Lenovo) and it doesn't seem to affect the cpu temperature … | |
Re: You can't use nedit in a console terminal either, but it is a great editor! I use it for almost all of my programming since it has syntax support for most computer languages out there, including c, c++, bash, php, java, make, et al. And yes, text editor preferences tend … | |
Re: As per Dani's post - this is an english only forum, though I do speak/read/write spanish, so here is my answer in English... :-) Usa el servicio traductor de Google si necicitas. Sony systems are infamous for being totally proprietary - getting stuff to work is sometimes a real pain … | |
Re: I have had drive failures due to the PC board (controller) on the drive failing, and this was possible, but it is unlikely. You would need to purchase an identical drive and swap the circuit boards to see if that works. If not, then you are SOL for recovering the … | |
Re: If you know C++, php is pretty simple, and can include HTML code quite nicely. That said, I have encountered some pretty significant php bugs in dealing with HTTP conversations, one of which (dealing with transmitting "chunked" data and URL encoding) required some php code updates. I have posted these … | |
Re: What dump file? Please describe the problem, and how it started. ![]() | |
Re: Please be more specific and detailed in what you are trying to accomplish. | |
Re: We don't do your homework for you. Please make an effort to solve this and then post your code. At that point we may help you with problems you may encounter, but until you try to solve it yourself... | |
Re: Any reason why you are using C for this? It isn't simple to do in C. I would recommend that you get the Mozilla Firefox 2.x code base (written in C/C++) and study how they do it. Also, I am doing much of what you are, but am using PHP … | |
Re: All the above are true provided that the application is written in Java using the Android Dalvik virtual machine, which most Android applications are. | |
Re: What Moschops said. Here is pseudo-code that you can use with C++ (or other programming language) to do this as well. 1. Open file 2. while not at end-of-file 3. read line 4. search for string (use strstr() in C/C++ for this). 5. if found in #4, increment counter. 6. … | |
Re: Bit-wise comparison != numerical comparison. In a your comparison it is only looking to see if the fourth bit is set.. For -8 the top bit is set for the negative, as is the fourth bit, hence your problem. For a bit comparison of two numbers do this: if ((a&b) … | |
Re: You may need to modify the PHP file to directly write to the desired file. | |
Re: Low power can easily damage electronic components including the drive controller. You may be SOL. In the future as mentioned you should invest in a UPS to avoid that possibility. | |
Re: If you really cannot recall your password, then you may be SOL, especially considering the tighter security of these systems. My advice is to boot a Live Linux CD/USB/DVD drive (if the secure boot allows you to), copy your necessary data to a backup USB device, and then wipe/restore your … | |
Re: What sepp2k said is quite correct, but difficult to understand for noobs. Here is possibly a more understandable example: int anInt = 5; int* ptrToAnInt = &anInt; anInt += 2; printf("anInt and ptrToAnInt == %d (%d)\n", anInt, *ptrToAnInt); This should result in the output "anInt and ptrToAnInt == 7 (7)". … | |
Re: Bypass the system? Assuming the system doesn't have a BIOS/UEFA security password (or other security) set, including full-disc encryption, then you can boot a live CD/DVD and mount the file systems on the hard drives. If you didn't know this already, then you are an idiot and should leave well-enough … | |
Re: What distribution/version of Linux are you running? In any case, you will need to fully reinstall the xorg and gnome software, or install kde, xfce, et al and try running one of those first. Finally, when you try to run startx manually, what errors are you getting? Please post them … | |
Re: The simplest is a character substitution algorithm, sometimes called the "Caesor Cypher". Anyway, read Bruce Schneier's "Applied Cryptography". Here is a link to another text (free) that Schneier has provided and recommends: http://cacr.uwaterloo.ca/hac/index.html | |
Re: Actually, for this pseudo code (pseudo code is NOT standardized), I think it is the dimension of an array. IE, the C code for `DIM EmpName = 1` would likely be `const char* EmpName[1];` Since I don't have your professor's definition to be sure, this would be my best guess. |
The End.