|
You can also use hooking to do the same.
Search for PasswordSpy by Brian Friese in codeproject for an example.
|
|
|
|
|
Lord Kixdemp wrote:
Is there a way to mess with other application's controls? I need to capture input from a text box from a specific program.
WM_GETTEXT and WM_GETTEXTLENGTh will help!, and for reteriving Window Handle of particular Control! use FindWindow Api
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Long time no see! Been busy with work?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->ßRÅhmmÃ<-·´¯`·.
|
|
|
|
|
brahmma wrote: Long time no see! Been busy with work?
Changed my job. so busy learning new stuff!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
|
Lord Kixdemp wrote: Windows Calculator told me I will die at 28.
how to calculate that??
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Since everyone keeps asking this, I'll answer it.
Year of birth - 1337: convert to hex: remove letters
1989 - 1337 = 652: 28C: 28
Windows Calculator told me I will die at 28.
|
|
|
|
|
Lord Kixdemp wrote: Year of birth - 1337: convert to hex: remove letters
1989 - 1337 = 652: 28C: 28
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I am such a skilled mathematician.
Windows Calculator told me I will die at 28.
|
|
|
|
|
typedef struct node{char name[20];struct node *link;}stud;
stud * creat(int n)
who can explain it for me?the more amply the better
|
|
|
|
|
What are the boxes for? xD
Windows Calculator told me I will die at 28.
|
|
|
|
|
youbo wrote: who can explain it...
What?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
node is a structure that looks like a link list node.
typedef is used to give it a new name, that is stud.
Creat is a function and it's return type is a pointer to stud.
This is all, I or anyone else can tell you by looking code above.
Please be specific while asking questions.
|
|
|
|
|
This is C code and the typedef tells you that you can declare a variable of type “struct node” by simply typing “stud” instead of “struct node”. The “creat” function allocates, and initializes a new “stud”, which will need to be freed latter. Why an “int” is passed to it I have no idea, because it has nothing to do with the “node”, unless “creat” is doing more than just creating a new node.
Oh, by the way, the name of the function should be “create” or something similar, because “creat” is an East Indian herb.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Hello all
I looked at the tutorials about using app.config for VC++ (i think) but they give me errors...like system is not declared or something like that(sorry i'm in a hurry)
I've been googling for like 8 hours total now and still won't work
Can anyone explain how to link to app.config in VC++ Pro 2005? I know how to create the xml in proper format.
Thanks.
|
|
|
|
|
can you tell me what you are trying to do? i am not sure what you mean by ap.config?
---
Yours Truly, The One and Only!
devmentor.org
Design, Code, Test, Debug
|
|
|
|
|
app.config is application configuration file based on xml
i'm trying to set variables from that file but the codes i tried don't work, i need the codes that'll work :P
|
|
|
|
|
LOL I was thinking linking in terms on the compiler, not linking in the terms of usage!!!
---
Yours Truly, The One and Only!
devmentor.org
Design, Code, Test, Debug
|
|
|
|
|
I have a app with a icon in the status bar. I would like to show a popup window above my icon ( just like with MSN messenger when you receive a mail and you are connected ). I would like "if possible" to have a solution that would work with all windows from 98 to Vista. What's the easiest way to do that ? Is it possible to show the info bull of the NOTIFYICONDATA structure without having the mouse go over the icon. This would be I think a easy solution...
|
|
|
|
|
|
|
Is there a way to call a stored proc to populate a DAO recordset? I've tried the following, but it keeps failing on the Open statement.
CDaoRecordset *pSet = new CDaoRecordset(m_pDB);<br />
CString strSQL;<br />
strSQL.Format(_T("exec sp_GetInventoryForVendor %d"), lVenderID);<br />
<br />
try<br />
{<br />
BeginWaitCursor();<br />
pSet->Open(dbOpenSnapshot, strSQL, dbSQLPassThrough);<br />
<br />
if(!pSet->IsEOF() && !pSet->IsBOF())<br />
{<br />
pSet->MoveFirst();<br />
while( !pSet->IsEOF() )<br />
{<br />
...
Does the Stored Proc need to have the recordset specified as an OUTPUT parameter?
-- modified at 8:51 Monday 24th September, 2007
|
|
|
|
|
I am looking for a RTF to HTML converter. Specifically XHTML to embed inside XML files.
I have bought and tried Easybyte.com RTF2HTML converter. But it is extremly buggy, I have been reporting bugs to the guy, he fixes one can causes 4 new ones! So I am desperatly looking to find a new RTF2HTML converter.
My search has only let me to 2 or 3 companies in Russia.
Anyone here use an RTF2HTML converter?
Thanks
AliR.
Visual C++ MVP
|
|
|
|
|
Dear friends...i've done a sorting program here...but i dont know to include another sorting algorithm .the algorithm that i would like to insert is selection sort
the algorithm tat i would like to insert
void selectionSort(int a[], int size)
{
int i, j, min;
for (i = 0; i < size - 1; i++)
{
min = i;
for (j = i+1; j < size; j++)
{
if (a[j] < a[min])
{
min = j;
}
}
swap(a[i], a[min]);
}
}
I need help of how to implement it in here
#include <iostream>
using namespace std;
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <stdlib.h>
#include <time.h>
typedef int dataType;
int innum[2000];
int size;
int number=0;
int num;
int i;
float b;
int assignment=0;
int compare=0;
int starttime, stoptime, timeused;
struct list
{
int info;
list*link;
};
list *first = NULL;
list *last = NULL;
list *newNode;
list *lhead = NULL;
list *lastnum; //last number
list *firstnum; //first number
list *current;
list *trailCurrent;
void linked()
{
list * newNode = new list;
newNode->info=num;
newNode->link=NULL;
if (first==NULL)
{
first=newNode;
last=newNode;
lhead=newNode;
}
else
{
last->link= newNode;
last= newNode;
}
}
void sort()
{
int tmp, index;
for (int firstnumber=1; firstnumber<size; firstnumber++,="" compare++)="" compare="" of="" number
=""
="" if="" (innum[firstnumber]<innum[firstnumber-1])
="" {="" tmp="innum[firstnumber];
" index="firstnumber;
" do
="" {
="" innum[index]="innum[index-1];
" index--;
="" }
="" while="" (index="">0 && innum[index-1]>tmp);
innum[index]=tmp;
assignment++;
}
cout<<"\nBelow Are The Sorted Numbers"<<"\n\n";
for(int j=0; j<size; j++)
="" {
="" cout<<innum[j]<<"\t";
="" }
=""
="" stoptime="clock();
" timeused="stoptime" -="" starttime;
="" cout="" <<="" "\ncpu="" time:="" "="" 1000="" ms."="" endl;
="" system("pause");
}
int="" main()=""
{
="" float="" a;
="" cout<<"\n*********************";
="" cout<<"\n*="" 1.="" random="" 20="" *";
="" 2.="" 200="" 3.="" 2000="" 4.="" in="" order="" 5.="" 6.="" 7.="" reverse="" 8.="" 9.="" cout<<"\n*********************";
="" cout<<"\nplease="" choose="" as="" above:="" ";
="" cin="">>a;
if (a==1)
{
size=20;
ifstream input ("random20.txt", ios::in);
cout<<"\nBelow Are The Unsorted Numbers\n\n";
for ( i=0; i<20; i++)
{
input>>num;
innum[i]=num;
cout<<num<<"\t";
}=""
="" sort();
="" cout<<"\nnumber="" of="" comparisons:\t"<<compare<<"\n";
="" assignment:\t"<<assignment<<"\n\n";
=""
="" if="" (a="=2)
" {="" size="200;
" ifstream="" input="" ("random200.txt",="" ios::in);
="" cout<<"\nunsorted="" numbers\n\n";
="" for="" (int="" i="0;" i<200;="" i++)
="" {
="">>num;
innum[i]=num;
cout<<num<<"\t";
}="" sort();=""
="" cout<<"\nnumber="" of="" comparisons:\t"<<compare<<"\n";
="" assignment:\t"<<assignment<<"\n\n";
="" }
="" if="" (a="=3)
" {="" size="2000;
" ifstream="" input="" ("random2000.txt",="" ios::in);
="" cout<<"\nunsorted="" numbers\n\n";
="" for="" (int="" i="0;" i<2000;="" i++)
="" {
="">>num;
innum[i]=num;
cout<<num<<"\t";
}=""
="" sort();="" cout<<"\nnumber="" of="" comparisons:\t"<<compare<<"\n";
="" assignment:\t"<<assignment<<"\n\n";
="" }
="" if="" (a="=4)
" {="" size="20;
" ifstream="" input="" ("order20.txt",="" ios::in);
="" cout<<"\nunsorted="" numbers\n\n";
="" for="" (int="" i="0;" i<20;="" i++)
="" {
="">>num;
innum[i]=num;
cout<<num<<"\t";
}=""
="" sort();="" cout<<"\nnumber="" of="" comparisons:\t"<<compare<<"\n";
="" assignment:\t"<<assignment<<"\n\n";
="" }
="" if="" (a="=5)
" {="" size="200;
" ifstream="" input="" ("order200.txt",="" ios::in);
="" cout<<"\nunsorted="" numbers\n\n";
="" for="" (int="" i="0;" i<200;="" i++)
="" {
="">>num;
innum[i]=num;
cout<<num<<"\t";
}=""
="" sort();="" cout<<"\nnumber="" of="" comparisons:\t"<<compare<<"\n";
="" assignment:\t"<<assignment<<"\n\n";
="" }
="" if="" (a="=6)
" {
="" size="2000;
" ifstream="" input="" ("order2000.txt",="" ios::in);
="" cout<<"\nunsorted="" numbers\n\n";
="" for="" (int="" i="0;" i<2000;="" i++)
="">>num;
innum[i]=num;
cout<<num<<"\t";
}=""
="" sort();="" cout<<"\nnumber="" of="" comparisons:\t"<<compare<<"\n";
="" assignment:\t"<<assignment<<"\n\n";
="" }
="" if="" (a="=7)
" {
="" size="20;
" ifstream="" input="" ("reverse20.txt",="" ios::in);
="" cout<<"\nunsorted="" numbers\n\n";
="" for="" (int="" i="0;" i<20;="" i++)
="">>num;
innum[i]=num;
cout<<num<<"\t";
}=""
="" sort();="" cout<<"\nnumber="" of="" comparisons:\t"<<compare<<"\n";
="" assignment:\t"<<assignment<<"\n\n";
="" }
="" if="" (a="=8)
" {
="" size="200;
" ifstream="" input="" ("reverse200.txt",="" ios::in);
="" cout<<"\nunsorted="" numbers\n\n";
="" for="" (int="" i="0;" i<200;="" i++)
="">>num;
innum[i]=num;
cout<<num<<"\t";
}=""
="" sort();
="" cout<<"\nnumber="" of="" comparisons:\t"<<compare<<"\n";
="" assignment:\t"<<assignment<<"\n\n";
="" }
="" if="" (a="=9)
" {
="" size="2000;
" ifstream="" input="" ("reverse2000.txt",="" ios::in);
="" cout<<"\nunsorted="" numbers\n\n";
="" for="" (int="" i="0;" i<2000;="" i++)
="">>num;
innum[i]=num;
cout<
|
|
|
|
|
snoop82 wrote: i dont know to include another sorting algorithm .
It looks as though you already have. What's the problem?
snoop82 wrote: ...im a beginner..
Working on data structures? Isn't that putting the cart before the horse?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|