Re: [c-prog] HELP! Design Review Risk Management topics (in C Project) required

2010-09-08 Thread Thomas Hruska
it is pretty much off-topic (minus the subject line). Maybe something insightful will come from this. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source

Re: [c-prog] fighting action detection

2010-09-02 Thread Thomas Hruska
algorithms from scratch. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source CubicleSoft initiative. Your choice of a MIT or LGPL license. http://barebonescms.com/

Re: [c-prog] float value to (unsigned) char

2010-09-01 Thread Thomas Hruska
://www.svnstrk.blogspot.com Use an explicit cast - and skip the call to the math library: red = (unsigned char)(inputDecimal * 255); -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open

Re: [c-prog] float value to (unsigned) char

2010-09-01 Thread Thomas Hruska
. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source CubicleSoft initiative. Your choice of a MIT or LGPL license. http://barebonescms.com/

Re: [c-prog] C++/CLI or C#

2010-08-31 Thread Thomas Hruska
think of a single thing I'm unable to accomplish in just a few lines of code. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source CubicleSoft initiative. Your choice

Re: [c-prog] C++/CLI or C#

2010-08-31 Thread Thomas Hruska
and then they turn around and say that Windows Updates are for deploying core Windows product updates. VC++ is just as much a core part of the OS as .NET is. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating

Re: [c-prog] Can you please recommend active C++ groups?

2010-08-30 Thread Thomas Hruska
very much! RobR Stick around for a while. It actually seems to shift like waves between the two languages. C and C++ share quite a few similarities. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating

Re: [c-prog] compiler

2010-08-26 Thread Thomas Hruska
errors are you looking to check for? -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source CubicleSoft initiative. Your choice of a MIT or LGPL license. http

Re: [c-prog] Cross reference file

2010-08-26 Thread Thomas Hruska
reference file in borland C++. Thanks ! What type of cross reference file? (Be more specific) -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source CubicleSoft

Re: [c-prog]

2010-08-26 Thread Thomas Hruska
likely it isn't working because the OS is blocking the port from being accessed directly like you are attempting to do. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open

Re: [c-prog] How to find the windows version using C.

2010-08-26 Thread Thomas Hruska
information of the OS should be for collecting it as part of a technical support package. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source CubicleSoft initiative

Re: [c-prog] Help!!! :-(

2010-08-26 Thread Thomas Hruska
::sort. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source CubicleSoft initiative. Your choice of a MIT or LGPL license. http://barebonescms.com/

Re: [c-prog] Cross reference file

2010-08-25 Thread Thomas Hruska
On 8/24/2010 9:03 AM, wy...@yahoo.com wrote: Hi, Any our knows how to create cross reference file in borland C++. Thanks ! What type of cross reference file? (Be more specific) -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content

Re: [c-prog] IF and Switch statement in c language

2010-08-25 Thread Thomas Hruska
/wiki/Branch_table Really a judgment call, but I reserve 'switch' statements for when I have enough to justify the effort to remember to 'break' each 'case'. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers

Re: [c-prog] mixing C and C++

2010-08-24 Thread Thomas Hruska
. You don't have to worry about extern C here. I only care about POSIX and GNU/Linux. I care about whatever gets the job done. Linux is fine for some things. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers

Re: [c-prog] mixing C and C++

2010-08-24 Thread Thomas Hruska
On 8/24/2010 7:55 AM, Stanisław Findeisen wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2010-08-24 16:12, Thomas Hruska wrote: On 8/24/2010 4:50 AM, Stanisław Findeisen wrote: == If you are including a C header

Re: [c-prog] file functions

2010-08-24 Thread Thomas Hruska
. I'm assuming, of course, you still want the AVI to still function properly in a video player after you are done massacring it. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment

Re: [c-prog] vectorbool does not working?

2010-08-20 Thread Thomas Hruska
) { typedef vectorbool BVEC; BVEC bv; bv.push_back(false); bool b = bv.at(0); cout b; system(PUASE); return 0; } //vectorbool is working... What compiler? -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web

Re: [c-prog] VC++ linker can't find an export symbol

2010-08-20 Thread Thomas Hruska
the name-mangled versions to the object file. Then the linker looks for the name-mangled versions, can't find them, and bails. All C exports have to have the extern C declaration for the C++ compiler to know not to name-mangle the name. -- Thomas Hruska CubicleSoft President Barebones CMS

