windows-7

Trying to read Windows 7 Contacts doesn't work

吃可爱长大的小学妹 提交于 2019-12-11 07:55:32
问题 I based my code on http://msdn.microsoft.com/en-us/library/ms735866.aspx which is quite bugged, after some adaptation of function CreateNewContact() I tried the following. I don't have errors anymore but nothing is happening : IClassFactory* pFactory = NULL; HRESULT rc; rc = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); if (rc == S_OK) rc = CoGetClassObject(CLSID_Contact,CLSCTX_INPROC_SERVER,NULL,IID_IClassFactory, (void **) &pFactory); if (rc == S_OK) rc = CreateNewContact( pFactory); if

MeeGo Handset Emulator not starting on Windows 7

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 07:49:19
问题 I am trying my hands on the MeeGo and I have downloaded the MeeGo 1.1 SDK for Windows and followed everything step by step given in the MeeGo wiki to install SDK on my Windows 7 System and everything was fine. But when I start the emulator from the Qt Creator IDE or MADDE terminal the emulator screens appears and nothing happens after a startup welcome message as given in below image. My System configurtion are as follows: Operating System : Microsoft Windows 7 Ultimate 32 Bit Processor :

UAC and remote control

不羁岁月 提交于 2019-12-11 07:45:36
问题 If you've developed a remote control application as I've done, you must know that screen capture doesn't capture the UAC dialog when that dialog is pop up, and as a result the control can't be continued. Anybody know a solution to this? 回答1: From what I understand, I believe what you're asking about is possible. In addition to remote control software, test automation software and accessibility apps for those with disabilities also need a way to interact with protected UI and the secure

Using sbt in Cygwin, run the “~run” of play2, can't send Ctrl-D to it

北慕城南 提交于 2019-12-11 07:37:50
问题 When I use sbt in cygwin terminal. run the "~run", how to send Ctrl + D. sbt script file #! /usr/bin/env sh if [ -z "${JPDA_PORT}" ]; then DEBUG_PARAM="" else DEBUG_PARAM="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${JPDA_PORT}" fi dir=`dirname $0` SBT_LAUNCH_JAR=sbt-launch-0.11.2.jar if [ `uname -o` == "Cygwin" ] then SBT_LAUNCH_JAR_PATH=$(cygpath -w -a $dir/$SBT_LAUNCH_JAR) JLINE_TERMINAL=-Djline.terminal=jline.UnixTerminal else SBT_LAUNCH_JAR_PATH=$dir/$SBT_LAUNCH_JAR fi JAVA

unique_ptr, qvector.resize() throws error 2280 attempting to reference a deleted function

删除回忆录丶 提交于 2019-12-11 07:35:43
问题 To prevent scope creep (on a previous Q), I've isolated the above error. My Voxel class definition: #ifndef VOXEL_H #define VOXEL_H #include <QObject> #include <QVector> #include <iostream> include <memory> class Voxel : public QObject { Q_OBJECT public: Voxel(); ~Voxel(); }; #endif // VOXEL_H The main file which triggers the error: #include <voxel.h> int main(int argc, char *argv[]) { QVector < QVector <std::unique_ptr <Voxel> > > cVoxel; cVoxel.resize(0); int rows = 80, cols = 80; for (int

How can i change the appearance of Windows 7 menus?

时光毁灭记忆、已成空白 提交于 2019-12-11 07:32:34
问题 My Win32 Application displays Menus as shown when running on Win 7: This is the Default for the themes Windows 7 as well as Windows 7 Aqua. Please note that the selected menu entry is only slightly different from the other entries. I think it is much too less highlighted and therefore i am looking for a way to give the selected entry a different color. But unfortunately all possibilities to modify menu colors disappeared in Windows 7. The settings made in the window color dialog are non

Use CPAN BerkeleyDB module on Windows 7 (64 bit)

孤街醉人 提交于 2019-12-11 07:27:39
问题 I have been trying to install the BerkeleyDB CPAN module on my Windows 7 (x86_64) PC without any luck (BerkeleyDB::Hash is what I need). I have 64 bit ActivePerl and Oracle Berkeley DB 11gR2 5.3.15 installed. First I tried installing using the command : *cpan install BerkeleyDB* This came back with the error: *It looks like the installation of dmake and MinGW has failed. You will not be able to run Makefile commands or compile C extension code. Please check your internet connection and your

What's going on with the Vista heap?

穿精又带淫゛_ 提交于 2019-12-11 07:22:52
问题 I'm trying to better understand why the Windows Vista heap behaves the way it does. Consider the following very simple program: #include <vector> #define NUM_ALLOCS 10000000 int _tmain(int argc, _TCHAR* argv[]) { for (int iteration=0; iteration<10000; ++iteration) { std::vector<unsigned char *> buffer; buffer.reserve(NUM_ALLOCS); for (int i=0;i<NUM_ALLOCS;++i) { buffer.push_back(new unsigned char); } for (int i=0;i<NUM_ALLOCS;++i) { delete buffer[i]; } } return 0; } Basically this is a loop

How to bring up the on screen keyboard using C++ in Windows 7 tablet devices?

℡╲_俬逩灬. 提交于 2019-12-11 07:19:18
问题 I am developing an application for Windows 7 devices and I'm using an embedded web browser (webkit). Normally touching an edit control on a tablet device causes a little keyboard icon to appear. However, since my edit control is in the browser, it's not a real window with an hwnd and Window's doesn't bring up the icon you can click on to bring up the on screen keyboard. Is there an API I can use to cause the little keyboard icon to appear as it normally would when focus goes to an edit

Robocopy kept adding backslash in Windows 7 batch script

被刻印的时光 ゝ 提交于 2019-12-11 07:14:16
问题 I have encounted a extra backslash when trying to copy a single file using in the following batch script on Windows 7 pro: @echo off for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a" set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%" set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%" set "DATESTAMP=%YYYY%%MM%%DD%" & set "TIMESTAMP=%HH%%Min%%Sec%" set "FULLSTAMP=%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec%" set BACKUP