C/C++ :: How To Access XML Documents

Apr 9, 2012

this is the XML document i have:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Root>
<ConfigParams>
<Param Name="1">1857</Param>
<Param Name="2">10.31.225.163</Param>

[Code] ....

How to write a C++ code to access thing. (like we use JAXB in java)

View 1 Replies


ADVERTISEMENT

C Sharp :: How To Create Multiple Word Documents Dynamically

Sep 18, 2013

Need to create multiple word documents on the run.

My problem is its creating the last one only.

View 1 Replies View Related

C Sharp :: How To Shrink Size Of Word Documents By Changing Format Settings

Jul 31, 2012

I've created a solution who exported Access reports (graphics/tables) to a Word- and a PDF-format. Therefor I use PDFSharp and PDFFocus.

The PDF document is okay. But the Word-document looks good. Only the size of the Word-document, it has to send by e-mail, is much too big (17MB).

I have to open the Word document again to change the PageSettings to be sure, that the page-margins and the print orientation are correct.

using System;
using Microsoft.Office.Interop.Word;  
namespace PageSetup {
    class TestPageOrientation {
        static void Main(string[] args)

[Code] .....

I don't know how it works in the Word-library source. But I've tried WdOrientation.wdOrientPortrait and once I was surprised. I saw this page in Landscape-format.

I think there is something wrong with my document sections, because the documents (with a lot of tables, graphics and a image) is much too big. And that's only after using this method.

So my next question is: How can I shrink the size of this Word document?

And what do I have to do to limit the amount of format-settings in this word-document?

View 1 Replies View Related

C++ :: Access Private Data Of Base Class Without Access Modifier

Sep 9, 2013

if we don't provide the acces modifiers for base class and we need to manipulate the private data of base class in derived class. Is there anyway to acces the private data members? Here's a coding example

class A {
private :
int a;
};
class B : public class A {
public :
void displayA() { cout<<a<<endl; }
};

how i can acces the a of base class A in derived class B without acces modifiers.

View 16 Replies View Related

C++ :: Why Can't Access The Variable

Jul 17, 2014

Code:
#include <iostream>
using namespace std;
void f();
extern int x;
int main() {

[Code] .....

x is declared outside the functions and defined inside main(). Then why this code produces a compile error?

x is already declared so it can be used in f(); and when I call f(), x is already defined. Then why can't f() sets the value of x (in main) to 10?

View 3 Replies View Related

C++ :: How To Access File Properties

Jun 29, 2014

Is it possible to access file properties from c++ program? For example, user could drag file to program and then it displays a detailed information about file like date modified, size, type and etc..

View 1 Replies View Related

C :: How To Access Name And File Name Members

Sep 8, 2014

How to access the name and file name members on line 42 and 43?

Code:

typedef struct {
char * name;
char * filename;
} FILES;
FILES * files[256];
}

[code]...

How to access the name and filename from within function?

*files[count].name = chTmp;

View 9 Replies View Related

C++ ::  Access To Array By String Of Its Name

Jul 31, 2013

I have an array called abee1.

int abee1[4][3];

I have done some string function (like: "abee" + "1" ) and have "abee1" as string which is the same as abee1. How can I copy the data of abee1 into another array with same size, for example abeeTwo[4][3], using only the name of abbe1 as string ("abee1") not by abee1 directly.

View 4 Replies View Related

C++ :: Access Objects From Another Thread

Jun 25, 2013

I have the following code below. I am getting a memory access violation when accessing cmd->query_string in the loop function. The loop() function is running in another thread. The cmd object appears to be destroyed after calling the send_command function. How do I create an object on the heap and access the query_string.

std::list<my_command_message_que*> my_command_que;
void loop(){
if(my_command_que.size() > 0){
my_command_message_que * cmd = my_command_que.front();
std::cout << cmd->query_string;

[Code] ....

View 2 Replies View Related

C++ :: Access EXE Global Variables From DLL

Jun 25, 2013

On linux, I can compile DLLs (shared objects) as well as executables that use them. I can even access globals and classes that are defined in the EXE from the DLL, and vice versa, simply with the 'export' keyword. flawlessly.

The Problem: But on Windows (using MinGW), no matter what I do, I'm completely unable to access global variables which defined in the EXE, from the DLL. On Linux, this is no sweat, but what's Windows' problem?

I also need to extend classes in the dll with base class method definitions defined in the exe.

Ive heard that on Windows, you need to use declspec(dllimport) and declspec(dllexport). I can compile with CygWin+MinGW/g++4.5.3 as well as "Pure Windows" with MinGW/g++4.7.2 *without* the declspecs. So what's the decljunk for? Is this really just something for MSVC or other compilers?

Here's some Windows code to show what the problem is. The DLL's global variable is accessible to the EXE just fine, but the EXE's global variable is not accessible to the DLL - compilation complains it is an undefined reference.

main.cpp
#include "myLib.h"
#include <stdio.h>
int exe;

[Code].....

edit: I tried using --enable-runtime-pseudo-reloc --allow-shlib-undefined options when compiling the DLL and G++ complains that --allow-shlib-undefined is an unrecognized option.

View 1 Replies View Related

C++ ::  Why Can't Get Access To Private Function

Aug 11, 2014

I've written a simple class given below. I had set the values through setab() function but the add()function didn't work.

Compiler shows CPP/class.cpp|20|error: ‘int Calc::add()’ is private|

#include <iostream>
using namespace std;
class Calc

[Code]....

View 5 Replies View Related

C++ :: Access To SQL Server Without ODBC

Feb 21, 2013

I need to connect and manipulate a DB in SQL Server 2008, but need to have high performance too, so, I want to develop an class in C++ that connect direct to DBMS, in a low level, without using ADO, ODBC or OLEDB.

I found this API [URL] .... which proposes to do exactly what I want, but I need to develop it by myself.

View 4 Replies View Related

C++ :: How To Access Elements In A List

Oct 18, 2013

I've been looking through containers in the reference section and I can't figure out how to access (i.e. READ) elements in a list...

View 2 Replies View Related

C++ :: Can't Access A Function In Other Class

Nov 24, 2014

I am essentially trying to get a value from a 'Matrix' that is created. Using a function in the class where the matrix is created. But when trying to do this I get the error: Call to non-static member function without an object argument in this line when trying to call the function:

Matrix::get(sizeR, sizeC);

View 6 Replies View Related

C++ :: Random Access Iterators

May 20, 2013

In this code:

vector<int> mydata(100);
mydata[2] = 999;

In statement 2 does that call the iterator to access the 3rd position and set its value to 999?

View 18 Replies View Related

C++ :: How To Access Variable In Different Class

Oct 22, 2014

how can I make the queue of type pcb

and how to access pid in other clases?

View 6 Replies View Related

C++ :: STL - Loop To Access Integers

Sep 17, 2013

I have to write a loop to access the integers. Then fill it with few sample data.

list<map<set<string>,int> l;

View 15 Replies View Related

C/C++ :: BST - Cannot Access Memory Data

Nov 11, 2014

When I return mem add I cannot access the data in that add: in bin search tree

Curr=findMin(root);
cout<<"val: "<<Curr->barcode<<endl;
bst::hwareItem* bst:: findMin(hwareItem*& root){

while(root!=NULL){
root=root->left;
}
return root;
}

View 1 Replies View Related

C/C++ :: Access The Swapping Function?

Nov 22, 2014

Giving the following program, how do i access the swapping function. I've tried swapp::change <int> ( a, b ) ; and it gave me 4 errors. Here's the code:

#include <iostream>
using namespace std;
template <typename T>
class swapp

[Code].....

View 5 Replies View Related

C/C++ :: Access Violation To Vertexbuffer

Mar 5, 2014

I keep getting this:

#include <Windows.h>
#include <d3d9.h>
#define CUSTOMFVF (D3DFVF_XYZRHW | D3DFVF_DIFFUSE)

LPDIRECT3D9 d3d;
LPDIRECT3DDEVICE9 d3ddev;
HINSTANCE Inst;
HWND Handle;

[Code] ....

View 12 Replies View Related

C# :: Static Constructor Access Only Once?

Mar 1, 2014

I am creating class to be call only once in time so i am trying to implement it static to access it once i created static constructor which will be implemented within first instance of the class. My target is to pass two parameters to onstructor but as i said class should be call only once anyhow i am able to create many instances of that class which i would like to avoid and dont know how firstl i tried to create only one constructor as static with parameters but its not allow then i created static constructor and public contructor which takes two parameters but in this case i am able to create many instances:

public class HeartbeatSupervisor : ICheck
{
private Server _server;
private Protocol _protocol;
/// <summary>
/// HeartbeatSupervisor dd = new HeartbeatSupervisor();
/// </summary>
///
static int k = 0;
static HeartbeatSupervisor()
{

[code]....

inside Program Main i am able multi instances...

HeartbeatSupervisor dd = new HeartbeatSupervisor(new Server(), new Protocol());
HeartbeatSupervisor ee = new HeartbeatSupervisor(new Server(), new Protocol());

View 1 Replies View Related

C/C++ :: Access C-library Using Xcode?

Jan 25, 2014

im having trouble accessing the c library on my mac. The reason being is i need to get the code for pi for my program.

View 1 Replies View Related

C++ :: How To Access A Set Of Variables In A Matrix

Apr 21, 2014

Say I made a vector matrix:
vector<vector<int> > matrix;

and the matrix look likes this:

0,0
0,1
0,2
...

How would I make it get a random piece of this matrix? So for example, how would I get it to access a set of variables like 1,3 like as if it was just an array with stored data in it?

View 3 Replies View Related

C/C++ :: How To Access Field Of A Class By Name

May 2, 2012

class myCls{
int x;
};

and then I create:

myCls c1;

and now:

is there way that I go like: cout << c1;
not overloading << operator;
and it shows me a value of c1.x?
just wanna replace c1 with that value;
I need sth similar to indexer from c#.

View 1 Replies View Related

C++ :: Block Internet Access To A PC?

Jun 18, 2012

I need to turn off internet access for SPECIFIC website locations. I use C++ Builder 2010 or Delphi 2010.

View 5 Replies View Related

Visual C++ :: How To Access IHTMLDialog

Aug 17, 2013

I am writing a program to auto login to a website. But when password is wrong a dialog box appears.

I am not able to quit the Internet explorer. How to access the dialog box and if possible access the DOM of the dialog box

View 3 Replies View Related







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