I have a main WinForm that I want to press a hotkey and show and hide the form. I can press Insert and hide the form and I see its icon in my Win7 task bar but when I press Insert again it doesn't show. Is my coding logic wrong to make it work? Maybe when its hidden the Insert key isn't being 'seen'? Although the code I am using I got somewhere on the internet that says it will work at the app level.
virtual bool PreFilterMessage(Message% m) {
// Detect key down messages.
if (m.Msg == WM_KEYDOWN) {
Keys keyCode = (Keys)((int)m.WParam) & Keys::KeyCode;
I want to hide a terminal appliction or console application without using WinAPI programming or <windows.h> or something like "ShowWindow(hwnd_win,SW_HIDE);
I'm making a Project on a Travel Agency and I need to hide the password entered by the user! I am working on Xcode 5.1.1 -> Command Line Tools -> C++ on my MacBook Pro! Here is what I've tried --
string pass =""; char ch; cout << "Enter pass"; ch = getchar(); while(ch != 13){//character 13 is enter
[Code]...
But in the first case the display is -
//Assuming the password is Hello Hello ******
And in the second its giving me 3 errors -
1. Apple Mach-O Linker(Id) Error "_stdscr", referenced from:
2. Apple Mach-O Linker(Id) Error "_wgetch", referenced from:
3. Apple Mach-O Linker(Id) Error clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am currently working on data abstraction. I was able to write a class (a simple clock, see Malik's C++ book, Chapter 12 for reference). As you can imagine, I am quite new to programming and C++.
Well, now I created a header file clock.h that includes the class definition and function prototypes as well as a implementation.cpp file with the implementation details of the class.
I managed to include all this in my program.cpp and compile it (using dev c++). Everything works exactly as I want it to.
So now my question is, how can I create ... I am not sure how it is called ... a header, but without revealing to the user how the functions are implemented. Basically the user should get a file (the object code of the header + implementation.cpp?) and simply #include it into his own program.
So instead of giving the original header + implementation.cpp to the user I want to hide how my class does its stuff and instead just provide some file that can be included and then used in a program (I will write a documentation how to use the class).
I am not sure how all this is called, I am sure there is some name for it...
I want to write a small game library that uses GLFW.
So I have for example a window class that uses GLFW functions.
To do that my window class must include the GLFW header files.But I don't want, that if I use my library later and I include my window class, that all GLFW functions are included, too.
How I can prevent this and hide GLFW from users of this library completely, so they theoretical don't notice that this library use GLFW ?
And a second question, is it possible, if I export my game library statically that the GLFW lib files are hidden in my own lib files, so that I have finally only one lib file that is needed to use my library ?
I have two Form Employee and Instructor, here Employee is super class of instructor.
public class Instructor: Employee { //Instructor class }
I am able to access all property of Employee inside instructor class but with these some textbox and button design inside Employee design is also getting inherited inside Instructor design and i don want this and i want to maintain the parent-child relationship between Employee and Instructor.
So basically, I started out with each wizard == 1 winform, but then I found another way to do it by making the content of each wizard step a user control, then say, on initial deployment, it load usercontrol1, then when i click next, the panel hide usercontrol1 for usercontrol2 and so forth. Would it be feasible to create all usercontrols (all the wizard step) and add them in an array, then i can load them by index?
So I am upgrading the system from 3.5 .NET to 4.5.1 and fixing any bug that I could find. Long story short, I run into an issue that basically tell me it couldn't find the images in the resource file. I figured out a work around, but first I have to set the picture box or background Image in design time to none. I ran into this Properties Windows while changing the value of picturebox for my user control saying: Property value is not valid. Object reference not set to an instance of an object. This usercontrol is taken from another user control from a different project. Basically, we are reusing it.
I have the following code. I have hardcoded the x and y values to test. And for some reason for the point (0,-0.5) it plots (1,-0.5) . What is going on, because if you try other values then the graph displays correctly.
foreach (var grp in q) { point = new DataPoint(); Sum1 = grp.Sum1 > 2 ? 2 : grp.Sum1; Sum1 = Sum1 < -2 ? -2 : Sum1;
I was created winform application with sql data base, after i created it i was converted to the installer file,for the other users but when they run the application did not connect to the database, how i fix this stuff...?
I am writing a program to hide files behind other files using Alternate Data Streams in Windows NTFS file systems.
The program is as follows:
Code:
#include <stdio.h> #include <stdlib.h> int main(void){ char hostfile[75], hiddenfile[75], hiddenFileName[15] ; printf("Enter the name(with extension) and path of the file whose behind you want to hide another file: "); scanf("%75s", hostfile);
[Code]...
The complier is showing error as "Extra Perimeter in call to system" but I am not getting where?
I want to show a frame of a gif image. I searched and found that the following code should work, but it doesn't work. it detects the number of frames correctly but it shows the whole frames of gif instead of the specified frame.
Image[] frames = new Image[36]; Image GG = Image.FromFile(@"C:UsersAdministratorTEST C#TEST2frame2chef.gif"); FrameDimension dimension = new FrameDimension(GG.FrameDimensionsList[0]); // Number of frames int frameCount = GG.GetFrameCount(dimension); label1.Text = frameCount.ToString(); // Return an Image at a certain index GG.SelectActiveFrame(dimension, 1); frames[1] = ((Image)GG.Clone()); pictureBox1.Image = frames[1];
A program is a set of all subsets of this part of the show. Users can enter a number., For example, if n = 2 the output looks like this:
{} {1} {2} {1,2} or for n=3 we have: {} {1} {2} {3} {1,2} {1,3} {2,3} {1,2,3}
meantime this program should be solved with tow way. recursive function and Non-recursive.Can also be used in solving the problem of bitwise operations.
I am working from my "ansi c" book by steven lawlor, page 73 program 2. write a program that accepts two numbers from the keyboard and prints the following information.
variables first second execution First number ? 7 Second number ? 2 the second goes into the first 3 times with a remainder of 1. the quotient is 3.5.
Code: #include <stdio.h> main() { int first, second; scanf(" %1i %1i", &first, &second); printf("First number ? %1i
[Code] ....
//I included this as I had some error message come up // before, not sure if this is correct though? } it shows what is expected but I cant get the 3.5.
I have tried %f and variations of width/precision but still not luck. Also, when I click on the application and put in the variables I press enter, the program executes and disappears so I cant see the result. how do I get the program to stay up until I want to get rid of it?
I have been given an assignment which I have big troubles with. The assignment is:
"If I ask you “When is the weekday of the 2nd of August in 1429?”, you can answer immediately with your program to my question.
The initial value for the 1st of January in (the year) 1 will be sought by inducing, for example the crucifixion of Jesus is said to be held on Friday, the 3rd of April, AD 33."
I would like to know if there's a way to show at least two numbers in the output instead of just one. For example: instead of showing 4 it shows 04. Its for a console application.
i'm writing a C code, can it can be compiled, however everytime I run this program, after I typed in the number the system will show Segmentation fault (core dumped).