We are currently using a single command line tool to build our product on both Windows and Linux.
Si far its works nicely, allowing us to build out of source and with finer dependencies than what any of our previous build system allowed. This buys us great incremental and parallel build capabilities.
To describe shortly the build proce...
I'm am trying to debug a DLL which is called from a VC++ application,
but cannot step-inside the DLL function because the DLL source is located
in another solution project.
I have tried to set a break point right before the DLL function call but
when I try to step-in it just passes right down.
I am aware that it is possible to just de...
For example, I want to build a DLL exporting a function called ShowDialog, which displays a dialog and changes the text in one of the dialog buttons. The dialog and all other resources should be bundled in the DLL.
I did a quick test and when the DLL tries GetDlgItem() with a certain control ID, it gets a null pointer back. I'm assuming...
Is it possible to build resources into a static library and reuse them by simply linking with the library?
I'm primarily thinking about the case where you call a function in the library which in turn accesses resources.
...
After some searching I've found that Microsoft Visual Studio does not provide the "complex.h" header file, but I have some C code that unfortunately uses it. I've tried using <complex> and compiling as C++ code; this requires changing
complex
to
_complex
I don't even know what I would need to change
long complex
to. Any ideas ho...
I have read in other discussions that Release dlls have reduced size compared to Debug dlls. But why is it that the size of the dll I have made is the other way around: the Release dll is bigger than the Debug dll. Will it cause problems?
...
Hello,
I have a C++ library which I deliver to other developers. One of them needs i18n, so he asked me if I could add L prefix to the strings in the API.
I don't know much about i18n so I have some basic questions:
When I compile my lib with Unicode, can other developers use this build as usual ? Or shall developers also change the...
I'd like a simple example of exporting a function from a C++ windows DLL.
I'd like to see the header, the cpp file, and the def file (if absolutely required).
I'd like the exported name to be undecorated. I'd like to use the most standard calling convention (stdcall?). I'd like the use **__declspec(dllexport) and not have to use a DEF ...
The MSDN and Microsoft websites tout new features of Visual Studio. However, I am interested in finding a list of bugs fixed in the new release, if such a list exists.
If no such official list exists, I am interested in blogs of Visual Studio developers and users of Visual Studio, reporting on the fixing of bugs in 2008 (release or SP1)...
Like the title says, we’re looking for a way to catch all exceptions from a piece of C++ code, and wrap this in a dll. This way we can shield of the application that uses this dll, from any errors occurring in this dll.
However, this does not seem possible with C++ under Windows.
Example:
void function()
{
try
{
...
for (int i = 0 ; i < stlVector.size() ; i++)
{
if (i == 10)
{
stlVector.erase(stlVector.begin() + 5 )
}
}
Does the termination condition part "stlVector.size()" take "stlVector.erase(...)"
into consideration? In other word does stlVector.size() refresh for every loop iteration?
I can't test it right now, so i post...
FOLLOW-UP question : i'm calling the function repeatedly in a loop. when there are multiple items needed to to processed using that function, the application crashes. it works fine when only one item is processed. what to do?
[solved] i have a function in a dll that involves reading and writing a file.
i'm calling the dll function in ...
I know that according to C++ standard in case the new fails to allocate memory it is supposed to throw std::bad_alloc exception. But I have heard that some compilers such as VC6 (or CRT implementation?) do not adhere to it. Is this true ? I am asking this because checking for NULL after each and every new statement makes code look very u...
In the Solution Explorer when working with C++ projects there is the standard filters of Header Files, Resource Files, and Source Files. What I'm wanting to accomplish is essentially Filters by folder.
Lets say the structure of the files was like this:
../Folder1/Source1.cpp
../Folder1/Header1.h
../Folder1/Source2.cpp
../Folder1/Hea...
Using the latest version of the Microsoft Compiler (included with the Win7 SDK), I'm attempting to compile a source file that's encoded using UTF-8 with unicode line separators.
Unfortunately, the code will not compile -- even if I include the UTF-8 signature at the start of the file. For example, if I try to compile this:
#include <s...
Does anybody know how to switch off exception handling option in MSVC? I tried to set the option 'Enable C++ exceptions' to 'NO' and I got warning:
warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
I would like to switch off the exception handler, too, but I don't know how.
In my application...
I have a WCF Service. I have an external software that can read only .asmx files. Is it possible to convert my .svc file in the corresponding .asmx?
...
Hello,
I want to disable exceptions in my C++ aplication, compiled under MSVC. I hve switched the option Enable C++ exceptions to NO, but I get warnings telling me to use the option /Ehsc, which I dont want to.
I do not have try/catch blocks in my code, but I use STL. I have found that using macro definition _HAS_EXCEPTIONS=0 should...
I'm looking to build some compression interfaces for windows audio, and I was wondering if anybody might know of some tips/tricks? I'd like to build my own software equalizer that will function with the whole windows audio system, not just a particular program. I know this can be done - my sound card has one built in, but doesn't have en...
Useing VC++ VisualStudio 2003.
I'm trying to copy several image files (30kb or so per file) from another computer`s shared folder to a local file.
The problem is that there can be more than 2000 or so files in one transfer, and it seems
to take its toll, substantially taking more time to complete.
Is there any alternate method of copy...