Re: [c-prog] Searching for some real help with a intriguing C # question

2010-08-18 Thread Thomas Hruska
http://totallyfreeenergy.zxq.net The best place to go for Windows-specific programming help is either the Microsoft newsgroups or CodeProject.com. You'll find Microsoft MVPs who know C# at both locations. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open

Re: [c-prog] Rotating log file class

2010-08-18 Thread Thomas Hruska
up a dual-boot environment, consider using USB thumbdrives instead and booting off of those. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source CubicleSoft

Re: [c-prog] VC++ linker can't find an export symbol

2010-08-18 Thread Thomas Hruska
is appreciated. Thanks. Jerry. Mixing C++ and C could have that effect. The compiler might have stored the wrong symbol in the object file and then the linker is having difficulties finding a match as a result. See name mangling. -- Thomas Hruska CubicleSoft President Barebones CMS is a high

Re: [c-prog] Rotating log file class

2010-08-17 Thread Thomas Hruska
to a USB thumbdrive. You could always roll your own log file library if you don't find anything suitable for your needs. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open

Re: [c-prog] Re: conversion from char* to unsigned char*

2010-08-13 Thread Thomas Hruska
definitely not a fan of mixing C and C++ these days. You should look at using new and delete. Results in cleaner code instead of being forced to typecast all over the place. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web

Re: [c-prog] Limiting the speed of a program

2010-08-12 Thread Thomas Hruska
burning CPU cycles. Besides, most modern processors are multithreaded/multicore so simply burning CPU cycles won't do anything to slow down a program. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating

Re: [c-prog] Limiting the speed of a program

2010-08-12 Thread Thomas Hruska
On 8/11/2010 11:06 PM, Thomas Hruska wrote: On 8/10/2010 5:29 PM, sihd0 wrote: Hello, I am a new and upcoming programmer and I was wondering if anyone knows how to limit the speed at which a program will execute. I am planning to begin research into factoring and would like to only use about

Re: [c-prog] Direct X Programming

2010-08-08 Thread Thomas Hruska
about XNA Game Studio, it is C# based. It seems to be the way Microsoft is headed for game development. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source

Re: [c-prog] How do I get the path of an ActiveX DLL at run time?

2010-08-06 Thread Thomas Hruska
() as a global variable and then pass it to GetModuleFileName() - thus skipping the GetModuleHandle() call altogether. If neither approach works, you could always try the method used by Windows to locate a DLL to load it: http://msdn.microsoft.com/en-us/library/ms682586%28VS.85%29.aspx -- Thomas

Re: [c-prog] How do I get the path of an ActiveX DLL at run time?

2010-08-05 Thread Thomas Hruska
. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source CubicleSoft initiative. Your choice of a MIT or LGPL license. http://barebonescms.com/

Re: [c-prog] How do we time our algo/program

2010-08-04 Thread Thomas Hruska
. A Beginner tier would get more feedback while the Expert tier would get the current limited feedback. -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source CubicleSoft

Re: [c-prog] Someone beginning C++?

2010-07-28 Thread Thomas Hruska
for some possible spelling mistakes. I am from France... All people from France make spelling mistakes. Noted. :) -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source

Re: [c-prog] Need help for open docx

2010-07-26 Thread Thomas Hruska
/OpenXMLsamples.aspx -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web developers operating in a team environment. An open source CubicleSoft initiative. Your choice of a MIT or LGPL license. http://barebonescms.com/

Re: [c-prog] I'm having multiple problems with VC++ programming

2010-07-24 Thread Thomas Hruska
externals No idea. I've never done anything with JNI. Someone else will be able to help you here. If anyone can help with what I'm doing wrong it will be appreciated. Thanks. Jerry. I see you are a MSU student. :) -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open

Re: [c-prog] Merging more messages-tables into an application.

2010-07-23 Thread Thomas Hruska
don't think I ever saw a solution for this question. Probably because the OP never clarified what specifically the problem is. Is this in relation to multilingual DLLs? -- Thomas Hruska CubicleSoft President Barebones CMS is a high-performance, open source content management system for web

Re: [c-prog] (OT) Linux [Was: Re: Best free IDE (for beginner)]

2010-06-21 Thread Thomas Hruska
configured correctly their performance can often be very poor compared to running on bare metal. But certainly it's another option. I've never had that issue. VMWare Player even performs very well for me. I've found it to only be slightly slower than native hardware but not by much. -- Thomas

Re: [c-prog] (OT) Linux [Was: Re: Best free IDE (for beginner)]

2010-06-21 Thread Thomas Hruska
of virtual machine software packages until you find one you like. Each one is different, so you are bound to like one of them. -- Thomas Hruska CubicleSoft President Barebones CMS High-performance, barebones, minimalist content management system An open source CubicleSoft initiative. Your

Re: [c-prog] Prototype a fast https server with DB writes

2010-06-21 Thread Thomas Hruska
computing. -- Thomas Hruska CubicleSoft President Barebones CMS High-performance, barebones, minimalist content management system An open source CubicleSoft initiative. Your choice of MIT or LGPL. http://barebonescms.com/

Re: [c-prog] Re: Building Open Source C/C++ libraries and applications

2010-06-05 Thread Thomas Hruska
the compiler suite - and most of those OSes have some sort of dependency repository. Windows has none of that. I'd love to see some sort of dependency repository build system for Windows that actually works with VC++ and the whole open source community can agree upon. -- Thomas Hruska CubicleSoft

Re: [c-prog] problems with array bounds

2010-06-05 Thread Thomas Hruska
confirm with these answers. Thanks. Sure...plus: Application crashes. BSODs. Security vulnerabilities. Pain in the neck debugging sessions. Formatted hard drives. And, in some cases, nasal demons. In order of probability of occurrence. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197

Re: [c-prog] A book about how to build a C compiler

2010-05-31 Thread Thomas Hruska
at resources where you can get started. You should be patient and try to do some basic research in advance as they probably get such requests every week. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com

Re: [c-prog] Re: C++ Newbie

2010-05-27 Thread Thomas Hruska
personally prefer Visual C++ because it simply has the best debugger out there (for the moment). gdb has a ways to go to catch up to VC++ in terms of debugging C++ code: http://sourceware.org/gdb/wiki/ProjectArcher -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1

Re: [c-prog] C++ Newbie

2010-05-26 Thread Thomas Hruska
. If you have one or more of those, then you are good to go. You also obviously need a C++ compiler. Visual C++ and wxDev-C++ are the two recommended Windows compilers around here. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http

Re: [c-prog] Network Programming in C

2010-05-16 Thread Thomas Hruska
C++ 2010 Express wxDev-C++ MinGW As to learning socket programming, Beej's Guide is pretty much how most people get started: http://beej.us/guide/bgnet/ -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com

Re: [c-prog] how to find the operating system design.

2010-05-16 Thread Thomas Hruska
.) -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] Medical Billers

2010-05-15 Thread Thomas Hruska
Brett McCoy wrote: On Fri, May 14, 2010 at 10:30 AM, Thomas Hruska thru...@cubiclesoft.com wrote: franciswhitby wrote: I would like to know if anyone here has been a medical biller before? I am really interested in knowing a honest feedback, according to this site http

Re: [c-prog] Medical Billers

2010-05-14 Thread Thomas Hruska
someone please confirm. Thank you Even though I've not been a Medical Biller, those seem like reasonable numbers. You wouldn't necessarily be doing C/C++ though. The medical industry tends to write their own unique programming languages. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197

Re: [c-prog] Re: 'Why Can't Programmers.. Program?'

2010-05-12 Thread Thomas Hruska
, job-related tasks in the actual interview, set the person in front of a computer with the necessary tools and time them. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] project

2010-05-01 Thread Thomas Hruska
your own system instead of asking others to do it for you. It sounds like an assignment for a class. We can evaluate what you come up with just to make sure you aren't attempting too big of a project. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task

Re: [c-prog] TI Jacinto?

2010-04-27 Thread Thomas Hruska
knows both ARM9 and DSP programming will be a lot easier. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] UML Book

2010-04-25 Thread Thomas Hruska
attempting to find some sort of software and hardware solution. Anyway, Wikipedia might be a good place to start: http://en.wikipedia.org/wiki/Unified_Modeling_Language The external links at the bottom of the page seem to be fairly decent. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW

Re: [c-prog] middle element among 5 given elements

2010-04-24 Thread Thomas Hruska
into a single assignment! OP: Not only is that a great way to educate the teacher, it shows them you are a hard worker. A guaranteed A+ (assuming, of course, that both programs work properly - be sure to record the time taken to create both programs). -- Thomas Hruska CubicleSoft President Ph: 517-803

