Hi,
I have encountered a working (with XLC8 and MSFT9 compilers) piece of code, containing a c++ file with a function defined with c linkage and a reference argument. This bugs me, as references are c++ only. The function in question is called from c code, where it is declared as taking a pointer argument to the same type in place of th...
I am needing to write some code that I can compile and run on Windows, OS/X, and iPhone. The iphone is fairly limited in what you can include. Are there any simple libraries or websites that provide source code for basic things that could be compiled and use on the iPhone as well as everything else?
...
I'm searching for a light-weight, fast and easy way to handle Inter Process Communication between some programs on a Linux machine.
Currently, I'm thinking Named Pipe, because it's provided by the OS itself. Are there any caveats about the performance or usability?
Would Shared Memory be better?
I don't think I need a super-complex F...
I'm wondering, can you make a pointer to a group of variables in an array?
like this
array[20]{'a','b','c',...}
pointer = array[6 through 10];
so then you could say...
*pointer[0] == array[6];
and
*pointer[5] == array[10];
and the length of *pointer
5 == sizeof(*pointer) \ sizeof(type);
OK
Let me explain what I'm trying to ...
Hi all;
Formerly I asked a question and got a fair response. But I am stucked with below macro definitions.
The below definitions generates a Message Map function like it is in MFC Message Map. But the code below does not compile.
Whole statements starting with this-> are problematic ones except the one in MSG_HANDLER this->meth(msg); ...
Is there a platform independent resource system for C++ like the one that comes with Qt (but without the Qt dependency)?
I would like to access arbitrary data from within my C++ source code. That is, not only icons but also translations or shaders, etc.
Alternatively some sort of virtual file system library to access e.g. a ZIP compre...
This MSDN document quotes:
look for include files in the same
directory of the file that contains
the #include statement, and then in
the directories of any files that
include (#include) that file
Wait, what?
What does that actually mean (the bold stuff)?
...
Hi everyone
I want to send data from a c# application to a c++ application through a pipe.
Here is what I've done:
this is the c++ client:
#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
int _tmain(int argc, _TCHAR* argv[]) {
HANDLE hFile;
BOOL flg;
DWORD dwWrite;
char szPipeUpdate[200];
hFile = CreateFile(L"\...
I have written a PHP extension library in C++. I am writing the extension for PHP 5.x ad above.
I need to access PHP superglobals in my C++ code. Does anyone know how to do this?. A code snippet or pointer (no pun inteded) to a similar resource (no pun ...) would be greatly appreciated.
...
My program is crashing at the end of execution, and couldnt even see stack unwind info.
all i can see is this " ntdll!kifastsystemcallret", can some throw some light?
...
I want to store confidential data in a digitally signed file, so that I know when its contents have been tampered with.
My initial thought is that the data will be stored in NVPs (name value pairs), with some kind of CRC or other checksum to verify the contents.
I am thinking of implementing the creating (i.e. writing) and verificati...
I am thinking of writing a PHP extension library that will use the memcached library. It is trivial to simply link my library to the memcache shlib.
However, I am not sure what will happen if my (extension library) user already uses memcache on his/her website. My questions are:
Is it possible to have (possibly different versions) of...
The CAdapt class is provided by Microsoft in order to enable using classes that override the address of operator (operator&) in STL containers. MSDN has this to say about the use of CAdapt:
Typically, you will use CAdapt when you want to store CComBSTR, CComPtr, CComQIPtr, or _com_ptr_t objects in an STL container such as a list.
O...
MFC Library Reference
CWnd::OnLButtonDown
void CMyCla::OnLButtonDown(UINT nFlags, CPoint point)
{
CWnd::OnLButtonDown(nFlags, point);
}
void CMyTreeCla::OnLButtonDown(UINT nFlags, CPoint point)
{
CTreeCtrl::OnLButtonDown(nFlags, point);
}
I know the inheritance.
class CTreeCtrl : public CWnd
{
......
}
Is there any clea...
As a follow-up to my state machines as a C++-like language extension question, I'd like some more help.
My compiler has been extended to parse my state machine extensions and now I'm beginning semantic analysis and code generation. There is a description on this page.
Can anyone point me to good references on state machine optimization...
Possible Duplicate
http://stackoverflow.com/questions/370283/why-cant-i-have-a-non-integral-static-const-member-in-a-class
struct Example
{
static const int One = 1000; // Legal
static const short Two = 2000; // Illegal
static const float Three = 2000.0f; // Illegal
static const double Four = 3000.0; // Illegal
...
Hi,
I am searching for a function that get as an input a number x (assuming 15), number of bits d (4) and number of permutations m (2). The output of the function will be all the numbers that are m bit's permutations from the given number x at a d length bits.
For the given numbers, (x = 15, d = 4 and m = 2) we get 6=\binom{4}{2}differ...
Is there any book that teaches SSE starting with version 2? I couldn't find any and there aren't many tutorials/articles on the net.
Thanks in advance!
...
Recently, I have been reading job listings. I have found that there are many who are looking for "strong candidates with server side development".
I am primarily a C++ developer for the Window platform. What do the listings mean? Software using the client-server architecture?
And if so, are there common complete frameworks for develop...
I've been doing my best to learn C++ but my previous training will fall short in one major issue: memory management. My primary languages all have automatic garbage collection, so keeping track of everything has never really been necessary. I've tried reading up on memory management in C++ online, but I have this shaking suspicion that...