Getting HWND of current Process
I have a process in c++ in which I am using window API. I want to get the HWND of own process. Kindly guide me how can I make it possible. ...
I have a process in c++ in which I am using window API. I want to get the HWND of own process. Kindly guide me how can I make it possible. ...
I get an exception every time I try to create a container for the blob using the following code CloudStorageAccount storageAccInfo; CloudBlobClient blobStorageType; CloudBlobContainer ContBlob; blobStorageType = storageAccInfo.CreateCloudBlobClient(); //then I initialize storageAccInfo ContBlob = blobStorageType.GetContai...
Good day, can I ask one question about Windows Forms? As far as I know Windows Forms is Win32 wrapper like MFC, created for use with .NET. But, what I dont know is, can you use windows forms and compile directly to native code? Becouse in Visual Studio Express, there is windows forms available only for CLR. And, there is no GUI tool for ...
I can't change the screen brightness of my laptop screen on Linux, so I thought I might find out what to do by replicating what happens (eg. with setpci -s blabla foo=bar) when I do it on Windows. I've never done any pci debugging, it'd be nice if it's easy to understand. ...
This problem has happened to me twice.Both times during programming with Borland C++.when i wanted to run the simple code bellow:(completely what I wrote) int n, total=0, counter=1,average; while ( n ) { cin >> n; total = total + n; average = total / counter; counter++; cout <<average<<endl; } ...
when i tried to create shared library file using a "cl" command in vc++, it shows a error saying that "fatal error c1083: can't open compiler generated file 'file.obj':permission denied" can any1 help me...??? ...
Hi. I'm trying to use a script to control my power options since XP doesn't give you an intuitive way to change CPU Frequency options. Here's my script so far: meh = `cmd.exe /C POWERCFG.EXE /QUERY Portable/Laptop` puts "" puts meh case input when 1 then system('cmd.exe /C POWERCFG.EXE /CHANGE Portable/Laptop /processor-thr...
We're having problems with Windows silently eating exceptions and allowing the application to continue running, when the exception is thrown inside the message pump. For example, we created a test MFC MDI application, and overrode OnDraw: void CTestView::OnDraw(CDC* /*pDC*/) { *(int*)0 = 0; // Crash CTestDoc* pDoc = GetDocument...
Hi, I'm in the process of reorganizing some of the legacy libraries in our application which has unmanaged code calling into libraries of managed code. While I have the code reorganized, it produces the following loader error: ... 'app.exe': Loaded 'C:\WINDOWS\system32\CsDisp.dll' 'app.exe': Loaded 'C:\WINDOWS\system32\psapi.dll' '...
hello i'm programming with win32api, i want that the following programm creates two process and creates an filemap. (using c++) i don't know what i should write at Handle CreateFileMapping(... i tried it with PROCCESS_INFORMATION hfile. furthermore the first parameter should be INVALID_HANDLE_VALUE, but then i don't know what to wri...
I am trying to enumerate all the monitors in Windows 7, and according to MSDN, using the QueryDisplayConfig method is the correct way to do this. All of this code works fine, and returns a couple of arrays, one with paths and one with modes. However, it doesn't have the same monitor ID's as Windows. I am trying to build an array of all t...
I need to copy files from a set of CDs that have a lot of duplicate content, with each other, and with what's already on my hard disk. The file names of identical files are not the same, and are in sub-directories of different names. I want to copy non-duplicate files from the CD into a new directory on the hard disk. I don't care abo...
Hi Guys, I don't know whether it is been asked before or not. But I want to silently install a msi to a server and also pass the credentials. I can see the process.startinfo class to pass the server credential. But I don't see an option to pass the destination server name. THnx ...
For my application, I need to have Skype working on my Amazon EC2 Windows instance. I got the application installed and am able to log in, however, I can't make a phone call, since I am getting an 'Can't detect your sound card' error. Since I'm trying to inject audio from an audio file into the phone call, I don't need the sound card on...
Hello, In our project, we've received a requirement where the the user is to be capable of enabling/disabling a COM Port / USB Port / Ethernet Port via our application's gui. Is it possible to manipulate harware's enabled/disabled state programatically in C#? ...
In Windows 2008R2, in Resource Monitor in the Disk Activity section I can see the number of bytes read from/written into files. How can I do this in a programmatic manner, preferably using C# (or Win32 API)? I have looked into WMI and various performance counters, however I cannot figure out if there is something which suits my needs. ...
I have an owner-drawn list control in my Windows program. I use CListCtrl::GetBkColor to get the background color, and for a selected item I use GetSysColor(COLOR_HIGHLIGHT). This matches what Windows uses for non owner drawn list controls, except for the case where the control doesn't have focus - then the background is replaced with gr...
I've written a multitprocess application in VC++ and tried to execute it with command line arguments with the system command from MATLAB. It runs, but only on one core --- any suggestions? Update:In fact, it doesn't even see the second core. I used OpenMP and used omp_get_max_threads() and omp_get_thread_num() to check and omp_get_max_t...
Is there any resources that how to create windows application, especially for how to design the dll to wrap up the api calls or the similar? It seems that people don't compile the entire project into a single exe for release and what is the best practice to architect the windows application component based on MVC pattern? Is the dll us...
hey i used web browser component in my app for windows mobile... i set the url as "www.google.com" but it shows "page is unavailable,u need to adjust browser settings!!! cannot find server or DNS error" do i need to do any sort of coding from my end as i set the url from the property box of web browser component ...