Re: [c-prog] Borland C++ Builder

2010-04-24 Thread Thomas Hruska
... Times change and some companies don't produce awesome software like they used to. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] How do I create an ActiveX control in C++ 2008?

2010-03-26 Thread Thomas Hruska
: www.RAD-CON.com E-mail: rob.richard...@rad-con.com Maybe this will help: http://www.codeproject.com/KB/COM/CompleteActiveX.aspx -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] Re: Database (ODBC) Connectivity in C/C++ : Linker Problem

2010-03-24 Thread Thomas Hruska
option. -- Ankit Aggarwal http://ankitaggarwal.me It is dev-c++ (wxDev-C++?). It has been a while since I've touched it (I use VC++) but it should be under Project - Linker Options or something similar to that. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1

Re: [c-prog] How do I create an ActiveX control in C++ 2008?

2010-03-24 Thread Thomas Hruska
to program logic is usually a matter of selecting the element, finding the appropriate event in the dropdown, and using the default handler name. VS will generate the correct code for the handler and drop you in the editor. At least that is what _usually_ happens. -- Thomas Hruska

Re: [c-prog] Re: Initialize 2d array quickly?

2010-03-20 Thread Thomas Hruska
. Also, I could have done the classic '*buffer2++ = -1.0;' but I find that to be rather unreadable. I like to balance speed with readability.) -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] Database (ODBC) Connectivity in C/C++ : Linker Problem

2010-03-20 Thread Thomas Hruska
for me. Best. -- Ankit Aggarwal Proud Member of CLUBMCA http://bit.ly/d1Hrbj You need to add 'odbc32.lib' to your linker settings. Make sure your compiler and linker knows where you installed the Windows SDK to or you will have to supply full path information as well. -- Thomas Hruska

Re: [c-prog] Database (ODBC) Connectivity in C/C++ : Linker Problem

2010-03-20 Thread Thomas Hruska
++. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] Re: How to access members of a typedef struct pointer??

2010-03-18 Thread Thomas Hruska
Christopher Coale wrote: Thomas Hruska wrote: Christopher Coale wrote: Thomas Hruska wrote: I'm probably the most guilty party here. My view is that pointers are an _advanced topic_. It doesn't mean you shouldn't learn how to use them nor use them at all. I'm moreso referring

Re: [c-prog] Re: How to access members of a typedef struct pointer??

2010-03-18 Thread Thomas Hruska
Android soon, which is Java-based (thankfully there is the Android NDK). Meh. No bad blood. We like to bicker about high-level stuff. You can ignore it if you want but you might learn something new. :) -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task

Re: [c-prog] Initialize 2d array quickly?

2010-03-18 Thread Thomas Hruska
many elements you need, a single allocation can be done. Even if you did NOT know how many elements to allocate, it is almost always faster to precalculate how many elements, allocate the amount of memory needed, and then perform the actual manipulation of the memory. -- Thomas Hruska

Re: [c-prog] Re: How to access members of a typedef struct pointer??

2010-03-17 Thread Thomas Hruska
Christopher Coale wrote: Thomas Hruska wrote: I'm probably the most guilty party here. My view is that pointers are an _advanced topic_. It doesn't mean you shouldn't learn how to use them nor use them at all. I'm moreso referring to this question by Paul Herring, Why are you using

Re: [c-prog] Re: How to access members of a typedef struct pointer??

2010-03-17 Thread Thomas Hruska
VERY WELL for ME for creating stable software. And, I recommend the approach for general use to anyone starting out in ANY programming language. I even use this approach in PHP and it works very well there too. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get

Re: [c-prog] Re: How to access members of a typedef struct pointer??

2010-03-16 Thread Thomas Hruska
not always perform spectacularly (temporary object abuse), but they get the job done. C++ makes it possible to defer teaching pointers until MUCH later on. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com

Re: [c-prog] Off topic but need help with openGL in C/C++

2010-03-15 Thread Thomas Hruska
. A quick Google search turned up: http://www.c-sharpcorner.com/UploadFile/jeradus/OpenGLBasics11172005014307AM/OpenGLBasics.aspx While that is for C#, it should be easy to translate to C/C++. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay

Re: [c-prog] hard disk that beeps.. [OT]

2010-03-15 Thread Thomas Hruska
critical data on there (you said slave drive, so I assume that you mean this served as a backup drive of some sort - better than losing all your data on your primary drive). Physical hardware issues are (generally) not C/C++ related. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW

