I've not been able to find this out, which seems weird. When I add a class variable for the control using the wizard, it wants to add a CButton. Is there a specific control or does one of the basic ones provide this function?
...
I want to protect my applications from reverse engineering.
What I would like to do is protect the executable from any tampering, such as with hex editors, resource editors, and dis-assembly tampering.
My idea is to have the application check the hash value of itself against an imported value in a version file from the service server (...
i have an Vc++ application developed in VC6 . currently it supports 32 bit Operation systems.
My requirement to covert this application to support 64 bit Operating systems (like windows7 , Windoes 2008 server and etc..).
what are easiest way / steps / procedure to migrate such of application?
...
I'm trying to compile VC6 project with VC10...
I obtain an error C2678 with set_intersection: I wrote some example to understand. Can anybody explain how to compile this snippets ?
#include <vector>
#include <algorithm>
#include <iostream>
#include <set>
#include <string>
int main( )
{
using namespace std;
typedef set<string> ...
I am having issues counting the array elements after passing it into an arguement
void GXDX::LoadMesh(GXVector vertices[], UINT indices[] = NULL)
{
D3D10_BUFFER_DESC bufferDesc;
UINT numVerts = sizeof(vertices)/sizeof(GXVector);
bufferDesc.Usage = D3D10_USAGE_DEFAULT;
bufferDesc.ByteWidth = sizeof(GXVector) * numVerts;...
I have a List Box hwich is modified in a such a way that each row will have Radiobutton .Now my requirement is each of these Radio button must have a bitmap image followed by some text . i have codejock xtremetoolkit 13.4.0 installed . I am new to UI design and xtreme toolkit.Can any one help me out please.
...
I am having a ListCntrl in my Ui i will be having 3 columns and my second colum must be a dropdown like combobox . i dont know how to modify the default ListCntrl can any 1 help me out. I have Codejock Extreme ToolkitPro 13.4.0 installed. I am new to Ui design can any one help me out please
...
I am trying to upgrade an old solution to use VS2010 (VC100).
I have it setup so that stdafx.cpp will create a precompiled header stdafx.pch from stdafx.h. Then all the other .cpp files that include stdafx.h are instructed to use the precompiled header.
These posts helped me get this far:
Visual C++ Precompiled Headers errors
Precomp...
Hi,
I am creating a metafile using VC6 and playing it back. The code to create the metafile just draws a few lines of thickness 1:
CMetaFileDC memDC;
CRect rect (0, 0, 100, 100);
memDC.CreateEnhanced(
CBrush m_brush(RGB(255,255,255));
CPen m_pen(PS_SOLID, 1, COLORREF(RGB(0, 255, 0)));
memDC.SelectObject(
memDC.SelectObject(
m...
ATL::CComVariant has a handful of assignment operators. What I see in the implementation is that in assignment operators accepting LPCOLESTR, IUnknown* or IDispatch* the first action is to call Clear().
If the operator in invoked in such a way that a member variable of the same object is passed
CComVariant variant;
variant = L"string...
I'm trying to debug an issue using VC++ 6.0. I think the problem is something accessing a buffer after it was freed, and so I'm wondering if the VC++ debugger has a nifty feature to monitor a block of memory and break as soon as something tries to access it.
Any ideas appreciated, as are very simple instructions :-)
Thanks, Sam.
...
Guys, I'm having this weird error with my application that is supposed to copy files from a directory given from the command line to another directory.
I'm using of course the three API functions; CreateFile, ReadFile, and WriteFile. I can't use the CopyFile API.
Note that the compiler doesn't report any errors nor any warnings.
hFil...
I want to create a game that will take advantage of multiple monitors. For example, if the user has 3 monitors side by side I want the program to spread the image across all 3 monitors.
How am I supposed to do this? Can I just make one really big window, or do I have to do 3 separate windows? And if I have to do separate windows, how do...
On a Gnu system, I can write a C macro like dies_ok() that will fork a new process, run a piece of code, after which it can write to a shared piece of memory that it didn't exit, then in the parent process I can determine if it exited or not. This is useful for tests:
dies_ok({int x = 0/0;}, "can't divide by zero");
lives_ok({int x = 3/...
So I'm trying to get this nuclear instrumentation hardware to work.
I have installed 64 bit drivers (I'm using Windows 7 64 bit) and I have downloaded the dll's that go with it.
When I add the dlls and try to use the functions in a win32 console application project in visual studios, it gives me a linker error:
Error 1 error LNK2...
Hai,
I done a server program in vc++(using visualstudio 2008). At that time it worked perfectly. But after that I uninstalled the visualstudio 2010. Now I can't open that pro file using vs2008(it is saying that it can't open the file). So I copied the header,cpp files and tried to compile , but it's not compiling. I added the libmysql.l...
Hi all, I have encountered a problem in my program that has me somewhat stumped. I had a program that was working fine (it was working fine on VS 2010 this is not an I upgraded to .NET and this error started happening post) with a program that is mostly c and some c++ (my boss HATES object oriented since it usually involves making calls ...
Hi Folks,
I'm working on a multiplaform project (MacOS, Linux and Windows) and I've been having some performance issues when trying to compile a big source file in VS C++ 2010.
Here's a little background. There's one .cpp file inside the project that is 800KB big. The size of the file is caused by the fact that I'm compiling an array t...
I was using a vendor provided GPIO dll for controlling power through an auxiliary power IO.
The api was simple like callafunction(setportidentifiation,state) in vc++ . It was fine working.
But it is not working currently. Calling the function does not respond.But with all other ports its fine ( LED,other set of Input / output ports).
P...
I have designed an application that requires no install and can be used by non-administrators. I would rather not lose this functionality but when I use the .exe on other computers than the one I programmed it on I get an error that a missing MSVCP100.dll is preventing the file from executing.
What am I doing wrong here? How do I includ...