My 64-bit code needs to call 32-bit DLL code that cannot be recompiled in 64-bit (bought DLL, not the source). I wrote an adapter using ATL/COM out of process server. I am using Visual Studio ...
Hi guys,
I am using a toolbox, but I have some errors:
the first error ( error C2143: syntax error : missing ';' before '*)it is referring to this line
CGridWorldModel *gridworldModel;
...
Hi,
I'm trying to compile a cpp program with a static library. It seems like some of the lib functions collide with the MFC...
I've tried ignoring the MSVCRTD library but then I get a wh...
Hello all
I'm trying to register my COM server programatically from c++ code using standard c function system (const char*), or alternatively any of the _exec* function family. It works fin...
Hi experts, how can i enumerate all sections from an ini file. A snippet would be really nice. The number of the sections is unknow and the number is also unknown. Also each section have a few...
Can a NamedPipe client written in C# send message to a NamedPipe server written in C++? Please show an example if this is doable. I receive error code 2 when the NamedPipe client tries to co...
Iam creating an application like resource hacker. I want to change the title bar text of a window whose handle I can find out using SPY++.
Is there any way I can make modifications to the r...
Hi guys,
I am trying to add a new library to my project and I have this error
fatal error LNK1104: cannot open file 'LIBC.lib...
I tried to find thie library..but I only found this...
Hi,
I need to convert a widechar string stored in CString object to convert to UTF8 encoded string. In the snippet is source code which I use now, but it doesn't work as expected. It works ...
I have a win32 API application in visual C++ in which, I want to save a clipboard print screen image to disk in a *.jpg or *.bmp file format. I have following code to capture a image form clip...
I am creating a application through Visual C++ win32 API. I want my application to minimize to system tray on a button click event. The application should be in running mode. I am looking for ...
Hi
I have a C++ Win32 DLL within which I have a function that has a looping calculation which can take some time. This function is then exported and then used within VBA Excel. I would like...
I have a win32 API application in VC++ in which I want to add a password dialog box. The text in the text box should appear as * when the user enter a key and I should be able to retrieve the ...
Hi,
The output for the following code is 2,3,3. Can anybody explain why?
#include <iostream>
using namespace std;
void CPrint(int a, int b, int c)
{
cout << a;
cout << b;
cout...
Hi
I want to implement group view (items grouped) using ListView in C++ and tried the following, but this is not working; can you please advise me what could be the way forward? I tried in ...
HI guys,
I am trying to learn how to use a library named RL Toolbox,that is for reinforcement learning. I want to use some of the functions of this library in my own project, but I do not ...
I have a vendor project using Corba ACE/TAO ORB. When I tried to compile the code, it says:
"The following environment variables were not found
$(ACE_ROOT)
$(TAO_ROOT)"
I did create en...
I need to be able to place the captcha image into a picturebox on my form, the reason being that I need to zoom the captcha image for the visualy impaired users.
It appears to be such a sim...
I have a dialog class that hosts a child dialog (mfc CDialog classes). I have added the following api function to the top of the parent dialog class file, right below the #include statements:...
Hi There,
I got this impossible bug that I'm trying to solve. The problem is that an exception happens inside an OpenGL function. The exception usually happens between 30min and 3 hours. Th...
I have a dialog based application in c++ 2008. I have a dialog that takes some time loading data, so I created a child dialog that displays a single static text control with the text "Loading...
I have a win32 API application in visual c++ in which I have to add a feature for sending mails. The mail should be sent without user prompt and should have some text file as attachment. I am...
Hi Experts
One of my colleagues insists that the code works faster, when all functions/methods calls are located in the same cpp-file.
For example, if in a function void a(), we call b() ...
Imagine you are on Windows 7 and you have to write a GUI for a GRAPHIC application, (like a terrain editor, mesh viewer ..) which involves a great use of DirectX and OpenGL (so written in na...
Hi all,
I am trying to use some APIs found in dwmapi.dll (like DwmExtendFrameIntoClientArea), but I am running into a problem: if I include dwmapi.lib in the dll include list, the the app w...