--------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F2300002 Date: 01/30/98 From: GEORGE WHITE Time: 09:45am \/To: MATHIEU BOUCHARD (Read 2 times) Subj: converting char to strin Hi Mathieu, MB> In fact, just think what happened if you MB>programmed everything in C without using the libraries... wow. But that MB>still would be C... It's not that difficult and in fact some of us do sometimes. If you are writing for an embedded system there are large parts of the library that are not useable anyway. George * SLMR 2.1a * All Trademarks acknowledged (just in case ). --- Maximus/2 3.01 * Origin: DoNoR/2,Woking UK (44-1483-717905) (2:440/4) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F2300003 Date: 02/02/98 From: JOHN DUMAS Time: 08:41pm \/To: ALL (Read 2 times) Subj: more dll mischief How do you stop, unload, or whatever the term, a dll. When I rerun a program without rebooting the computer it says: "Cannot create process : an instance of the module is already running" ... Amoung mortals second thoughts are the wisest (Euripides) --- Blue Wave/DOS v2.20 [NR] * Origin: The Witch City BBS *Salem,MA [978]745-1689 *Hayes 28.8 (1:101/301) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F2300004 Date: 02/02/98 From: GERRY DANEN Time: 05:30pm \/To: ALL (Read 2 times) Subj: Platform SDK available * Crossposted from: STN.NEWS: News and Announcements JANUARY 1998 PLATFORM SDK AVAILABLE Microsoft's 1998 Platform SDK is a one-stop shop for downloading current and emerging Microsoft technologies as well as tools, headers, libs and sample code. http://www.microsoft.com/msdn/sdk/bldenv.htm Gerry Danen (gdanen@connect.ab.ca) C+Net BBS @ 403-477-9545 http://www.geocities.com/SiliconValley/Way/9823 Moderator STN.Y2K: Year 2000 information & discussion 1 year, 332 days, 6 hours, 35 minutes, and 27 seconds until January 1, 2000. --- Maximus 3.01 * Origin: C+Net BBS. Programming & Networking. (1:342/601) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F2300005 Date: 02/02/98 From: BOB STOUT Time: 05:04am \/To: ROGER SCUDDER (Read 2 times) Subj: Jerry Coffin On , Roger Scudder (1:273/404@fidonet) wrote: > Does anyone have Jerry Coffin's e-mail address? I want to get him back > here... we can't afford to lose him. He was too important to this cho... > and the C echo for that matter. Roger... That's the reason why I'm conducting the moderator election. Jerry was the last moderator of record for C_PlusPlus, but his local sysop shut down and he lost his FidoNet feed almost overnight (he was a point, not a sysop). Subsequent efforts on his part failed to turn up an economically and/or technically viable FidoNet connection, so he's gone. I do have his email address which I can send you, but I don't want to post it publicly without his consent. Bob Stout Acting moderator, C_PlusPlus --- QM v1.00 * Origin: MicroFirm : Down to the C in chips (1:106/2000.6) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F2300006 Date: 02/02/98 From: BOB STOUT Time: 05:11am \/To: JAMIE KOWINSKY (Read 2 times) Subj: Enviorment variables On , Jamie Kowinsky (1:129/230@fidonet) wrote: > Can anyone post some sample code on how to read enviorent vars from > the current enviorment, and if possible how to modify them? > The system I am working with is HP-UX 10.20 but would also like the > code to work with a Linux system. Jamie... The only standard way to read them is using the standard getenv() function, which I know HP-UX supports. There is no standard way to set an environment variable, although there are several more-or-less portable, albeit non-standard extensions. The most common is to allow passing an environment block when using an exec call (also the spawn family of functions for our DOS/Win readers). Also, many compilers support the use of a complementary putenv() function, which has the advantage of being usable with the standard system() function. Note, however, that whatever method you use to change an environment variable, it will only be changed for the duration of the current process. This is a commmon limitation not only of Unix, but also of all PC OS's as well. It's also a FAQ. There's one answer why in Steve Summit's FAQ list, plus another in the SNIPPETS file, ENVIRON.TXT. --- QM v1.00 * Origin: MicroFirm : Down to the C in chips (1:106/2000.6) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F2300007 Date: 02/03/98 From: BOB STOUT Time: 06:31am \/To: DARIN MCBRIDE (Read 2 times) Subj: C_PlusPlus elections results to date On , Darin McBride (1:250/102@fidonet) wrote: RS> C/C++ Echo reunification vote: RS> For: 2 RS> Against: 5 > Would this not be better to list names of those for and against > (especially if those "undecided" didn't really mean to become decided)? Darin... You're right - there's no reason why the referendum should be a secret ballot. --- QM v1.00 * Origin: MicroFirm : Down to the C in chips (1:106/2000.6) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F2300008 Date: 02/03/98 From: BOB STOUT Time: 06:41am \/To: ALL (Read 2 times) Subj: C_PlusPlus elections results to date (All listings are alphabetical) Candidates: Darin McBride Roger Scudder Tom Torfs Jonathan de Boyne Pollard * Declined: Kurt Kuzba Pending: C/C++ Echo reunification vote (failed): For: Frank Adam Frank Masingill Against: Jan Bijsterbosch Neil Heller (changed on 26-Jan from yes on 14-Jan) Tim Hutzler Kurt Kuzba Thomas Maeder Klaus Mahlmann Jason Petty Jonathan de Boyne Pollard John Richardson Roger Scudder Anthony Tibbs Tom Torfs * Note that it's unclear whether Jonathan de Boyne Pollard has an email account as required by the election rules. His participation as a candidate is therefore conditional upon meeting this requirement. If I haven't heard from him one way or the other by 8-Feb-98, his name will be removed from the ballot and those voting for him will be notified to resubmit their ballots. --- QM v1.00 * Origin: MicroFirm : Down to the C in chips (1:106/2000.6) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F2300009 Date: 02/03/98 From: BOB STOUT Time: 06:38am \/To: ALL (Read 2 times) Subj: C_PlusPlus moderator election rules Since I've managed to arrange that C_PlusPlus won't go away on 2-Fab, I'm adopting the same election rules as have been posted for the C_Echo. C_PlusPlus Moderator Election Rules ----------------------------------- 1. The nominating period will run through 31-Jan-1998. 2. The voting period will run from 1-Feb-1998 through 28-Feb-1998. 3. The new moderator will be announced in C_PlusPlus on 1-Mar-1998 and will assume office on 8-Mar-1998 or earlier where feasible. 4. To be eligible for the post of moderator, a candidate must meet the following criteria: a. Candidates must be either a sysop or a point. If a point, the candidate must have the consent and approval of his/her BossNode sysop. b. Candidates must have posted messages in C_PlusPlus within the month of December, 1997. c. Candidates must have an Internet address as well as a FidoNet address, allowing them to be able to reliably send and receive Internet email as well as FidoNet NetMail. 5. Candidates may either be nominated or volunteer. If nominated, no seconding nomination is required. If volunteered, a seconding nomination will be required. 6. All candidates must explicitly accept their nomination. 7. Nominations and volunteers should be posted publicly in C_PlusPlus. Acceptance of nominations must be via email to rbs@snippets.org. 8. Anyone who posted a message to C_PlusPlus within the month of December, 1997, is eligible to vote. 9. Votes should be sent directly to me via NetMail to 1:106/2000.6 or email to rbs@snippets.org. All voters should expect a confirming message. Please be aware that sometimes I have problems with NetMail. So use Internet email where possible. 10. If anyone has, or seems to have, any real problems getting their vote to me, they may, as a last resort, post their votes in C_PlusPlus. This obviously violates the concept of a secret ballot, and is therefore discouraged unless all other means of voting have been exhausted unsuccessfully. Bob Stout Temporary acting moderator, C_PlusPlus --- QM v1.00 * Origin: MicroFirm : Down to the C in chips (1:106/2000.6) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F2300010 Date: 02/03/98 From: KURT KUZBA Time: 07:27am \/To: THOMAS HABETS (Read 2 times) Subj: converting char to string TH> TH>> char ch; TH> TH>> char str[80]; TH> TH>> str[0] = ch; TH> TH>> str[1] = 0; TH> MB> 78 bytes wasted. TH> Ha....................ha....................... Since the initialization of a variable ensures that all members not specifically assigned a value will be assigned the value 0, one could do this, also: char *CharCat(char *szStr, int iChar) { char szTempStr[2] = ""; szTempStr[0] = char(iChar); strcat(szStr, szTemp); return szStr; } The use or creation of a string class would still allow all of this to go much quicker, since one could keep an int value denoting the present length of the string as a class member and append the new data at that point without having to look for the string terminator. A few clock cycles here and there in frequently used code will add up. > ] A single step may begin a journey of 1,000 miles............ --- * Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750)