Type: Posts; User:
Have you taken a look at using a RichEdit control to do this?
Where do you define distroylist() ?
I took a look at the way various browsers and utilities implement this, and the default methods for a lot of them are very insecure. For Firefox for example, any user with admin rights on the...
The user doesn't need to enter a passphrase. If you ask it to store the password, it will provide it automatically when you are logging on to a site. Many other browsers have a similar...
I was going to suggest looking at FileZilla, since it's open source and allows you to store password for FTP/SFTP login. However, when I checked I see it stores them as plain text in an XML file, so...
There's no obvious way to do it. You can specify the language you want to be used as the 3rd parameter. However, there's no way to check that MFC was actually able to find the string in that...
Yes, it's fairly blatant link spam
I can't see the list of errors, but for what you are trying to do you need to declare p as static, and make sure it's in scope throughout your function.
You have a few other logic errors as...
You're right, it's very simple. Judging from post #15,
your executable is in "'C:\Users\Bryan\Documents\CSI 345\Palindrome\Debug\"
So, open a command prompt:
This link has some useful general information about locale-dependent case comparision
Key point is that the mapping between upper and lower case depends on...
So I presume the 100% CPU load and what appears to be a memory leak are both symptoms of a bug in some application or service running on that machine. Alternatively, there is something...
There's no API to do this, but I see that some people have reported succesfully changing the pagefile settings by editing the registry values at ...
You should write it as binary, so open the file as:
std::ofstream outputFile("C:\\temp.jpg",ios::out | ios::binary);
Just to clarify, as Paul pointed out the Dog destructor will only be called if the Mammal destructor is declared as virtual (which it isn't in the code that you posted.)
Also, you are reading into an array of 5 char pointers, not 5 chars. I think you meant char buff2.
The algorithm you are trying to use is also wrong. Try to get that right to start with, i.e....
Do you have to use Win32 & C++ for the project?
I've only seen this if any files were saved "in the future", e.g. if your PC date was set incorrectly at some stage and you saved a file.
Note the difference between undefined and undeclared.
You have declared the class, but not defined it. So you could use a pointer to it in your Headquarters class (which is probably what...
Well, looks like the call expands out to something like:
((GtkFileChooser)*) g_type_check_instance_cast ((GTypeInstance*) file_chooser_button, gtk_file_chooser_get_type ())
so there's a cast to...
I've noticed this on flounder.com:
_beginthread(), _beginthreadex(), or CreateThread() in an MFC program
Is that right, and if so do you need some special approach when using the Win...
I guess it comes down to what does G_TYPE_CHECK_INSTANCE_CAST do?
I don't know the answer, but what I find useful for something like this is to expand out all the macros to see the code that...
I'm not sure what you mean by what "makes" a class locale.
You need to #include <locale> and then use std::locale() if you want to create a locale object, but I don't think that's what you're...
Maybe smart decoration and good service? :-)
Do you mean locale, or a local class? A local class would be one declared within a function definition.
I suggest taking a close look at the changes to the externs.
If you're using this to debug hardware, maybe some port accesses are getting optimized out, or changed in some way that affects...
Yes, without the first const you could do something like this:
void foo(const dynamic_2d_array<int>& myArray)
myArray = 1;
which shouldn't be allowed.
Click Here to Expand Forum to Full Width