473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

using AVIFILE OPEN IN DOTNET(CSHARP)

8
hi can any one help on using the avifileopen( ) function in a csharp app..
i tried using it some other tyme but was getting an error like

"bad or corrupt memory"

i will need explanation to the parameters it take... having a sample code will also be appreciated..
Dec 11 '07 #1
5 2176
dip_developer
648 Expert 512MB
hi can any one help on using the avifileopen( ) function in a csharp app..
i tried using it some other tyme but was getting an error like

"bad or corrupt memory"

i will need explanation to the parameters it take... having a sample code will also be appreciated..
read it.......

http://www.codeproject.com/KB/audio-...select=2097583
Dec 12 '07 #2
kofi
8
hi,
can anyone help with using the avifileopen() method..

can someone help with explaining the parameters to me...
i have been doing this but get an error
//
IntPtr Pfile;
String filename;// set to an avi file from a dialog box

AviFileOpen(Pfile,filename,OF_SHARE_DENY_WRITE, NULL)

but always gets an error msg like "attempt to write bad or corrupt memeory"
Dec 20 '07 #3
Plater
7,872 Expert 4TB
AviFileOpen() is an API call and not managed code.
You probably need to mark the code as unsafe if you want to use it.

You find better help under the regular C/C++ forum for API calls.
Dec 20 '07 #4
kofi
8
AviFileOpen() is an API call and not managed code.
You probably need to mark the code as unsafe if you want to use it.

You find better help under the regular C/C++ forum for API calls.
thanks Plater, i guess i missed some inilization at the begining...

firstly i needed to call it in the [DllImport] statement... after which i needed to Call on AviFileInit( ) for initiliazation... after in was able to get around it my knowledge in working with with API has improved a bit....
thanks so much
Jan 21 '08 #5
Plater
7,872 Expert 4TB
Spring Cleaning [Merged]
MODERATOR
Mar 17 '08 #6

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

Similar topics

1
by: rajani | last post by:
How to create control panel applet in CSharp. I know that a dll renamed as .cpl with cplapplet function exported has to be created which is not possible using csharp. Any help is appreciated. ...
0
by: Elhanan Maayan | last post by:
hi.. so i'm slowly moving the transition to csharp and once again i'm faced with the problem for flipped hebew letters etc... but now the problem may not be so hard to solve as i have seen...
7
by: Ritu | last post by:
Hi All, Can any body please tell me how i can write a device driver using CSharp. Thanks, Ritu
2
by: blackdog | last post by:
I have Oracle client in my system, like to use csharp to communicate with Oracle server to retrieve data. I am very new in csharp, would anyone please give me an example codes or web pointer....
0
by: ÂÀÏþ´¨ | last post by:
How can read .sdf(SqlServerCE) file from PC using csharp language.
2
by: ti | last post by:
Hello all, Does anyone have any idea that how to use GetLogicalProcessorInformation, win32api, under using csharp? http://msdn2.microsoft.com/en-us/library/ms683194.aspx For me, one of the...
1
by: trytobreak | last post by:
Hey guys, I have a netscreen firewall which is configured to forward syslog messages to port 514 of my machine (specific ip on the network) and I am really puzzled as on how to capture these log...
1
atksamy
by: atksamy | last post by:
Hi, I am trying to write some data into excel sheets using c#. so far i have written the following code. But i am not able to proceed further ...
2
by: yanksrock528 | last post by:
I am writing a program, and i would like to save an xml file that is on the internet now, to my computer in this csharp program. Something else that might help is if i could get the csharp xml...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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...

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.