User Profile

Collapse

Profile Sidebar

Collapse
KYAW KYAW OO
KYAW KYAW OO
Last Activity: Nov 19 '12, 02:08 AM
Joined: Jan 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • CSharp Double Click in Selected Region which is Single Click using Visual Studio 2008

    Dear All,

    I am trying to get the another dialog using double click where single click was selected as size of (300 x 150) on the picture image.

    So far separated single click is ok but difficult to get double click without timer or anything else.

    Steps are as follow

    1. single click on the image then size of (300x150) area will assign at the click postion

    2. double clcik on...
    See more | Go to post

  • Marshalling from C++ DLL to CSharp for const wchar_t * using Visual Studio 2008 SP1

    Dear All,

    I am stuck on these C++ data types const wchar_t * since last week.

    It worked well in C# console application under mentioned below
    Code:
     unsafe static void Main(string[] args)
    {
      IntPtr ld, data1, data2;
      string str = "test.txt";
      int UTF_8 = 1;
    
      // Using PInvoke 
    [System.Runtime.InteropServices.DllImportAttribute("Test.dll", EntryPoint = "LoadFromFile")]
    ...
    See more | Go to post
    Last edited by Rabbit; Nov 19 '12, 01:23 AM. Reason: Please use code tags when posting code.

  • Debugging MultiThreading in VS 2005 and VS 2010

    Dear All,

    I am quite new in debugging multithreading in VS 2005 and VS 2010 even I had some experiences in threading.

    I had from someone that VS 2010 provide the features of multithreading facility if so how can do step by step.

    I hope someone will advice me soon.



    Thanks and best regards
    See more | Go to post

  • Hi TRScheel,

    I would like to debug(put break points) in my CSharp DLL side calling from C++ applcaition.exe . It is not as simple as you wrote in here.I am using VS 2005 and VS 2010 and I found out some ppl saying they are not provided except VS 2008.

    Is that right or something else and looking forward to hearing from you soon.


    Thanks and best regards
    See more | Go to post

    Leave a comment:


  • Debugging CSharp COMInterOP DLL from C++ Application

    Dear All,


    I am trying to look for the way of debugging CSharp COMInterOP Dll calling from C++ Application.exe . I hope someone will advise me.


    Thanks and best regards
    See more | Go to post

  • KYAW KYAW OO
    replied to Calling C Library DLLs from C Sharp
    Calling C Library DLLs from C Sharp and MarshalDirectiv eException Error

    Dear All,

    I am trying to call the data type unsigned char * included in the C DLL and whole structure from C Sharp.

    My draft code is below

    Code:
    // dll.cpp
    // Image Display and BufferMemory
    typedef
    struct ConvertedImage 
    {
    int height; 
    int size; 
    unsigned char *greyBMPBuf;
    ...
    See more | Go to post

    Leave a comment:


  • Hi,

    I am also started facing this issue and please advise me if you manage to settle it.

    I am looking forward to hearing from you soon.


    Thanks in advance
    See more | Go to post

    Leave a comment:


  • KYAW KYAW OO
    started a topic Calling C Library DLLs from C Sharp

    Calling C Library DLLs from C Sharp

    Dear All,

    I am trying to call the data type unsigned char * included in the C DLL and whole structure from C Sharp.
    My draft code is below

    Code:
    [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Unicode)]
            public struct [B]Converted[/B]
            {
                public int width;
                public int height;
                public[B] IntPtr [/B]Buf;  // which is [B]unsigned[/]
    ...
    See more | Go to post

  • Hi,

    Here is my draft code and I think one input argument and mulitple output arguments couldn't be possible using C++ funcitons.

    Code:
    // main.cpp 
    BOOL Dlg::Start()
    { 
         LPCWSTR fileName = _T("C\\Test.bmp");      // same as C:\Test.bmp 
         unsigned char *Content, Mem; 
         HBITMAP bitmap; 
      
         bitmap = LoadBMPFromFile(fileName, Content); 
         Mem = Content;
    ...
    See more | Go to post
    Last edited by Banfa; Mar 9 '10, 09:26 AM. Reason: Added [code]...[/code] tags

    Leave a comment:


  • C++ Calling Out Arguments inside the Functions and its funcion it'self

    I would like to get the value of argument and its output from function as per below.

    Code:
    LPCWSTR fileName = _T("C\\Test.bmp"); 
    unsigned char *Content, Mem;
    HBITMAP bitmap;
    
    bitmap = LoadBMPFromFile(fileName, Content);
    Mem = Content;
    
    HBITMAP Dlg::LoadBMPFromFile(LPCWSTR fileName, unsigned char *Content)
    {
          HBITMAP hBitmap = (HBITMAP)LoadImage(NULL, fileName,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE);
    ...
    See more | Go to post

  • KYAW KYAW OO
    started a topic No Display in VC++ MFC Windows
    in C

    No Display in VC++ MFC Windows

    I tried to show the memory image passed from unsigned char * in VC++ MFC Windows but I couldn't manage to see until now. Actually, it is working in the other SDK and functions for verification's purpose except display.

    My code are as below and I hope some one will advise me to close the case as soon as possible.

    Code:
    bool Dlg::Start()
    {
    	LPCWSTR fileName = _T("C:\\test.bmp"); 
    	greyMemImage = LoadBMPFromFile(fileName);
    ...
    See more | Go to post
    Last edited by Banfa; Mar 8 '10, 09:34 AM. Reason: Added [code]...[/code] tags

  • Typecasting for Class of Template Data type to unsigned char *

    Dear All,


    I am searching the way for Typecasting for Class of Template Data type to unsigned char *. Although I tried to browse in the internet and solve my best of knowledge, the issue is still there and here is my coding of conversion.


    a.h
    Code:
    class A
    {
    
    
    }
    types.h
    Code:
    typedef unsigned char  c_UInt8;

    main.cpp

    Code:
    HBITMAP
    ...
    See more | Go to post

  • Hi,


    Now error came out after red buffer used sizeOfRow instead of colorBmWidth.

    // For Color Images
    unsigned char *colorImage = new unsigned char[colorBmWidth * colorBmHeight * 3];
    colorImage = cColorContent;
    unsigned char *red = new unsigned char[colorBmWidth * colorBmHeight ];
    unsigned char *green = new unsigned char[colorBmWidth * colorBmHeight ];
    unsigned char *blue = new...
    See more | Go to post

    Leave a comment:


  • Hi,


    Now access violation writing location in after k = 491
    // For Color Images
    unsigned char *colorImage = new unsigned char[colorBmWidth * colorBmHeight * 3];
    colorImage = cColorContent;
    unsigned char *red = new unsigned char[colorBmWidth * colorBmHeight ];
    unsigned char *green = new unsigned char[colorBmWidth * colorBmHeight ];
    unsigned char *blue = new unsigned char[colorBmWidth...
    See more | Go to post

    Leave a comment:


  • Hi,


    Thank you your prompt reply and

    I am planning on running in native C++ using VS 2008 and integrate with

    The sizeof(char) on your system is 1 byte and I couldn't well where I put these lines in my coding.

    [k*colorBmHeight + i*3]
    The image size is let say 1976 x 1472

    Calculate the number of bytes in a row. Something like:
    ((colorBmWidth * 3 / 4)...
    See more | Go to post

    Leave a comment:


  • Hi,


    Thanks for your prompt reply. As for me, I would like to extract out red, green, blue, unused as each unsigned char * since my dll based on native C or C++ only. As well, the other SDK only accept as I mentioned R,G,B differently then combine as one color byte. Please advise me and looking forward to hearing from you soon.



    Best regards
    See more | Go to post

    Leave a comment:


  • How to extract RGB as unsigned char * from unsigned char * of 24 bit BMP Color images

    Dear All,


    Now, I am stuck above question so long and I would like to get Red, Green and Blue as unsigned char * each from unsigned char * of 24 bit BMP Color images.

    e.g
    unsigned char * image = new unsigned char [ width * height];
    unsigned char * red = new unsigned char [ width * height];
    unsigned char * blue= new unsigned char [ width * height];
    unsigned char * green = new unsigned...
    See more | Go to post

  • KYAW KYAW OO
    replied to C++ Data Types from Templates
    in C
    Data Type Conversion

    Dear All,



    I tried to type cast the image memory of unsigned char * to unsigned long * as in here.

    unsigned char *colorImage = new unsigned char[colorBmWidth * colorBmHeight * 3];
    // Convert from unsigned char * to unsigned long *
    unsigned long *lColorContent = (unsigned long*) colorImage;

    My original data is 24 bits bitmap image and still...
    See more | Go to post

    Leave a comment:


  • KYAW KYAW OO
    started a topic C++ Data Types from Templates
    in C

    C++ Data Types from Templates

    Dear All,


    I am trying to write a wrapper DLL from the other SDK's template library to use applcaition in C++ and .NET.

    For example

    Class A;
    typedef unsigned char c_UInt8;
    A<c_UInt8> bufImage;

    buf = bufImage; // here I am looking for the suitable and equivalnet data type of bufImage



    Please advise me if...
    See more | Go to post

  • KYAW KYAW OO
    replied to Pattern Matching Library
    Pattern Matching Library

    Dear Jos,

    Thank you for ur help for System.Text.Reg ularExpressions and my case is I am trying to write some C++ Library for e-Passport application in different lightings with C++, C# and Java.

    I am searching the free one and samples for that but I couldn't managed to find the right and working one until now and pls advise me if you had time.


    Thanks and best...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...