Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: ASP C# WebSite to load a simple CSV File Pin
Luc Pattyn6-Dec-10 22:30
sitebuilderLuc Pattyn6-Dec-10 22:30 
GeneralRe: ASP C# WebSite to load a simple CSV File Pin
Dan Mos6-Dec-10 22:31
Dan Mos6-Dec-10 22:31 
GeneralRe: ASP C# WebSite to load a simple CSV File Pin
Luc Pattyn6-Dec-10 22:32
sitebuilderLuc Pattyn6-Dec-10 22:32 
AnswerRe: ASP C# WebSite to load a simple CSV File Pin
TweakBird7-Dec-10 1:35
TweakBird7-Dec-10 1:35 
AnswerRe: ASP C# WebSite to load a simple CSV File Pin
Alok Sharma ji7-Dec-10 1:49
Alok Sharma ji7-Dec-10 1:49 
GeneralRe: ASP C# WebSite to load a simple CSV File Pin
gorovdude7-Dec-10 1:52
gorovdude7-Dec-10 1:52 
AnswerRe: ASP C# WebSite to load a simple CSV File Pin
Muhammad Mazhar7-Dec-10 3:47
Muhammad Mazhar7-Dec-10 3:47 
QuestionLOGFONT in C# Pin
VCsamir6-Dec-10 19:46
VCsamir6-Dec-10 19:46 
Hi friends & seniors,

i have a Vc++ dll in which i return a struct of LOGFONT menbers
<pre> struct xyzStruct
{
LOGFONT a;
}

extern "c" __dllspec ... xyzStruct a()

</pre>

this data is populated in vc++ dll and passed to a C# form

in the C# side i have created
<pre>[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
public class LOGFONT
{
public int lfHeight = 0;
public int lfWidth = 0;
public int lfEscapement = 0;
public int lfOrientation = 0;
public int lfWeight = 0;
public byte lfItalic = 0;
public byte lfUnderline = 0;
public byte lfStrikeOut = 0;
public byte lfCharSet = 0;
public byte lfOutPrecision = 0;
public byte lfClipPrecision = 0;
public byte lfQuality = 0;
public byte lfPitchAndFamily = 0;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=32)]
public string lfFaceName = string.Empty;
}

</pre>

then i make pinvoke to the DLL

<pre>
[StructLayout(LayoutKind.Sequential)]
public class xyzStruct
{
public lOGFONT a;
}
[dllImport ("Dll name")]
public static extern xyzStruct a();
</pre>

i get error "methods signature is not pinvoke comaptible"

i try using int in struct in both dll and form everything works fine.

thanks in advance


Regards
Samir
AnswerRe: LOGFONT in C# Pin
_Erik_7-Dec-10 0:16
_Erik_7-Dec-10 0:16 
AnswerRe: LOGFONT in C# Pin
RaviRanjanKr17-Dec-10 17:46
professionalRaviRanjanKr17-Dec-10 17:46 
Questionhow to make excel with zero before the number in C# Pin
goldsoft6-Dec-10 19:31
goldsoft6-Dec-10 19:31 
AnswerRe: how to make excel with zero before the number in C# Pin
Mycroft Holmes6-Dec-10 20:49
professionalMycroft Holmes6-Dec-10 20:49 
QuestionSend SMS in asp.net Pin
yesu prakash6-Dec-10 17:50
yesu prakash6-Dec-10 17:50 
AnswerRe: Send SMS in asp.net Pin
keyboard warrior6-Dec-10 17:56
keyboard warrior6-Dec-10 17:56 
AnswerRe: Send SMS in asp.net Pin
Muhammad Mazhar7-Dec-10 3:55
Muhammad Mazhar7-Dec-10 3:55 
AnswerRe: Send SMS in asp.net Pin
Yvan Rodrigues12-Dec-10 14:11
professionalYvan Rodrigues12-Dec-10 14:11 
AnswerRe: Send SMS in asp.net Pin
RaviRanjanKr17-Dec-10 17:53
professionalRaviRanjanKr17-Dec-10 17:53 
QuestionI face a problem on reading the stream (Telnet Client) Pin
Moustafa Safwat6-Dec-10 17:09
Moustafa Safwat6-Dec-10 17:09 
AnswerRe: I face a problem on reading the stream (Telnet Client) Pin
Dave Kreskowiak6-Dec-10 17:55
mveDave Kreskowiak6-Dec-10 17:55 
GeneralRe: I face a problem on reading the stream (Telnet Client) Pin
Moustafa Safwat6-Dec-10 21:57
Moustafa Safwat6-Dec-10 21:57 
GeneralRe: I face a problem on reading the stream (Telnet Client) Pin
PIEBALDconsult7-Dec-10 2:32
mvePIEBALDconsult7-Dec-10 2:32 
GeneralRe: I face a problem on reading the stream (Telnet Client) Pin
Moustafa Safwat7-Dec-10 17:36
Moustafa Safwat7-Dec-10 17:36 
AnswerRe: I face a problem on reading the stream (Telnet Client) Pin
PIEBALDconsult7-Dec-10 2:32
mvePIEBALDconsult7-Dec-10 2:32 
GeneralRe: I face a problem on reading the stream (Telnet Client) Pin
Moustafa Safwat7-Dec-10 17:43
Moustafa Safwat7-Dec-10 17:43 
AnswerRe: I face a problem on reading the stream (Telnet Client) Pin
jschell7-Dec-10 10:16
jschell7-Dec-10 10:16 

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.