C/C++ :: How To Use Register Selectively

Feb 15, 2013

I am looking for a way to create a virtual registry and force only certain programs to use this one? Or to create a virtual Registry but which i can shut down (this registry will be only used while i activate it)?

Or redirect all querys to another place in the registry I've seen similar issues. But there is no answer how to use the register selectively!

View 16 Replies


ADVERTISEMENT

C++ :: Ifstream Selectively Read In Information?

Nov 13, 2013

If I have a data file.dat like this, for example:

...
other information
...
physics:
4,5,6,7
...

line:
(4,2), (2,4)

line:
(1,2), (2,3)

...
...

I want to design a class and corresponding code so that every time when it reads "line:" for the file.dat , it will push_back a new line into the line_t vector, and each time when it encounter physics it will put the values to physics, How can I implement this?

every data in file.dat is useful, they need to be read into different class type. How can I implement this?

class line_t {
public:
vector<point_t> P(2, point_t());

[Code].....

View 3 Replies View Related

C/C++ :: Selectively Choose Only Numbers Greater Than 1000 In Array?

Aug 4, 2013

I am doing my assignment that will calculate total tax amount per day and per week and finally sum those up.

One of the requirement is to filter out any number in the array that is less than 1000 to be assigned a value of zero instead of the stored value so as not to add it in the calculation. How to fulfill this requirement.

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

C :: Using File As Accumulator Register

Dec 4, 2013

I need to use a file as an accumulator of very large size.

I want to write one bit at a time. I have an iteration engine that applys so logic to either add 1, do nothing, or subtract 1 from the array, but it has to be much larger when dealing with multi-GB files.

So I either need to & the 8bit to 4K array value to a file or write it it one bit at a time.

But it is not that I want to write sequential bytes, I need the file to be written so it acts as accumulator.

I know its in front of my face, but I need to rethink this

View 1 Replies View Related

C++ :: How To Read Pixels From X / Y Coordinate Using VGA Register Values

Aug 4, 2013

How to read pixels from an x,y coordinate using the VGA register values?

byte readVRAMdirect(VGA_Type *VGA, uint_32 start, uint_32 offset) //Used in 256 color mode!
{
if (!VGA->VRAM_size) return 0; //No size!
return VGA->VRAM[SAFEMOD((start*4)+offset,VGA->VRAM_size)]; //The full protected offset!

[code]....

getVRAMScanlineStart(VGA,y) gives the offset register multiplied by 2 (shl 1), multiplied with the current memory address size (byte, word or dword) multiplied by the scanline. 256-color mode is already working. GETBIT gives a bit #(0-7) of a specified byte.

writeVRAMplane & readVRAMplane are used by the CPU to write data to VRAM (address 0xA000:xxxx-0xBFFF:xxxx), determined by the memory read and write modes(working) and the odd/even, planar or chain4 enable mode (working).how to get the 16 color and interleaved shift mode working?

ZIP with screen captures: URL....

View 2 Replies View Related

C++ :: Exceeded 32bit Register Value Exceeds 4 Bytes

May 28, 2014

My question, What happens when with the 32 bit register value exceeds 4 bytes while programming in c++? Im interested in encryption.

Im programming and doing some calculations. The hex value "0xFA062F2F" multiplied by "6D" sends it over "0x6A74A21703", which exceeds 32bit.

My problem is while programming in C++, I do some calculations such as above, and I get the hex value "0xC0000001" which should be "0x6A74A21703". I made sure that I use long long as my interger type.

How can I overcome this problem with programming.

View 3 Replies View Related

C++ :: Cash Register Program - Reinitializing Values With Subprograms

Dec 7, 2014

I'm trying to make a cash register program, but first I need to reinitialize ones, fives, tens, and twenties to their correct dollar amount. However, whenever I try to pass the user inputted values to the function that calculates the correct dollar amount, it just prints the same number.

Here's my code:

#include <iostream>
#include <string>
using namespace std;
//dollarAMT - recalculates the actual dollar amount
void dollarAMT(int ones, int fives, int tens, int twenties){

[Code] ....

View 2 Replies View Related

C/C++ :: Cash Register Program - Reinitializing Values With Subprograms

Dec 7, 2014

I'm trying to make a cash register program, but first I need to reinitialize ones, fives, tens, and twenties to their correct dollar amount. However, whenever I try to pass the user inputted values to the function that calculates the correct dollar amount, it just prints the same number.

Here's my code:
#include <iostream>
#include <string>
using namespace std;
//dollarAMT - recalculates the actual dollar amount
void dollarAMT(int ones, int fives, int tens, int twenties){

[Code] ....

View 1 Replies View Related







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