CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: amara.fortheworld@gmail.com

Search: Search took 0.07 seconds.

  1. Re: How to implement BSTR in Java

    Hello Keang, could you please verify this:

    My Cpp Code:



    std::string xxxxx::GetActiveProjectNameForJava()
    {
    CComBSTR projectName(L"\\Default\\");
  2. Re: How to implement BSTR in Java

    Ok let me understand this!! Are you talking about the Cpp functions, so if i have a Cpp method(implemented for the COM server lets say GetProjectNameForJava) which can return a string value, then i...
  3. Re: How to implement BSTR in Java

    Ok i understood what you meant!! But i am new to Java!!


    ""You will either have to return the new value from the method or pass in an object that can be changed""

    ""or pass in a object that...
  4. Re: How to implement BSTR in Java

    private void PerformOp() throws JIException
    {
    JIString InputStr= new JIString("Project2");
    dispatch.callMethod("SetActiveProjectName", new Object[]{outStr});
    System.out.println("Out String =...
  5. Re: How to implement BSTR in Java

    Forget about the code, my aim is to implement the same function in Java too. In the JI is J-Interop "http://j-interop.org/".

    JISession session = null;
    IJIComObject sysInfoObject = null;...
  6. How to implement BSTR in Java

    I am having a ComServer, and its outlined functions are implemneted in C++. Below is the Cpp function.

    HRESULT cIntuneServer::GetActiveProjectName(/*([out]*/ BSTR* nameOfProject)
    {
    ...
  7. Re: New to Java, Confused about jar files and packages.

    Cool, created a directory like you said, compiled a produced the class file and now i was able to execute it.

    If i need any more help will ask you here.

    Thanks alot for the information.
  8. Re: New to Java, Confused about jar files and packages.

    Thanks for the quick response, you were right the directory structure

    org/jinterop/dcom/test/MSWord.class is present in j-Interop.jar which is present in the classpath.

    Now how do i get my new...
  9. New to Java, Confused about jar files and packages.

    I have a file by name MSWord.java:

    Class name MSWord

    package org.jinterop.dcom.test;

    This file is located at C:\Documents and Settings\xxxx\Desktop\Java Files New

    Environment Variable: ...
  10. Re: Obtain a pointer to data inside a trend items array

    continued.........


    trendpoint[pen][i]* = &m_TrendPoints.GetPrev(pos ); (where the point is start of 1st hour)

    trendpoint[pen][i]* = &m_TrendPoints.GetPrev(pos ); (where the point is start of...
  11. Re: Obtain a pointer to data inside a trend items array

    i just gave that to shiw the looping logic i am going through:

    pos = m_TrendItems[pen].GetTrendPoints().GetTailPosition();

    if(pos)
    trendpoint =...
  12. Re: Obtain a pointer to data inside a trend items array

    @CDEFG and @ Philip Nicoletti

    Thinks this should help,

    CTrendItems m_TrendItems;

    typedef CArray<CTrendItem, CTrendItem&> CTrendItems;

    CCsTrendPoints& GetTrendPoints(){
    ...
  13. Re: Obtain a pointer to data inside a trend items array

    do you have any suggestions GCDEF?
  14. Re: Obtain a pointer to data inside a trend items array

    @Lindley,

    the array is sorted according to timestamps of the data points.
  15. Re: Obtain a pointer to data inside a trend items array

    @GCDEF, is this what you are asking for?

    typedef CArray<CTrendItem, CTrendItem&> CTrendItems;

    CTrendItems m_TrendItems;


    @Lindley, sure will check now.
  16. Re: Obtain a pointer to data inside a trend items array

    @Linley,

    can you explain me how to use a map in my case.
  17. Re: Obtain a pointer to data inside a trend items array

    I am sorry it is a list.

    i meant not to store a single point, i just want to know how to get a pointer, so that i can store as many as i want.

    I have 10 hours of data points in my list, if i...
  18. Obtain a pointer to data inside a trend items array

    position = m_TrendItems[pen].GetTrendPoints().GetHeadPosition();

    while(trendpoint .m_time < requiredtime)
    trendpoint = m_TrendItems[pen].GetTrendPoints().GetPrev(position);

    m_TrendItems is the...
Results 1 to 18 of 18





Click Here to Expand Forum to Full Width

Featured