|
Hello Girish !
I did the project in VB which was monitoring the remote machine(along with capturin the remote desktop, loggin off user and shuting down the remote machin). In orger to get the remote desktop you need to capture the desktop, save it into a file as an image and send that file over network and display it on a form(as i did in vb). The form should not have titlebar, or any of the border property. make the form size as of your screen resolution. so that it appears as if you'r lookin your own desktop. The user even will not come to know which desktop is open...
-Malli...!
|
|
|
|
|
Malli_S wrote: In orger to get the remote desktop you need to capture the desktop, save it into a file as an image and send that file over network and display it on a form(as i did in vb).
this is very cumbersome task... and it will choked the whole netwrok if you start monitoring three and above computers.... better look for other alternative..
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thanx very much for the Reply,Malli
Our Team is developing this in VC++ 6.0,
Anyway thanx very much for giving the overview of the things to get it started
Any more help if i can get than nothing like that
With Rgds
Girish
Software Developer
|
|
|
|
|
The cycle i made should work for three times,
for the first time in the debug the "i" counter increses from zero to 1, as i see on the second time "i" counter doesn't increases!!! But it have to!
I can't understand...
Here is the code:
for(int i =0;i<ColumnsNumber;i++)<br />
{<br />
DBFColumn column;<br />
dbffile.read(column.FieldName,10);<br />
dbffile.read((char*)&column.caPad,sizeof(char));<br />
dbffile.read((char*)&column.cFieldType,sizeof(char));<br />
dbffile.read((char*)&column.lwhere,sizeof(int));<br />
dbffile.read((char*)&column.cFieldLength,sizeof(char));<br />
dbffile.read((char*)&column.cFieldPrecision,sizeof(char));<br />
dbffile.read((char*)&column.caPad3,14);<br />
<br />
<br />
<br />
SQLQuery+=(string)column.FieldName+"_dbf";<br />
switch(column.cFieldType)<br />
{<br />
case 'F':<br />
SQLQuery+=" float,";<br />
break;<br />
case 'N':<br />
{ <br />
if(column.cFieldLength==31||column.cFieldLength==12)<br />
SQLQuery+=" float,"; <br />
else<br />
if(column.cFieldLength==6)<br />
SQLQuery+=" smallint,";<br />
else<br />
SQLQuery+=" int,";<br />
break;<br />
}<br />
case 'L':<br />
{<br />
SQLQuery+=" bit,";<br />
break;<br />
}<br />
case 'D':<br />
{<br />
SQLQuery+=" datetime,";<br />
break;<br />
}<br />
case 'C':<br />
{<br />
char number[32];<br />
SQLQuery+=string(" VARCHAR (")+_itoa(column.cFieldLength+1,number,10)+"),";<br />
break;<br />
}<br />
};<br />
Columns.push_back(column);<br />
}
-- modified at 2:57 Wednesday 15th February, 2006
|
|
|
|
|
How much is ColumnsNumber ?
~RaGE();
|
|
|
|
|
The ComunsNuber is 3,
but my cycle runs more than 3 times, because the "i" counter doesn't increases!!!
I Can send you the solution in archive, give me you e-mail. And You'll see.
The solution is on visual studio 2005 professional
|
|
|
|
|
is i declared somewhere else as global ? or do you have a scope clash ? Try and rename it.
~RaGE();
|
|
|
|
|
Rassul Yunussov wrote: ...but my cycle runs more than 3 times...
How are you verifying this?
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
well, shame on me. I found the problem...
I was reading the data to the pointer, that i didn't reserved in the memory. So i erased the memory where "i" was stored.
|
|
|
|
|
Rassul Yunussov wrote: for(int i =0;i<ColumnsNumber;i++)
what is the value of ColumnsNumber
Owner drawn
Jesus Loves
|
|
|
|
|
Did you check you ColumnsNumber. I think it would be 1.
-Malli...!
|
|
|
|
|
The ComunsNuber is 3,
but my cycle runs more than 3 times, because the "i" counter doesn't increases!!!
I Can send you the solution in archive, give me you e-mail. And You'll see.
The solution is on visual studio 2005 professional
|
|
|
|
|
I can't see anything in your code that would cause that problem. Are you sure the value of ColumnsNumber is what you expect?
Also, check to make sure your sizes in the dbffile.read() calls are correct - you might be encountering a memory smashing bug.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
You do one thing, replace the variable 'i' with something else. Because that might be clashing.
-Malli...!
|
|
|
|
|
Hi All,
How does one use cout to display hex characters?
For example a variable is set to 0x60, but when you call cout << var << endl; you get ' because that is 0x60 on the ASCII table.
regards,
Rich
"Programming today is a race between software engineers striving to build bigger and
better idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far the Universe is winning." -- Rich Cook
|
|
|
|
|
The old fashion (C) way:
int i = 0x60;
printf("%02X", i); // prints "60"
printf("%04X", i); // prints "0060"
|
|
|
|
|
Hi !
I put some sample code for your. You can make use of it, as per your need.
int n=20;
cout << "decimal: " << n << endl;
//--- Print hex with leading zeros
cout << "hex : ";
for (int i=2*sizeof(int) - 1; i>=0; i--)
{
cout << "0123456789ABCDEF"[((n >> i*4) & 0xF)];
cout << endl << endl;
}
-Malli...!
|
|
|
|
|
Hi,
That is rather cute code!
Thanks,
Rich
"Programming today is a race between software engineers striving to build bigger and
better idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far the Universe is winning." -- Rich Cook
|
|
|
|
|
Why not use:
cout << std::hex << var << endl;
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
I have to agree with David, why not stick to the iostream idioms to do the trick. Although if 'var' is defined as type 'char' then you'll need to be a little sneaky since the formatting specifier hex modifies the output base of int's but does not modify the formatting of char's.
<br />
<br />
#include <iostream.h><br />
#include <iomanip.h><br />
<br />
<br />
char var = 0x60;<br />
<br />
cout << hex << var << endl;
<br />
cout << hex << (int) var << endl;
<br />
<br />
cout << hex << setw(2) << setfill('0') << (int) var << endl;<br />
<br />
Remember kids, we're trained professionals. Don't try this at home!
|
|
|
|
|
I want make SQL operation(Add, Modify, Delete records) to Access using ODBC.
I found many method to done(ADO, CRecordSet ), but which one is good for using ?
Can give me some suggestion about ODBC connect to Access in VC++ 6?
Thanks
|
|
|
|
|
One of the simplest methods is to create a DSN for your Access database. Then use ClassWizard to create a CRecordset -derived object. It will ask you which DSN to use. You can then select the tables and columns to use. See here for an example.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
Can i directly using ODBC connection strings and write the database location (like C:\testing\testingdb.mdb) in the ODBC connection strings ?
Because DSN need setting it before using.
Thanks your reply.
|
|
|
|
|
Sure. That same article shows how to use a DSN-less connection.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
I want to perform some action whenever folder selection occured.So, I want to catch the Shell View(List View) events.Plz send any material or code regarding this topic.
|
|
|
|