Search:
Type: Posts; User: harizak
Search:
Search took 0.06 seconds.
-
October 30th, 2004, 01:26 PM
How about this:
const char* table[] = { "one", "two", three" };
In your code you declare 'table' as an array (indicated by the [] on the right hand side of the 'table' variable) of char...
-
October 30th, 2004, 11:45 AM
Since we've been talking about accept(), I assume that you are using reliable connection oriented sockets (TCP/IP) and not unreliable connectionless (UDP) ones. The TCP stack allocates two internally...
-
October 29th, 2004, 11:38 AM
Your problem is rather simple. Before calling accept() -which by the way is a blocking call- issue a call to the select() as follows:
int Accept (int s,struct sockaddr* addr, socklen_t*...
-
October 29th, 2004, 10:41 AM
How about this (instead of the switch statement):
bool Nessica (char c)
{
return (c == 'e');
}
-
October 27th, 2004, 09:27 AM
Really interesting! I guess you have (at least partially) resolved your problem. Still need to find how the various registry values are propagated into the OS' network configuration (without a...
-
October 27th, 2004, 09:02 AM
When you are talking about variable number of parameters, do you mean that the method signature will contain the varaible arguments notation '...' or something else?
There are for example...
-
October 27th, 2004, 08:46 AM
Unfortunately we are talking about the very same thing. The advanced sheet is not windows specific. Windows simply render the driver's advanced dialog window. The advanced sheet (at least for my NIC)...
-
October 27th, 2004, 08:31 AM
When I click on the configure button of my NIC properties sheet, I do not see a windows standard dialog. I see an Intel (my NIC's vendor) specific dialog, containing a property sheet that does not...
-
October 27th, 2004, 08:15 AM
I don't think that Windows let you change the MAC address of any NIC. Are you sure that the configuration button does not pass control to the HP confiuration tool? At least on my PCs (WinNT 4.0 &...
-
October 27th, 2004, 06:48 AM
Seems ok as long as REGS and SREGS have already been defined. If you are working on a Win32 platform and you are getting a strange (unexpected) error, verify that REGS and SREGS are not defined as...
-
October 27th, 2004, 04:11 AM
To my knowledge, the MAC address is something built into the "hardware" part of NICs and cannot be altered by users at the user level. Of course hardware provides means to the driver so that all...
-
October 27th, 2004, 03:49 AM
Win32: Open both files and then call the GetFileInformationByHandle(...). The 2nd parameter (BY_HANDLE_FILE_INFORMATION) will contain a unique index for each file (within a file system). If this...
-
October 26th, 2004, 09:09 AM
I'm affraid but variable parameter method invocation requires assembly. The functor needs to perform the following actions:
1) Discover the size occupied on the stack by the variable number of...
-
October 26th, 2004, 05:52 AM
I am affraid that no portable solution to your problem exists. Before explaining my approach, let me clarify one or two things:
1) Folder are files too (of directory and not ordinary type). The...
-
October 26th, 2004, 05:31 AM
Well NoHero, even the function specialization trick will not be enough. Here comes an example:
// The original 'MyStruct' structure.
struct MyStruct
{
int count;
-
October 26th, 2004, 05:07 AM
Windows or UNIX platform?
--harizak
-
October 26th, 2004, 05:03 AM
Well, I also don't like that much the proposed decoupled typedef-ed template specification. However, in your case the introduction of a lightweight variant class may be a solution to your problem....
-
October 22nd, 2004, 09:55 AM
The "" is an empty literal constant,which occupies 1 char (usually 1 byte) of read-only memory and contains nothing more that the null terminator character. Your function returns a pointer to this...
-
October 21st, 2004, 08:10 AM
Well NMTop40, it is not actually that simple. The specialization won't be effective for classes derived from the abstract 'Counter' class but only for 'Counter' instances (that is for nothing since...
-
October 20th, 2004, 01:06 PM
Indeed! Avoiding to use the base initializer list, will cause the compiler to emit code for default initialization of all base classes and member fields, as also for the required assignment...
-
October 20th, 2004, 12:59 PM
Got it (actually google got it for me)! I knew I've come across a "multiply invoked destructor" compiler bug ...
Visual C++ v5
EGCS (Alpha platform)
The version 6 of the visual C++ compiler...
-
October 20th, 2004, 12:39 PM
Constructors are used in order to have a class instance (an object) initialized upon creation. By default, all base classes and member fields (variables) are initialized using their default...
-
October 20th, 2004, 12:27 PM
To be honest I don't remember where have I read about the multiple destruction issue. I suppose it was either in this forum or somewhere in the code project site. It is for me as well hard to believe...
-
October 20th, 2004, 11:50 AM
// Sample C-style structure (without constructors etc.)
struct MyStruct
{
int count;
};
// Templatized Foo class.
-
October 20th, 2004, 11:08 AM
I am affraid that the above code fragment will not work on little endian architectures (such as intel CPUs etc), since endianity is not taken into account. Try the following instead:
UINT...
|
Click Here to Expand Forum to Full Width
|