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

Search:

Type: Posts; User: Eli Gassert

Page 1 of 67 1 2 3 4

Search: Search took 0.45 seconds.

  1. Replies
    5
    Views
    708

    Re: C++ Executable Calling a C# Dll

    Lower level languages will give you the most flexibility. C++ DLLs can be called directly from C# (as well as _many_ other languages) without any additional code; you set up an external reference...
  2. Replies
    5
    Views
    708

    Re: C++ Executable Calling a C# Dll

    You can do a few things:
    1) You can use C++/CLI to integrate in with .NET, thus being able to call the managed code directly from within C++ (though your executable is then tied directly to .NET)...
  3. Replies
    5
    Views
    3,619

    Re: istream::getline() and getline()

    You read a blank line... that blank line fills zero characters of the buffer. The get function returns 0 as the # of characters read into the sz buffer. The while loop ends because it thinks it...
  4. Replies
    5
    Views
    3,619

    Re: istream::getline() and getline()

    I'm not quite sure what you're trying to accomplish with the first way of reading the data. You're limiting yourself to 100 characters per line, so assuming you want to append the \n character is...
  5. Replies
    7
    Views
    1,094

    Re: C++ Vector question??

    Thsi code is untested...


    void printarray (const vector<int> &invector)
    {
    for(vector<int>::const_iterator i = invector.begin(); i != invector.end(); ++i)
    {
    cout << *i << endl;
    }
    }
  6. Replies
    7
    Views
    1,094

    Re: C++ Vector question??

    vector does not belong to the global namespace. Under your includes, add



    using std::vector;


    If you do'nt add that using statement (or the more general [but less desirable] using...
  7. Re: Need a way to store and retrieve 31 Strings in a Property

    A collection of strings, either List(of string) or the likes, should work just fine. You can further restrict it by making your collection string[31] if you want.

    on data bind, load the strings...
  8. Replies
    12
    Views
    1,937

    Re: C++ Private Inheritance

    or, for that matter, try calling d1.display1();

    then change it to public inheritance and try calling d1.display1();
  9. Replies
    12
    Views
    1,937

    Re: C++ Private Inheritance

    Derive another class from Derived_public and try to access Base's public stuff; then change Derived_public back to public inheritence and see if your new class can access Base's public.
  10. Replies
    3
    Views
    937

    Re: c# upgrade woes

    You already have C# (.NET, really) 2.0 as I'm sure you already have 3.0.

    C:\WINDOWS\Microsoft.NET\Framework (or whatever your windir is). There you'll see all the versions you have.

    I don't...
  11. Replies
    1
    Views
    731

    Re: need little help with MSXML

    Look up xpath. Use xpath to search for "item/title" and "item/link" (or "/item/title" or just "title",etc. It really depends what scope you're at.)

    Check out xpath and then get back to us.
  12. Replies
    2
    Views
    773

    Re: Forceing a for-loop to exit

    use the break statement.

    search: loops break continue
  13. Re: I have 8 questions that need to be answered.

    it's ok to ask for help, but please do not post your homework questions and just expect answers. Instead, try them out yourself and, if you get stuck on a particular piece of a question, then feel...
  14. Replies
    7
    Views
    1,105

    Re: onclick event problem urgent

    Nowhere in the code that you pasted does the text "misip249" appear, which means the important part isn't there. Try again ;)
  15. Replies
    7
    Views
    1,105

    Re: onclick event problem urgent

    if your code compiles, then view it in a browser. Then view source, find the HTML that is produced from the code you showed above, and paste that piece of HTML.
  16. Replies
    7
    Views
    1,105

    Re: onclick event problem urgent

    it'll be easier if you paste me the rendered content. This kind of string building is a pain in the butt to look at without debugging it by looking at the rendered content, so can you get it to...
  17. Replies
    7
    Views
    1,105

    Re: onclick event problem urgent

    This is wrong for so many reasons :)

    Below is a corrected solution (untested, but I think it'll be fine).

    1) Javascript allows strings to be quoted with double (") and single (') quotes. ...
  18. Replies
    3
    Views
    571

    Re: Overrriding (interesting example)

    I found an example of how the full situation plays out:
    http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/overload_member_fn_base_derived.htm
  19. Replies
    3
    Views
    571

    Re: Overrriding (interesting example)

    This is almost word-for-word for how I see this example played out in a few of the "in depth" series books by A&W :)

    You need to use the using statement.
  20. Re: Problem accessing a class through a static function.

    Please read up on what a static method is. You can't access member functions because a static method is stateless. It does not require an instance of a class to be called and can be called directly...
  21. Replies
    1
    Views
    2,553

    Re: XML SelectNodes (Position)

    I'm not sure if you can do this with a single xpath. If you find a solution, please let me know! But it would seem that you first have to get each element and then select its third value.

    I...
  22. Replies
    2
    Views
    1,743

    Re: getElementById and Array

    the function name is ById, and you're only setting the name attribute. It doesn't work that way.

    An ID has to be wholly unique in a document. It's the unique identifier. You can have multiple...
  23. Replies
    3
    Views
    1,133

    Re: Writing .ini Files/How to Assign Keys

    You'll want to work with the following functions


    'profile (INI file) subs & functions
    Declare Function GetProfileString Lib "kernel32" Alias "GetProfileStringA" (ByVal lpAppName As String,...
  24. Replies
    5
    Views
    624

    Re: Exception Catching

    throw and catch by reference. Using the "new" operator is unnecessary and wasteful/dangerous. Also, you should catch specific exception types and not a "catch all." In this case, you are creating...
  25. Replies
    4
    Views
    2,120

    Re: MFC Return key closing dialog box

    Creating an IDOK button is an acceptable solution, but if it is not, in fact, an "OK" button for the dialog I would recommend using the SetDefID method and reserving the IDOK ID for the actual OK...
Results 1 to 25 of 1675
Page 1 of 67 1 2 3 4





Click Here to Expand Forum to Full Width

Featured