Re: [c-prog] Display PPT file

2010-03-13 Thread Thomas Hruska
: http://office.microsoft.com/en-us/powerpoint/HA011552791033.aspx?pid=CL100626991033 -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] PLZ SOLVE THIS :

2010-03-12 Thread Thomas Hruska
doing this on paper first - it will help formulate a coherent approach for writing the code. Girl 3 is probably a good spot to start. Some number squared is four digits in length and has its first two and last two digits divisible by 11. -- Thomas Hruska CubicleSoft President Ph: 517-803

Re: [c-prog] New on C program

2010-03-11 Thread Thomas Hruska
different language altogether. Microsoft basically attempted to merge the .NET Framework, C++, and Java in an unholy marriage and C# is the resulting love child. I'm now at my disturbing mental image quota for the day. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1

Re: [c-prog] Difference between wide char and multibyte char

2010-03-10 Thread Thomas Hruska
implies a variable width character. A character is not necessarily a single byte. The use of the word 'character' here is rather vague. In Unicode, for example, a single 'character' can be represented by multiple 'code points', which, in turn, can span across many, many bytes. -- Thomas Hruska

Re: [c-prog] What is the importance of C programming in the days of web

2010-03-10 Thread Thomas Hruska
just offer C/C++ and appropriate SDKs and be done with it. Sigh. Programmers - always trying to come up with some stupid new programming language. (Heh - even I'm guilty!) -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http

Re: [c-prog] Is this a good practise to call fuction ???

2010-03-04 Thread Thomas Hruska
the call are removed from the stack. Functions, classes, and templates are there so you can organize your code into concise, logical units that are easy to maintain. _IF_ there is a performance problem, use a code profiler to identify the slowest function calls. -- Thomas Hruska CubicleSoft

Re: [c-prog] Is this a good practise to call fuction ???

2010-03-04 Thread Thomas Hruska
. But there are people out there who still swear by assembler and try to author entire GUI interfaces with it. Crazy people. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] Re: question about c++ memory allocation

2010-03-03 Thread Thomas Hruska
is not possible with Task Manager. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] help on translating class

2010-03-02 Thread Thomas Hruska
on a compiler's standard library implementation. On one of my older Borland compilers, I'm pretty sure rand() was a single multiplication operation against a static value. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http

Re: [c-prog] book needed

2010-02-27 Thread Thomas Hruska
are discouraging. Don't know why you need this book. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] Re: Is NULL defined somewhere?

2010-02-25 Thread Thomas Hruska
it up in the Rationale). I've noticed most people are saying NULL is defined as: #define NULL 0 I've also seen (probably C): #define NULL ((void *)0) -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com

Re: [c-prog] Vista SP2 - SP1 Downgrade

2010-02-25 Thread Thomas Hruska
And then go do a Windows Update just to make sure that the VC++ Runtimes are properly patched. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] swap two numbers

2010-02-14 Thread Thomas Hruska
was on this list recently wanting problems for assignments. Teachers, this is the sort of question to NOT ask students. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] C Compiler

2010-02-14 Thread Thomas Hruska
++ - This is the most ANSI Standards compliant compiler in existence. Period. And it is available for virtually every modern platform. They have an online code compiler so you can see if code that doesn't compile under your compiler, but should, will compile under theirs. -- Thomas Hruska

Re: [c-prog] C Compiler

2010-02-14 Thread Thomas Hruska
into while you learn the language. A lot of developers are still scrambling though. Windows 7 apparently changed a bunch of stuff (again). See my other post for my canned response for questions like this. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay

Re: [c-prog] port communication in c++

2010-02-14 Thread Thomas Hruska
. They have an online code compiler so you can see if code that doesn't compile under your compiler, but should, will compile under theirs. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] port communication in c++

2010-02-13 Thread Thomas Hruska
may still have to set some privilege flags on your login token even with Admin privileges (SE_DEBUG_NAME is a privilege that bypasses most security mechanisms in Windows - you have to be Administrator to set it). -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get

Re: [c-prog] Keyboad function

2010-02-12 Thread Thomas Hruska
satish uniyal wrote: Dear friends, Is it possible to use Keyboad function (like using tab, shift, ctrl, alt buttons) in C language program ? Regards Satish Yes. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http

Re: [c-prog] Keyboad function

