Click here to Skip to main content
       

Visual Basic

 
GeneralRe: VB6 Compile "unexpected error" PinmemberMike Deeks18-Jul-12 5:47 
GeneralRe: VB6 Compile "unexpected error" PinmvpDave Kreskowiak18-Jul-12 7:33 
JokeRe: VB6 Compile "unexpected error" PinmemberPaul Conrad18-Jul-12 9:40 
GeneralRe: VB6 Compile "unexpected error" PinmemberBernhard Hiller18-Jul-12 2:29 
GeneralRe: VB6 Compile "unexpected error" PinmemberMike Deeks18-Jul-12 5:50 
GeneralRe: VB6 Compile "unexpected error" PinmemberBernhard Hiller18-Jul-12 21:03 
QuestionmciSendCommand in VB.NET Pinmemberkingneb17-Jul-12 5:52 
AnswerRe: mciSendCommand in VB.NET PinmvpLuc Pattyn17-Jul-12 6:21 
When calling native code from managed code, stack imbalances are most often caused by applying the wrong "calling convention" (which says who, caller or callee, is responsible for cleaning up the stack). You will need to apply an explicit DllImport directive and specify the correct calling convention, most likely StdCall.
 
You will find an example here[^].
 
I wrote a little article[^] on P/Invoke, unfortunately it isn't finished yet, so it doesn't have the details for VB.NET; you might find it useful anyway.
 
Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: mciSendCommand in VB.NET Pinmemberkingneb17-Jul-12 6:45 
AnswerRe: mciSendCommand in VB.NET PinmvpLuc Pattyn17-Jul-12 6:55 
GeneralRe: mciSendCommand in VB.NET PinmvpDave Kreskowiak17-Jul-12 11:05 
AnswerRe: mciSendCommand in VB.NET PinmemberBernhard Hiller17-Jul-12 20:50 
AnswerRe: mciSendCommand in VB.NET PinmemberSasha Laurel18-Jul-12 13:18 
AnswerRe: mciSendCommand in VB.NET PinmemberSasha Laurel19-Jul-12 9:10 
Generalplease upload PinmemberMD Chalodiya16-Jul-12 20:02 
AnswerRe: please upload PinmemberEddy Vluggen16-Jul-12 21:50 
GeneralBound datagridview with unbound combobox Column - Problems [modified] Pinmemberalejx16-Jul-12 14:48 
GeneralRe: Bound datagridview with unbound combobox Column - Problems PinmemberSasha Laurel18-Jul-12 13:23 
GeneralSearchprogram for text in multi excel sheets Pinmemberabjac@16-Jul-12 6:23 
QuestionRe: Searchprogram for text in multi excel sheets PinmvpRichard MacCutchan16-Jul-12 7:45 
GeneralRe: Searchprogram for text in multi excel sheets [modified] Pinmemberabjac@16-Jul-12 10:30 
GeneralRe: Searchprogram for text in multi excel sheets Pinmemberjan212r16-Jul-12 19:01 
GeneralRe: Searchprogram for text in multi excel sheets PinmvpRichard MacCutchan16-Jul-12 21:16 
GeneralRe: Searchprogram for text in multi excel sheets Pinmemberabjac@16-Jul-12 22:35 
GeneralRe: Searchprogram for text in multi excel sheets PinmvpRichard MacCutchan16-Jul-12 22:50 

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
Web04 | 2.8.141022.2 | Last Updated 25 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid