Click here to Skip to main content
       

Managed C++/CLI

 
GeneralRe: Convert string array from C# to C++ ? Pinmembertaibc17-Jun-13 5:34 
GeneralRe: Convert string array from C# to C++ ? PinmemberKarthik Kalyanasundaram17-Jun-13 21:13 
GeneralRe: Convert string array from C# to C++ ? Pinmembertaibc18-Jun-13 18:21 
QuestionGetting assembly details (descripton, version, etc) set for a C++/CLI assembly PinmemberJohn Schroedl12-Jun-13 6:29 
AnswerRe: Getting assembly details (descripton, version, etc) set for a C++/CLI assembly PinmemberJohn Schroedl12-Jun-13 11:15 
Questionwindows sdk PinmemberMember 259538310-Jun-13 7:02 
AnswerRe: windows sdk PinmvpRichard MacCutchan10-Jun-13 8:05 
QuestionVC++ import dll command causes error C2872 'ambiguous symbol' in comdefsp.h Pinmemberdevguy243-Jun-13 0:34 
AnswerRe: VC++ import dll command causes error C2872 'ambiguous symbol' in comdefsp.h PinmemberMember 259538311-Jun-13 13:10 
QuestionType casting in C++\CLI project Pinmemberfor study23-May-13 21:41 
AnswerRe: Type casting in C++\CLI project PinmemberDavid Knechtges24-May-13 4:29 
GeneralRe: Type casting in C++\CLI project PinmemberMember 259538311-Jun-13 13:41 
GeneralMessage Automatically Removed Pinmembertom8081011-Jul-13 20: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 4: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 8: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 23: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 Chaudhary14-May-13 0: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 MacCutchan14-May-13 0: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 Chaudhary14-May-13 0:44 
QuestionAd Hoc routing protocol Pinmember3bood.ghzawi18-Apr-13 3:43 
AnswerRe: Ad Hoc routing protocol PinmvpRichard MacCutchan18-Apr-13 5:27 
GeneralRe: Ad Hoc routing protocol Pinmember3bood.ghzawi18-Apr-13 6:09 
GeneralRe: Ad Hoc routing protocol PinmvpRichard MacCutchan18-Apr-13 6:42 
GeneralRe: Ad Hoc routing protocol Pinmember3bood.ghzawi19-Apr-13 1:05 
GeneralRe: Ad Hoc routing protocol PinmvpRichard MacCutchan19-Apr-13 1:38 
GeneralRe: Ad Hoc routing protocol PinmemberJoe Woodbury24-Apr-13 9:22 
GeneralRe: Ad Hoc routing protocol PinmvpRichard MacCutchan24-Apr-13 10:30 
QuestionDisplay only 2 digs in string in label. PinmemberSøren Lyder Nielsen18-Apr-13 0:50 
AnswerRe: Display only 2 digs in string in label. PinmvpRichard MacCutchan18-Apr-13 2:46 
GeneralRe: Display only 2 digs in string in label. PinmemberSøren Lyder Nielsen18-Apr-13 4:30 
GeneralRe: Display only 2 digs in string in label. PinmvpRichard MacCutchan18-Apr-13 5:24 
GeneralRe: Display only 2 digs in string in label. PinmemberSøren Lyder Nielsen22-Apr-13 23:50 
GeneralRe: Display only 2 digs in string in label. PinmvpRichard MacCutchan23-Apr-13 0:03 
GeneralRe: Display only 2 digs in string in label. PinmemberSøren Lyder Nielsen23-Apr-13 1:09 
GeneralRe: Display only 2 digs in string in label. PinmvpRichard MacCutchan23-Apr-13 2:52 
GeneralRe: Display only 2 digs in string in label. PinmemberSøren Lyder Nielsen23-Apr-13 3:26 
GeneralRe: Display only 2 digs in string in label. PinmvpRichard MacCutchan23-Apr-13 3:28 
GeneralRe: Display only 2 digs in string in label. PinmemberSøren Lyder Nielsen23-Apr-13 3:32 
GeneralRe: Display only 2 digs in string in label. PinmvpRichard MacCutchan23-Apr-13 4:55 
GeneralRe: Display only 2 digs in string in label. PinmemberSøren Lyder Nielsen23-Apr-13 5:42 
GeneralRe: Display only 2 digs in string in label. PinmvpRichard MacCutchan23-Apr-13 5:49 
AnswerRe: Display only 2 digs in string in label. PinmemberMember 1000269911-May-13 1:46 
GeneralRe: Display only 2 digs in string in label. PinmvpRichard MacCutchan11-May-13 5:10 
QuestionC++ Windows Form Application Printing Pinmembereakteam16-Apr-13 11:37 
AnswerRe: C++ Windows Form Application Printing PinmemberThePhantomUpvoter16-Apr-13 13:01 
GeneralRe: C++ Windows Form Application Printing Pinprofessionaleakteam16-Apr-13 23:55 
GeneralRe: C++ Windows Form Application Printing PinmemberThePhantomUpvoter17-Apr-13 3:42 
GeneralRe: C++ Windows Form Application Printing Pinprofessionaleakteam17-Apr-13 6:24 
GeneralRe: C++ Windows Form Application Printing PinmemberThePhantomUpvoter18-Apr-13 6:42 
AnswerRe: C++ Windows Form Application Printing PinmvpRichard MacCutchan16-Apr-13 22:21 

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