I know this.
Calling C function from C++:
If my application was in C++ and I had to call functions from a library written in C. Then I would have used
//main.cpp
extern "C" void C_library_function(int x, int y);//prototype
C_library_function(2,4);// directly using it.
This wouldn't mangle the name C_library_function and linker wou...
I am trying to install Visual C++ 2010 Runtimes v. 10.0.3 and it has failed. Are there any known issues? Has anyone else had difficulty? Are there dependencies I'm not aware of?
...
int randomNumber = (double)rand() / (RAND_MAX + 1) * (10 - 0) + 0;
is the code I'm using, it is getting a random number, but is getting the SAME random combination every time?
Can anyone see what I'm doing wrong?
...
I've been looking all over, but I can't find anything free that will let me simply display math formulas on a window. I found one for Visual C++.net, but no APIs. Are there any out there?
...
Hi,
I'm trying to convert a FreeType2 bitmap to a System::Drawing::Bitmap in C++/CLI.
FT_Bitmap has a unsigned char* buffer that contains the data to write.
I believe that the size of byte[] is incorrect and that my data is truncated.
Any hints/tips/ideas on what is going on here would be greatly appreciated. Links to articles ex...
hi
i use shelexecute() function to register
flash.ocx but i want to find programmicaly that this file
is registered or not?
please help me
thanks
...
When I call cin or getline with cin in my Visual Studio 2010 C++ app, I can enter something in the console (as it should be), but the right-click context menu is "blocked". It doesn't appear - this means I and my clients are not able to use copy and paste.
How to enable the context menu in the console with cin?
...
i was looking how to inject a dll into a program (exe, or dll, etc). i have been googleing dll injecting but i have not found anything that is very helpful :(. i have not worked with dlls very much so im not sure on what to do, i really could use some help on this.
uhh the only thing i have really found is setwindowshookex but i can't f...
Hi,
Can anyone explain me how SetUnhandledExceptionFilter method works in mini dump??
Thank You!!
Regards,
Isuru
...
Hello,
Im tring to create a manifest for my own.dll, i took the manifest file from C:\WINDOWS\WinSxS\Manifests for example. In that, below tag was one of the line.<file name="msvcr90.dll" hashalg="SHA1" hash="e0dcdcbfcb452747da530fae6b000d47c8674671">
In above tag, hash value was assigned with 40 character.
Here comes my doub...
Say a simple structure
struct abc
{
int a;
char b;
}
I got some value in a variable defined as its structure and now I want to print below
a = [some value]
b = [some character]
What is the best way to achieve this for an arbitrary structure without having to write a dump...(...) function for each of the structure I en...
Does anyone have any clue as to what this might mean?
(ClCompile target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5): error MSB6006: "CL.exe" exited with code -1073741515.
It builds fine on my dev box but fails due to this error on our CI box. It's running on .NET 3.5.
Any ...
I'm running Windows 7 Pro x64 on a Core i5 with a NVIDIA 3100m, which is CUDA compatible.
I've tried installing both the 32-bit and 64-bit CUDA toolkits from NVIDIA, unfortunately from with either of them I cannot compile anything; nvcc says "cannot find a supported cl version. Only MSVC 8.0 and MSVC 9.0 are supported".
I have the x86 ...
I have a lot of experience with Java/OO. There are tons of C++ tutorials/references out there, but I was wondering if there are a few key ones that a Java programmer might find useful when making the transition.
I will be moving from server-side J2EE to Windows Visual C++ desktop programming.
I have googled and found tons of resources...
Is it possible to replace printf with userdefined function or is it possible to create function similar like printf
...
Please tell me the difference between omake and nmake. We want to migrate from omake to nmake as we are rolling out clearcase. Please explain the process of migration from omake to nmake? Also please let me know if there are some complications.
...
Trying to log the application version details in our weblogs using the headers:
Should be a one liner..but for some reason whenever I specify anything but NULL for the headers it causes an exception (InternetOpenUrl() call returns NULL) - anyone able to explain why?
CInternetSession internet;
CHttpFile * pHttpFile;
CString header...
I am using Visual C++. How to copy the content of this file to another file?
UINT32 writeToLog(wstring log)
{
wfstream file1 (LOG_FILE_NAME, ios_base::out);
file1 << log;
file1.close();
// want to copy file1 to file2
return 0;
}
...
Hi,
I am getting linker error while working on SHCreateStreamOnFileEx.
Please help me to find out the problem.
IStream* replace::GetStream()
{
LPCWSTR pszFile=L"D:\\Test\\output.txt";
IStream* dataStream = NULL;
if (dataStream == NULL)
{
SHCreateStreamOnFileEx(pszFile,
STGM_READ|STGM_SHARE_DENY_NONE|STGM_DELETEONRELEASE,
...
Hi,
I have a game I am making, it is giving me this message...
"An unhandled exception of type 'System.StackOverflowException' occurred in game.exe"
To explain...I have a 2D array with 9 different opening moves and I am getting a random number to use as the array reference to retrieve the details needed for a move...
you may get th...