i getting bugs with this line and i cannot find a guide in google, can anybody help me?
error message :"cannot convert char * to WCHAR* in assigment"
here is the code:
#define WIN32_LEAN_AND_MEAN
#include <stdio.h>
#include <windows.h>
#include <commctrl.h>
int main(int argc, char *argv[])
{
//QCoreApplication a(argc, argv);
//return a.exec();
//el numero de la ventana o proceso dentro de windows
HWND hwnd=FindWindow(NULL,NULL);
HWND listview=FindWindowEx(hwnd, NULL, NULL, NULL);
int count=(int)SendMessage(listview, LVM_GETITEMCOUNT, 0, 0);
int i;
//estructura q recibe o especifica los atributos de la list View recibida
LVITEM lvi, *_lvi;
char item[512], subitem[512];
char *_item, *_subitem;
unsigned long pid;
HANDLE process;//manejador del kernel de windows
GetWindowThreadProcessId(listview, &pid);
process=OpenProcess(PROCESS_VM_OPERATION|PROCESS_V M_READ|PROCESS_VM_WRITE|PROCESS_QUERY_INFORMATION, FALSE, pid);
_lvi=(LVITEM*)VirtualAllocEx(process, NULL, sizeof(LVITEM),MEM_COMMIT, PAGE_READWRITE);
_item=(char*)VirtualAllocEx(process, NULL, 512, MEM_COMMIT,PAGE_READWRITE);
_subitem=(char*)VirtualAllocEx(process, NULL, 512, MEM_COMMIT, PAGE_READWRITE);
lvi.cchTextMax=512;
for(i=0; i<count; i++) {
lvi.iSubItem=0;
lvi.pszText=_item;// here is where the error generate
Bookmarks