Visual C++ :: JSON Undefined In Web-browser Container

May 19, 2013

I create an IWebBrowser2* object and attached it to new window.

I create also a simple html page containing JScript alert(JSON) command.

when i load the page from IE the page works fine.but when i load the page from my object i get JSON undefined.

do i need to set my object with some setting?

View 1 Replies


ADVERTISEMENT

Visual C++ :: Create Web-browser With ATL?

Aug 11, 2013

I'm trying to create a simple webbrowser at my app.

code sample:
....
ATL::CAxWindow m_wndContainer;
ATL::CComPtr<IWebBrowser2> m_spWebBrowser;
HWND hWnd = m_wndContainer.Create(NULL,
CRect(0,0,200,100),
(LPCTSTR)0,
WS_CAPTION|WS_THICKFRAME|WS_OVERLAPPED|WS_MINIMIZEBOX|WS_MAXIMIZEBOX);
CoCreateInstance(CLSID_WebBrowser,NULL,CLSCTX_INPROC,IID_IWebBrowser2,(void**) &m_spWebBrowser);
...

everything is work fine except the fact the it seems that it create an IE version 7.0 and my machine have IE 8 installed.

it not suppose to create the IE according to my installed version?how do i suppose to do it?

View 1 Replies View Related

Visual C++ :: Iterating Through Web Browser Controls?

Jan 31, 2013

there is a way to iterate through the controls on a webpage. For instance, I tried EnumChildWindows using the parent window of the browser, but I haven't had any luck - it returns nothing. s where I can start researching how to find the child controls?

I'm using Visual Studio 2010, programming in C++.

View 6 Replies View Related

Visual C++ :: Creating DLL With Web Browser Embedded?

Sep 17, 2013

My earlier attempt to get an answer didn't work, so i want to make my question more straight forward.

Is it possible to create a C++ DLL with Web Browser like CDHtmlDialog embedded in it?

View 1 Replies View Related

Visual C++ :: Display CDialog App Inside A Web Browser Like IE

Dec 16, 2013

I am making a dialog app using CDHtmlDialog and all the controls are done using HTML.

Now i want to call/display this dialog inside a web browser like IE.

How can i do that?

If i could generelaize this question -

Is it possible to display a dialog app that is derived from CDialog inside IE?

If possible, how to do that?

View 7 Replies View Related

Visual C++ :: Calling ATL COM DLL Method (that Opens A Dialog) From Browser?

Oct 11, 2013

I have a COM Object created using ATL (without MFC Support)

The Object has 1 method that opens a Dialog (that does all the rest) and when finish - returns 2 values back (1 is enough)

Currently I call it from another EXE:

hr = CoCreateInstance(
CLSID_MyControl,
NULL,
CLSCTX_INPROC_SERVER,
IID_IMyControl,
(void**) &pMyControl
);

and then:

hr = pMyControl->MyMethod (ATL::CComBSTR(InputString1), ATL::CComBSTR(InputString2), &IntReturned, &IntReturned);

Is it possible to call it as is from a browser ?

How can I Instantiate the object and invoke my method (with params) from the browser ?

will it open the dialog ?

View 3 Replies View Related

Visual C++ :: ActiveX Web Browser Control Not Deleting Session Cookies Even After Closing

Aug 9, 2013

I have an C++ application which uses Microsoft Web browser ActiveX control to launch any URL within the application. The browser is embedded in C++ form and It's working fine with all the feature Microsoft has exposed through Interface(IID_IWebBrowser2).But while any url that is using session cookie has been launched, even after closing the browser the session cookies are not getting deleted. For example if user login info is stored as session cookies,the url is using the cookies and getting launched without asking for user log in info.

But if I close the browser, and again relaunch , the cookies should be deleted and the url will not find the cookies to be used for log in . That is not happening here. Although this is session cookies , it's not getting deleted and being used by embedded browser. However, if the url is launched in IE, it is behaving as expected.

So, Do I need to delete the cookies explicitly? If Yes, How to do that?

View 2 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

Visual C++ :: Automation MS Word In ActiveX Container

Jan 20, 2014

