Click here to Skip to main content
       

Managed C++/CLI

 
AnswerRe: windows sdk PinmvpRichard MacCutchan10-Jun-13 7:05 
QuestionVC++ import dll command causes error C2872 'ambiguous symbol' in comdefsp.h Pinmemberdevguy242-Jun-13 23:34 
AnswerRe: VC++ import dll command causes error C2872 'ambiguous symbol' in comdefsp.h PinmemberMember 259538311-Jun-13 12:10 
QuestionType casting in C++\CLI project Pinmemberfor study23-May-13 20:41 
AnswerRe: Type casting in C++\CLI project PinmemberDavid Knechtges24-May-13 3:29 
GeneralRe: Type casting in C++\CLI project PinmemberMember 259538311-Jun-13 12:41 
GeneralMessage Automatically Removed Pinmembertom8081011-Jul-13 19:25 
Questionetting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. PingroupVijaySandur25-Apr-13 3:44 
Getting Access Violation Exception when trying to convert unmanaged array of structures into managed in Vb.Net(VS2010,4.0 framework) in Windows 7 -64 bit mode.
Sample Source Code
 
_
Public Class vb_menu_dotnet
Public level As Short
Public menu_id As String
Public short_desc As String
Public parent_id As String
Public access As Short
Public flag As Short
Public menu_desc As String
End Class
 

Dim current As IntPtr
Dim outArray As IntPtr
Dim manArray(100) As vb_menu_dotnet
 
vb_dotnet_get_menu_hierarchy(p_menu_handle, p_apl_id, outArray) //C API call
current = outArray
 
Dim j As Integer
For j = 1 To 100
manArray(j) = New vb_menu_dotnet()
Marshal.PtrToStructure(current, manArray(j)) //Access Violation Exception
Vijay

AnswerRe: etting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. PinmemberJohn Schroedl25-Apr-13 7:52 
AnswerRe: etting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. PinmvpRichard MacCutchan25-Apr-13 22:29 
GeneralRe: etting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. PinmemberTripurari Chaudhary13-May-13 23:43 
QuestionRe: etting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. PinmvpRichard MacCutchan13-May-13 23:50 
AnswerRe: etting Access Violation Exception -Attempted to read or write protected memory - when trying to convert unmanaged array of structures into managed class in Vb.Net (VS2010,4.0 framework) in Windows 7 -64 bit mode. PinmemberTripurari Chaudhary13-May-13 23:44 
QuestionAd Hoc routing protocol Pinmember3bood.ghzawi18-Apr-13 2:43 
AnswerRe: Ad Hoc routing protocol PinmvpRichard MacCutchan18-Apr-13 4:27 
GeneralRe: Ad Hoc routing protocol Pinmember3bood.ghzawi18-Apr-13 5:09 
GeneralRe: Ad Hoc routing protocol PinmvpRichard MacCutchan18-Apr-13 5:42 
GeneralRe: Ad Hoc routing protocol Pinmember3bood.ghzawi19-Apr-13 0:05 
GeneralRe: Ad Hoc routing protocol PinmvpRichard MacCutchan19-Apr-13 0:38 
GeneralRe: Ad Hoc routing protocol PinmemberJoe Woodbury24-Apr-13 8:22 
GeneralRe: Ad Hoc routing protocol PinmvpRichard MacCutchan24-Apr-13 9:30 
QuestionDisplay only 2 digs in string in label. PinmemberSøren Lyder Nielsen17-Apr-13 23:50 
AnswerRe: Display only 2 digs in string in label. PinmvpRichard MacCutchan18-Apr-13 1:46 
GeneralRe: Display only 2 digs in string in label. PinmemberSøren Lyder Nielsen18-Apr-13 3:30 
GeneralRe: Display only 2 digs in string in label. PinmvpRichard MacCutchan18-Apr-13 4:24 

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.140721.1 | Last Updated 11 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid