15,617,168 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Python questions
View Javascript questions
View C++ questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by SVPro (Top 16 by date)
SVPro
6-Mar-13 21:16pm
View
Hi man,
When you use FindWindow, that means you wait a Window appear on desktop, and then Set title by SetWindowText. It's not satisfied my requirement (Set text before window appear).
SVPro
19-Jun-12 5:48am
View
No, It named STACK, but it's just a NODE of STACK!
SVPro
19-Jun-12 3:44am
View
You mean I need to malloc for stack in main function?
SVPro
19-Jun-12 3:35am
View
Deleted
Thank Griff,
But could you please help me to show your example, I don't understand so much!
#include <stdio.h>
#include <stdlib.h>
typedef struct node
{
int data;
struct stack *next;
}NODE;
typedef NODE *STACK;
void init(STACK *st)
{
(*st) = NULL;
}
int empty(STACK st)
{
if (st == 0)
{
return 1;
}
else
{
return 0;
}
}
void push(STACK *st, int value)
{
STACK p = (STACK)malloc(sizeof(STACK));
p->data = value;
if (empty(*st))
{
p->next = NULL;
*st = p;
}
else
{
p->next = *st;
*st = p;
}
}
void pop(STACK *st, int *x)
{
if (!empty(*st))
{
*x = (*st)->data;
STACK p = *st;
*st = (*st)->next;
free(p);
}
else
{
printf("Stack is underflow!\n");
}
}
int main()
{
STACK *st;
int data;
push(st,8);
push(st,12);
push(st,15);
pop(st, &data);
printf("Top = %d\n", data);
pop(st, &data);
printf("Top = %d\n", data);
pop(st, &data);
printf("Top = %d\n", data);
getch();
return 0;
}
This is my code, It works, but if I remove all of 'pop' function will cause a run-time error
SVPro
18-Apr-12 5:00am
View
Hi SAKryukov,
Thank you, so how do we hook Alt + other keys (A, B, C, D, E.....)
I'm successful with Ctrl + others keys (A, B, C...) but NOT with Alt + others key.
And hook up to 3 keys combination, 4 keys combination......
Thank you
SVPro
10-Apr-12 5:33am
View
Hi OrginalGriff,
But when I try to change Ctrl key by Alt key (VK_MENU), it don't work???
Alt+A = not work
Ctrl+Alt+Del = not work
Once more, when I hook Ctrl + Alt only, when I press Alt key, after some seconds, I continue pressing Ctrl key, it's still hooked??
Please help me!
SVPro
10-Apr-12 4:51am
View
Thank OriginalGriff, it's good!
SVPro
24-Dec-11 0:45am
View
But it will be hidden every it shown? I don't want, I want it just hidden once time when form is loaded, thank you
SVPro
2-Dec-11 6:37am
View
Thank you E.F.Nijboer
Good solution, thanks
SVPro
30-Nov-11 6:03am
View
Dear Paul Watt,
Very impressive, your solution is good!
Thank you!
@All: I also appreciate your suggestions
SVPro
28-Nov-11 20:58pm
View
Dear Chuck O'Toole, SAkryukov
Before the window is hidden, I cannot move, maximize or close this window, I ONLY minimize it and it's hidden when I minimize.
SVPro
26-Nov-11 23:10pm
View
Please modify your link, I cannot access. Thanks
SVPro
26-Nov-11 23:09pm
View
Thanks @SAKryukov about useful information, I will investigate about Timer later
SVPro
13-Nov-11 1:56am
View
I'm using Dev-C
SVPro
13-Nov-11 1:18am
View
Where's Psapi.lib?
I added Psapi.dll from system32 but there's nothing, it's the same error
SVPro
13-Nov-11 0:16am
View
Thank Paul,
but there is a linking error: [Linker error] undefined reference to 'GetProcessImageFileName' (Dev-C)
I included "psapi.h" but above error still appear.
Show More