Click here to Skip to main content
15,879,535 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ellipse, how to draw without been filled? Pin
John R. Shaw13-Jun-06 21:59
John R. Shaw13-Jun-06 21:59 
AnswerRe: Ellipse, how to draw without been filled? Pin
Michael Dunn3-Jun-06 5:49
sitebuilderMichael Dunn3-Jun-06 5:49 
GeneralRe: Ellipse, how to draw without been filled? Pin
includeh103-Jun-06 5:55
includeh103-Jun-06 5:55 
AnswerRe: Ellipse, how to draw without been filled? Pin
Hamid_RT3-Jun-06 6:00
Hamid_RT3-Jun-06 6:00 
GeneralRe: Ellipse, how to draw without been filled? Pin
includeh103-Jun-06 6:50
includeh103-Jun-06 6:50 
QuestionMigrating project from VS 6 to VS 8 Pin
Petryha3-Jun-06 2:07
Petryha3-Jun-06 2:07 
AnswerRe: Migrating project from VS 6 to VS 8 Pin
Kevin McFarlane3-Jun-06 3:16
Kevin McFarlane3-Jun-06 3:16 
QuestionFindFirstFile error in compilation [modified] Pin
darkcloud.42o3-Jun-06 1:43
darkcloud.42o3-Jun-06 1:43 
Hi,
Having a little trouble with FindFirst File function.... heres what ive got...

include "stdafx.h"
#include <string>
#include <direct.h>
//#include "dirent.h"
#include <winsock2.h>
#include <fstream>
#include <vector>
#include <iostream>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <sys/stat.h>
#include <stdio.h>
#pragma comment(lib,"ws2_32")
using namespace std;

// Stuff.......

char fileFound[256];
strcpy(fileFound, path1);
WIN32_FIND_DATA FindFileData;
HANDLE hp;

hp = FindFirstFile(fileFound, &FindFileData);
printf ("The first file found is %s\n", FindFileData.cFileName);
FindClose(hp);

The error i recieve is...
error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'char [256]' to 'LPCWSTR'

I know sometimes when compiling the error is not always what it seeems.. but have no idea..
Please help.
TIA

-- modified at 7:45 Saturday 3rd June, 2006
AnswerRe: FindFirstFile error in compilation [modified] Pin
_AnsHUMAN_ 3-Jun-06 2:00
_AnsHUMAN_ 3-Jun-06 2:00 
GeneralRe: FindFirstFile error in compilation [modified] Pin
darkcloud.42o3-Jun-06 2:36
darkcloud.42o3-Jun-06 2:36 
GeneralRe: FindFirstFile error in compilation [modified] Pin
_AnsHUMAN_ 3-Jun-06 2:43
_AnsHUMAN_ 3-Jun-06 2:43 
GeneralRe: FindFirstFile error in compilation [modified] Pin
darkcloud.42o3-Jun-06 2:59
darkcloud.42o3-Jun-06 2:59 
GeneralRe: FindFirstFile error in compilation [modified] Pin
_AnsHUMAN_ 3-Jun-06 3:03
_AnsHUMAN_ 3-Jun-06 3:03 
GeneralRe: FindFirstFile error in compilation [modified] Pin
darkcloud.42o3-Jun-06 3:08
darkcloud.42o3-Jun-06 3:08 
GeneralRe: FindFirstFile error in compilation [modified] Pin
_AnsHUMAN_ 3-Jun-06 3:20
_AnsHUMAN_ 3-Jun-06 3:20 
GeneralRe: FindFirstFile error in compilation [modified] Pin
Justin Tay3-Jun-06 3:22
Justin Tay3-Jun-06 3:22 
GeneralRe: FindFirstFile error in compilation [modified] Pin
darkcloud.42o3-Jun-06 3:37
darkcloud.42o3-Jun-06 3:37 
GeneralRe: FindFirstFile error in compilation [modified] Pin
darkcloud.42o3-Jun-06 3:47
darkcloud.42o3-Jun-06 3:47 
GeneralRe: FindFirstFile error in compilation [modified] Pin
Justin Tay3-Jun-06 3:53
Justin Tay3-Jun-06 3:53 
AnswerRe: FindFirstFile error in compilation [modified] Pin
Hamid_RT3-Jun-06 4:32
Hamid_RT3-Jun-06 4:32 
Questionchage remote user password Pin
pandikumar3-Jun-06 0:11
pandikumar3-Jun-06 0:11 
AnswerRe: chage remote user password Pin
_AnsHUMAN_ 3-Jun-06 0:26
_AnsHUMAN_ 3-Jun-06 0:26 
Question"Navigate2 " function error in ie7.0.. Pin
msj0191@gmail.com2-Jun-06 23:26
msj0191@gmail.com2-Jun-06 23:26 
AnswerRe: &quot;Navigate2 &quot; function error in ie7.0.. Pin
Hamid_RT3-Jun-06 5:03
Hamid_RT3-Jun-06 5:03 
GeneralRe: &quot;Navigate2 &quot; function error in ie7.0.. Pin
msj0191@gmail.com4-Jun-06 13:52
msj0191@gmail.com4-Jun-06 13:52 

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.