Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ellipse, how to draw without been filled? Pin
includeh103-Jun-06 4:59
includeh103-Jun-06 4:59 
GeneralRe: Ellipse, how to draw without been filled? Pin
Hamid_RT3-Jun-06 5:05
Hamid_RT3-Jun-06 5:05 
AnswerRe: Ellipse, how to draw without been filled? Pin
John R. Shaw3-Jun-06 5:11
John R. Shaw3-Jun-06 5:11 
GeneralRe: Ellipse, how to draw without been filled? Pin
Hamid_RT3-Jun-06 5:20
Hamid_RT3-Jun-06 5:20 
GeneralRe: Ellipse, how to draw without been filled? Pin
includeh103-Jun-06 5:44
includeh103-Jun-06 5:44 
GeneralRe: Ellipse, how to draw without been filled? Pin
Justin Tay3-Jun-06 5:59
Justin Tay3-Jun-06 5:59 
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 

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.