Click here to Skip to main content
15,885,365 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionDetecting AxWebBrowser scroll bars Pin
the red baron27-Jan-07 20:37
the red baron27-Jan-07 20:37 
Questioncan any body tell me the code for customizing the crystal reports Pin
indian14326-Jan-07 18:30
indian14326-Jan-07 18:30 
Question.Net Reactor Pin
Glen Harvy26-Jan-07 13:55
Glen Harvy26-Jan-07 13:55 
Questionwebcam preview Pin
sini8725-Jan-07 12:15
sini8725-Jan-07 12:15 
AnswerRe: webcam preview Pin
Christian Graus26-Jan-07 10:51
protectorChristian Graus26-Jan-07 10:51 
Questionmanaged c++.net: allocating the memory for an array of struct in a coherent memory area Pin
HUMPPAAA!25-Jan-07 9:43
HUMPPAAA!25-Jan-07 9:43 
AnswerRe: managed c++.net: allocating the memory for an array of struct in a coherent memory area Pin
Christian Graus26-Jan-07 10:51
protectorChristian Graus26-Jan-07 10:51 
GeneralRe: managed c++.net: allocating the memory for an array of struct in a coherent memory area Pin
HUMPPAAA!31-Jan-07 23:25
HUMPPAAA!31-Jan-07 23:25 
Hi,
thank you for your reply!
Finally I found the problem by my own.

The problem was the structure:
<br />
struct TMP<br />
{<br />
   DWORD x;<br />
   WORD  z;<br />
};<br />


A sizeof(TMP) told me that it's 8 Bytes big.
The strange thing here is that a DWORD is 4 Bytes and a WORD is 2 Bytes big (confirmed by sizeof(DWORD) and sizeof(WORD). If you count it together it's 6 and not 8???

The DLL function expected an array of 6 Bytes structs.
What it got was an array of 8 Bytes structs, which led to that the Dll got garbage while it was reading the second array element.

What I did now, was splitting up the DWORD into two WORD variables:
<br />
struct TMP2<br />
{<br />
   WORD x1;<br />
   WORD x2;<br />
   WORD z;<br />
};<br />

sizeof(TMP2) says that it's 6 Bytes big now. Really strange.
GeneralRe: managed c++.net: allocating the memory for an array of struct in a coherent memory area Pin
Luc Pattyn1-Feb-07 1:56
sitebuilderLuc Pattyn1-Feb-07 1:56 
QuestionDataBinding the UI control to the array element ? Pin
Patrick Sky24-Jan-07 20:57
Patrick Sky24-Jan-07 20:57 
AnswerRe: DataBinding the UI control to the array element ? Pin
Patrick Sky24-Jan-07 21:02
Patrick Sky24-Jan-07 21:02 
QuestionSharing A Folder through WebApplication In .Net Pin
Nagaraju_Focus24-Jan-07 19:42
Nagaraju_Focus24-Jan-07 19:42 
Questionfrom .NET to src code (and all points between...) Pin
john john mackey24-Jan-07 8:22
john john mackey24-Jan-07 8:22 
AnswerRe: from .NET to src code (and all points between...) Pin
Pete O'Hanlon24-Jan-07 9:26
mvePete O'Hanlon24-Jan-07 9:26 
GeneralRe: from .NET to src code (and all points between...) Pin
john john mackey24-Jan-07 12:02
john john mackey24-Jan-07 12:02 
GeneralRe: from .NET to src code (and all points between...) Pin
Pete O'Hanlon24-Jan-07 22:36
mvePete O'Hanlon24-Jan-07 22:36 
GeneralRe: from .NET to src code (and all points between...) Pin
john john mackey26-Jan-07 10:14
john john mackey26-Jan-07 10:14 
AnswerRe: from .NET to src code (and all points between...) Pin
Guffa24-Jan-07 23:19
Guffa24-Jan-07 23:19 
QuestionCan I customize the paper size and print a crystal report Pin
indian14323-Jan-07 17:57
indian14323-Jan-07 17:57 
QuestionIs .Net 2.0 is backward compatible with .Net 1.1? Pin
Sunil Jampa23-Jan-07 17:17
Sunil Jampa23-Jan-07 17:17 
AnswerRe: Is .Net 2.0 is backward compatible with .Net 1.1? Pin
Christian Graus23-Jan-07 17:33
protectorChristian Graus23-Jan-07 17:33 
QuestionRe: Is .Net 2.0 is backward compatible with .Net 1.1? Pin
Sunil Jampa23-Jan-07 18:08
Sunil Jampa23-Jan-07 18:08 
AnswerRe: Is .Net 2.0 is backward compatible with .Net 1.1? Pin
Christian Graus23-Jan-07 18:16
protectorChristian Graus23-Jan-07 18:16 
QuestionRe: Is .Net 2.0 is backward compatible with .Net 1.1? Pin
Sunil Jampa23-Jan-07 18:48
Sunil Jampa23-Jan-07 18:48 
AnswerRe: Is .Net 2.0 is backward compatible with .Net 1.1? Pin
Tim Paaschen23-Jan-07 19:29
Tim Paaschen23-Jan-07 19:29 

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.