Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:13 AM.


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