Click here to Skip to main content
16,012,759 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: 64-bit Interop Pin
Abisodun17-Aug-07 6:49
Abisodun17-Aug-07 6:49 
GeneralRe: 64-bit Interop [modified] Pin
Leslie Sanford17-Aug-07 7:23
Leslie Sanford17-Aug-07 7:23 
GeneralRe: 64-bit Interop Pin
Dave Kreskowiak17-Aug-07 7:35
mveDave Kreskowiak17-Aug-07 7:35 
GeneralRe: 64-bit Interop Pin
Leslie Sanford17-Aug-07 7:38
Leslie Sanford17-Aug-07 7:38 
GeneralRe: 64-bit Interop Pin
Luc Pattyn17-Aug-07 7:38
sitebuilderLuc Pattyn17-Aug-07 7:38 
GeneralRe: 64-bit Interop Pin
Leslie Sanford17-Aug-07 7:42
Leslie Sanford17-Aug-07 7:42 
GeneralRe: 64-bit Interop Pin
Luc Pattyn17-Aug-07 7:47
sitebuilderLuc Pattyn17-Aug-07 7:47 
GeneralRe: 64-bit Interop Pin
Leslie Sanford17-Aug-07 8:04
Leslie Sanford17-Aug-07 8:04 
Luc Pattyn wrote:
That depends entirely on the function at hand; you typically need to provide
an IntPtr or be ready to receive one (with "out" keyword).

I don't recall any Win32 function that provides a handle that way, they typically
use the return value (and return zero for error, then you would call GetLastError
for details).


Oh, I wasn't clear. The example I gave in my earlier post was with waveOutOpen; it opens a waveform output device. The native version takes an pointer to a WAVEOUT handle and returns a MMRESULT value indicating the status of the operation. If the operation was successful, the handle is filled with a valid handle to the device. This handle is later used with other waveOutXXX functions to interact with the device.

So in this specific case, I needed an unitialized IntPtr to pass as the handle modified by the out keyword.

After the wave device has been opened, other waveOutXXX functions that are called expect the handle to be initialized.

Does this make sense?
GeneralRe: 64-bit Interop Pin
Luc Pattyn17-Aug-07 8:14
sitebuilderLuc Pattyn17-Aug-07 8:14 
GeneralRe: 64-bit Interop Pin
Leslie Sanford17-Aug-07 11:30
Leslie Sanford17-Aug-07 11:30 
GeneralRe: 64-bit Interop Pin
Luc Pattyn17-Aug-07 12:39
sitebuilderLuc Pattyn17-Aug-07 12:39 
QuestionIs any Record Set Concept is there in OLEDB Pin
Praveen 12317-Aug-07 1:29
Praveen 12317-Aug-07 1:29 
AnswerRe: Is any Record Set Concept is there in OLEDB Pin
Scott Dorman17-Aug-07 10:26
professionalScott Dorman17-Aug-07 10:26 
Questionflash button Pin
michael_jhons16-Aug-07 21:42
michael_jhons16-Aug-07 21:42 
AnswerRe: flash button Pin
pmarfleet16-Aug-07 23:33
pmarfleet16-Aug-07 23:33 
QuestionSource C# for Chinese Chess Pin
Quoc Trang16-Aug-07 17:54
Quoc Trang16-Aug-07 17:54 
QuestionHow To install msi file along with my app setup Pin
Mayur16-Aug-07 4:52
professionalMayur16-Aug-07 4:52 
QuestionHow to raise events while clicking a datalist item or a particular Row?? Pin
bijeshputhalath15-Aug-07 21:42
bijeshputhalath15-Aug-07 21:42 
AnswerRe: How to raise events while clicking a datalist item or a particular Row?? Pin
- Pascal -17-Aug-07 9:11
- Pascal -17-Aug-07 9:11 
QuestionWhy Value types.. Pin
Sendilkumar.M15-Aug-07 21:15
Sendilkumar.M15-Aug-07 21:15 
AnswerRe: Why Value types.. Pin
Urs Enzler15-Aug-07 23:02
Urs Enzler15-Aug-07 23:02 
QuestionOpening a DB Pin
zchwllms14-Aug-07 12:20
zchwllms14-Aug-07 12:20 
AnswerRe: Opening a DB Pin
Dave Kreskowiak14-Aug-07 12:25
mveDave Kreskowiak14-Aug-07 12:25 
QuestionReporting framework for .NET - Open Source Pin
Yuval Naveh14-Aug-07 8:04
Yuval Naveh14-Aug-07 8:04 
AnswerRe: Reporting framework for .NET - Open Source Pin
Pete O'Hanlon15-Aug-07 2:23
mvePete O'Hanlon15-Aug-07 2:23 

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

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