473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with 2D-Array in Structure using a C++.dll

I've got a problem with the following C++ Structur in Vb.Net.

typedef struct SStateInfo {
int Version; // Version der Struktur
char Name[256]; // Bundeslandname
char Shrt[256]; // Kuerzel des Bundeslandes
char Comp[3][8]; // Kuerzel der Bezeichnungen der Koordinaten
Komponenten z.B R,H,H
char Info[1024]; // Kommentar zu Bundesland
int Proj; // Verwendete Abbildung
int Patch; // Info ob Patch oder originale
Bundeslandtransformation
// 0 - Bundeslandtransf.
// 1 - Patch
// 2 - Patch mit Map-Information
}SStateInfo;

I tried this :

<StructLayout(LayoutKind.Sequential, Pack:=1)_
Public Structure SStateInfo

''' <summary>Version der Struktur</summary>
Public Version As Integer
''' <summary>Bundeslandname</summary>
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=256)_
Public Name() As Char
''' <summary>Kuerzel des Bundeslandes</summary>
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=256)_
Public Shrt() As Char
''' <summary>Kuerzel der Bezeichnungen der Koordinaten Komponenten
z.B R,H,H</summary>
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=3)_
Public Comp As String
''' <summary>Kommentar zu Bundesland</summary>
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=1024)_
Public Info() As Char
''' <summary>Verwendete Abbildung</summary>
Public Proj As Integer
''' <summary>
''' Info ob Patch oder originale Bundeslandtransformation
''' </summary>
''' <remarks0 - Bundeslandtransf.<br/1 - Patch 2<br/- Patch
mit Map-Information</remarks>
Public Patch As Integer
End Structure

Oct 11 '06 #1
0 1010

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: beliavsky | last post by:
xiaohua_sun@yahoo.com (SunX) wrote in message news:<337e6cd5.0405291411.4376debc@posting.google.com>... > What is the best way to assign a 2d lists? Something like; > > for i in range(10): > ...
2
by: Shamli | last post by:
I am looking for an algorithm that enlarge a 2D polygon. cheers,
1
by: Jesper | last post by:
Hi, 1. I've search the net for some great usercontrols where I can plot data, draw graphs in both 2d and 3d. I've not had that much of success in my search, and I'm considering writing my own....
6
by: Dan V. | last post by:
I would like to create a 2D string list (2D ArrayList ???). I would like to pass in a table or query as a parameter and have both columns transform into a 2D ArrayList. When I sort the one...
17
by: Yuri CHUANG | last post by:
Hi, I'm the beginner of the CPL.I write a program about the problem of Ring of Josephus,using DoubleLinkList data structure. I'm very confused that I think there is really no error in my...
0
by: M. Cota | last post by:
Hi there, Here at http://www.softwaresigloxxi.com have just published version 4 of Super 2d/3d Graph Library. This native .NET library can render different types of charts to the browser and...
6
by: John Smith | last post by:
//Shrinks the specified polygon by one pixel (in any relevant direction) //so that the shrunken polygon sits exactly within the original (specifed) polygon. public void Point ShrinkPolygon(Point...
5
by: Jack Nielsen | last post by:
Does anyone have a link to Visual Studio 2005 directcx 2d sprite manipulation or just simple graphics with directx 2d. Jack ...
7
by: Jason | last post by:
I don't know if anyone caught my previous post about a project I've inherited, but I have another question about it. (Quick summary: I have old C code, converting to C++. Compiles and runs...
4
by: Jon Harrop | last post by:
I am writing a 3D graphing component built upon WPF and would like to have 2D vector graphics (e.g. typeset mathematics) as labels laid out from 3D coordinates. For example, a tick on an axis has a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.