Click here to Skip to main content
15,887,027 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: RFC: A .NET evolutionary computing framework... Pin
Duncan Edwards Jones17-Apr-03 0:26
professionalDuncan Edwards Jones17-Apr-03 0:26 
GeneralRe: RFC: A .NET evolutionary computing framework... Pin
Duncan Edwards Jones5-May-03 22:44
professionalDuncan Edwards Jones5-May-03 22:44 
QuestionHow to make $$ out of .NET or webapps Pin
ColinDavies6-Apr-03 20:19
ColinDavies6-Apr-03 20:19 
AnswerRe: How to make $$ out of .NET or webapps Pin
Michael Dunn10-May-03 7:12
sitebuilderMichael Dunn10-May-03 7:12 
GeneralMy new article - Word addins Pin
Amit Dey29-Mar-03 21:42
Amit Dey29-Mar-03 21:42 
GeneralRe: My new article - Word addins Pin
Erik Thompson15-May-03 7:37
sitebuilderErik Thompson15-May-03 7:37 
GeneralRe: My new article - Word addins Pin
Amit Dey16-May-03 9:53
Amit Dey16-May-03 9:53 
GeneralIdea Pin
Oleksandr Kucherenko28-Mar-03 4:52
Oleksandr Kucherenko28-Mar-03 4:52 
Hi...
Can somebody write a convertor from C++ headers to C#...
I mean convertion of fucntion declaration:
example:
in c++ in header structs and functions look like:
<br />
typedef struct tagCREATESTRUCTA {<br />
    LPVOID      lpCreateParams;<br />
    HINSTANCE   hInstance;<br />
    HMENU       hMenu;<br />
    HWND        hwndParent;<br />
    int         cy;<br />
    int         cx;<br />
    int         y;<br />
    int         x;<br />
    LONG        style;<br />
    LPCSTR      lpszName;<br />
    LPCSTR      lpszClass;<br />
    DWORD       dwExStyle;<br />
} CREATESTRUCTA, *LPCREATESTRUCTA;<br />
<br />
WINGDIAPI int   WINAPI GetDIBits( IN HDC, IN HBITMAP, IN UINT, IN UINT,  OUT LPVOID, IN OUT LPBITMAPINFO, IN UINT);<br />

in c#
<br />
  [StructLayout(LayoutKind.Sequential)]<br />
  public struct CREATESTRUCT<br />
  {<br />
    IntPtr    lpCreateParams; <br />
    IntPtr    hInstance; <br />
    IntPtr    hMenu; <br />
    IntPtr    hwndParent; <br />
    int       cy; <br />
    int       cx; <br />
    int       y; <br />
    int       x; <br />
    Int32     style; <br />
    string    lpszName; <br />
    string    lpszClass; <br />
    UInt32    dwExStyle; <br />
  }<br />
<br />
[DllImport("gdi32")]<br />
public static extern int GetDIBits(IntPtr hDC, IntPtr hbm, int StartScan, int ScanLines, int lpBits, BITMAPINFOHEADER bmi, int usage);<br />


Languages is simmilar enough and conversion can be done by simple words replace and strings movements


Good Luck
Alex Kucherenko
GeneralRe: Idea Pin
Stephane Rodriguez.30-Mar-03 8:57
Stephane Rodriguez.30-Mar-03 8:57 
GeneralRe: Idea Pin
Oleksandr Kucherenko3-Apr-03 5:29
Oleksandr Kucherenko3-Apr-03 5:29 
GeneralRe: Idea Pin
Arun Bhalla8-Apr-03 8:14
Arun Bhalla8-Apr-03 8:14 
GeneralRe: Idea Pin
J. Dunlap8-Apr-03 9:02
J. Dunlap8-Apr-03 9:02 
GeneralRe: Idea Pin
Stephane Rodriguez.8-Apr-03 9:05
Stephane Rodriguez.8-Apr-03 9:05 
GeneralProduct or article idea.. Pin
Ray Cassick17-Mar-03 17:40
Ray Cassick17-Mar-03 17:40 
GeneralRe: Product or article idea.. Pin
Jerry Dennany19-Mar-03 6:17
Jerry Dennany19-Mar-03 6:17 
GeneralAdding Popup menues to IE Pin
aidandoyle10-Mar-03 12:37
aidandoyle10-Mar-03 12:37 
GeneralRe: Adding Popup menues to IE Pin
Abbas_Riazi16-Mar-03 3:00
professionalAbbas_Riazi16-Mar-03 3:00 
GeneralRe: Adding Popup menues to IE Pin
Kant16-Mar-03 4:54
Kant16-Mar-03 4:54 
GeneralWebbrowser Popup ad blockers Pin
Brett Robichaud27-Feb-03 4:53
Brett Robichaud27-Feb-03 4:53 
GeneralRe: Webbrowser Popup ad blockers Pin
Stephane Rodriguez.27-Feb-03 5:03
Stephane Rodriguez.27-Feb-03 5:03 
GeneralRe: Webbrowser Popup ad blockers Pin
Brett Robichaud27-Feb-03 5:35
Brett Robichaud27-Feb-03 5:35 
GeneralRe: Webbrowser Popup ad blockers Pin
Todd Smith27-Feb-03 6:47
Todd Smith27-Feb-03 6:47 
GeneralDLL Function Parameters Pin
AFShin Dehghani25-Feb-03 2:33
AFShin Dehghani25-Feb-03 2:33 
GeneralRe: DLL Function Parameters Pin
-Dy25-Feb-03 3:34
-Dy25-Feb-03 3:34 
GeneralRe: DLL Function Parameters Pin
AFShin Dehghani25-Feb-03 19:41
AFShin Dehghani25-Feb-03 19:41 

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.