2010-02-12 Thread Thomas Hruska
Thomas Hruska wrote: satish uniyal wrote: Dear friends, Is it possible to use Keyboad function (like using tab, shift, ctrl, alt buttons) in C language program ? Regards Satish Yes. Okay. So that was my smart-aleck answer. You will have to provide a lot more information if you

Re: [c-prog] port communication in c++

2010-02-12 Thread Thomas Hruska
Abuzer wrote: what is basic to write a program from serial and LPT port in C++. Can some one illustrate with a simple program example. This is going to be platform/OS/compiler specific. Specify what OS and compiler you are targeting. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197

Re: [c-prog] Keyboad function

2010-02-12 Thread Thomas Hruska
in the stone-age of computing. For an upgrade, assuming you want to build GUI applications, I recommend wxDev-C++. I normally recommend Visual C++ Express, but you don't get a visual designer with that compiler (VC++ has the best debugger in existence). -- Thomas Hruska CubicleSoft President Ph: 517

Re: [c-prog] a silly question ....

2010-02-11 Thread Thomas Hruska
are for executables and DLLs only. They are an integral part of the PE file format (third data directory). .lib files don't have support for such things. You shouldn't be developing new applications with VC++ 6 anymore. It is an ancient compiler. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197

Re: [c-prog] C++ member functions as callbacks

2010-02-09 Thread Thomas Hruska
write a base class one time that calls derived functions (in a derived class) IF they exist. The base class does all the evil stuff you are wanting to disappear from your code that is ugly and the derived class is just the nice, clean code you are after. -- Thomas Hruska CubicleSoft President

Re: [c-prog] Writing mouse control program

2010-02-09 Thread Thomas Hruska
cursor icon and managing its position on the display. It would be helpful to know what the target OS is and some more details. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] [ASK] Compiling log4cpp in VS2008

2010-02-09 Thread Thomas Hruska
with this library. I'm sure they get people complaining on their lists weekly. Here are some links that might help: https://sourceforge.net/projects/log4cpp/forums/forum/48227/topic/2102828 https://sourceforge.net/projects/log4cpp/forums/forum/48226/topic/3460749 -- Thomas Hruska CubicleSoft

Re: [c-prog] Spam since joining c-prog

2010-02-09 Thread Thomas Hruska
to find a new strategy. I'm sure I lose a few e-mails here or there but those are generally people ranting about something not working in some product that they aren't specifying. And I probably didn't want to read and reply to their rant/complaint in the first place :) -- Thomas Hruska

Re: [c-prog] Re: must have class/struct/union compile error ?

2010-02-09 Thread Thomas Hruska
. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] plz help me..................

2010-02-09 Thread Thomas Hruska
is based and MUST adhere to in order to claim Standard compliance. The books you teach from should likewise adhere to the Standard. In other words, don't use Let Us C as the book you teach from (non-Standard, recommends Turbo C). -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW

Re: [c-prog] Process Synchronisation issues

2010-02-09 Thread Thomas Hruska
to not enter a deadlock scenario or a scenario where more than one process could have access. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] How to read jpeg or bmp file in c language?

2010-02-09 Thread Thomas Hruska
satish uniyal wrote: Dear friends, Could you please share, How to read jpeg or bmp file in c language? Regards Satish Uniyal Use a third-party library such as ImageMagick. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http

Re: [c-prog] Process Synchronisation issues

2010-02-09 Thread Thomas Hruska
, it is a pretty safe bet the application died. What you really need is a named mutex managed by the OS. Does the OS offer mutexes or other IPC mechanisms? -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] Correct [ : ] position of IPv6 address

2010-02-09 Thread Thomas Hruska
addresses. Sure. Empty spaces are all zeros. And missing prepended colons are all zeros. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/

Re: [c-prog] Re: .cpp and header file problem (OT)

2010-02-08 Thread Thomas Hruska
). There is no single unified search anymore at Google, which is annoying. The approach probably makes it easier for non-developers by removing useless information from their purview. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http

Re: [c-prog] Re: Problem with dynamic memory allocation

2010-02-08 Thread Thomas Hruska
++ Design Principles by Thomas Hruska The C++ Standard Library by Nicolai Josuttis (ISBN #0201379260) Effective C++ by Scott Meyers (ISBN #0201924889) More Effective C++ by Scott Meyers (ISBN #020163371X) If you are learning or looking to learn C, consider learning C++ instead. It is much more

  1   2   3   4   5   6   7   8   9   10   >