0
votes
0answers
21 views
Doublebyte encodings on MSVC (std::codecvt): Lead bytes not recognized
I want to convert a string encoded in a doublebyte code page into an UTF-16 string using std::codecvt<wchar_t, char, std::mbstate_t>::in() on the Microsoft standard library implementation ...
0
votes
1answer
11 views
Windows: track memory usage and limit threads
I am writing a Windows based application that uses the OpenCV library for image processing. This is a multi-threaded application and each thread loads an image and processes it. My problem is that ...
0
votes
1answer
33 views
unhandled read exception in thread after passing class into thread
http://pastebin.com/QPab6nkp is all my code, pretty messy and unfinished.
I found where is an error - i think im passing philosophist exemplar into thread incorectly, because into the thread, ...
1
vote
1answer
23 views
Should our 64bit binaries be named differently from their 32bit versions?
Our application has up to now only used 32 bit binaries, it was enough.
Slowly we see the need to introduce 64bit versions (in addition to the 32 bit version) for some components, mostly for ...
1
vote
0answers
15 views
Event Tracing for Windows(ETW): wevtutil erratic behaviour based on resource's file path
Alright, I asked this question on microsoft forums and was surprised by their action.
This is the question ...
1
vote
0answers
34 views
How terminate all threads of a program, with external variable like ON/OFF
i use 4 threads to elaborate a series of images from sequential queues. The threads starts togheter, and works like a assembly line:
Thread 1 push image on queue1
Thread 2 elaborate from queue1 and ...
1
vote
2answers
103 views
+200
Right way to pass a NULL Pointer to a out of process COM Method in an ATL Project
What is the right way to pass a NULL Pointer to a out of process COM Method in an ATL Project? I have created a COM Server hosted through a COM Surrogate
If it matters I am using VS2012 running on ...
0
votes
1answer
33 views
How to prevent the Overwrite Prompt while saving in custome IFileDialoge - VC++
I don't want to display any overwrite prompt while user enter the file name which is already exist in my custom IFileDialog.
I have already gone throw IFileDialog::SetOptions method but it dint ...
1
vote
0answers
39 views
+50
Why is QtCreator/MSVC linking 64 bit system DLLs to my 32 bit application?
UPDATE: This is all essentially bogus. It turns out the version of Depends.exe on the machine where the application runs was the 32 bit version. Upon fixing that, both machines show the system DLLs as ...
0
votes
1answer
27 views
Error LNK2001 SOIL VC++
NOTE: I am using Visaul C++ 2010
I have been working on an OpenGL project and decided to download SOIL, which is a library for loading textures in OpenGL.
Link: http://lonesock.net/soil.html
The ...
0
votes
0answers
35 views
find windows user of an http request vc++
Is it possible to find the windows user who generated an http request? Like there may be two or more users logged in at same time its not possible to GetCurrentUser to find user of that request. Have ...
-4
votes
1answer
44 views
Visual Studio 2010 Error C2039: 'is not a member of' [closed]
In a mature and stable project, using Visual Studio 2010 Ultimate Edition, I've started to experience some blocking compile-errors: C2039 and C2660.
I've re-compiled/modified this project a zillion ...
0
votes
2answers
23 views
how to output symbol through wParam
case WM_KEYDOWN:
if ( !(wParam >= 'A' && wParam <= 'Z') && !(wParam >= '0' && wParam <= '9') )
{
cout << (char)wParam << endl;
...
-1
votes
2answers
48 views
CryptGenRandom is giving same value while calling in loop
Sorry, I cant use separate class for this and I tried to build following code and getting same output when calling from out side in loop.
unsigned int crypt_rand()
{
...
1
vote
1answer
39 views
Run-Time Check Failure #0 when running a function
I get this error when trying to use this function
void WSPAPI GetLspGuid( LPGUID lpGuid )
{
memcpy( lpGuid, &gProviderGuid, sizeof( GUID ) );
}
the error
Run-Time Check Failure #0 - The ...
2
votes
1answer
23 views
Atl CDialogImpl not showing on DoModal if called from static library
I wrote a super simple ATL dialog inside a project. Even when I noted that every example on the web implemented the CDialogImpl class inline (that is, the class definition and it's implmentation where ...
0
votes
1answer
10 views
WSCInstallProviderAndChains failed
I am trying to install lsp dll on windows 7, when i install it the function InstallProviderVista gives me this error InstallProviderVista: WSCInstallProviderAndChains failed: 10104
-1
votes
2answers
63 views
CryptGenRandom output not getting same as rand() call
I tried to create random number using CryptGenRandom() call for avoiding cryptographic attack.
I tried to run follwing code which prints both rand call and CryptGenRandom() call.
HCRYPTPROV ...
-1
votes
1answer
52 views
Random number creation using RtlGenRandom() function in c++
I created random number using rand() and srand() but using this methods cryptographic attack will happen. So I tried to use RtlGenRandom() method to create the same. But using this I am not able to ...
0
votes
0answers
15 views
Waf PDB output in Windows (MSVC toolset)?
I used to use GDB + Clang, and I'm realizing how much I took stack traces for granted.
How does one have Waf generate PDB output in the directory of a built executable?
My configuration passes /Zi ...
0
votes
2answers
64 views
child window with rich edit controls not loading on menu item click inside main window
I am trying to implement a chat window on a menu item click in the main window in win32. I have created a main window and am handling the chat window in the following way :
int CALLBACK ...
1
vote
1answer
13 views
language issue in TeeChart
During using Teechart active X, the language of Teechart Edit Dialog is changed to japanese or chinese.(don't know exactly what language)
How can I recover to English?
3
votes
2answers
68 views
How do I use WaitForMultipleObjects to balance competing work?
I'm using WaitForMultipleObjects in an IPC situation, where I have one process writing data to either or both of two memory mapped files and another process that picks up that data as it's updated. ...
0
votes
1answer
19 views
Error: Simba Hive ODBC connector requires Visual C++ 2010 runtimes
I'm trying to install Simba ODBC connector on Windows Server 2008 x64.
After clicking on installation file, I get an error:
Simba ODBC connector requires Visual C++ 2010 runtimes (64 bit).
Please use ...
0
votes
0answers
23 views
How to include Lemon graph library into my code?
I'm on windows 7 and using VC++ 2010. I have a separate solution and want to include the LEMON graph library into that solution to be able to use and access its algorithms.
I tried so many ways ...
0
votes
0answers
31 views
RPC Debugging in VS 2012
Using How to: Debug COM Clients and Servers Using RPC Debugging as a reference, I was trying to automatically attach and Debug a COM Server Component while initiating the COM Client Component. The COM ...
0
votes
0answers
51 views
How to use exel in MS visual C++
I want to make an windows form app. U can write text in textBox'es and when u press a button the app would create an excel file and write the txt from the boxes. I got only the UI that, I know some ...
1
vote
1answer
43 views
How can I invoke CreateFile for something like /dev/null in Windows?
I need to call a function in a Windows library that takes as a parameter a handle to a file created by CreateFile.
In my application, I am not interested in the output that the library generates on ...
-2
votes
2answers
71 views
how to create .dll from .lib file in c project? [closed]
I got allocated a old c project to recompile it . I am just beginner in c programming,so i need your help guys, I opened workspace in visual c++6.0 the workspace consists of three projects. Two of ...
0
votes
1answer
41 views
Windows 64 bit application with ever growing thread count
I have a Windows 64 C++ application which acquires data from a custom USB device. It is built using Qt 4.8.
It works fine and there are no , repeat no memory leaks that I can see. However, I did ...
1
vote
0answers
38 views
Capture Hidden window with aero effects
I am trying to capture windows hidden behind my application. I am using windows 7 and VC++. I have tried printwindow() function which draws the both non-client and client area of hidden window, but ...
0
votes
1answer
34 views
WINAPI Hook - determine whether a new directory was created [closed]
Is there any way to create a callback that reacts after the user created a new folder in the explorer?
1
vote
1answer
97 views
Memory allocation of values in a std::map
I've had some experience in C++ from school works. I've learned, among other things, that objects should be stored in a container (vector, map, etc) as pointers. The main reason being that we need the ...
3
votes
4answers
44 views
Show an (custom) error when “required” runtime libraries are not present?
I've been making a program in Visual Studio 2012, what comes with it is that when I send my application to someone, they need the VS2012 Runtime, which sometimes they don't know where to download or ...
0
votes
1answer
66 views
RC2247 : Cannot open Rc file : Resource explorer cannot load resource ; Load failed
I have a win 32 project i am working on and the resource file were working fine till yesterday. Now when i try to open the resource file to edit, it crashes and gives me the following error:
...
1
vote
1answer
66 views
change color in progress bar win 32
I am trying to change the color of background and bar in a win 32 progress bar in the following way :
HWND hwndPB =CreateWindowEx(0, PROGRESS_CLASS, NULL,
WS_CHILD | WS_VISIBLE |PBS_SMOOTHREVERSE ...
0
votes
1answer
26 views
windows 7 -> vs10 -> OpenCV *DesperateForHelp*
Hey i have searched every where about this issue and i still cant find my answers. Here's the deal, I'm a beginner and for my semester project i need to use the OpenCV. During its installation I'm ...
0
votes
1answer
27 views
LNK2019: Portability from Windows to OSX
I've been looking at this for the past couple of days with no success. I've been trying to create a graphics application with Qt. It seems like my LNK2019 should arise from from an unimplemented ...
0
votes
1answer
40 views
vs2010: Gradient background in a windows application
I am working on visual studios 2010 and c++. I am trying to change the background color of my basic windows app i want to put gradient colors to it like how skype and other programs do is it possible? ...
0
votes
0answers
15 views
how to check if Rhapsody 7.6.1 is installed on my machine (windows Xp -OS 32-bit) via C++
im trying to write a program that check if IBM Rational Rhapsody 7.6.1 is installed,
or any other version of rhapsody.
im using C++ in visual studio.
thanks in advanced.
0
votes
0answers
48 views
getting usb number written on device
I want to get usb no of the USB drive I am trying it like this
char devicePath[7] = "\\\\.\\@:";
devicePath[4] = (char)( buf );
HANDLE deviceHandle = CreateFileA( devicePath, 0, FILE_SHARE_READ | ...
1
vote
0answers
65 views
How to stop / end / interrupt the drag event in Windows?
How to programatically interrupt the drag operation (if any in progress)?
What exactly I'm trying to achieve:
I have a MFC dialog-based application and when some other window is dragged over/behind ...
0
votes
2answers
61 views
What is the maximum number of thread that can be created ? Does system configuration need to be considered when multiThreading [closed]
What is the maximum thread that i can create for my algorithm ? Does system configuration need to be considered when i use MultiThreading ?
My Hardware : Intel(R) Core (TM)2 Duo CPU E8400 @3.00 GHz ...
0
votes
0answers
43 views
how to implement icmpsendecho2 asynchronous with callback example vc
I have a need to use the IcmpSendEcho2 API command asynchronously using the
ApcRoutine callback routine.
A question I have is what would the signature look like for the ApcRoutine
callback routine I ...
0
votes
1answer
43 views
How do I get the information shown in vmmap programatically?
As anyone who has watched the Mark Russovich talk "Mysteries of Memory Management Revealed" knows, the vmmap tool can show you things that count against your process limit (2GB on vanilla 32 bit ...
2
votes
1answer
176 views
What is the fastest way to search all the files in hard disk?
I am currently trying to search all the files in the hard disk.
I'll search a lot of documents on window 7. That means using lot of File I/O...
I am thinking I should use multi-thread or ...
0
votes
2answers
47 views
write code to find the opening windows on desktop
Is there anyway to find what kind of window is opened on the desktop in real time?
It may need C# or C++. What I have found right now is to use C# Process.GetProcesses() method to find the opened ...
14
votes
1answer
183 views
Is set single step trap available on win 7?
I was doing with a so called 'seh hooking'. Actually it changes permission of region of memory and catches the exception when it gets accessed, so it can hook the function.
It uses the single step ...
8
votes
1answer
64 views
Visual Studio parameter alignment restrictions and Windows x64 ABI
With Visual C++ on WIN32 there's a long-standing problem with functions with 4 or more SSE parameters, e.g.
__m128i foo4(__m128i m0, __m128i m1, __m128i m2, __m128i m3) {}
generates an error:
...
2
votes
1answer
50 views
What are the implications of WPF not using Windows (pl.) for Controls?
I would appear that in a classic Windowstm application each control that is displayed (Button, ListBox, Menu, ...) gets it own Window (as in HWND).
Further, with Windows Forms (WinForms), while the ...