669 Posted Topics
Re: The thing you need to bear in mind is that 'graph' and 'slope' are functions which take parameters and return values, so [icode]cout << graph;[/icode] does not do what you are expecting. I think in this case cout will output the memory location of the function, if it will even … | |
Re: I had exactly the same problem on my old RM Tablet PC. I found a solution by sheer luck while I was messing about one day. I opened up the sound mixer application (Can't remember the name offhand, but it's the one with all of the volume sliders... Is it … | |
Re: The first thing I'd say is that the static_cast is inappropriate. dynamic_cast would be more type-safe. But because CVSystemDLL derives from IVSystemDLL, you should be able to point your IVSystemDLL pointer directly at a new instance of a CVSystemDLL object with no need to cast. I haven't had my first … | |
Re: Generally speaking, when you download and use 3rd party libraries you just need to set the compiler up to look for additional headers in the library's 'include' directory, and you point the linker to it's 'lib' directory to allow it to link your program using the provided .lib's/.dll's or .so's. … | |
Re: I'm not familiar with pywinauto, but [url="http://pypi.python.org/pypi/pexpect/"]pexpect[/url] is the closest thing on Linux that I can think of offhand! | |
Re: [QUOTE=winecoding;1583910]If possible, can you give a short explanation on how does this linux command [CODE]sudo find . | xargs grep -i 'NameOfFunction' [/CODE] work? Thanks.[/QUOTE] It simply uses the pipe operator and xargs to pass output from the find command into the grep command: 1. [icode]sudo[/icode] runs the command as … | |
Re: First up, you might want to try using 'http://' in front of your URL to avoid the URL being interpreted as a 'file://' request. Otherwise, if that doesn't help take a look this. It describes the exact problem you are experiencing and the steps required to solve it: [quote] Troubleshooting … | |
Re: The problem here is with the use of the function pointer. Whether it is const or not is neither here nor there. From what I can remember about inline functions; virtual functions and functions pointed to by function pointers cannot be inlined. At least, that's what I was always told! … | |
Re: Set your keyboard preferences and add a layout which supports hangul. On my phone atm, and can't remember the exact steps! Will post again later if nobody else posts more detailed instructions. | |
Re: That's looks like the IP address for your router, not the apache server. The username and password you're being asked for in the image is the one for your router. Try 127.0.0.1 (localhost) in your browser instead! | |
Re: Basically in the first part of the code the condition in the if statement says "if the file reuters21578 does not exist in the mahout-work directory" Note: The ! is the logical NOT operator. If the file does not exist in the specified directory the code under the if statement … | |
Re: If it's ODBC you're using, then it sounds like you need to set up a data source in Windows. To do this you need to run the administrative tools. The location of this varies from version to version of Windows, but I think if you open up control panel, there … | |
Re: Just for future reference, webcams can be a bit hit and miss on Linux. If your webcam is compatible with the UVC specification (USB Video device Class) then it is guaranteed to work as Linux has UVC drivers implemented. Although admittedly this could vary from distro to distro. But AFAIK … | |
Re: One thing you need to bear in mind is that [B]all[/B] of the commands available in BASH (and the various other shells in Linux) are programs or scripts that reside in various system folders specified in the $PATH environment variable. The [B]/bin/[/B] directory typically contains programs/commands that are ran at … | |
Re: Looking at the code, I think the problem lies here in your WinMain function: [code] // Create the engine (using the setup structure), then run it. new Engine( &setup ); g_engine->Run(); [/code] I could be wrong but I think you need to do this: [code] // Create the engine (using … | |
Re: One thing springs immediately to mind. It's a bit of an off-chance, but it may apply to your situation. If your DVD drive is USB and is powered completely by the USB port; (i.e. there's no external PSU required to power the drive.) You may need to ensure that it's … | |
Re: It would help if you told us the name of the 'awesome online game'! {rolls eyes} Have you taken a look at the winehq website to see what it says about the 'awesome online game'? Winehq lists a lot of windows programs that work with Wine and reports each programs … | |
Re: Have you tried this? [url]http://tinyurl.com/4ymph98[/url] | |
Re: [QUOTE=jimJohnson;1564306]I just do the start without debugging...is that not right?[/QUOTE] The problem here is that the input and output file paths are obtained from command line parameters. And as you're running the program via the IDE no parameters are currently being passed to your program. But you can set up … | |
Re: Your post is a little on the vague side. Is there any chance you can provide us with some more specific information about your problem? For example: Which Linux distribution are you using? (e.g. Fedora 14?, or Ubuntu 10.10?, or OpenSuse 11.4? etc..) What is the make/model of your pen-drive? … | |
Re: @OP: The problem you're having is where you're trying to return a char array (buf) from your function; but the prototype/declaration of the function says that your function's supposed to be returning an int! As you want to return a C-style string / char array, you should change the signature … | |
Re: The short answer here is you can't! At least not like this. When you call stop() at a particular frame in the timeline in a movieclip, it stops playback at that frame for all layers in that movieclip. But if you put the frames for the animation in layer 2 … | |
Re: Actually, to correct pseudorandom21: [ICODE]LPCSTR[/ICODE] stands for [B]L[/B]ong [B]P[/B]ointer to a [U][B]C[/B]onstant[/U] [B]STR[/B]ing. So [ICODE]LPCSTR[/ICODE] indicates that the pointer is a [ICODE]const char*[/ICODE] NOT a [ICODE]char*[/ICODE] Incidentally, using the Microsoft naming conventions a [ICODE]char *[/ICODE] pointer would be [ICODE]LPSTR[/ICODE]! As pseudorandom21 has correctly pointed out, you may need to use … | |
Re: A 1 - AFAIK the Spiders used by search engines rely heavily on text content when indexing sites. So I don't think it's the case that they aren't crawled at all. It's more likely that googles spiders/crawlers are unable to see much of the text/infomation contained in flash sites as … | |
Re: From looking at the code, I think the infinite loop is happening because: 1. You call delete on an Animal, causing the flow of execution to enter the Animal class destructor. 2. Where the Animal destructor iterates through the static std::map it attempts to delete the first animal object in … | |
Re: I think it's because the calling conventions and object formats in C and C++ are slightly different. So the object file created by gcc is not compatible with the object file created by g++. Possibly something to do with the function name mangling or some-such. I don't have a massive … | |
Re: The local Lido, which was a huge outdoor public swimming pool. An olympic size pool with diving bay and 3 or 4 smaller pools. I spent many a summer there in my youth. It ended up being demolished in 1991 to make way for a supermarket.. Not nearly as much … | |
Re: For starters you have a problem in your DivisionSale class. The size of the sales array needs to be 4 not 3. There are 4 quarters in a year, so you need to allocate space for 4 double values in your sales array: [code] class DivisionSale{ private: double sales [3]; … | |
Re: Alongside the inclusion guard problems mentioned by Mike, there are a few other problems in your header too! There should be a semicolon ";" at the end of the declarations of the Add function and the isMumber function. Also should that be isNumber or isMember rather than isMumber? heh heh! … | |
Re: Part of the problem here is you are using an unsafe C-style cast. Also because you have a virtual function in your base class you're dealing with polymorphism. When attempting to cast polymorphic types, you need to enable RTTI (Run Time Type Information) in your project and use the dynamic_cast … | |
Re: The thing you're forgetting here is that cout is a member of the std:: namespace, so you either need to explicitly resolve that cout is part of the std:: namespace by specifying [ICODE]std::cout[/ICODE] every time you use it e.g. [code] std::cout << "\nhello"; [/code] Otherwise, to avoid having to explicitly … | |
Re: Well, if you plan to write programs for Linux the choice is yours. You can use virtually any programming language, be it a popular modern language or a really old obscure one. The real hard-core *nix programmers use a text editor like vi, scite or emacs to write their source-files … | |
Re: As sergent and WaltP have pointed out: Using standard C/C++ as far as possible is the best way of ensuring code portability. At the risk of going off topic, using other cross-platform libraries/frameworks (boost, wxWidgets, GTK, QT etc.) can also make it easier to create cross-platform applications without using non-portable … | |
Re: Assuming that I properly understand what you're trying to do (I think I do!); Although the maths is basically correct, as this is a member function of your class, you'd probably be better off rethinking your function somewhat. Try to take a slightly more object-oriented approach. Ignore the origin and … | |
Re: Are you sure you've used the correct namespace in the declaration of the CheckAdber instance ui at line 7? e.g. [code] Ui::CheckAdber ui; [/code] From your error messages, it looks as if the Ui namespace does not exist. And you should bear in mind that namespaces are case sensitive, so … | |
Re: Well for starters you haven't included the header for clrscr(), which I believe is only available for older borland compilers (C++ builder and Turbo C++ etc). clrscr() is not a standard C/C++ function and is therefore non-portable. From the looks of your posted output it also looks as if you're … | |
Re: Apologies if this is slightly off-topic, but the initialisation of the char isn't really the biggest problem you've got. The real problem with this code lies in this block of code (which I've enclosed in CODE tags and indented for you!): [code] char calc_grade(float total) { char letter='\0'; // this … | |
Re: [QUOTE=vishy1618;887439]I recently went and compiled my Tkinter application into a standalone app using py2exe. It seems to work when python is installed on the computer but when it is not installed, it shows the error - 'This application is not configured properly. Reinstalling the application may help', I read elsewhere … | |
Re: Burning the iso is all you should need to do. Sounds like the iso was corrupted in some way. The ubuntu download sites usually provide an md5 checksum for all downloadable files. After downloading a file, it's usually best to create an md5 checksum. This checksum should match the checksum … | |
Re: As far as I'm aware; once you start booting from a Linux live CD, whatever OS is on the HD is completely ignored. So the resident OS will not be able to stop the machine booting from the CD (The BIOS settings usually determine whether boot from CD/DVD is allowed!). … | |
Re: @OP: In answer to your question about vectors, a vector of std::strings can hold any number of valid std::string objects. Whether or not they contain whitespace is completely irrelevant. As long as a string object is valid, the vector should be able to contain it! Obviously it seems me that … | |
Re: If there's no graphic interface, you may have to manually mount your usb drive (unless your OS happens to auto-mount drives). NOTES: Before we start, This is completely off the top of my head, I've not got a *nix box in front of me to test any of this atm, … | |
Re: I can't think of anything directly flash related that could be causing the problem. If it works in IE it should work in FF. The browser shouldn't make flash behave any differently! Usually the only things that can affect the way that flash objects appear in different browsers is the … ![]() | |
Re: Perfect Dark! That game was ace! Goldeneye was another great fps on the N64. I loved those two games. But I think my favourite game of all time has to be Elite, which I remember playing on the old BBC's at primary school. I also had it on my Amstrad … | |
Re: GDB is a supremely powerful tool and is extremely useful. As L7Sqr has pointed out; as with any tool, you need to learn how to use it properly before you reap the full benefits. And as with most things, this can take a little time to achieve. But it is … | |
Re: The script you've written will work, you just need to pass the filename without the .cpp extension. Where you've used '$1.cpp' in your script: If you pass 'data.cpp' as a parameter when you run the script, '$1.cpp' will expand to 'data.cpp.cpp'. Which is why it's not working for you, the … | |
Re: Any chance you could clarify this a bit further? I don't really understand what you're trying to achieve here! Do you mean as soon as the swf has loaded, you want it to take a screenshot of the entire web-page?? If so, it sounds a bit unlikely to me as … | |
Re: In the highlighted 'if..else if..' block of code, you need to be using the equality operator == rather than the assignment operator. e.g. [CODE] if(this==button_Ad){ secondaryMenu_mc.loadMovie('ImageGallery_WebAndPrint_FlashMenu.swf'); } else if(this==button_Website) { secondaryMenu_mc.loadMovie('ImageGallery_WebAndPrint_GIFMenu.swf'); } else if(this==button_Logo) { secondaryMenu_mc.loadMovie('ImageGallery_WebAndPrint_GIFMenu2.swf'); } } [/CODE] This might work depending on how you've done things in your … | |
Re: What do you mean by 'scrub through'? If you mean that you want to remove the fast forward/rewind controls, or the bar which shows the current progress through the movie, you can simply use an alternative skin for your FLVPlayback component. Assuming you're creating your instance of the FLVPlayback component … | |
Re: Well if super-volcanoes, asteroids/meteors, solar flares/gamma blasts, or our own species' rotten stupidity and greed doesn't finish us off, I like Frank Zappas thoughts about the end of the world: [QUOTE]It isn’t necessary to imagine the world ending in fire or ice – there are two other possibilities: one is … |
The End.