Click here to Skip to main content
13,052,342 members (43,614 online)

Managed C++/CLI

 
AnswerRe: windows sdk Pin
Richard MacCutchan10-Jun-13 7:05
mvpRichard MacCutchan10-Jun-13 7:05 
QuestionVC++ import dll command causes error C2872 'ambiguous symbol' in comdefsp.h Pin
devguy242-Jun-13 23:34
memberdevguy242-Jun-13 23:34 
AnswerRe: VC++ import dll command causes error C2872 'ambiguous symbol' in comdefsp.h Pin
Member 259538311-Jun-13 12:10
memberMember 259538311-Jun-13 12:10 
QuestionType casting in C++\CLI project Pin
for study23-May-13 20:41
memberfor study23-May-13 20:41 
AnswerRe: Type casting in C++\CLI project Pin
David Knechtges24-May-13 3:29
memberDavid Knechtges24-May-13 3:29 
GeneralRe: Type casting in C++\CLI project Pin
Member 259538311-Jun-13 12:41
memberMember 259538311-Jun-13 12:41 
GeneralMessage Automatically Removed Pin
11-Jul-13 19:25
membertom8081011-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. Pin
VijaySandur25-Apr-13 3:44
groupVijaySandur25-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

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi)> _
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. Pin
John Schroedl25-Apr-13 7:52
memberJohn 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. Pin
Richard MacCutchan25-Apr-13 22:29
mvpRichard 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. Pin
Tripurari Chaudhary13-May-13 23:43
memberTripurari 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. Pin
Richard MacCutchan13-May-13 23:50
mvpRichard 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. Pin
Tripurari Chaudhary13-May-13 23:44
memberTripurari Chaudhary13-May-13 23:44 
QuestionAd Hoc routing protocol Pin
3bood.ghzawi18-Apr-13 2:43
member3bood.ghzawi18-Apr-13 2:43 
AnswerRe: Ad Hoc routing protocol Pin
Richard MacCutchan18-Apr-13 4:27
mvpRichard MacCutchan18-Apr-13 4:27 
GeneralRe: Ad Hoc routing protocol Pin
3bood.ghzawi18-Apr-13 5:09
member3bood.ghzawi18-Apr-13 5:09 
GeneralRe: Ad Hoc routing protocol Pin
Richard MacCutchan18-Apr-13 5:42
mvpRichard MacCutchan18-Apr-13 5:42 
GeneralRe: Ad Hoc routing protocol Pin
3bood.ghzawi19-Apr-13 0:05
member3bood.ghzawi19-Apr-13 0:05 
GeneralRe: Ad Hoc routing protocol Pin
Richard MacCutchan19-Apr-13 0:38
mvpRichard MacCutchan19-Apr-13 0:38 
GeneralRe: Ad Hoc routing protocol Pin
Joe Woodbury24-Apr-13 8:22
memberJoe Woodbury24-Apr-13 8:22 
GeneralRe: Ad Hoc routing protocol Pin
Richard MacCutchan24-Apr-13 9:30
mvpRichard MacCutchan24-Apr-13 9:30 
QuestionDisplay only 2 digs in string in label. Pin
Søren Lyder Nielsen17-Apr-13 23:50
memberSøren Lyder Nielsen17-Apr-13 23:50 
AnswerRe: Display only 2 digs in string in label. Pin
Richard MacCutchan18-Apr-13 1:46
mvpRichard MacCutchan18-Apr-13 1:46 
GeneralRe: Display only 2 digs in string in label. Pin
Søren Lyder Nielsen18-Apr-13 3:30
memberSøren Lyder Nielsen18-Apr-13 3:30 
GeneralRe: Display only 2 digs in string in label. Pin
Richard MacCutchan18-Apr-13 4:24
mvpRichard MacCutchan18-Apr-13 4:24 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 19 Jul 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid