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

Search:

Type: Posts; User: compavalanche

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    788

    Re: Checking out Mono

    I've heard it works pretty well if you stick to standard stuff.

    However we tried to run it at work where we have a large Linux farm and it doesn't work well in that environment as each machine is...
  2. Replies
    12
    Views
    1,456

    Re: Need help with ReDim

    If I understand you correctly, you want to remember what is selected even after a refresh of the listview?

    Why not store what is selected in another datastructure, then after refresh you...
  3. Replies
    3
    Views
    1,539

    Re: Attach object to DataGridView rows

    You should be able to extend the row with your own custom data type
  4. Re: NUnit tests - need to run bat file in between

    What does the switch.to.*.bat do?

    Can you change you connection string in the code and just run the NUnit test three times changing the connection setting each time?
  5. Re: NTLM Authentication; cannot call aspx page from java

    What version of Java are you using?

    I hear that Java 6.0 works well with windows security now.

    But granted I haven't had a chance to try it yet.
  6. Replies
    5
    Views
    2,764

    Re: Data Table to Business Object Mapping.

    I'm not sure about .NET but with Hibernate on Java you use annotations for the mapping.

    Looks something like this


    class Foo
    {
    @Id
    @Generated
    private int Id;
  7. Replies
    2
    Views
    628

    Re: subtraction of two pointers..

    First this is a horrible thing to do. But very common c programming (not c++)

    In the above code you have temp pointing to a string lets say "foo"

    str then points to foo but a couple characters...
  8. Replies
    16
    Views
    3,214

    Re: Accessing a Java Database

    I don't think there is such a thing as a 'Java Database.' Is it starting an instance of something else?

    Can you give an example of how you are currently interacting with it?
  9. Replies
    3
    Views
    742

    Re: reading input

    You are reading input.nextFloat() from the stream twice. This is not what you want. You need to store it in a temp variable.

    Example:


    while (end != 0)
    {
    float...
  10. Replies
    1
    Views
    532

    Re: copy constructor

    It really depends on the copy constructor. But in general no. The copy constructor usually does a copy/clone of the object, it usually does not point to the other object.

    Now of course this all...
  11. Re: How to draw a small circle on image present in Imageviewer control?

    Could you create a second image and onclick you unhide it and then place it above your other image?
  12. Replies
    2
    Views
    820

    Re: Regarding database connection

    You need to create the SQLConnection and set the connection string. The Connection string describes how to connect to any SQL database.

    http://www.connectionstrings.com/ is a great resource for...
  13. Replies
    8
    Views
    2,727

    Re: Flyweight Pattern

    Integers are also treated the same way.

    I found it interesting to open up the code for Integer. You'll see that the first call goes through the first hundred or so integers and creates objects for...
  14. Replies
    2
    Views
    1,268

    Re: HttpClient Question

    Yes.

    If your communicating with the website over https then all traffic is encrypted. It woudln't work otherwise.

    Hope that helps
  15. Replies
    2
    Views
    748

    Re: Link List Template errors?

    The compiler can't find the reference to ostream because its in the namespace std.

    Notice in main you use namespace after you've included the file. Either change the order, or change your header...
  16. Re: Where to start - A program that just draws a square on the screen

    Hmm you probably want to look at GDI

    You may try: http://www.functionx.com/visualc/index.htm or more specifically http://www.functionx.com/visualc/gdi/rectangles.htm

    Although why not use .NET...
  17. Replies
    5
    Views
    11,281

    Re: Hangman in Ajax: How?

    I thought that was a very interesting thing to do so I coded up a simple hangman game in Javascript with the html canvas element. As of right now its not Ajaxified because I don't have a DB running...
  18. Re: invalid operands of types 'const char[13]' and 'char*' to binary 'operator+'

    if you use std::string then you can use the + operator to concatenate strings. If you use char* or char[] you cannot.

    I recommend you start small and read up on std::string. Here is a simple...
  19. Replies
    2
    Views
    774

    Re: Bracket Confusion

    Visual Studio highlights the first bracket or paren when you enter the last one. It just makes it bold it isn't vey distinguishable but it works.

    But the real solution is like Cliu says. Indent...
  20. Replies
    2
    Views
    725

    Re: profiling test on std::vector

    Don't know why its picking those out, but I did want to throw one thing out there.

    A while back I did some heavy stuff with vector. When I closed visual studio and opened it back up my program...
  21. Replies
    3
    Views
    1,110

    Re: Optimization With Clustering

    The best suggestion I can give is to try it. As this is a production database you should take a backup and bring it up on a dev system. Then try it out. Use the profiling tools of you db (query...
  22. Replies
    3
    Views
    1,240

    Re: Faster String Query in Mysql

    Your not using the database to do the searching your streaming everything to your app then filtering.

    Why not use mysql's like operator (e.g. where name like '%foo%' will find name values that...
  23. Replies
    15
    Views
    3,137

    Re: Why get/set?

    I always use getters and setters. Imagine if you have a large software application your writing with multiple developers.

    You start your class out that will be used by other team members.

    You...
  24. Re: What is the best web service library

    I tried out a couple not to long ago (long enough to forget the names) and wasn't greatly impressed with them.

    I settled on gsoap which does the job decently enough.
  25. Re: Why code can compiled successfully without mysql-connector-java-#-bin.jar installed

    There are two ways to load a jdbc driver. Either with early binding or late binding.

    e.g:

    Class.forName("com.mysql.jdbc.Driver").newInstance ();
    new com.mysql.jdbc.Driver();

    The first...
Results 1 to 25 of 72
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured