Click here to Skip to main content
15,913,090 members
Home / Discussions / C#
   

C#

 
GeneralRe: save datagrid Pin
Heath Stewart1-Apr-04 5:11
protectorHeath Stewart1-Apr-04 5:11 
GeneralRe: save datagrid Pin
bertcox1-Apr-04 5:35
bertcox1-Apr-04 5:35 
GeneralRe: save datagrid Pin
Heath Stewart1-Apr-04 5:56
protectorHeath Stewart1-Apr-04 5:56 
GeneralInterop Question. Again... Pin
DrGreen1-Apr-04 3:15
DrGreen1-Apr-04 3:15 
GeneralRe: Interop Question. Again... Pin
Dave Kreskowiak1-Apr-04 3:41
mveDave Kreskowiak1-Apr-04 3:41 
GeneralRe: Interop Question. Again... Pin
DrGreen1-Apr-04 3:57
DrGreen1-Apr-04 3:57 
GeneralRe: Interop Question. Again... Pin
Dave Kreskowiak1-Apr-04 4:11
mveDave Kreskowiak1-Apr-04 4:11 
GeneralRe: Interop Question. Again... Pin
Heath Stewart1-Apr-04 5:39
protectorHeath Stewart1-Apr-04 5:39 
Try passing true to Marshal.STructureToPtr to make sure any possible existing structure is destroyed, otherwise this leads to memory leaks.

Also, a few things about CLS-compliance. Don't use unsigned types if you hope to port your code ever. You can use the signed types and marshal them as unsigned types, using UnmanagedType.U4 for an Int32, for example. Yo also don't need to use "Attribute" when attributing members - it's implied.

Other than that, there's nothing else that could be null except your string members in MCI_OPEN_PARAMS, the last of which is optional according to the documentation. Everything else besides the IntPtr is a value type, which can't be null.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Interop Question. Again... Pin
DrGreen1-Apr-04 6:06
DrGreen1-Apr-04 6:06 
GeneralRe: Interop Question. Again... Pin
Heath Stewart1-Apr-04 6:23
protectorHeath Stewart1-Apr-04 6:23 
GeneralRe: Interop Question. Again... Pin
DrGreen1-Apr-04 6:33
DrGreen1-Apr-04 6:33 
GeneralRe: Interop Question. Again... Pin
leppie1-Apr-04 6:17
leppie1-Apr-04 6:17 
GeneralRe: Interop Question. Again... Pin
Heath Stewart1-Apr-04 6:30
protectorHeath Stewart1-Apr-04 6:30 
GeneralRe: Interop Question. Again... Pin
leppie1-Apr-04 6:10
leppie1-Apr-04 6:10 
GeneralRe: Interop Question. Again... Pin
DrGreen1-Apr-04 6:20
DrGreen1-Apr-04 6:20 
GeneralC# listbox, combobox trouble Pin
abidkayani11-Apr-04 2:49
abidkayani11-Apr-04 2:49 
GeneralC # problem (app block) Pin
abidkayani11-Apr-04 2:43
abidkayani11-Apr-04 2:43 
GeneralRe: C # problem (app block) Pin
Mazdak1-Apr-04 2:59
Mazdak1-Apr-04 2:59 
GeneralRe: C # problem (app block) Pin
abidkayani11-Apr-04 12:15
abidkayani11-Apr-04 12:15 
GeneralC# problem Pin
abidkayani11-Apr-04 2:41
abidkayani11-Apr-04 2:41 
GeneralRe: C# problem Pin
Mazdak1-Apr-04 2:54
Mazdak1-Apr-04 2:54 
GeneralRe: C# problem Pin
Heath Stewart1-Apr-04 5:31
protectorHeath Stewart1-Apr-04 5:31 
GeneralTreeView copy Pin
Ata Özçelik1-Apr-04 2:19
Ata Özçelik1-Apr-04 2:19 
GeneralRe: TreeView copy Pin
Dave Kreskowiak1-Apr-04 3:32
mveDave Kreskowiak1-Apr-04 3:32 
GeneralShow some specific region of form Pin
Itanium1-Apr-04 0:42
Itanium1-Apr-04 0:42 

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.