Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
| Search | Today's Posts | Mark Forums Read
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 22nd, 2005, 06:30 AM
Registered User
 
Join Date: Nov 2005
Location: chennai, TN, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solution needed very urgent: fcntl and flock

Hai,
 I am a new user to P To P.
 Now i am working with VC++.I am porting an application from Unix environment to Windows environment.I have used fcntl() and flock() in Unix to lock the files with various options.But while porting i am getting a error like

fcntl is not defined assuming extern int
flock is not defined assuming extern int

Is the above two functions are available in windows are not?Please help me to resolve it.
I am working with windows 98.

Regards,
HARI R
 
Old November 22nd, 2005, 09:07 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Explore the contents of fcntl.h. The two functions may not be available on windows unless you export them somehow, but there are ways to perform the task using _locking function.

Regards
Ankur Verma




Similar Threads
Thread Thread Starter Forum Replies Last Post
A serious string problem. Urgent solution needed. asfak XSLT 2 November 28th, 2007 06:08 AM
Needed Very Urgent ndrnathan C# 0 June 8th, 2007 07:43 AM
Grouping Solution needed matrixman XSLT 9 April 27th, 2007 07:55 AM
urgent help needed sugandh .NET Web Services 0 January 10th, 2004 12:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.