Visual C++ :: Push / Pull Of Modeling Like SketchUp

Jul 8, 2014

See the push/pull of modeling in SketchUp, it is very convenient, I would like to achieve in my own programs, Is it possible?

View 2 Replies


ADVERTISEMENT

Visual C++ :: GetPixel Won't Pull From Java Programs?

Jun 4, 2013

I'm building a simple little program for minecraft to reduce the repetitiveness, I'm using getpixel, it's slow, but i only need to grab about 6-12 pixels.

but the problem is, I can get the pixel data if I capture from the entire desktop display, but as soon as I tell it to grab from the active window (wich goes MUCH faster) it doesn't return any colour value's.

I'd rather not have to use getDIBits or program in java or anything since I want to keep it fairly kiss, and if it can't be done, then.. ah well, I'll just grab from the entire desktop, speed isn't to much of an issue, but it'll be a pain to keep the window at the same place.

Code:
#include <Windows.h>
#include <iostream>
using namespace std;
// vvv Ignore this, it's just used for retrieving the handle of a window without giving the full window name vvvv
struct results {

[Code] ....

View 3 Replies View Related

Visual C++ :: Program That Take Strings From File And Push It Into Stack

Sep 29, 2013

How to write a programme that take strings from file and push it into the stack with number of each sting string before it and later clean the stack?

View 6 Replies View Related

Visual C++ :: Terminate A Thread When User Push Stop Button

Nov 16, 2012

I have a thread with a while(1) loop in it. When the user push the stop button I would like that thread to end.

I thought about creating a bool and checking its value periodically in the thread and when I push the stop button I change the value of the bool for that the thread breaks out of the loop and finishes.

View 5 Replies View Related

C++ :: How To Pull Out A Value In String And Store In Variable

Oct 7, 2014

Like if the user enters "38 F" how do I take out the 38 only and store it in a variable? So far my program goes like this:

string text;
double temperature;

cout << "Enter temperature: ";
getline(cin, text); // user enters 38 F
temperature = text // store 38 from string into double

View 1 Replies View Related

C Sharp :: How To Pull Comment Tags From VB Or CS Files

Jul 3, 2012

In my project I have commented all the available funtions in a systematic way. Following is the commenting system in my project:

''' --------------------------------------------------- ''' <summary>
''' ************************************************** ******* ''' FUNCTION:
''' VAR NBR:
''' ************************************************** ******* ''' </summary>
''' <VariableName> loadApp </VariableName>
''' <VariableDiscription> loads the Application </VariableDiscription>
''' <Author> Author Name </Author>
''' <LastModifiedOn> 01/09/2012 </LastModifiedOn>

[Code] .....

Now I would like to extract the data inside these comment tags and insert into excel sheet. Need to extract the comments in the xml tags shown in the able format? For example I want the value inside the <Autor> tag.

View 1 Replies View Related

C :: Using Struct To Pull Records From A Colon Delimited File

Dec 15, 2014

I'm trying to write a C program that will take a file that is delimited by colons and separate it out in to 5 sections:

0002:0003:0002:0080:<HTML>
0002:0004:0002:0080:<BODY>

I have the struct code in place but not sure how to actually store each of the 5 parts in memory. Here is the code below:

Code:

#include <stdio.h>
#include <stdlib.h>
#pragma warning(disable:4996)
struct contents
{
int source,destination,type,port;
char data[50];
};

[Code]....

View 3 Replies View Related

C :: Pull System Information And Compare Results With Predefined List

Feb 9, 2014

How to pull system information and compare it's results with a predefined list.

I know the second part, how to pull system information. Like what CPU/GPU/Motherboard the system that the program is run on has.

View 11 Replies View Related

C++ :: Iterate Through Char Array And Pull IP Addresses To Test If They Respond

Apr 8, 2013

I am trying to write a loop that will iterate through a char array in C and pull the IP addresses and test them to see if they respond. My ultimate goal is to have the first one that responds returned in the function, but the loop is not running correctly. It will run through right the first time, but then will start over again.

Code:
const char * getServer(char *svrList) {
char *srList;
srList = strtok(svrList, " ," );
printf("Contents of srList b4 loop: %s
", srList);
printf("Server List: %s
", svrList);

[Code] ....

Code output:
Contents of srList b4 loop: 1.1.1.1
Server List: 1.1.1.1
result is "1.1.1.1"
Hitting else loop
Contents of srList in else: 2.2.2.2
result is "2.2.2.2"
result is "2.2.2.2"
Contents of srList b4 loop: 1.1.1.1
Server List: 1.1.1.1
result is "1.1.1.1"
Hitting else loop
Contents of srList in else: (null)

View 14 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++ :: Push Button On A Website?

Nov 25, 2013

I was wondering if it's possible to push a button on a website programatically. Unfortunately the button link is invisible, otherwise I could simply use the URL it links to. So is there a way to do it in c++ and if so, how?

View 4 Replies View Related

C++ :: How To Push Data Into The Vector

Apr 20, 2013

How can push data into the vector <list<Edge>> adjList? adjList[n].push_back (e);//gives error.

struct Edge {
int from_node_number;
int to_node_number;
int weight;
};
vector <list<Edge>> adjList;
Edge e;
for (int n=0; n< graph.size(); n++)
adjList[n].push_back (e);

View 6 Replies View Related

C++ ::  how To Use Push Back In 2D Vectors

Jul 31, 2013

I am trying to use push back in a 2D vector but I don't know how to. This is what I have:

vector <vector <BigInt> > matr;

for (BigInt i=0;i<rij;i++) {
for (BigInt j=0;j<kolom-1;j++) {
matr.push_back().push_back((i+1)^(pow-j));
}
}

I quickly invented something but that doesn't work obviously. it should be equivalent to this: (the only problem in the code below is that those indexes don't exist yet that's why I need push_back())

for (BigInt i=0;i<rij;i++) {
for (BigInt j=0;j<kolom-1;j++) {
matr[int(i)][int(j)]=(i+1)^(pow-j);
}
}

View 2 Replies View Related

C++ :: Cannot Push Back String At The End Of Vector

May 23, 2013

I have below classes

Code:
class moClassValueContainer {
public:
moClassValueContainer();
moClassValueContainer(string,int);
[Code] ....

In my main.cpp, I have blow loop

Code:
for (xml_node tnode = it->first_child(); tnode ; tnode = tnode.next_sibling()) {
Container tmpContainer(tnode);
if (tmpContainer.getType() == SINGLE) {
string t = tmpContainer.getName();

[Code] ....

I cannot push_back(t). I examined the code with debugger, t has correct string value assigned, but even after 20-30 iterations, there is no element for headerFields vector.

View 1 Replies View Related

C/C++ :: Push Linked List Pointer

Jan 27, 2015

I've been playing around with making a linked list in C and am having trouble adding to the beginning of the list. For the add_beg() function: the statement "head = newNode" only works locally. This leads me to believe this is a pointer problem. However, the add_end() function works correctly. Ideally, I would like to print "0 1 2 3 4" after using the add_end(root, 0). Currently, print only gives me "1 2 3 4".

#include <stdio.h>
#include <stdlib.h>
//Create a node struct
typedef struct node {
//data
int val;

[Code] .....

View 11 Replies View Related

C/C++ :: Creating Many Push Buttons In Win32 API

Apr 13, 2014

I am pretty new to windows programming, but i get around with small applications.

Now I want to create a window with 10 push buttons, and was just wondering if there is some smart way, maybe in a loop to create multiple buttons.

Also, on a very populated window, is there a way to maybe have the WM_CREATE commands stowed away in another cpp file? Just for readabilty.

View 13 Replies View Related

C++ :: How To Randomize Answer Order With Push Back

May 8, 2014

How to now randomize the answer order within this code ? I only included the relevant piece of code of the task in question.

questions.push_back(
"Question [1]"
" "
"What port does HTTPS use ? "
"1. 25 "
"2. 443 "
"3. 23 ");

answers.push_back("2");

View 3 Replies View Related

C++ :: How To Avoid Using Backspace Character With Push Back

Mar 28, 2014

How to avoid using Backspace character with push_back? I'm making a software as an ATM, so when the user try to enter the password the user only sees *******, but when trying to delete it doesn't delete a character. It just adds a new one. Here's my code:

string password2 = "";
cout << "PASSWORD: ";
ch = _getch();
while(ch != 13) //character 13 is enter {
password2.push_back(ch);
cout << '*';
ch = _getch();
}

And also, I try to use pop_back(); but it doesn't work either.

View 6 Replies View Related

C# :: Windows Forms Listening To Github Push?

Jan 7, 2015

Currently developing a windows form application that will be used to listen to certain events in a github repo (mainly push).

I have been struggling with this for a few days now and still have no code to show for this apart from the popup that will show how to achieve this.

Its been mentioned to use webhooks? However I'm not sure if these work with windows forms?

I have looked at octokit and this doesn't look to achieve this either.

how to get a windows form to listen to a push event from github?

View 6 Replies View Related

C++ :: Copy Elements Of One Stack To Another - Push Method Not Working

Oct 27, 2014

I am trying to write a method (copyStack())that copies the elements of one stack to another. So I am using a Type variable and a while loop, assigning the top of the first stack to the variable, and then using the push method to push the Type variable into my second stack (then poping the first stack). However, whenever it comes time to print the second stack (the one I am trying to copy into), nothing shows up. I know that the program is reaching the copyStack function, and I know that when I put a regular string in for the Type variable, it passes that string along. But for some reason, when I use the variable, nothing happens! Here's what I've got...

header file containing stack manipulators:

//Header File: linkedStack.h

#ifndef H_StackType
#define H_StackType
#include <iostream>
#include <cassert>
using namespace std;

[Code] ....

View 3 Replies View Related

C++ :: Vector Of Pointers - Push Back Objects / Constant Parameters

Apr 11, 2014

I have a class called Question:

#include <string>
#include <vector>
using namespace std;
class Question {
string title;
vector<Thing*> posAns;
vector<Thing*> negAns;

[Code] ....

error: no instance of overloaded function 'std::vector::push_back()' matches the arguments list
argument types are (const Thing *)
object type is: std:: vector<Thing *, std::allocator<Thing *>>

So it cannot be constant, what if I just leave it non-constant? Will it be safe?

View 2 Replies View Related

C++ :: Using Vector Push Back Function To Output Contents Of Vector (similar To Array)

Feb 9, 2015

How to output vector contents using the push_back function. My program reads in values just fine, but it does not output anything and I've been stuck on why.

here is my code:

#include <iostream>
#include <array>
#include <vector>
using namespace std;
int duplicate( vector < int > &vector1, const int value, const int counter)

[Code].....

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







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