Where I work we need to rethink the way we develop software and keep track of each released version. Do you have any suggestions to solve our problems?
We develop on Windows in C++ using VS 2005 (and C++ Builder for some interface stuff)
We use GIT but in the worse possible way imaginable. We are somewhat open to move to another source...
I want to modify a C program to make some of the files it creates hidden in Windows. What Windows or (even better) POSIX API will set the hidden file attribute?
...
I am working on distributing a stand-alone app. Each instance of the app has to be able to send and receive queries.
Requirements:
Language - C++
Scale - small. May be 5 instances at a time
Platform Independent
Volume of data transferred is expected to be high(Raw images in the worst case)
I don't want to use RPC because it needs a...
What are the pluses and minuses to using the vcredist.exe versus the msm files to install the Visual C++ 8.0 runtime libraries?
...
I have some VERY inefficient code in which many lines appear 4 times as I go through permutations with "<" and ">" operations and a variety of variables and constants. It would seem that there is a way to write the function once and pass in the operators along with the necessarily changing values and"ref" variables. What technique do I...
Posix provided both named and non-named pipes... Can you have a non-named pipes and windows and how to use them?
...
Does the C++ Standard say I should be able to compare two default-constructed STL iterators for equality? Are default-constructed iterators equality-comparable?
I want the following, using std::list for example:
void foo(const std::list<int>::iterator iter) {
if (iter == std::list<int>::iterator()) {
// Something
}
}
...
I need to be able to pass int value representing fd (pipe fd) to gtk function as a first parameter
gint gdk_input_add gint source,
GdkInputCondition condition,
GdkInputFunction function,
gpointer data);
How do I do that, as CreatePipe returns HANDLE which is NOT int?
Thanks
...
(A case of over relying on an IDE)
I have some legacy C code that I compile as C++ for the purpose of Unit testing. The C source is C++ aware in that it conditionally defines based on environment.
E.g. (PRIVATE resolves to static):
#if!defined __cplusplus
#define PRIVATE1 PRIVATE
#endif
...
PRIVATE1 const int some_var;
The proble...
I am working on a C++ application that requires a large amounts of memory for a batch run.
(> 20gb)
Some of my customers are running into memory limits where sometimes the OS starts swapping and the total run time doubles or worse.
I have read that I can use the mlockall to keep the process from being swapped out. What would happen whe...
What I'm looking for is a tool that, given a root source file, outputs a graph of file dependencies (with some customization thrown in, of course, like --maxdepth, etc.)
...
I was doing a code review and I saw assignment of single quoted strings to enum values:
enum
{
Option_1 = 'a',
Option_2 = 'b'
} ;
While this makes for slightly more readable code (though the enum's meaning should be pretty much in the name of the num), it looks silly to me.
I didn't know you COULD do that and after studying it, ...
I’ve seen job listings recently for positions I’d like to apply for, the problem though is that they usually have a working knowledge of c++ listed as a job requirement. The jobs are doing .NET/C# development for internal applications but their retail applications are all c++. I don’t have experience in c/c++ and am wondering what exactl...
I'm writing an application in C++ that runs as a system tray icon. When the application initially starts up the main dialog loads up and takes focus, which isn't the behavior I intend it to have. Is there a way to load the system tray icon without having the main dialog load up?
...
This is the before:
znd after:
EDIT:: Now that I look at imageshack's upload, the artifacts are diminished a great deal.. but trust me, they are more pronounced than that.
I don't understand why this is happening. Imageshack uploads them to jpg, but in my program they are in the image folder as .tif (The reason for .tif is because I ...
I'm trying to remove vowels from a text file and am having some trouble. I'm receiving a compiler error in line 6 saying
invalid conversion from const char to char
I'm pretty sure this has to do with the way I'm setting up the file stream in my code. I'm using fstream since it's used for reading and writing, but I didn't include any o...
I have a Visual Studio C++ based program that uses pre-compiled headers (stdafx.h). Now we are porting the application to Linux using gcc 4.x.
The question is how to handle pre-compiled header in both environments.
I've googled but can not come to a conclusion.
Obviously I want leave stdafx.h in Visual Studio since the code base is p...
Where can I find API documentation for TComponent, TObject, TList, etc.? I am converting some C++ code that was written using C++ builder into C#. I'm having trouble finding related documentation for these classes in order to find a C# equivalent.
...
I'm trying to edit a text file to remove the vowels from it and for some reason nothing happens to the text file. I think it may be because a mode argument needs to be passed in the filestream.
[SOLVED]
Code:
#include "std_lib_facilities.h"
bool isvowel(char s)
{
return (s == 'a' || s == 'e' || s =='i' || s == 'o' || s == 'u';)
...
I'm trying to pass this structure:
#pragma unmanaged
typedef struct
{
void* data;
unsigned nlen;
unsigned int type;
} PARAMETER;
To this class static method:
#pragma managed
private class __gc GlobalFunctions
{
static void WriteField(Object* object, PARAMTER& par, unsigned dec)
{
switch (par.type)
{
...