|
Pop3.obj : error LNK2001: unresolved external symbol __imp__WSAEnumNetworkEvents@12
Pop3.obj : error LNK2001: unresolved external symbol __imp__WSAWaitForMultipleEvents@20
Pop3.obj : error LNK2001: unresolved external symbol __imp__WSACloseEvent@4
But the Winsock2.h and afxsock.h are included.
I'm trying to use the class incapsulating the work with sockets
|
|
|
|
|
Have you linked the ws2_32.lib in the project settings?
|
|
|
|
|
|
Hi
If i understand u right
Try to include in the project settings\Links\Objects/Library modules
Ws2_32.lib
I hope it works
Good Luck
|
|
|
|
|
I have a qustion about Visual Studio and WTL.
When I have installed Visual Studio .NET 2003 and I want to use WTL must I install something (Platform SDK, ...) or have I all?
|
|
|
|
|
How do I block the Windows-keys, Ctrl+Alt+Del, Alt+Tab ? I've seen that in Star Trek Armada and Star Trek Elite Force, and I wondered how that could be done. I've tried a keyboard hook, but I can still Alt+Tab out of my application, open the Task Manager or display the Start-Menu.
Thanks,
widi
-
|
|
|
|
|
Did you post three messages by misstake or are you trying to be bothersome?
Lookup SystemParametersInfo() in MSDN and look for a flag named SPI_SETSCREENSAVERACTIVE. It only works for Win 9x!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
it was by mistake, sorry.
Thanks
widi
-
|
|
|
|
|
Joerg Wiedenmann wrote:
it was by mistake, sorry.
It's okay!
have a look at my message again.. I've change some parts of it!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
|
If you want to hook the keyboard, you should create a system wide keyboard hook, this kind of hook must be placed in a DLL, and can be installed from anywhere (your program, a service...).
In order to hook any key this should be right, but if you want also to control Ctrl+Alt+Del you should create a gina.dll that would allow you to handle it, if you don't want to do this and you don't mind a messagebox (horrible by my point of view) you can search for a question like yours 5 or 6 days before that asked more or less the same, the fact is that somebody told there that it was a method to handle the Ctrl+alt+del... there without a gina.dll.
the best way to do it is the gina.dll...
|
|
|
|
|
Thanks, I've installed that low level keyboard hook and it works .
I don't know what you mean with that gina.dll , but I now searching that question (this could take a while because of the high-tech internet connection in my school (2,2 kb/s)).
Thanks again
-widi
P.S. Today, computers in school are working great again ... I've signed in and what do I see in the Your Name Edit ? Anonymous ?? - s**t f*****g school-computer.
Sorry , but this time I had to say someting...
|
|
|
|
|
The gina.dll is a special dll that controls the autentification of users and Ctrl Alt Del (and other stuff also).
It's a security matter:
Microsoft couldn't allow anybody to write down a simple program that could capture the paswwords or info related to one user in the logon screen. And in order to avoid that they use a GINA.DLL that has all related to the logon (including the CtrlAltDel).
the only way to make it work properly is to make a GINA DLL (or to get someone that is already made) and substitute the one in the system.
This means that in order to do so you must have permission of the administrator of that computer to do that...
hope this helps...
|
|
|
|
|
I guess I have now enough input to get it to work.
Thanks
widi
|
|
|
|
|
dear all,
i've an sdk application with a window.
on the WM_QUERYENDSESSION message, a message box pops up.
i 've 2 problems
1) if i make my window hidden (SW_HIDE), all the message boxes are also hidden( fired on WM_QUERYENDSESSION)
so how do i ensure that the message box is visible even if window is hidden.
2) how do i kill the message box say after 5 seconds
thanx and regards
rishabhs
|
|
|
|
|
Dear all
How to convert float to double?
Thanks
|
|
|
|
|
Is this not working ?
float f=1.5f;
double d;
d=(double)f;
~RaGE();
|
|
|
|
|
if u are using c++
double_var=static_cast<double>(float_var)
|
|
|
|
|
d=(double)f;
d=static_cast<double>(f);
Interesting. This always works for me:
<br />
d = f;<br />
|
|
|
|
|
you can do the following
float f = some_value;
.
.
.
double d = static_cast<double>(f);
think it should work!
And you will know my name is the Lord when I lay my vengeance upon thee.
|
|
|
|
|
Please anyone can help me how to set the default font for CRichEditCtrl.
Thanks
The Phantom
|
|
|
|
|
Is it possible to Hook the DDI funcion calls? How?
Vikrams
|
|
|
|
|
Can I place a web browser control into the main window of a non Doc/View or non Dialog based application?
-- Steve
|
|
|
|
|
|
i've been working on this program (cryptology based) and just realized that the only way that it would be up to standards; would be to have a user defined lenght of the array of characters (captured by getchar() ). I am only in the 3rd month of my programming class, so we have not yet covered dynamic allocation (I don't know if we even will). I know that this is C++ but the people in C# said I should come here, you all are probably smarter anyway.
Long story-short. I need to capture an array of characters where, as the user types, the reallocation would be made; so no prompting of #'s just typing. here is how I tryed to do it but recived errors in execution, it does compile(What am I doing wrong??). I'm having a lot of trouble with this one. thanks bunches for your help .
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int char_to_num(char input);
void main (void){
char egrab,*cin;
int i,j,num,str_size;//, *t;
scanf("%c", &egrab); /*egrab grabs the enter from the previous
module this is a small part of my thing*/
printf("\nPlease enter the characters))>: ");
num = 0;
str_size=10;
cin= (char *)calloc(str_size, sizeof(char));
for(i=0; i<(i+1); i++,cin+=10)
{
for(j=0; j<10;j++,cin++){
*cin = getchar();
if (*cin =='\n')break;
num += 1;
}
if (*cin =='\n')break;
cin = (char *)realloc(cin, (sizeof(char)*10));
}
cin[i+j] = 0; /*close as to be printed as a string later*/
/*fill the array to be encrypted ( t[] ) with integer conversion*/
for(i=0; i<num;i++,t++,cin++){
*t="char_to_num(*cin);}
/*print" out="" the="" results="" as="" a="" check*=""
="" printf("\nnum="%d\n"," num);
="" for(i="0;" i<num;i++){
="" printf("%c",="" cin[i]);}
="" printf("\n");
="" i<num;i++,t++){
="" printf("%d="" ",="" *t);}
}="" *end*=""
="" ******************************************************************************************="" *this="" will="" convert="" character="" into="" number="" (67="" total="" possibilites)*=""
int="" char_to_num(char="" input){
="" int="" output;
="" if="" (="" (input="=" 'a')="" ||="" ){
="" output="1;}
" else="" if(="" 'b')="" 'c')="" 'd')="" 'e')="" 'f')="" 'g')="" 'h')="" 'i')="" 'j')="" 'k')="" 'l')="" 'm')="" 'n')="" 'o')="" 'p')="" 'q')="" 'r')="" 's')="" 't')="" 'u')="" 'v')="" 'w')="" 'x')="" 'y')="" 'z')="" input="=" '!'="" '@'="" '#'="" '$'="" '?'="" '^'="" '&'="" '*'="" '('="" ')'="" '-'="" '_'="" '=" ){
output = 39;}
else if( input == " +'="" '\\'="" '|'="" '`'="" '~'="" '.'="" ','="" '0'="" '1'="" '2'="" '3'="" '4'="" '5'="" '6'="" '7'="" '8'="" '9'="" '<'="">' ){
output = 59;}
else if( input == '[' ){
output = 60;}
else if( input == ']' ){
output = 61;}
else if( input == '{' ){
output = 62;}
else if( input == '}' ){
output = 63;}
else if( input == '/' ){
output = 64;}
else if( input == ';' ){
output = 65;}
else if( input == ':' ){
output = 66;}
else if( input == '%' ){
output = 0;}
else {
output = -1;}
return(output);
}
THANKS AGAIN.
|
|
|
|