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
ADVERTISEMENT
Apr 25, 2014
What is Function call Overhead and Function Call Stack?
View 2 Replies
View Related
Jan 13, 2014
I am looking for C-libraries that would do numerical tasks with special emphasis on numerical differentiation of arbitrary order, numerical integration (Monte Carlo etc.) and interpolation. I would be grateful if you can provide me with some resources. By the way I already have Numerical Recipes but would like to have another resource at hand.
View 11 Replies
View Related
Feb 5, 2014
Looking for data fitting routines?
I want to fit datapoints with a sinus or with a linear fit.
View 3 Replies
View Related
Aug 14, 2014
Is it possible to call VC++ routines using a Win32 DLL form fortran 77??
View 3 Replies
View Related
Oct 18, 2013
I am trying to separate out particular sets of routines into a separate implentation and header file which can be compiled independently to the main program such that the program source consists of a file called customers.h, customers.cpp, and exercise_1_5.cpp
Each of the files should contain the following:
customers.h should contain the definition of the customer structure and the declaration of print_customers.
customers.cpp should contain the implementation (or definition) for print_customers.
exercise_1_5.cpp should contain an include of customers.h and the main program.
This is my original code from a single .cpp file
#include<iostream>
#include<string>
using namespace std;
[Code].....
The error messages I am getting from the compiler on the customers.cpp file:
C:UsersBenDocumentsCS264lab3customers.cpp:5:22: error: variable or field 'print_customers' declared void
C:UsersBenDocumentsCS264lab3customers.cpp:5:22: error: 'customer' was not declared in this scope
C:UsersBenDocumentsCS264lab3customers.cpp:5:32: error: 'head' was not declared in this scope
View 6 Replies
View Related
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
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
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
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
Nov 24, 2014
My goal is to know if Windows is installed on an active disk partition.
View 8 Replies
View Related
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
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
View Related
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
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
Feb 21, 2014
my code is already finished. im using parallel queues and im having problem in the queue customer name if i dont input space the code is fine but if i input space in the name it skips the bagcode and immediately jump to the number of bags what can i do to include the white spaces in the customer name and push it to the queue?
here's my code
#include <iostream>
#include <string>
#include <queue>
#include<conio.h>
using namespace std;
int main() {
queue<string> customer;
[code].....
View 3 Replies
View Related
Feb 21, 2013
I am trying to include a function from a header file named headerfunt.h . The code of my header file is
Code:
#ifndef HEADERFUNCT_H_INCLUDED
#define HEADERFUNCT_H_INCLUDED
#include <iostream>
[Code]....
But, while compiling it says abs was not declared... I have included the file.
View 2 Replies
View Related
Feb 7, 2015
I'm not sure if I was some weird syntax problem or the way Ive ordered things. But a conditional statement I have created is not performing the way I want it to.
else if ( !( xDif == -1 && yDif == 1 && prevXDif == 1 && prevYDif == 0 ) )
{
foundArr[lastX][lastY] = 1;
}
When debugging, the condition was activated with the values:
xDif = -1
yDif = 1
prevXDif = -1
prevYDif = 0
However, I want the condition not to follow through as I am using the 'NOT' or '!' operator to negative the entire statement. For some reason, the line of code within the else if is still running.
View 2 Replies
View Related
May 3, 2013
How to include a jpeg file into a c++ program??
View 2 Replies
View Related
Oct 16, 2013
my programme showing error 'unable to open inclde file ****' i fallowed the general procedure i.e., options-->directories--> ( inclde proper path) still not working..
View 2 Replies
View Related
Jul 16, 2013
I want to read/write the excel sheet using C++. how to add the excel library or include the headers ?
Inot possible than is there any other way to work on Excel using C++.
View 4 Replies
View Related
Aug 16, 2012
I've downloaded a file that I need to include in a new project. It's called phidget21.h and it's sat on my desktop. I've tried copying it to lots of various places. But I still can't get a new source file to compile. I think I haven't copied it to the right place yet. Where should I have copied it to?
#include <cstdlib>
#include <iostream>
#include <phidgets21.h>
[Code]....
View 3 Replies
View Related
Oct 13, 2012
msdos is present on my computer but it cannot include the header files but when i check all files are present but they still cannot include????????
View 1 Replies
View Related
Aug 23, 2014
I have two files that I want to compile:
main.cpp
Code:
#include <iostream>
using namespace std;
int ReadNumber();
void WriteAnswer();
[Code] .....
The compiler complains:
io.cpp||In function 'int ReadNumber()':|
io.cpp|3|error: 'cin' was not declared in this scope|
io.cpp||In function 'void WriteAnswer()':|
io.cpp|7|error: 'cout' was not declared in this scope|
io.cpp|7|error: 'endl' was not declared in this scope|
In io.cpp file, should I put the two statements ("include <iostream>" and "using namespace std") at the top, outside of the functions?
Or should I put the two statements inside each of the functions?
View 4 Replies
View Related
Oct 2, 2014
I'm a beginner with C and wonder how to include single header files (*.h) in to my project. I mean header files which are not included to the standard installation package.
I thought it would work if I just copy the newheader.h file in to library folder c:MinGWinclude, but it didn't work. Is there some kinf of GCC -command or procedure to add these single header files or how it should work?
All of those standard header files are working well and I don't have any problems with them.
Environment I'm using is MinGW+GCC+Win7.
View 7 Replies
View Related
Jun 14, 2014
I have four source files. The main source file includes two other source files. The two other source files both include the fourth source file. In the fourth source file I have an include guard. Will the code from the fourth source file exist in two locations in the compiled code? Is this something that is compiler dependent? An example of this is shown in the code below.
Code:
// filename: main.c
#include "source1.c"
#include "source2.c"
[Code]....
View 4 Replies
View Related