User Profile

Collapse

Profile Sidebar

Collapse
abghosh
abghosh
Last Activity: Mar 8 '10, 05:29 AM
Joined: Feb 20 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks for your suggesstion.
    In my last reply what I want to convey is that:

    Case 1:
    # Dll function takes string as an argument and returns string as the result.
    In this case if I call the function like:

    Code:
    <DllImport("G:\test\debug\test.dll", _ 
            SetLastError:=True, CharSet:=CharSet.Ansi, _ 
            ExactSpelling:=True, _ 
            CallingConvention:=CallingConvention.Cdecl)>
    ...
    See more | Go to post

    Leave a comment:


  • Hi
    Actually whatever argument I am passing its not working. E.g. suppose I am passing an integer argument (say 8) but a constant integer 1 is being passed every time.

    So I require help on passing argument to this.
    See more | Go to post

    Leave a comment:


  • Nope it didn't work either. Let me give my code here:
    VB code for calling the dll function
    Code:
    Private Sub getData(ByVal rowIndex As Integer)
            Dim Message As String = "Sumana"
            Dim temp As New StringBuilder
            temp.Append(New String(Message))
            Dim res As New StringBuilder
            res = _ZN11QtEngineDll7randIntEPKc(temp)
            Dim x() As Char = res.ToString
    ...
    See more | Go to post

    Leave a comment:


  • Hi NoItAll

    You are right. Not all codes are in vb. As I have mentioned the dll is created using qt4 and the dll call is made using vb.net.

    Can you pls explain a bit more on your comments. Even in place of stringbuilder i pass String argument then also it is not working.


    Any way thanks for ur reply.
    See more | Go to post

    Leave a comment:


  • Passing argument ito dll call in vb .net

    In my vb.net code I want to call a dll file created by Qt4.
    Now everything works fine untill and unless I pass some string argument to the function.

    Here is the function in dll file:
    Code:
    const char* QtEngineDll::randInt(char url[])
    {
        QString result;
        /*QTextCodec *codec = QTextCodec::codecForName("UTF-8");
        QByteArray d = codec->fromUnicode(url);
        result=
    ...
    See more | Go to post

  • abghosh
    started a topic Read live stock quoted from a website using qt4 c++?
    in C

    Read live stock quoted from a website using qt4 c++?

    Hi
    i want to read data from a csv file that is located on the internet, e.g.
    http://download.financ e.yahoo.com/d/quotes.csv?s=DL F.NS&f=sl1d1t1c 1ohgv&e=.csv and read it as usually.

    I can read a csv file located in my local computer.

    I am a newbee in this field.
    Thanks in advance.
    See more | Go to post

  • abghosh
    replied to Not getting requierd output in C
    in C
    Run this loop:
    For(i = 1; i <= Limit; i++)
    for(j = 0; j < i; j++)
    printf("%d", (i - j) % 2);
    printf("\n");
    }

    Hope this help.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...