I`m working with MS Visual Studio 6. Trying to connect Word server with my window. This is call server in my class CXContainerView, inherit from CScrollView:

Code:
void CXContainerView::CreateWord() {
::CoInitialize(NULL);
_Document doc;
_Application m_app;
LPDISPATCH lpDisp;
CLSID clsid;

[Code] ....

It works in debug version but falls in release. Feels my fifth point, what I call it in the wrong way.

View 6 Replies View Related

C# :: Send Data To Generic Handler That Accepts JSON Data

Apr 26, 2014

I have a situation where I am accessing an ASP.NET Generic Handler to load data using JQuery. But since data loaded from Javascript is not visible to the search engine crawlers, I decided to load data from C# and then cache it for JQuery. My handler contains a lot of logic that I don't want to apply again on code behind. Here is my Handler code:

public void ProcessRequest(HttpContext context) {
JavascriptSerializer jsonSerializer = new JavascriptSerializer();
string jsonString = string.Empty;
context.Request.InputStream.Position = 0;
using (var inputStream = new System.IO.StreamReader(context.Request.InputStream))

[Code] ....

I can call the function : getUserControlMarkup() from C# but I will have to apply some URL based conditions while calling it. The contentType.typeOfContent is actually based on URL parameters.

If possible to send JSON data to this handler then how to do that. I am trying to access the handler like this:

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Common.host + "Handlers/SideContentLoader.ashx?typeOfContent=1&UCArgs=cdata");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

But its giving NullReferenceException in Handler code at line:

ContentType contentType = jsonSerializer.Deserialize<ContentType>(jsonString);

View 1 Replies View Related

C++ :: Plugin For All Browser

Jan 11, 2013

I want to create a plugin with c++ which will be supported by all Browser,i am stuck how to start.

View 2 Replies View Related

C :: Check For Browser Inputs?

Oct 26, 2013

Any chances for a c program to check for browser inputs?

View 1 Replies View Related

C# :: Ignoring Last-of-type In Web Browser

Dec 8, 2014

I'm using a Windows.System.Forms.Webbrowser and the document text contains

...<style type="text/css">
Table {
page-break-after: always;
}
table:last-of-type {
page-break-after: auto
}
</style>...

As soon as call ShowPrintPreviewDialog() to show the print preview dialog, it appears to be ignoring

table:table:last-of-type

because the last page in the document is blank.

View 2 Replies View Related

C++ :: Web Browser - How To Run HTML Within Program

May 4, 2014

I am making a web browser and I have successfully made it so it shows the actual html but I want to know how to run the html within the program. I am using mac so it can't be the #include "windows.h" stuff and preferably I would like it to be cross-platform.

View 3 Replies View Related

C :: Text Based Web Browser From Scratch

Sep 13, 2014

I have written a text based web browser from scratch. Meaning that I'm not using libcurl in any way to retrieve the web pages.Now I'd like to add HTTPS functionality to it, but I can't seem to find a guide like Beej's Guide to Network Programming related to HTTPS.

View 3 Replies View Related

C# :: WPF Browser Application Not Displaying Controls?

Nov 22, 2014

This is my very first attempt at running a wpf browser app... I've create the project and i can see controls when i add them to the entry page, here's the default for the page

<Page x:Class="SandBoxWeb.Page1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

[Code].....

and i can see a nice bright green square with an orange outline. But when i debug, a new tab opens up in my browser and i can't see a single thing,it's just a white screen.

View 6 Replies View Related

C# :: Select Dynamic Web Browser From Tab Control

Sep 3, 2014

I have been working on my own custom web browser. If i insert a web browser in my tab control and name it i can easily just go webbrowser1.Navigate() in my button click to use the webbrowser methods.

I made a method CreateTab and it automatically adds a web browser to my tab along with a default web page.
My problem is selecting this webbrowser in other button clicks so i can call Home, Back, forward, etc.

Here is me method for creating a tab.

private void CreateTabItem()
{ //create a new tab
TabItem item = new TabItem();
item.Header = "Fitness" + i ;
WebBrowser browser = new WebBrowser();
//browser.Name = "Website";

[Code] ....

View 1 Replies View Related

C++ :: Get Lynx Browser To Properly Use META Refresh?

Jun 16, 2014

I would like to know how to make Lynx follow meta refresh links automatically, At the moment it just provides a "clickable" link you can accept the refresh. I would like this to be automatic.

--- Initial problem ---

We have a DB Backup script written in PHP/HTML and uses the page refresh to loop the backup (every 2 minutes). Using a full fledged browser is not really an option on our machine as the resources are very tight. So we tried Lynx and it has the perfect footprint but the only problem is it doesn't refresh the page.

I'm thinking I just need some way to force Lynx to reload the page after the time has elapsed. Maybe create a new function that starts a timer and hold the url until the timer ends then force Lynx to visit that url. Im a PHP Procedural kinda guy and I cant think how to set this timer event safely without corrupting or crashing the program or creating memory leaks.

(source code im using: [URL])

This is the function that handles meta refresh.

Code: /*
* Given a refresh-URL content string, parses the delay time and the URL
* string. Ignore the remainder of the content.
*/
void LYParseRefreshURL(char *content,
char **p_seconds,
char **p_address)

[code].....

View 4 Replies View Related

C# :: Way To Get URL When User Opens A Web Page With Common Web Browser?

May 11, 2012

Is there a way to get the URL when the user opens a web page with a common web browser?

View 3 Replies View Related

C++ :: Run From Context Menu With Selected Text From Browser

Jan 5, 2014

I'm trying to build an app, but i don't know which is the best language choice. For starters, the app should be able to:

1. run from context menu
2. when selecting some text from a web browser (ff, ie), that text is captured (preferably not in clipboard) and sent as argument to the program via context menu and the program starts executing...

Is this possible?

e.g. [URL] ....

View 2 Replies View Related

C# :: Changing Web-browser Emulation Mode (Windows Phone)?

Nov 4, 2014

I was looking around on the internet and i noticed you could change internet explorer's emulation mode from Desktop to Windows Phone, i was wondering can the same thing be achieved in the C# webbrowser as i know it heavily rely's on IE. I know you can change the standards on the browser through the IE versions but is changing it to Windows Phone Brwoser possible, if so how can i change it?

View 5 Replies View Related

C/C++ :: Functions Are Undefined?

Sep 20, 2014

Not quite sure what the problem is here. I have all my functions in my class header file, and I believe I have them declared at the top, but it is telling me that I do not. The project is simply to use set and get functions to display the date.

#include "stdafx.h"
class Date
{
public:

[Code].....

View 5 Replies View Related

C++ :: Undefined Reference To Push (int)

Apr 20, 2013

The problem with the code is on line 14 and says undefined reference to `push(int)

Code:
#include<iostream>
using namespace std;
void push(int n);
int pop(int &n);
struct elem{
int key;

[Code]...

View 2 Replies View Related

C++ :: Undefined Reference To A Function

Jan 19, 2013

The error is this:

#include <iostream>
using namespace std;
void add(int s);
void subtract(int d);
void multiply(int p);
void divide(int q);

[Code] .....

View 2 Replies View Related

C++ :: Undefined Reference To A Function?

Nov 23, 2013

I'm making a program that's essentially a Text-Based Fire Emblem game; it runs calculations and rolls dice and has all sorts of Goodies. However, I have hit a block to the tune of

#ifndef ITEM_H
#define ITEM_H
class Item
{

[Code]....

Up Until I called up a Sword object, it worked fine. But when I compiled it, I got an Undefined Reference to Item::Item() error in Line 8 of Weapon.cpp.

View 2 Replies View Related

C++ :: Undefined Reference To (function Name)

Oct 2, 2014

Everything seems to be in order and I know my code still has mistakes. I'm just trying to get it to compile and it won't allow it. I've narrowed it down to when I call the functions in main but beyond that I have no clue.

#include <iostream>
#include <cstring>
using namespace std;
void getSize(int num);
void getSpace(int num, int ptr);
void inputData();
void printData();
void destroy();
const int BIG_NUMBER = 100;

[code]....

View 4 Replies View Related







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