C# :: Windows Phone 8.1 Auto Lock Screen Code

Mar 6, 2015

Auto lock screen coding for windows phone 8.1.

View 2 Replies


ADVERTISEMENT

C Sharp :: How To Remove Ads And Add More Space (Windows Phone)

Aug 18, 2013

I have made a new Windows Phone App and I would like there to be two versions: one without ads (79p) and one with ads (free). I have sorted out everything expect one issue. I collapse the advert if the app is in the full version but the rest of the page stays the same. How do I move the 'content panel' after the advert is collapsed?

View 1 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++ :: Program That Needs Auto Start At Windows Startup - Adding Registry Entries?

Jan 18, 2012

I am developing a program that needs auto start at windows startup. For that I need to add Registry entries. Also the program needs to read some registry keys. What are the functions i need to do these.. Simply I need to

check if the startup key already exists
add a new key if it doesn't exist
read a key values

View 7 Replies View Related

Visual C++ :: On Screen Keyboard Error On 64 Bit Windows 7

Dec 6, 2013

By using visual studio 2010, I have problem calling up on screen keyboard using line below for Windows 7 64 bit.

WinExec("OSK.EXE", SW_SHOW);

However, it is working fine on windows XP 32 bit. How to call up on screen keyboard for 64 bit windows?

Code:

int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) {
int nRetCode = 0;
HMODULE hModule = ::GetModuleHandle(NULL);
if (hModule != NULL) {
// initialize MFC and print and error on failure

[Code] ...

View 2 Replies View Related

C++ :: How To Generate Auto ID (or Auto Number)

Feb 16, 2012

This code is for (hospital management system).

This code allow you to add patients.

There are two types of patients. which is:
1. Normal patient.
2. Critically ill patient.

once you added any patient. You will be able to show all patient using "ShowAllPatient;" method. -> i want the Auto-increment ID Number to appear for each patient has been added.

And you will be able to call a patient to provide a hospital services for him/her using "GetNextPatient;" method.

I need to generate an Auto-increment Number for each (patient) has been added. (Auto-increment Number) but it just should be different for each patient. For example the first patient will have 1, The second patient will have 2. etc. The Auto-increment number should appear for each patient.

View 14 Replies View Related

C++ :: Converting UNIX Code To Windows

Aug 15, 2013

trying to convert some C++ code written for LINUX/MAC to run on windows. I think signal handling is not as developed for Windows but the error I am getting is that the struct I am trying to use is undefined. I have #include <csignal> at the top and the line giving the problem simply says "struct signal act;". Any pointers or is signal a LINUX native command?

View 2 Replies View Related

C/C++ :: How To Use Windows Command-line Commands In Code

Sep 18, 2012

In Windows, if you open a command prompt, there are a bunch of keywords like, 'chdir', 'copy', ...

What I'm trying to figure out is how to use that COPY command in c++ code. I want to use the COPY command with the options (/a, /b, ...).

View 3 Replies View Related

Visual C++ :: Getting Exceptions On Windows 7 And 8 On Different Parts Of Code?

Feb 25, 2015

I'm Getting exceptions on Windows 7 and Windows 8 on different parts of the Code? Why this can be happening, why the difference in behavior?

View 6 Replies View Related

C++ :: Pacman Game - Move Smiley In Code Automatically And Stop Screen Flickering?

Dec 26, 2013

So far I have managed to write the code for a simple game (resembling to "Pacman") :P. Now what I want is to move the smiley in the upper left-hand corner of the map "automatically" when the program runs and also want it to change it's direction to up or down when it touches the wall.

Also the screen is flickering when the program runs (due to re-printing the whole array?). I want to stop this flicker. Somebody suggested to use 'gotoxy' function.

Here's my code :

#include <iostream>
#include <conio.h>
#include <stdlib.h>
using namespace std;
void display (char array [10][25] , int row , int column) {

[Code] .....

View 8 Replies View Related

C++ :: How To Install Glew For Code Blocks On Windows Vista

Apr 29, 2013

I downloaded glew 1.9.0 files and dragged the lib, include, and bin of the glew into the mingw folder within Code Blocks. I don't know if this is the right thing to do I don't understand how this stuff works. Anyway, I tried to compile my openGL 3.0 program that uses glew and I got this error: The procedure entry point _glewBindArray could not be located in the dynamic link library glew32.dll, How do I install glew properly?

View 1 Replies View Related

Visual C++ :: CryptUnprotectData Failing When Code Compiled On Windows 7?

Sep 24, 2012

I have a C++ code that reads the database password from the registry and decrypts it using CryptUnprotectData. We have to deploy this application on a Windows 7 machine.

When I compile my code on Windows XP and run it on the test Windows 7 machine, it works absolutely fine. When I compile the same code on my laptop having Windows 7 and run it on the test Windows 7 machine, CryptUnprotectData fails with GetLastError() return '87'. If I run this application on my own laptop with Windows 7 on it, it again works fine probably because my laptop has a lot of things installed including Visual Studio and all the service packs etc.

I believe I have missed out installing some dependency on the test Windows 7 machine but I am unable to figure out what is that. What is it that's making the Windows XP compiled code running fine on the test machine and not the code that's compiled on Windows 7.

Here is the call to CryptUnprotectData in the code:

if (CryptUnprotectData(
&cipherText,
NULL,
NULL, // Optional entropy
NULL, // Reserved
NULL, // Optional PromptStruct
CRYPTPROTECT_UI_FORBIDDEN,
&plainText))

[code]....

View 10 Replies View Related

C Sharp :: How To Code Array In Windows Form Using Listview In Visual Studio 2008

Oct 5, 2013

This is my problem in my subject programming but i dont how to use Array in windows form ... If i run my code i want my Data in listview would not be disappear if i close the form ...?

View 1 Replies View Related

C :: How To Define The Lock Detect

Feb 24, 2013

It is my first time in use lock detect so i didn't now how to start.

how to define the lock detect?

View 4 Replies View Related

C/C++ :: Lock Knob - Function To Tell If Going Clockwise Or CCW

Aug 30, 2014

For a larger program I need a way to tell if a "lock knob" is going clockwise or counterclockwise. So below, I have my MoveLock function (That our teacher actually gave us to use) that reads inputs from the arrow keys and displays them. But what I need is to be able to count each time its moved in the correct direction and to reset the count it if it has gone in the other. Right now I'm just testing if it's going clockwise. I thought to solve this by resetting the count if it was less than the returned value from MoveLock (which is a count to compare to the former). Currently, it only displays the current position and the count as -1 or 1.

#include <iostream>
#include <windows.h>
#include <iomanip>
using namespace std;
HANDLE inKeys = GetStdHandle(STD_INPUT_HANDLE);
HANDLE screen = GetStdHandle(STD_OUTPUT_HANDLE);

[code]....

View 2 Replies View Related

C :: How To Apply Mutex Lock On Shared Memory

Jul 11, 2014

I was trying to put mutex lock on shared memory but my code is not working. What I want is that if some process is putting something on shared memory segment, other process should not be able to access that segment. For testing , I create a server program which put data in shared memory and client program which access the data.

To test it, I put break point after:

pthread_mutex_lock(&(init_lock));

But I see that client program was able to access shared memory.

Below is code:

Server: Code: pthread_mutex_t init_lock = PTHREAD_MUTEX_INITIALIZER;
main()
{
char c;

[Code].....

View 1 Replies View Related

C :: Implement Mutex Lock Using Atomic Hardware Instruction

Mar 25, 2014

Consider how to implement a mutex lock using an atomic hardware instruction. Assume that the following structure defining the mutex lock is available:

Code:

typedef struct {
int available;
}
lock; (available == 0)

indicates that the lock is available, and a value of 1 indicates that the lock is unavailable. Using this struct, illustrate how the following functions can be implemented using the test and set() and compare and swap() instructions:

void acquire(lock *mutex)
void release(lock *mutex)

Be sure to include any initialization that may be necessary.

View 2 Replies View Related

C/C++ :: Implementation Of Stress Test For Lock Free Queue

Aug 31, 2014

I am trying to compare performance of different lock-free queues, therefore, I want to create a stress test - which includes pushing/popping user-defined pre-built objects to and from the queue. My question is how can perform the stress test with pushing and popping objects instead of pointers to object like I have done in my code. What is the different in terms of performance of pushing/popping objects Vs. pushing/popping pointers.

#include <cstdlib>
#include <stdio.h>
#include <string>

[Code]....

View 3 Replies View Related

C# :: Custom Dialog Resizer With Aspect Lock CheckBox

Jan 20, 2015

I am working on a paint program (already quite well developed) and I have a 'Resize' option in my Menu. When pressed it activates a custom dialog for resizing the image with 2 numeric up/downs to adjust width and height. It all works perfectly. But I want to include an 'Aspect Lock' checkBox like a professional program would have. It should immediately change both values as you adjust either one.

Here's where I am totally stumped! Of course I have tried and tried various codes, but nothing works properly. My values jump erratically or won't change at all. I wonder if trying to change the value of one numeric up/down while inside the code block for changing the value of the other one has got them screwing with each other somehow. Any example code that could accomplish what I'm trying to do?

View 5 Replies View Related

C Sharp :: Lock Thread Till Execution Is Finished?

Jun 26, 2012

I have a event called dataTree_AfterSelect in which I have some code which I want to execute as atomic operation like this:

protected void dataTree_AfterSelect(event params)
{
code that should not be disturbed
}  

What is happening now is, I am able to select another node of tree & in that case another execution of above function starts causing a garbled result.

What I want is, user should be able to click on tree node but execution of code block should only start after first execution is totally over.

View 4 Replies View Related

Visual C++ :: How To Lock In A Single Skeleton In Microsoft Kinect SDK V 1.7

Mar 25, 2013

I m trying to lock a single skeleton using Microsoft Kinect SDK v 1.7 . My requirements are

•First lock a single skeleton.
•Check the tracking state of the of the locked skeleton.
•If the tracking state of the locked skeleton is NOT Tracked,then
• ----->check for the next closest skeleton
•----->lock this skeleton.

How do I do this using vc++2010. The code which i tried is given below.

Code:
TrackSingleSkeleton(NUI_SKELETON_FRAME* pSkeletonFrame) {
DWORD dwTrackingIDs[NUI_SKELETON_MAX_TRACKED_COUNT]={0, 0};
m_pNuiSensor->NuiSkeletonTrackingEnable(m_hNextSkeletonEvent,NUI_SKELETON_TRACKING_FLAG_TITLE_SETS_TRACKED_SKELETONS);

[Code]....

View 1 Replies View Related

C/C++ :: Adding Two Phone Agendas Together

Apr 4, 2015

I got this problem where I need to create a phone agenda where every name coresponds to a phone number. I decided to create this as a 2 dimensional string array.

But what I do not know how to do is:

I need to create 2 agendas(created in main(ag1 and ag2)) and then add them together to create one big agenda that contains the members of ag1 and ag2.

#include "stdafx.h"
using namespace std;
class Agenda{
string date[20][20];
public:
Agenda();
void afisare();

[Code] ....

View 1 Replies View Related

C/C++ :: Better Way To Parse And Format Phone Numbers?

Sep 3, 2014

I'm a student. I've complete an exercise where the goal is to parse some user input to output phone numbers using EXACTLY this style (not including the quotes): "1-888-8888".

Some rules that I've set for my parser are,

1) the phone number can be mixed in with other text, e.g. "My number is 38888888" or "1asdfk8888888" and

2) the first number found must be a valid calling code (1-9).

I wanted the parser to be flexible. Is this nesting too deep?

std::string format_phone_num(std::string &s) {
std::string formatted_num = "";
bool call_code_found = false;
short num_count = 0;
for (unsigned int i = 0; i < s.length(); i++)

[code].....

View 4 Replies View Related

C :: Phone Book Saving To File And Retrieving

Jul 14, 2013

I am supposed to make this phone book save to a file and then be able to retrieve it.

Code:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct Phonebook_Contacts
{
char FirstName[20];
char LastName[20];
char PhoneNumber[20];
} phone;
}

[code]....

View 4 Replies View Related

C :: User Can Input Phone Number In Any Of Formats

Jun 18, 2013

I'm having a bit issue with ispunct in my function. The user can input a phone number in any of the formats below:

4147778888
(414)7778888
(414)777-8888

The program will only print out:

41447778888

What I am trying to do is accept any integer and parentheses. If the user inputs anything else, the program will display an error message. Right now, parentheses displays an error which is obvious but I'm wondering if there is a way I can allow a parentheses to be entered but not any other symbol. ex: . , : ; " '

Code:
void getPhoneNum(){
// Local Declarations
char string[14];
char* tokPtr;

[Code] ....

View 6 Replies View Related

C :: Generate Words From User Input (Phone Number)

Aug 13, 2013

The basic idea of this exercise is to generate words from a user-input, seven-digit number(a phone number). The code runs, but for some reason, I can't get it to print the numbers into the file.

Code:
/*Write a program that will generate a word based on a randomly generated, seven-digit number. there should be 2187 possible words. Avoid "phone numbers" that begin with 0 or 1*/

#include<stdio.h>
#define PHONE 7
void wordGenerator(int number[]);
void wordGenerator(int number[]) {
//loop counters for each digit in the number

[Code] ....

View 3 Replies View Related







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