473,461 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to open a file using openfile() method...

Hai...

i'm triying to open a file in read mode using the following method..

HFILE hFile;
hFile=OpenFile("D:\ss.doc",lpReOpenBuff,OF_READ);

i cant undestand what is the 2nd parameter is...

the syntax for openfile is

HFILE OpenFile(LPCSTR lpFileName,LPOFSTRUCT lpReOpenBuff,UINT uStyle);


plzz tell me what shall i put for lpReOpenBuff..

senthil.
Jan 18 '07 #1
2 3389
horace1
1,510 Expert 1GB
for details of the parameters to OpenFile() have a look at
http://msdn2.microsoft.com/en-us/library/aa365430.aspx
Jan 18 '07 #2
Hai,
thanks for ur reply...

ya i saw it...

But i cant undestand the explanation for the 2nd parameter...


will u plzz help me...

thanks..
senthil
Jan 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Alisha | last post by:
I'm trying to open the Common Dialog box to allow the user to navigate to a folder and select a file. The users are accessing the application on a single Citrix server, so the enviroment is the...
2
by: Jim | last post by:
I am trying to import a file using a file spec from the Access File Open dialog... I have been out to http://www.mvps.org/access/api/api0001.htm to look at the code, but because I'm not a guru, I...
2
by: Marge Inoferror | last post by:
Visual C#... I'd like to save some settings that are in integers and then save some lists of file names. I'm just starting off (as you can tell - no doubt.). I'm starting by trying to save...
4
by: helloitsme | last post by:
Hello! I am trying to open a file that is selected by a user from the openfiledialog box, but the file does not open. Below is the part of the code that does so... ...
4
by: Steph | last post by:
hello, because msdn is so poor... somebody did he write a similar script ? (DTE/DTE2) _applicationObject.Documents.Open(docPath, "?string kind?", false); i must type the "string kind"... but...
13
by: mom.klaib | last post by:
Hi I am a student doing a project using C++ builder. I hava a problem in opening a number of files more than 47, when run it only it create 46 file, Please help me to be able to create any number...
185
by: jacob navia | last post by:
Hi We are rewriting the libc for the 64 bit version of lcc-win and we have added a new field in the FILE structure: char *FileName; fopen() will save the file name and an accessor function will...
2
by: TBMAN | last post by:
This script below is having problems with allow the selestion of *.mdb files off the network. Can anyone see the problem with the code? Function ImportFile(strform As Form) As Boolean Dim...
2
by: Mark Casternoff | last post by:
I'm playing around with opening files but have run into a wall. Here's a stripped down, simple version of what I have. The problem seems to be the datatype of filename passed into openfile( ). ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.