669 Posted Topics

Member Avatar for sandman64

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 …

Member Avatar for L7Sqr
0
184
Member Avatar for montjoile

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 …

Member Avatar for montjoile
0
212
Member Avatar for tomtetlaw

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 …

Member Avatar for tomtetlaw
0
2K
Member Avatar for pseudorandom21

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. …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for now0pen

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!

Member Avatar for JasonHippy
0
38
Member Avatar for winecoding

[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 …

Member Avatar for Go_bots
0
179
Member Avatar for geekme

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 …

Member Avatar for JasonHippy
0
590
Member Avatar for mirkuh

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! …

Member Avatar for JasonHippy
0
411
Member Avatar for alaa sam

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.

Member Avatar for alaa sam
0
130
Member Avatar for geekme

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!

Member Avatar for JasonHippy
0
194
Member Avatar for winecoding

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 …

Member Avatar for alaa sam
0
250
Member Avatar for rEhSi_123

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 …

Member Avatar for JasonHippy
0
340
Member Avatar for rijvana

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 …

Member Avatar for rijvana
0
203
Member Avatar for pucivogel

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 …

Member Avatar for JasonHippy
0
212
Member Avatar for Argo54325

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 …

Member Avatar for Argo54325
0
234
Member Avatar for stupendousomega

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 …

Member Avatar for stupendousomega
0
470
Member Avatar for mariko

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 …

Member Avatar for mariko
0
221
Member Avatar for jl.lakhnai
Member Avatar for JasonHippy
0
64
Member Avatar for jimJohnson

[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 …

Member Avatar for jimJohnson
0
139
Member Avatar for KenPeterson

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? …

Member Avatar for crunchie
0
202
Member Avatar for shadowscape

@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 …

Member Avatar for JasonHippy
0
160
Member Avatar for riahc3

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 …

Member Avatar for JasonHippy
0
105
Member Avatar for Khoanyneosr

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 …

Member Avatar for pseudorandom21
0
363
Member Avatar for Anna Hussie

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 …

Member Avatar for JasonHippy
0
70
Member Avatar for thekashyap

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 …

Member Avatar for thekashyap
0
104
Member Avatar for tonysun

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 …

Member Avatar for tonysun
0
4K
Member Avatar for Sekhrian

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 …

Member Avatar for Ancient Dragon
0
194
Member Avatar for zulkefli82

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]; …

Member Avatar for zulkefli82
0
119
Member Avatar for shyla

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! …

Member Avatar for Moschops
0
555
Member Avatar for SourabhT

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 …

Member Avatar for arkoenig
0
721
Member Avatar for geekme

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 …

Member Avatar for JasonHippy
0
779
Member Avatar for gg1706

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 …

Member Avatar for gg1706
0
166
Member Avatar for lochnessmonster

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 …

Member Avatar for JasonHippy
0
497
Member Avatar for clickspiker23

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 …

Member Avatar for JasonHippy
0
140
Member Avatar for SWEngineer

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 …

Member Avatar for JasonHippy
0
155
Member Avatar for kumaresen

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 …

Member Avatar for Fbody
0
287
Member Avatar for kumaresen

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 …

Member Avatar for JasonHippy
0
228
Member Avatar for vishy1618

[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 …

Member Avatar for tinchopique
0
448
Member Avatar for tomtetlaw

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 …

Member Avatar for JasonHippy
0
256
Member Avatar for khakilang

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!). …

Member Avatar for jackmaverick1
0
486
Member Avatar for gl7

@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 …

Member Avatar for gl7
0
304
Member Avatar for alaa sam

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, …

Member Avatar for alaa sam
0
10K
Member Avatar for jdogg4000

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 …

Member Avatar for rajarajan2017
0
225
Member Avatar for jake1496

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 …

Member Avatar for davidlouis88
-8
863
Member Avatar for jkoske

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 …

Member Avatar for Stefano Mtangoo
0
109
Member Avatar for silentbang

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 …

Member Avatar for silentbang
0
154
Member Avatar for theighost

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 …

Member Avatar for theighost
0
179
Member Avatar for jdogg4000

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 …

Member Avatar for jdogg4000
0
102
Member Avatar for EricIskhakov

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 …

Member Avatar for EricIskhakov
0
204
Member Avatar for sneekula

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 …

Member Avatar for bumsfeld
2
935

The End.