Search:
Type: Posts; User: sunburnt
Search:
Search took 0.69 seconds.
-
I only can see two things (potentially) wrong:
First, I would pass IPPROTO_TCP as the third argument to socket. It may very well be equal to 0, but it might also not :)
Secondly, read/write...
-
An unsigned 32 bit integer can represent numbers just over 4 billion (4294967295).
An unsigned 64 bit integer can represent numbers just over 1.8 * 10^19 (18446744073709551615)
Anyway, if you...
-
You can set the hostname to whatever you want it to be. Either set it during the install, or:
1. use the 'hostname' command followed by the new hostname
2. change the value stored in the file...
-
TEXT is a macro that makes it easy to compile your program both with Unicode strings and without.
with the standard Windows API, you don't really register a click event for your button -- you...
-
This sounds like a perfect use case for rsync.
rsync will synchronize the contents of two directories (possibly on different machines), copying only what has changed between the two.
basically,...
-
The "L" added to the front of a string literal means that the compiler should expand it to a unicode string (char->2 bytes) instead of an regular string (char->1 byte). Apparently your IDE/compiler...
-
You can press control+alt+f1 to switch to a terminal, but if the X session is completely frozen, that probably wont work. The version of linux I use includes a 'recovery' option at the GRUB boot...
-
A completely white screen probably means that you have some conflicting X modules loaded or a X configuration that doesn't play nice with desktop effects. These can be tweaked in your xorg.conf...
-
Yup -- sorry, the $ is usually what you'll see at the end of your prompt, so I threw it in there to indicate that you should type it at the terminal.
For example, here at work my terminal looks...
-
I'm not sure how fedora works, but usually during install you are also prompted to create a non-root username and account. Logging in as root, especially in a graphical session, is a very bad idea...
-
A minor difference is that a .h file can be either a C header file or a C++ header file. Naming a header file .hpp is done to indicate that it's a C++ header file.
-
Unfortunately it's going to be a lot harder than that. DLLs created with VB6 are (I believe) ActiveX DLLs. Using ActiveX objects from C++ is a rather complicated mess of COM interfaces and code...
-
You might check the $TERM environmental variable, which specifies the terminal type and from that what options (such as colors, formatting, etc.) are supported.
Under gnome terminal, my $TERM is...
-
char* _replace(char* source_str,char* search_str,char* replace_str)
{
char ostr[1000000] = {0};// in my case the data are huge
// ...
return ostr;
}
This is not going to work...
-
And you can use the same API in C/C++. At lot of people seem to be under the impression -- incorrectly -- that these "APIs" are a mystic VB thing. Access to the Windows API is available in any...
-
There are lots of GUI toolkits for linux. The two most popular are GTK and QT. QT is free for use in open source applications, so don't let the "evaluation" button fool you.
There is also a C++...
-
As far as I know (and I am not a lawyer), there's no difference between including a Microsoft logo in an open source project and in a close source commercial product.
In both cases, you must...
-
It might be good to check if your version of php was built with GMP support.
Create a page to check:
phpinfo();
Visit this page -- do you see a section like this:
-
do you have the line:
HWND hwnd;
somewhere in your code?
-
I didn't look at the date of the post when I deleted the attachments. What I saw was a zip file containing just an executable with no source code. It didn't help that your account has just two...
-
What you said is pretty much correct.
In C/C++, a 'char' represents a single character. C has no built-in string type, so a string is represented as an array of characters terminated by a null...
-
Anytime you create an object with 'gcnew' as opposed to 'new' or simply declaring it, you should use the 'hat'. the 'hat' indicates that the object is a reference and that is a reference to a...
-
I've removed your attachments. If you want to post your work along with the source code so that people can inspect it and compile it themselves, that's fine, but we generally don't allow people to...
-
I think the simple answer is that it's not possible without rewriting a lot of code and writing a lot of new code.
Creating a GUI without the .NET framework in C++ is not an easy task -- there are...
-
The problem is that you haven't included the direct x libraries to link to. If you haven't downloaded those libraries already, you'll need to download them.
I'm not sure what exact libraries you...
-
Woss pretty much nailed it.
The only thing I would add is that if you're using C++, you can use references instead of pointers (and the typedef for the struct is not necessary).
void...
-
This is at bootup after you installed the system, or while booting the live cd? The DHCP timeout shouldn't be more than a minute and a half.
When it hangs, press CTRL+ALT+F1, CTRL+ALT+F2 ,...
-
Question 2: why do I have to do -> on objects (labels, timers), . on variables, and :: on some other things, to activate intellisense, I can not stand it!!!
most of the time intellisense does not...
-
Is this what you are looking for?
for (;;) {
unsigned int str_len = 0 ;
srf_ReadFile.Read((char*)&str_len, 4) ;
char* buffer = new char[str_len];
srf_ReadFile.Read(buffer,...
-
int* buffer = NULL;
for(int i = 0; i < num_loops; i++)
{
// allocate buffer
int size = size_for_next_buffer();
buffer = new int[size];
// copy data into buffer, process...
-
I don't think you are going to be able to find a 'stand alone' compiler that isn't a command line program. That's just how compilers and linkers generally work.
-
I'm not sure :)
If you're interested you can read more on wikipedia: two's complement
-
Actually, it worked perfectly, but the problem is the way that negative numbers are represented in the twos complement system.
What you have discovered is this:
A value is considered negative...
-
There's no memory leak in that code.
What your friend might mean is that the std::string class is immutable -- in other words, every time you make a change to a string via substr(), remove(), etc,...
-
WORD version
WORD is a type defined in windows.h. It's an unsigned 16-bit integer, I think.
WSADATA wsaData;
WSAStartup(version,(LPWSADATA)&wsaData);
-
Licensing and activation is very tricky to get right. You want to prevent piracy without affecting the legitimate users. It seems that lately a lot of companies have managed to get this completely...
-
In C/C++, the backslash character in a string is an escape character -- it tells the preprocessor that you are trying to specify a special character. For example, \t means tab, \n means new line,...
-
Because the problem space is not very large for a tic tac toe game, a simple solution is to recursively play out the game based on any possible moves, then pick the initial move that had ended up...
-
The problem is that while you can append text to an existing file, you can't "insert" text -- only overwrite.
Your solution is correct -- read the file in, insert what you need, and then re-write...
-
Here's what I mean:
C# and VB.NET are languages that Microsoft designed specifically to make use of the .NET Framework. C++ is a standardized language that has been around for quite a long time. ...
|
Click Here to Expand Forum to Full Width
|