669 Posted Topics
Re: I'm not sure you've posted in the correct forum, I think you want the shell scripting forum! Anyway, I think what you're after is this: [CODE] %USERPROFILE%\Desktop [/CODE] So if you wanted to navigate into the current users Desktop folder in your .bat file, then you would use: [CODE] cd … | |
Re: On top of the comments made by Moschops, it seems blatantly obvious that you haven't got a file called countertype.h, you've put all of the code for your class into a file called countertype.cpp. So you need to either rename countertype.cpp to countertype.h, or separate the code so that the … | |
Re: You can create your elearning content in virtually whatever format you want, be it Flash, Director, Java applets or even plain old HTML and Javascript. I haven't used director before, but I have used Flash to create elearning packages at a previous job. However, I think with director you may … | |
Re: As far as I'm aware, for obvious security reasons there is no way to directly write any kind of file directly from flash, however it is possible to use fscommand (in AS2) or the ExternalInterface class (in AS3) to send data to an external server-side script, which in turn can … | |
Re: That's a new one on me. Can't say I've ever seen that error myself! I'd hazard a guess and say that the file is most likely corrupted and therefore useless! If the .fla was created in a newer version of flash than you are using you'd normally get an error … | |
Re: The signature of your 'inviso' function is wrong. try this: [CODE] function inviso(e:MouseEvent):void { gotoAndPlay(56); } [/CODE] Oh and for future reference. To stop smilies from appearing in your post, if you use the 'advanced editor' you have the option to 'disable smilies in text'. That will stop smilies from … | |
Re: You haven't really given us much information on exactly what you're doing or more importantly which distro you're using. Are you updating existing packages or downloading new ones? Do you already have a version of libmp3lame-dev? or is it a new dependency for one of the packages you're trying to … | |
Re: [snipped] Oops, how did I end up posting here? This is the wrong thread! Sorry about that! | |
Re: If you want the page to be opened in the current window rather than in a new window you can do this: [CODE] function buttonClickHandler(e:MouseEvent):void { navigateToURL(new URLRequest("http://maxxsunglasses.com/products/new.html"), "_self"); } [/CODE] Not sure if that's what you're after. Other than that, the code you've posted for the click handler looks … | |
Re: I suspect this could be a flashplayer security related issue. Open up your .fla and take a look at the publish settings ('file->publish settings' in the main menu). When the publish settings dialog appears, click on the flash tab and check the setting of the 'Local playback security' field. If … | |
Re: The return type for your function is string, so you need to return a single string. Your functions return type is string and you've already built a string called 'date' in your code, which contains the date.. All you need to do is get rid of the three return statements … | |
Re: @ Ganesh: From what I can see the code is supposed to convert multiple spaces in the input string to single spaces! Try adding some extra spaces in your input string! Looking at the code, it appears to work for short strings with multiple spaces, but I suspect the OP … | |
Re: If you want to know how to create/use glow effects programmatically in AS3, there is a simple example in this old thread of mine! [url]http://www.daniweb.com/forums/post931271.html#post931271[/url] (Take a look, but please don't ressurect the thread by posting in it, it is very old!) | |
Re: For starters, that is a C source file you are editing, NOT a C++ source file (so you've posted in the wrong sub-forum!). As this is a C project you are editing, it is reasonable to assume that any project files or makefiles for the project will have the strict … | |
Re: In C++ there's more than one way to skin a cat. That isn't the only way of solving this problem. If you aren't supposed to be using arrays, you could try using two strings. e.g. One to temporarily store user input and another to build the final output string. So … | |
Re: Outside of being a computer geek I'm mainly a * Music Geek * Martial Arts Geek * Book Geek * Food Geek | |
Re: {rolls eyes and sighs!} OK, I'm assuming this is a [B][U]Windows[/U][/B] version of CS3 that you are trying to install on Ubuntu, which is a [B][U]Linux[/U][/B] based OS. If that is the case you should know that Linux is not Windows, Windows applications do not run on Linux or vice … | |
![]() | Re: Hmmm, I took a quick look at 2.5 over the weekend (not spent too much time with it yet) and I have to admit I am almost completely lost ATM and not entirely impressed so far! Other than Blender and Wings3D, I've not really used any other 3D modelling software; … |
Re: Ever since the HD died on our main XP pro desktop at home, I've completely switched to Linux. The hardware in our main desktop PC does not meet the minimum spec for Vista or 7. And XP is nearing the end of it's shelf life, so reinstalling XP would be … | |
Re: Or you could use a 'Date' object... Date is a globally defined intrinsic class/type in AS3 so you don't need to import anything to be able to use it. [CODE] var today:Date = new Date(); // constructor sets a new Date object to the current system date/time by default var … | |
Re: Do you really need to use a counter in your log file? If it's something that's been specified for your project and you absolutely have to use it, then I guess you aught to do something like dkalita has suggested. If this is the case then ignore everything below as … | |
Re: Well, for starters, if you'd enclosed your code in code tags it would have been a bit easier to read. But anyway, here are the problems I spotted in your code: (Apologies if there are any I've missed!) 1. Unless I'm mistaken there appears to be a closing brace '}' … | |
Re: OK, well [B]arkoenig[/B] hit the nail on the head with his description of the problem. This thread is becoming a little painful to read now, so I think I'll put you out of your misery. But I'll explain things as I go, that way I'm not just spoon-feeding code. Also, … | |
Re: Are you sure that compiles?? The 'using namespace std;' is before the #includes. So unless I'm mistaken, nothing in the std:: namespace will be visible to the compiler until after the first #include. Anyway that aside, as Rash has already pointed out; inside your append function you cannot reassign the … | |
Re: In your main function you are trying to call the foo::bar function directly, without an instance of the foo object. Usually you'd do something like [CODE]foo myfoo; myfoo.bar(3);[/CODE] and even then the bar function would have to be a public function. As it currently stands, the bar function is private … | |
Re: Have you tried this?? [CODE] if(sftp->Connect(hostname, port)) { // do something } else { // Whoops sftp->Connect() failed!! } [/CODE] Cheers for now, Jas. | |
OK, I rarely start threads here, I'm more of a solutions guy than a problems guy; but I've started this thread off the back of something posted elsewhere by my good friend and regular poster in this forum, rajarajan07. (quoted below!) [QUOTE=rajarajan07;1257498]Jason always gives the great explanation for the thing … ![]() | |
Re: From the looks of this line: [CODE]pDX->m_bSaveAndValidate(FALSE);[/CODE] It seems to me that you're trying to use a boolean member variable as a function, which is why you're getting that particular error. I'm pretty certain if you search for the definition of m_bSaveAndValidate it will be declared as a boolean variable … | |
Re: If you use ShellExecuteEx you can run another program as a separate process: [CODE] #include <iostream> #include <string> #include <windows.h> // required for various Win32 API bits #include <io.h> // required for _access() #include <shlobj.h> // required for SHGetSpecialFolderPath #include <shellapi.h> // required for ShellExecuteEx // helper functions std::string GetSpecialFolderPath(int … | |
Re: The -T option should still work AFAIK. Just off the top of my head, have you set up the path to the script file properly in the parameter to the -T option? Otherwise, have you set up a search path for the script using the -L option? If none of … | |
Re: Well, this topic isn't particularly C++ related, but.... When you say bootable, do you mean that you simply want it to auto-run from the USB stick when the USB stick is inserted? Or do you mean that you want the computer to boot from USB into your product when the … | |
Re: From looking at the line of code in question: [CODE] ((serverDlg*)m_pDlg)->OnReceive(port); [/CODE] If typecasting is required, shouldn't one of the C++ cast operators like dynamic_cast be used to safely typecast the pointer, instead of doing a potentially unsafe C-style cast? e.g. [CODE] // attempt to cast m_pDlg using dynamic_cast serverDlg … | |
Re: Woah, that news came as a bit of a shock! I've had a few interesting exchanges with Dave in the past couple of years (both in the forums and via PM's etc) and learnt rather a lot from him. Dave was a great bloke, a unique character and was certainly … | |
Re: This tutorial should more or less be what you're looking for! [url]http://forum.videohelp.com/topic248307.html[/url] The tutorial shows you how to watermark a video using Virtualdubmod, which is a modified version of Virtualdub. Virtualdub and Virtualdubmod are both free open source video editing software packages, there are loads of plugins and additional filters … | |
Re: In AS3 everything that gets added to the stage has it's own childIndex property, which relates to the objects depth. When adding DisplayObjects using addChild, the first item added will appear at the bottom and any subsequently added items will appear over the top of the previously added item. To … | |
Re: Take a look at these two articles which both provide details about the available programs/libraries for detecting memory leaks in *nix: [url]http://www.linuxjournal.com/article/6059[/url] [url]http://www.linuxjournal.com/article/6556[/url] Other than Valgrind, it lists several tools/libraries..... [B][U]For programs compiled in C:[/U][/B] mtrace memwatch dmalloc [B][U]For C++ programs:[/U][/B] dmalloc ccmalloc NJAMD YAMD mpatrol Insure++ Valgrind seems to … | |
Re: Hmm, that's a very interesting question... I tend to listen to a lot of different music at work and at home, but my choices usually depend on my mood and my activity rather than any specific language I might be using. For example, if I'm debugging code, reviewing code, or … | |
![]() | Re: Hey Raja, funnily enough I used to work in the e-learning sector a few years ago. You'll need to take a look at the SCORM, AICC and IMS standards. As long as your e-learning content satisfies their criteria then it should be usable in virtually any SCORM or AICC compliant … |
Re: As iamthwee has said, you need to install g++ to be able to compile C++ on *nix. But if it's a C++ IDE you're after, then Code::Blocks is probably the best on *nix. Anjuta is another of the commonly used *nix C++ IDE's. In both cases you'll still need to … | |
Re: I'm with iamthwee on this. I primarily use Ubuntu and Gnome. I also have an older laptop with Xubuntu on it (Ubuntu & Xfce). I've tried a lot of other distros on my PC's, but I always seem to come back to the Ubuntu/Debian variants. The Ubuntu/Debian-based distros have enough … | |
Re: No thanks! milk please, but no sugar! Ever stopped to think and forgot to start again? | |
Re: Hell, there are shed-loads of distros that can be installed onto a pen-drive. Depending on the capacity of your pen-drive, it could be anything from tiny distributions like DSL, Slitaz or Puppy, to full fat distros like Fedora or Ubuntu and everything in between. Take a look at [url]www.pendrivelinux.com[/url] it … | |
Re: [QUOTE=Garrett85;1194627]I prefer gnome to KDE but I don't know what this is but I thought I might give it a try. If anyone knows what this is and where to get it, please let me know, thanks. [url]http://www.tomshardware.com/gallery/ubuntu-linux,0201--6247----jpg-.html[/url][/QUOTE] I think it's either Docky or CairoDock that's been used to replace … | |
Re: Personally I like to avoid the type of vendor lock-in imposed by the likes of Apple wherever possible. Plus there are a catalogue of problems I've had in the past with Apple and their products in particular, which I won't go into here. Now, I'm not telling you to boycott … | |
Re: Well as far as I understand things, the bigger *nix based open-source companies like Red Hat (makers of Fedora) and Canonical (Ubuntu) make their money from paid technical support. So for example, a company/business which uses Ubuntu on their systems/servers can pay Canonical a subscription each year, which entitles the … | |
Re: [QUOTE=Dan08;1191921]Won't it corrupt anything on my system? Can you be more precise? I am not very confident about "trying deleting files"; If you understand me.[/QUOTE] What Manuhar has suggested is actually quite sensible and safe! If you open your home-directory with Nautilus and then press ctrl-h to show hidden files … | |
Re: Have you enabled all of the repositories in your software sources settings? I think if you go to 'system->administration->software sources' and ensure that the universe, multiverse and restricted repositories are enabled, that might solve the problem. Also why are you trying to build ffmpg? What's wrong with the version in … | |
Re: Hey dude, Been away for a while (on holiday with the wife 'n kids!), so I've not been online much recently. I've also not used the focus manager since AS2 (and then it was only once!), so I can't be of much help just yet. But I'll try to have … | |
Re: See [URL="http://tinyurl.com/34twwcx"]here[/URL] and [URL="http://tinyurl.com/3yh4v2m"]here[/URL] you should be able to find everything you need from those two links, including these two pages: [url]http://linux.die.net/man/3/read[/url] [url]http://linux.die.net/man/3/write[/url] Cheers for now, Jas. | |
Re: Whilst I agree that Ubuntu is a great Linux distro to get started with; Looking at the original post, the title mentions that the PC in question runs Windows ME, which implies to me that the hardware will be quite old. So perhaps a more lightweight distro would be in … ![]() |
The End.