Click here to Skip to main content
       

Managed C++/CLI

 
GeneralRe: batch files PinmvpRichard MacCutchan21-Feb-13 22:36 
GeneralRe: batch files PinmemberDirquez Marquez22-Feb-13 2:58 
QuestionWhat is the CLI/C++ equivalent to the C# using statement Pinmembersujayg14-Feb-13 21:54 
AnswerRe: What is the CLI/C++ equivalent to the C# using statement PinmemberJohn Schroedl15-Feb-13 3:27 
QuestionStructures with using bit fields PinmemberAmrit Agr29-Jan-13 1:34 
AnswerRe: Structures with using bit fields PinmvpRichard MacCutchan29-Jan-13 3:38 
GeneralRe: Structures with using bit fields PinmemberAmrit Agr17-Feb-13 22:06 
Questionsopen() function in filehandling - "C" PinmemberAmrit Agr28-Jan-13 0:56 
Hi Developers,
 
I have read about sopen() function to open a file in shared mode. Here is the code.
 
#include <stdio.h>
#include <fcntl.h>
#include <sys\stat.h>
#include <io.h>
#include <share.h>
void main(void);
void main(void)
{
int file_handle;
/* Note that sopen() is not ANSI compliant */
file_handle = sopen"D:\\Study\\file.txt", O_RDWR, SH_DENYNO);
close(file_handle);
}
 

I am getting "-1" on file_handle and program is also getting crash.
 
Can u please help me out.
AnswerRe: sopen() function in filehandling - "C" PinmemberJohn Schroedl28-Jan-13 3:37 
AnswerRe: sopen() function in filehandling - "C" Pinmemberramrooney27-Mar-13 7:36 
QuestionHow to call a static libray in a dll? PinmemberLongFangFang21-Jan-13 19:38 
AnswerRe: How to call a static libray in a dll? PinmvpRichard MacCutchan21-Jan-13 22:32 
Questionfrom unmanaged c++ to managed: passing int& parameter Pinmemberacastrucc19-Dec-12 4:30 
QuestionCompilation Problem [modified] Pinmembertcnm12-Dec-12 9:18 
QuestionRe: Compilation Problem PinmvpRichard MacCutchan12-Dec-12 22:56 
Answer-Re: Compilation Problem [modified] Pinmembertcnm14-Dec-12 6:42 
GeneralRe: -Re: Compilation Problem PinmvpRichard MacCutchan14-Dec-12 21:43 
QuestionWhy c is so important? Pinmemberriceshoots10-Dec-12 4:47 
AnswerRe: Why c is so important? PinmvpRichard MacCutchan10-Dec-12 5:52 
QuestionPlease vote for C++/CLI debug visualizer support PinmemberJohn Schroedl7-Dec-12 4:25 
QuestionHow to use NTGraph3D Activex Control in Visual Studio 2010. PinmemberDhrumilS23-Nov-12 0:47 
AnswerRe: How to use NTGraph3D Activex Control in Visual Studio 2010. PinmvpRichard MacCutchan23-Nov-12 1:44 
Question'J' Character printed on empty fields on dialogs Pinmembercnuis2kool18-Nov-12 22:29 
Questionhow to get programettically a registered DLL's Version information? Pinmemberlitu kumar7-Nov-12 21:32 
AnswerRe: how to get programettically a registered DLL's Version information? PinmvpRichard MacCutchan7-Nov-12 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.141015.1 | Last Updated 30 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid