Hello everyone,
I want to learn programming C++ (native) on Windows platform for RPC communication. I want to learn both server and client side. I also want to learn some advanced topics, like performance and security.
Any good recommended materials to read?
(BTW: I Googled a few, but all of them either too brief or COM related, I wan...
I am getting the following error when i converted a project from vc6.0 to vs2008
The error code is
Error 1 fatal error C1083: Cannot open source file: 'FpDebug/BalanceGrabber.pch': No such file or directory c1xx
where BalanceGrabber is my Project
...
I'm developing a VC++ NT service that is meant to operate continuously for many months. It uses VC++ runtime heap intensively. Clearly heap fragmentation can at some point cause it malfunctioning (thinking it's out of memory).
What tests can I run on my service to estimate the degree it is prone to heap fragmentation?
...
I am trying to use boost threads in a project having common language runtime support. I get the following linker error. error LNK2022: metadata operation failed (8013119F) : A TypeRef exists which should, but does not, have a corresponding TypeDef: (dummy): (0x01000073).
If i comment the line instantiating the boost thread, i do not get...
I have a VC++ project (2005) that generates both 32-bit and 64-bit dlls. The 32-bit dll is 1044 KB whereas the 64-bit version is 1620 KB. I'm curious why the size is so large. Is it just because of the larger address size, or is there a compiler option that I'm missing?
...
Hey All,
I asked this question on the Google Group but I think I will get a faster response on here.
I'm trying to use Google's Mocking framework to test my code. I am also utilizing their test framework as well. I'm compiling in VC9.
I'm having issues matching arguments that are MFC\ATL CStrings. GMock
says the objects are not equal ...
Hi,
A while ago I read the Debugging Windows Programs book, and one of the tricks that it talked about extensively was calling functions from the Visual C++ debugger (quick)watch window.
As luck would have it, I don't have a copy on hand and the little documentation that I could find about this is really really poor.
So how DO you call ...
I have created a dll in vc++ and i need this dll to communicate with a C# component can some one help me out on how to create the interface in c# so that I can access C# component
I have .net framework 3.5
...
Heap fragmentation can cause a server application that is expected to run continuously for many months to suddenly start malfunctioning thinking that it's out of memory.
Let's assume that I've done my best to minimize runtime heap fragmentation in my VC++ server application but still it builds up and causes problems. I could for example...
I'm using Visual C++. I'd like to really only have the DLL registered for the current user, even if the users is an administrator.
For that reason, I changed all of the project.rgs references to HKCR.
But, using Process Monitor while using regsvr32 to register the DLL, I notice that it still tries to create HKCR\TypeLib\{ ... }.
This ha...
The VS-IDE will write //{{NO_DEPENDENCIES}} to resource header files.
This comment is actually a feature that prevents (unnecessary) rebuilding of cpp files that include the resource header.
But, like stated in the MSDN, this can lead to "undesirable side-effects".
In our project we do have the resource.h included in the stdafx.h for p...
I have been converting our software to use the string table so we can start to role out multiple languages. Generally going though and making sure all hardcoded strings are now loaded in from the string table. It was going swimmingly!
However, I have come up against this code and have been getting lots of compiler errors trying to con...
is there any way to create the dialog box from which I can choose the certificate store.
same as one displays when we run the command certmgr.msc at command prompt , I want the same type of dialog in visual c++ which return some thing ( pointer of the certificate store ) when we choose the certificate store from it , which i can used fur...
i have private key file and a certificate file in pem format , how can I import both of them together using visual c++ (using windows crypto API ) ( can i do it without converting them into pkcs 12 format ).
...
I have an old dll that uses the Microsoft Visual C++ 2003 (7.1) run time package. Unfortunately I don't have that DLL around anymore. Short of reinstalling VS2003, is there another way to get the run time redistributable dll?
...
I want to write a new virtual webcam driver, which for example will take an AVI or live stream for example for screen and stream it as webcam source.
I'll not have webcam really, I want to add a virtual webcam which streams desktop screen.
I should write a webcam in kernel mode to do so ? If so, could you guide me to a sample webcam d...
hello, guys
I'm confused a little while writing own tiny discovering program to clear up how Visual C++ allocates the memory for dynamic arrays. I must note, I have never met technical documents that describe this question on new[]/delete[] operators for any C++ implementation.
Initially I thought that new[] and delete[] are something ...
Very often, actually most of the times, Visual Studio2005 doesn't detect
that some header included in some CPP file C++ project was changed.
As the consequence, it doesn't recompile the project if only header is changed.
It doesn't depend on the "precompiled headers" settings.
It doesn't happen in VS 2006 but in every version of VS 2005...
Hello everyone,
I'm trying to obtain the top say, 100 scores from a list of scores being generated by my program. Unfortuatly the list is huge (on the order of millions to billions) so sorting is a time intensive portion of the program.
Whats the best way of doing the sorting to get the top 100 scores?
The only two methods i can th...
I have multiple source files in C++ using which i want to create a Dynamic link library.
I see this happening in linux with gcc -shared and ln
however for Windows i suppose i would have to modify source files to generate a DLL.
Is there a way to generate DLL (a file similar to *.so in linux) with provided source files. Please correc...