I am trying to build a project with the allegro-msvc80-4.2.2 pre-built package. I'm using Visual C++ Express Edition 2005 and have added the input library alld.lib and am including allegro.h asp per these instructions:
http://wiki.allegro.cc/index.php?title=Visual_C%2B%2B_Express_2005
When I compile, I get the fatal error:
C1083:...
Hello everyone,
How do I control the number of threads that my program is working on?
I have a program that is now ready for mutithreading but one problem is that the program is extremely memory intensive and i have to limit the number of threads running so that i don't run out of ram. The main program goes through and creates a whol...
On writing to the display with:
::TextOutW( pDC->m_hDC, x, y, &Out, 1 );
It only shows on the screen after every 15 calls (15 characters).
For debugging purposes only, I would like to see the new character on the display after each call. I have tried ::flushall() and a few other things but no change.
TIA
...
I was playing around today with some timing code and discovered that when asigning a string literal to std::string, that it was around 10% faster (with a short 12 char string, so likly even bigger difference for large strings) to do so with a literal of known length (using the sizeof operator) than not. (Only tested with the VC9 compiler...
The value is 10240 or 2800 in hex. TOTAL_LENGTH is a unsigned short.
0028 in decimal is 40 which is what I am expecting (or is at least a reasonable value).
Any ideas why I am getting a 0 instead of a 40? Thinking about reversing the bits myself but really don't want to. xD
unsigned short total_length = ntohl(ipData->TOTAL_LENGTH);
...
Hello everyone,
My program seems to be producing some -0 values in place of values that should be 0. How do i stop my program from outputting these values?
Is it as simple as checking if a value is equal to -0 and reassigning it a zero instead? Or is there a more elegant solution?
...
how can convert IADs ::get_GUID(BSTR * ) thar return bstr valur to GUID data type that have ( - ) in GUID
...
How to change the default default audio device for playback and recording in vista programatically ?
Is there any registry setting for it like sound manager in window XP?
Which API does it?
...
Hello everyone,
Quick question: Are new threads created by a function tied to that function or are they independent as in the function that called them can end before the threads are finished?
Thanks
...
I needed help making sense out of the following LNK error which i am getting.
SwitchFunctions error LNK2019: unresolved external symbol "__declspec(dllimport) ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z" (__imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std...
Hi, I wonder if there exists any add-on for VS that can substitute/tag some lines of code with a descriptive text of my choice ?
Ideally a function like the one below :
bool CreateReportFiles(LPCTSTR fn_neighbours, ULONG nItems, ULONG* items)
{
// Read from file
CFile cf_neighbours;
if (!cf_neighbours.Open(fn_neighbours, CF...
I need to install OpenCV on Win32. I do not have it installed currently. I downloaded OpenCV-2.0.0a-win32.exe and ran it. What the heck do I do now? There are no .lib's and whatnot.
I found some instructions for building the release using cmake at http://opencv.willowgarage.com/wiki/InstallGuide . I downloaded the latest and greates...
When I create a 'Windows Forms Application', the resultant program is a managed one. Creating a 'Win32 Application' results in a native one, but when I try to add a form I'm informed that the project will be converted to CLI if I continue. How do I design a native Windows GUI with Visual C++ 2008 Express Edition? I'm probably being very ...
gMsgHook = SetWindowsHookEx(WH_KEYBOARD_LL, GetMsgHookProc, ghInstDll, 0);
.......
extern "C" HOOK_DLL_API LRESULT CALLBACK GetMsgHookProc(int nCode, WPARAM wParam, LPARAM lParam)
{
if (nCode < 0){
CallNextHookEx(gMsgHook, nCode, wParam, lParam);
}
KBDLLHOOKSTRUCT *dl = (KBDLLHOOKSTRUCT*)wParam;
if (nCode >= HC_ACTION){
...
Hi, guys,
My system is Windows XP.
Virtual Size displayed in TaskManager is different with MEMORYSTATUSEX.ullAvailVirtual got from GlobalMemoryStatusEx.
When I create lot of buffers and the memory usage is up, MEMORYSTATUSEX.ullAvailVirtual can well reflected the virtual size usage. It's same.
But when I delete the memory, Virtual Siz...
Can anyone help me to perform zooming on CHtmlEditCtrl ?
I displayed my html document on CHtmlEditCtrl.
Now I want my edit control to display same html document with different zooming level.
I saw this feature in InternetExplorer8.
Now I need to add this zooming feature to my MFC application.
...
Can anyone tell me how to read the text in an image by using vc++
...
Hi all,
i have small doubt regarding the window functions in c++.
what exactly "invalidate()" function do?
what message does it sends?when we need to call this? also what is "update()" function?
is "invalidaterect()" works similar to "invalidate()" function?.
Thanks
...
First, COM is like black magic for me. But I need to use COM dll in one project I'm working on.
So, I have a DLL I am developing and I need some functionalities that are available in a separate COM DLL. When I look to the COM DLL with Depends.exe I see methods like DllGetClassObject() and other functions but none of the functions I'm i...
Does anybody know how the NdrClientCall2() function in rpcrt4.dll can be called in code or how it can be used?
We've gone through the MSDN help -
http://msdn.microsoft.com/en-us/library/aa374215(VS.85).aspx,
but didn't get any examples/samples how to use this function.
Please provide help.
Thank you.
...