Visual C++ :: Get Active URL In Google Chrome From V.29 With IAccessible?

Oct 29, 2014

Based in some examples of source codes as this [URL], I'm trying get active url on address bar from Google Chrome with IAccessible, but it always return NULL (0).

Here is my last attempt:

Code:

#include "stdafx.h"
#include <Windows.h>
#include <Oleacc.h>
#pragma comment( lib,"Oleacc.lib")
HWINEVENTHOOK LHook = 0;

[code]....

View 8 Replies


ADVERTISEMENT

C++ :: CPP Program That Opens Google Chrome And Goes To Specified URL

Dec 21, 2013

I've been searching for a long time to find a way to make a cpp program that opens google chrome and goes to a specified url and nothing is working. This is the current code i'm using but its not working because no one really specifies the includes & dlls necessary for execution or if they do they compile with errors....

This is the basic code i've been using. Apparently, ShellExecute is the preferred method to do it. Its not really turning out to be my favorite right now...

int main(){
ShellExecute(NULL, "open", "

View 2 Replies View Related

Visual C++ :: Getting A List Of Active Processes?

Apr 14, 2015

how to get a list of the active processes on a computer?

What I need to do is check for a specific process to see if it's running on the system.

I just need to know if a certain process is present.

View 1 Replies View Related

Visual C++ :: How To Tell If Windows Partition Is Active

Nov 24, 2014

My goal is to know if Windows is installed on an active disk partition.

View 8 Replies View Related

Visual C++ :: Passing Message Using Active Directory?

Jan 29, 2015

I have a DLL developed using pure VC++ (all unmanaged code that doesn't use .NET framework). This DLL will be deployed in different client PCs within a network and will act like an agent.

Now I have establish a communication between this DLL and a WCF web service, that will be deployed in a server PC. The Service will first get a list of PCs either name or IP Address within a network using LDAP (Active Directory) and once, we get the PCs, I have to establish a communication between the web service and the agents that reside in these client PCs,

How can I accomplish this?

View 3 Replies View Related

C :: Head First Google Map Associated With JSON File

Apr 5, 2014

This question is from the book Head First C by Griffiths. Starting on p. 110 the book instructs how to develop a JSON file that will be read by the map application on the website: Geo-locater. Starting from a file containing the values of the latitude and longtitude in CSV format a C program is developed to convert it into a JSON file. Up to this point everything worked perfectly although I doubt whether the generated output file conform with the standard of JSON files due to my lack of knowledge. The problems begin after the previous step. First of all, when I try to save the webpage as a whole (from Chrome, Firefox on Ubuntu 12.04.3 32-bit and Windows 7 64-bit) the local copy of the map.html file is useless. When the file is double clicked a white blank page is displayed with no map to be seen. However, when it is saved with the only html file option the map is displayed but the JSON file in the same directory is not read by the program to display the corresponding red markers. What may be the reason behind this and how can I remedy the situation? It has been bugging me a lot these days.

The corresponding files are as follows:

"output.json" Code: data=[
{latitude: 42.363400, longitude: -71.098465, info: 'Speed = 21'},
{latitude: 42.363327, longitude: -71.097588, info: 'Speed = 23'},
{latitude: 42.363255, longitude: -71.096710, info: 'Speed = 17'},
{latitude: 42.363182, longitude: -71.095833, info: 'Speed = 22'},
{latitude: 42.363110, longitude: -71.094955, info: 'Speed = 14'},
{latitude: 42.363037, longitude: -71.094078, info: 'Speed = 16'},

[Code]...

Code:

42.363400,-71.098465,Speed = 21
42.363327,-71.097588,Speed = 23
42.363255,-71.096710,Speed = 17
42.363182,-71.095833,Speed = 22
42.363110,-71.094955,Speed = 14
42.363037,-71.094078,Speed = 16

[Code]...

P.S. I have done exactly as told in the book and I am very unfamiliar with JS. Note that I have also asked the same question previously on Stackoverflow.

View 4 Replies View Related

C++ :: How To Send Email Using Google SMTP Serve

Jan 2, 2014

I want to send an email using Google's SMTP server. How do I achieve it?

View 2 Replies View Related

C Sharp :: Display Google Map In Windows Form

Jun 1, 2012

I have to display google maps in a windows form. I managed to display the map in the form like this link: [URL] ...

But i have to display only the frame with the map in the form..not the whole page.

View 3 Replies View Related

C/C++ :: How To Get Active Application Title Through API

May 2, 2012

Actually i am using one timer, in that timer i am trying to displaying one dialog box nane as ABC, for if condition is success, there in the same condition i need to put one more query like for the perticular application is active then only display this dialog box ABC, i need which API is using for getting active application in c++.

View 2 Replies View Related

C++ :: How To Find Out Which Member Of Union Is Currently Set / Active

Jan 16, 2015

how to find out which member of union is currently set/active.

exm:
union myunion{
int i;
float f;
}

if i set myunion ob{7}, it set ob.i=7;

my q? is how to find out i is set f is not set/ not acrive

View 2 Replies View Related

C++ :: Get User Name And Surname In Active Directory?

Sep 11, 2013

I have a logined user and my running program as system process (not user process).

I want to get user name and surname from AD.

1. GetUserName() dont useful becouse it gets name for current process owner(for SYSTEM in my case).

2. There are userLogin, userName, userSurname and userDisplayedName in user properties of AD. Its possible to get userDisplayedName by NetUserGetInfo(), but
I want to know is it possible to get userName and userSurname?

View 1 Replies View Related

C++ :: Call Stack Should Include All Active Sub-routines?

Feb 4, 2015

I have a general question on Call Stack of Embedded uCs.

The Call Stack should include all the Active Sub-routines.

For example, in the following sequence:

Func 1 Starts -- Call Func2 --> Func 2 Starts -- Call Func3 --> Func 3 Starts --> YOU ARE HERE

The Stack should include the Return Addresses of Func 2's Body and Func 1's Body, Right?

At any certain moment (e.g. when the uC experiencing a SW Bug), Is it possible to have the uC to get all the Active Sub-Routines from the Stack and print them (e.g. for knowing it at the moment of Bug)?

It'd debug failures, when I don't work with a Debugger.

I know that Debuggers do that - i.e. show you the Call Stack at each moment - So I am wondering if I can get the uC to to it for me every time a bug occurs.

View 1 Replies View Related

C# :: Select Text When TextBox Gets Focus Or Becomes Active

May 9, 2013

I can select the textbox #2 text with this.

this.tB2.Click += new System.EventHandler(tB2_Click);

private void tB2_Click(object sender, System.EventArgs e) {
tB2.SelectAll();
}

What would be the simplest way to do the same for all textboxes on the form, preferably on both click and enter events.

View 12 Replies View Related

C :: Program For Infinitely Looping After And Testing For Active Process

Mar 23, 2013

What I have: A basic program for infinitely looping after and testing for an active process. It has a delay system built in to make it so it is not constantly iterating.

What I need: A way to get process IDs from other Processes other than my program. With a way to use that ID to detect if that process is active on the computer or not.

Parts of my code that need changing:

/* Code for handling the process would go here */

/* Code for detecting the target would go here */

What the goal of my program is: Perform operations to terminate the process of cmd.exe when it is active on the user's computer. Then output the status of the process and the time it took to find that process to the user.

It contained functions that I needed, but I need more information on how to apply them to other processes instead of the parent of my program and its' children.

Here is the code I prewrote for this so far:

Code:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define ZERO 0
#define INFINITE 1000000000000000

[Code] .....

View 1 Replies View Related

Visual C++ :: PIC To PC Using MFC Visual Studio Through Serial Communication

May 28, 2014

The project is about reading data from PIC and display the data on the dialogue created by the MFC GUI of Visual studio 2010. There are 4 data need to be displayed (2 weight and 2 angle). the data will be display on the edit control box on the dialogue.

I have try to solve the COMPort and Readdata issues many times, but I'm fail. I have read many sources and implement the source codes... They are never work....

The detail about the issues that I need to solve is clearly mentioned on the main dialogue.cpp. Take a look to an uploaded zip file that I have attached.

View 6 Replies View Related

Visual C++ :: Cannot Seem To Set Var

Nov 8, 2012

What I'm trying to do is get the selected folder value put into my dirlocation var.

Code:
private void dirLocation_Click(object sender, EventArgs e) {
FolderBrowserDialog fdb = new FolderBrowserDialog();
fdb.Description ="Please choose the directory your .rlt files are located in";
if (fdb.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
dirLocation = fdb.SelectedPath;
}

Is this how you do it? I keep getting an error like Cannot implicitly convert type 'type' to 'type.

View 5 Replies View Related

C++ ::  How To Use QT With Visual Studio

Aug 15, 2014

I heard that you can't use it with express, but that doesn't seem right... Can you use it with Codeblocks, at least? I just hate the Qt Creator IDE. I don't like the UI... all I want to do is code Qt. I don't care much for the GUI editors.

View 10 Replies View Related

Visual C++ :: Create MFC OCX Using DLL

Aug 28, 2014

I am trying to create a OCX from a C++ dll., Here's the scenario I have a C++ dll and this dll needs to be called in VB.net program my boss want's me to create an OCX out of this.

C++ dll and use it in a VB.net class library, apparently I have created an OCX but it requires a form but the VB.net program is a class library.

View 5 Replies View Related

Visual C++ :: How To Convert IP To Hex

Sep 27, 2012

I don`t known how to convert IP to hex .

In this link [URL] .... . I see hex IP : Hex IP 0x462a1779

I want to convert IP "70.42.23.121" to "0x462a1779"

Code:
#include <winsock.h>
#include <windows.h>
#include <stdio.h>
UINT32 ip_to_hex(UINT32 ip_add) {
UINT32 ip_hex;
//code convert ip to hex
return ip_hex;

[Code[ ....

And this is result : 7b 1e 80 and a , not 0a

Further i think we must separate each octect by a (dot) . , Then convert decimal to hex.

View 6 Replies View Related

Visual C++ :: Using COM Without Registering?

Mar 5, 2013

In a C++ project, I need to call a C# created COM object (as a .dll)

Is there a way to use such a COM object without having it be registered in the registry?

The C# COM dll is just a "go between" our C++ code and a .NET library, there's no "COM contract" of any kind, the COM interfaces change each version. The fact it's COM and needs registration is annoying because it makes it hard to have multiple versions of our software installed (needed under some circumstances) and running at the same time.

I'd like a way to not have any registration at all. And just be able to do a LoadLibrary("c:TheRightPathcom.dll") of the right dll and then get going from there.

View 14 Replies View Related

Visual C++ :: Value Of Pointers

Feb 5, 2013

I'm trying to figure out the value of pointers after the following code snippet

Code:
int s[8] ;
int *iptr1, *iptr2 ;
int **iptr3 ;
for (int i = 0 ; i < 8 ; i++)
s[i] = 7 - i ;

[Code] ....

I need to find what the value of iptr1, iptr2, and iptr3 are after the code is executed.

View 3 Replies View Related

Visual C++ :: OpenCV In MFC App?

Feb 5, 2014

I have a C++ app that uses OpenCV. Currently i am statically linking the OpenCV libs into my app. This is adding an extra overhead of 6+ MB.

i would like to remove some of the features that i am not using in OpenCV. The features am using are,

Capture frames from Webcam.

Face detection.

Image formats (JPEG, PNG).

Image rotation & resizing.

Is it possible to remove other features and trim down the libs?

My C++ app is developed in Visual Studio 2012.

View 1 Replies View Related

Visual C++ :: Using CSplitButton In VC6?

Dec 5, 2013

Is there any chance to use CSplitButton in VC6 ?

I had tried to use something appropriate founded on CP, but they are using DrawItem, and I had problems with windows style, and I had tried to make myself one, overriding OnPaint, but I front with flickering (I put the sample below)... so, I wonder if I could get (from somewhere) CSplitButton and add to my project ... if you say that I could, can you provide me the CSplitButton source code ? I mean, only .cpp implementation file ...

View 1 Replies View Related

Visual C++ :: How To Register ATL Exe COM

Apr 4, 2013

I created an EXE COM server with ATL.

and from the client (DLL COM with ATL) i want to create an instance of the EXE (CreateInstance(CLSID of the EXE)).

how do i register the exe so that i know the path to the com server.

View 2 Replies View Related

Visual C++ :: Map With Two Key Values?

Mar 29, 2013

I have an assignment where I need to go through all the files in a folder. For each file I need to know each unique file extension, how many files for each unique file extension, and the total size for each unique file extension. I have to be able to sort through this using either the file extension or the total size of the file extension. The first thing I thought of using was a map. This will keep track of each unique file extension and the amount of times that file extension was found. How do I now associate the total size of the file extension to my map? So for example I need the output to be something like this:

Using file extension for sort
.cpp : 1 : 3400
.exe : 3 : 3455600
.mp4 : 25 : 200000404

Using total file extension size for sort
.mp4 : 25 : 200000404
.exe : 3 : 3455600
.cpp : 1 : 3400

Here is the code I have so far:

Code:
#include <iostream>
#include <filesystem>
#include <map>

[Code]...

I was thinking of somehow using a class to implement this, but don't know how to go about doing that. A

View 1 Replies View Related

Visual C++ :: What To Do With OnNewDocument

Nov 29, 2012

I got a program from somebody. He had its initialization to run his program but never bothered to save the data for later use. Now I wanted to add the New, Open, Save, and Close to it, so I add OnNewDocument ahead of his program. It crashed every time I ran it.

Shall I include his initialization in the OnNewDocument? If I can not separate the initialization part from his code, e.g., they come in as dll, what shall do?

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved