Monday, September 29, 2014

Digest for comp.lang.c++@googlegroups.com - 5 updates in 3 topics

comp.lang.c++@googlegroups.com Google Groups
Unsure why you received this message? You previously subscribed to digests from this group, but we haven't been sending them for a while. We fixed that, but if you don't want to get these messages, send an email to comp.lang.c+++unsubscribe@googlegroups.com.
Jorgen Grahn <grahn+nntp@snipabacken.se>: Sep 29 10:31PM

On Sat, 2014-09-27, Vir Campestris wrote:
 
> Before you post anything - make sure you aren't giving away any
> commercial secrets. They don't have to be valuable for them to get very
> cross with you.
 
Put more strongly: I've always assumed I would get fired
immediately if I ever posted anything I created while getting paid.
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
JiiPee <no@notvalid.com>: Sep 30 12:18AM +0100

On 29/09/2014 08:30, David Brown wrote:
>> decision. Thanks again to all!
> When you work for someone else, they own the code you write. They own
> the copyright, and they decide what may or may not be done with it.
 
When I entered my first software company, they said they also own all
the code I do on my spare time, even if its some game I am programming
at home. Is this really true as well? Sounds wrong to me and I was a bit
disappointed, but accepted it. Why would it matter what I do on my spare
time especially if it has nothing to do with the company s code/work? I
understand and accept that all the code done in workplace belongs to the
company, that is natural.... but I do not think its right that also code
outside work is theirs.
woodbrian77@gmail.com: Sep 29 12:23PM -0700

I'm working on an on line code generator called the
C++ Middleware Writer. If you have some thoughts on
how to improve the software or documentation on my
site, please let me know. I'll post some files here.
Thanks in advance.
 
The following is the contents of platforms.hh
 
#pragma once
 
#if defined(_MSC_VER) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#define CMW_WINDOWS
#include <ErrorWords.hh>
#include <winsock2.h>
#include <ws2tcpip.h>
using sock_type = SOCKET;
using file_type = HANDLE;
 
inline int GetError () { return WSAGetLastError(); }
 
inline void windows_start ()
{
WSADATA wsa;
int rc=WSAStartup(MAKEWORD(2,2),&wsa);
if(0!=rc)throw cmw::failure("WSAStartup: ")<<rc;
}
 
#else
 
#include <errno.h>
using sock_type = int;
using file_type = int;
 
inline int GetError () { return errno; }
inline void windows_start () {}
 

No comments: