I'm using Fmod in a project I'm working on in Visual C++ 2008. If I include
../fmodapi375win/api/lib/fmodvc.lib
in Project->Linker->Input, it works fine, but for some reason if I use
#pragma comment(lib,"../fmodapi375win/api/lib/fmodvc.lib")
instead it works the same as if that line wasn't there: it builds with no linker errors th...
I have a problem, I have an application which has a toolbar icon to launch the system onscreen keyboard. This all works fine with the exception of Windows Vista and Windows 7 beta. The UAC appears to be getting in the way and preventing the osk.exe from running.
I have read that because it is used on the logon screen it will not promp...
I wonder how to debug the following error:
Debug Assertion failure
Program: tomtoprog.exe
File: dbgheap.c
Line: 1044
Expression:_CrtIsValidHeapPointer(pUserData)
...
I'm quiet new to windows development with VC++ 6 ... is there a valgrind or something like that? The tomtoprog code is not written by me and its rather messy ... so som...
A previous question showed a nice way of printing to a string. The answer involved va_copy:
std::string format (const char *fmt, ...);
{
va_list ap;
va_start (ap, fmt);
std::string buf = vformat (fmt, ap);
va_end (ap);
return buf;
}
std::string vformat (const char *fmt, va_list ap)
{
// Allocate a buffer on the stack...
First off, I'm not a C++ programmer (but I am learning). I have finally managed to modify and compile some C++ source code using Visual C++ 2008 Express Edition. I've tried to get the same code compiled in the full version of Visual C++ 2003 without success (I get a wide variety of errors, but no luck).
The problem is that everything is...
Is there a gcc equivalent of VC++ warning C4018: signed/unsigned mismatch? We have an automated build on windows which runs with /WX and I'd like to be able to catch those warnings when building on Linux as well.
...
I've got several large MFC applications here, and converting them into any other format is out of the question. We're expanding into other markets, and would like to make the apps work in other languages and cultures.
So far, I've found occasional references as to what to do with Visual C++ version 6, with one mention that later versio...
I have a set of statically-compiled libraries, with fairly deep-running dependencies between the libraries. For example, the executable X uses libraries A and B, A uses library C, and B uses libraries C and D:
X -> A
A -> C
X -> B
B -> C
B -> D
When I link X with A and B, I don't want to get errors if C and D were not a...
I have an InstallShield installation that uses custom actions that depends on the Visual C++ Runtime 8.0 sp1. In the past, I was able to install the runtime using the merge module provided by Microsoft with Visual Studio. Based on the way the Visual C++ Runtime 8.0 sp1 side-by-side installation works on Vista, the runtime cannot be used ...
How do you enable the horizontal scroll in in a vc++ clistbox?
...
I'm trying to learn an SDK that requires a header file be included. There are two statements in the header file that says
typedef long long SomeIdentifier_SInt64;
and
typedef unsigned long SomeIdentifier_UInt64;
The compiler (MSVC++ 6) is complaining that this is illegal. If so, does this mean the SDK is broken? I seriously doubt ...
Google translate :
The interpreter is created, an array of bytes into the array in a machine language to cast the enum type and function, I have made an approach to dynamically execute a function, reference Please tell me if the machine-language site.
Babelfish translate:
It is to make the interpreter, but inserting machine language i...
I just built an updated version of SDL.dll, an open-source C DLL that my Delphi project uses, with the Express edition of Visual C++ 2005. I dropped it in the folder with my EXE and tried to run it, but it won't load:
The procedure entry point SDL_RWFromFP could not be located in the dynamic
link library SDL.dll.
Now C never was my s...
Which project setting would let me see the generated assembly level code in Microsoft Visual C++ 2005?
...
What differences are there between Windows and Console applications ?
When creating a new project in Visual C++ , it asks to choose either of the above .
...
How do I expose a class from a dll ?
The application importing the dll should be able to create the objects of the class and also he should be able to call into the member functions of the class .
Is it similar to exposing C type functions using _declspec(dllexport) ?
And also when I built the dll ( which only contains class definit...
I have a string in C++ of type EDIT: (const char *) passed as argument to strlen, but it returns void..
damn i can't get formatting to work >.<
it goes like
strlen(astruct.string);
Thanks..
EDIT: Did some checking,
strlen("test");
still gives void.. why?
EDIT: Here's the image
http://img14.imageshack.us/img14/1808/strlen.png
...
I recently swapped from using MinGW to MS Visual Studio 2008 for my Qt application and in so doing the Qt image plugins and the Sqlite plugin no longer work on the QA computers.
Under MinGW it was just a case of putting the plugin dlls in imageforats folder but that does not appear to be enough in this case.
Has anybody else had this p...
Hi,
I'm puzzled here, and kindly request your help.
VC2005SP1 swallows this (stripped out) code but gcc 4.0.1 bails out... Please point me the obvious mistake ?
TIA!
template<typename BCT, typename UIDT>
class Factory
{
public:
template<typename CT>
bool Register(UIDT UniqueID)
{
if (UniqueID > 10)
return(false)...
This code behaves weird in MS Visual Studio:
char *s = "hello";
s[0] = 'a';
printf(s);
In release build with optimization turned on it ignores s[0] = 'a' and prints "hello". Without optimization or in debug build it crashes with access violation.
Is this behavior is c++ standard compliant or no? In my opinion, compiler should only all...