Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

Paulraj G

@Paulraj G
About
Posts
132
Topics
66
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • call C# function from C++ dll
    P Paulraj G

    Hi All, I have a function in C++ dll like

    FunctionCPP(int s)
    {
    }

    I have a function in C# application(exe) like

    int FunctionCSharp(int s)
    {
    return s;
    }

    what is the procedure to call FunctionCSharp from FunctionCPP? Any help will be appriciated. Thanks

    G.Paulraj

    C / C++ / MFC question csharp c++ help

  • How to return char*
    P Paulraj G

    Richard and Superman, Thanks for your reply. Actaully i supposed to return std::string. The thing is, this is a dll. and i am calling this dll from c# application. If i return like

    return "some value";

    this is working fine. but if i return like,

    char* str; or std::string str;

    return str;

    the output is not coming correctly. from c# i am calling like

    String str = somefunctionname();

    How can solve this issue?

    G.Paulraj

    C / C++ / MFC c++ tutorial question

  • How to return char*
    P Paulraj G

    Hi All, How to reyurn char* in c++? My code is

    extern "C" char* callFunction()
    {
    std::string stroutput = pObject->ProcessNumber("hi","hi");
    char* strout = new char [stroutput.size()+1];
    strcpy (strout, stroutput.c_str());
    return strout;
    delete[] strout;

    }

    Thanks in advance...

    G.Paulraj

    C / C++ / MFC c++ tutorial question

  • call C++ dll from C# without name mangling
    P Paulraj G

    Hi... thanks for ur quick reply. in .h file i have declared like

    __declspec(dllexport) char* BaseClassFunction();

    in .CPP file the definition is like

    extern "C" __declspec(dllexport) char* __stdcall ISim::BaseClassFunction()
    {
    static char* pszCPUType = "derived class function called";
    return pszCPUType;
    }

    from c# i am calling like following...

    const String _dllLocation1 = @"D:\Project\Dll.dll";
    [DllImport(_dllLocation1)]
    static extern String BaseClassFunction();

    String Baseclass = BaseClassFunction();
    MessageBox.Show(Baseclass.ToString());

    the above code is not working... any help will be appricated..

    G.Paulraj

    C# question csharp c++

  • call C++ dll from C# without name mangling
    P Paulraj G

    Hi All, I am calling a c++ dll from C# application. with out name mangling how can i call c++ function and class from c# application? Thanks in advance.

    G.Paulraj

    C# question csharp c++

  • Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    P Paulraj G

    Hi All, I am calling a c++ dll from c#. it throwing error like "An unhandled exception of type 'System.AccessViolationException' occurred in exe Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

    [DllImport(@"D:\Project\Working\Toolkit-2.0\output\Win32\Debug\ipetk.dll",
    EntryPoint = "?GetModuleTypeString@ModuleIndex@Infrastructure@IPETK@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ",
    CallingConvention = CallingConvention.Cdecl)]
    static extern string GetModuleTypeString(ModuleType ths);

    string ModuleIndex = GetModuleTypeString(ModuleType.IPD);
    MessageBox.Show(ModuleIndex.ToString());

    how can i resolve this issue..? any help will be appriciated. Thanks

    G.Paulraj

    C# help question csharp c++ sysadmin

  • PolyDraw - How to fill?
    P Paulraj G

    Thanks Cédric Moonen. dc.FloodFill(1,1,RGB(255,255,255)); i have called like above. but full screen color has been changed. how to change the color of that particular polydraw area. thanks...

    G.Paulraj

    C / C++ / MFC help tutorial question

  • PolyDraw - How to fill?
    P Paulraj G

    Hi... I am using visual studio 2008. The syntax for FloodFill is FloodFill(HTC htc, int x, int y, COLERREF color); if i use like FloodFill(10,100,RGB(255,255,255));, there will be a syntax error like FlootFill does not take 3 arguments.

    G.Paulraj

    C / C++ / MFC help tutorial question

  • PolyDraw - How to fill?
    P Paulraj G

    Thanks super man. FloodFill and ExtFloodFill asks HTC. how can get that variable from my code.

    G.Paulraj

    C / C++ / MFC help tutorial question

  • PolyDraw - How to fill?
    P Paulraj G

    Hi... I have created a polydraw.

    CPaintDC dc (this);

    CRect rect;
    GetClientRect (&rect);
    CPen pen (PS\_SOLID, 0, RGB (0, 0, 255));
    CPen\* pOldPen = dc.SelectObject (&pen);
    POINT aPoint3\[7\] = { 10, 10, 100, 150, 150, 150, 10, 100, 500,150,150, 100, 10, 10 };
    BYTE types\[7\] = {PT\_MOVETO, PT\_LINETO, PT\_LINETO, PT\_BEZIERTO,PT\_BEZIERTO, PT\_BEZIERTO, PT\_LINETO};
    dc.PolyDraw(aPoint3,types,7);
    dc.SelectObject (pOldPen);
    

    Now i want to fill this polydraw. How can do that? Any help will be appriciated... Thanks...

    G.Paulraj

    C / C++ / MFC help tutorial question

  • Dynamic Scroll bar
    P Paulraj G

    Hi Everybody, Now i am creating N-Number of text boxes in a window. But the window showing particular no of textbox. after that the window does not scroll. Now i need to scroll the window if the textbox is high numbers. Any help will be appriciated. Thanks.

    G.Paulraj

    C / C++ / MFC help

  • How to find a file is already opened or not?
    P Paulraj G

    Hi Everybody, How to find a text file is already opened or not? I have used the following code. but it is not working correctly.

    ifstream inFile;
    inFile.open("C:\\test.txt");
    if (!inFile)
    {
    AfxMessageBox("file is opened");
    }
    else
    {
    AfxMessageBox("file not opened");
    }

    can anyone help me to how to find a file opened or not? Thanks....

    G.Paulraj

    C / C++ / MFC help tutorial question

  • Disable menu item
    P Paulraj G

    Hi Arun Jacob, Its working in Internet Explorere. but not working in other browser(Opera).

    G.Paulraj

    ASP.NET help tutorial

  • Disable menu item
    P Paulraj G

    Hi Everyone, My menu is looking like following,

    <a class="menu"; href="page1.aspx"; title="Page1">   Page1    </a>
    <a class="menu"; href="page2.aspx"; title="page2">   page2    </a>
    <a class="menu"; href="page3.aspx"; title="page3">   page3    </a>

    Now i want to disable page3 menu. how to do it... any help will be appriciated... thanks...

    G.Paulraj

    ASP.NET help tutorial

  • How to check whether the user logged in or not?
    P Paulraj G

    Hi... i have to check the whether the user get logged in or not all pages... how do i use Default.aspx page output in all pages? any help will be appriciated. Thanks...

    G.Paulraj

    ASP.NET question help tutorial

  • ftp - upload image files
    P Paulraj G

    Hi... Thanks for your reply. I am using c#. so can you please send the code snipt in c#? thanks...

    G.Paulraj

    ASP.NET csharp help tutorial question

  • ftp - upload image files
    P Paulraj G

    Hi... I am using asp with c#. I am doing an application for upload image files via ftp. how to i do this? Any help will be appriciated... thanks...

    G.Paulraj

    ASP.NET csharp help tutorial question

  • Access asp control from c#
    P Paulraj G

    Yes... Its working.... But i need to give links to each login name. for ex, paul - www.paul.com raj - www.raj.com rakesh - www.rakesh.com Thats why i am asking to print in DIV. Thanks...

    G.Paulraj

    ASP.NET csharp database help tutorial

  • Access asp control from c#
    P Paulraj G

    yes... That is one method. But here i don't know how much rows are there. So i have to include many labels... thats why i am asking to print with out labels...

    G.Paulraj

    ASP.NET csharp database help tutorial

  • Access asp control from c#
    P Paulraj G

    Hi... I have two DIV controls in my main.aspx page. 1st DIV's ID is COMPONENT and another one is COLOR. in main.aspx.cs, I have code to retrieve some datas from database.

    foreach (DataRow drRow in dtResult.Rows)
    {

                Loginname = drRow\["name"\].ToString();
                password = drRow\["password"\].ToString();
               
                Response.Write(Loginname  + "-" + password);
             }
    

    It is printing the values in mian window.but i want to print the value of Loginname & password into the DIV - COMPONENT. How to do this... Any help will be appriciated... Thanks...

    G.Paulraj

    ASP.NET csharp database help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups