User Profile

Collapse

Profile Sidebar

Collapse
GigaKatowice
GigaKatowice
Last Activity: Apr 28 '14, 11:52 AM
Joined: Jun 20 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Is it a bad practice to reference an exe file in C# project

    Hi.

    I have one simple question.

    I know that I can reference an .net executable file in my C# project.

    I don't want to make unnecessary project with "Output Type: Windows Application" just to call some dlls.

    I just want to know is it OK or is it a bad practice to refrence an exe file?
    See more | Go to post

  • How to design/write GlobalConfig class that can be inherited?

    Hi.

    I need to create a GlobalConfig class. But I want to derive from it in another class.

    Here's an example:

    Code:
    public class BaseConfig {
     public string GlobalPath {get; set;}
    }
    
    public class ConfigA :  BaseConfig  {
     public string pathA {get; set;}
    }
    
    public class ConfigB :  ConfigA  {
     public string pathB {get; set;}
    }
    The idea behind is...
    See more | Go to post

  • GigaKatowice
    replied to Using C++ library in C#
    I managed to run this function with help from other forum.
    My definition for this function looks like this:

    Code:
      private extern static int oemGetImage([In, Out]byte[] pImageBuffer,
      ref uint pdwSize, uint nTop,
      uint nLeft, uint nRight,
      uint nBottom, uint nSkip,
      uint nBits, uint nFormat,
      uint nWhiteValue,
      uint nExposeAttempts, uint nGap,
      bool Invert, [MarshalAs(UnmanagedType.FunctionPtr)]Progress
    ...
    See more | Go to post

    Leave a comment:


  • GigaKatowice
    started a topic Using C++ library in C#

    Using C++ library in C#

    Hi.

    I need help with my code.
    I'm trying to run unmanaged code from my C# code.


    C++ Code
    Code:
    Result_t oemGetImage(PBYTE pImageBuffer,
                         PDWORD pdwSize, WORD nTop,
                         WORD nLeft, WORD nRight,
                         WORD nBottom, WORD nSkip,
                         WORD nBits, FileFormat_t nFormat,
                         WORD nWhiteValue,
    ...
    See more | Go to post
No activity results to display
Show More
Working...