Search Results - VBForums

Search:

Type: Posts; User: AceInfinity

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    5
    Views
    572

    Re: Advantages of C++

    I'm curious on clarification of the highlighted parts above? C has sorting algorithms (http://www.cplusplus.com/reference/cstdlib/qsort/). But the I/O objects std::cout, etc.. for C++ are all...
  2. Replies
    5
    Views
    572

    Re: Advantages of C++

    Here's my list from my experience:

    1. OOP
    2. Smart pointers & RAII with the STL
    3. Templates (Macro's in C can be harder to deal with)
    4. Better type safety
    5. References

    That's a good...
  3. Re: c++ - win32 - how make the form transparent?

    What COLORREF is clrBackColor that you've defined, and are you sure it's a color that you are using on the form? And these are not extended class styles:

    CS_HREDRAW | CS_VREDRAW

    I'd suggest...
  4. Replies
    2
    Views
    526

    Re: [RESOLVED] Bug in code

    I would suspect that sscanf() as mentioned by 2kaud is the issue here because you never check or sanitize that input, and assume that sscanf() will initialize those values. You assume that the input...
  5. Re: c++ 11 - can i change functions in Global Scope section?

    You dynamically allocated those objects but never delete them which is very bad. Also, why is the class that inherits test publicly have a virtual keyword on ola()?

    I would also not suggest...
  6. Replies
    3
    Views
    4,349

    Re: Using constuctor in class or vector

    http://en.cppreference.com/w/cpp/language/range-for

    Just change it back to an iterator for loop then.

    Define the iterator, move it to the next position while it's != vector end(). That code is...
  7. Replies
    3
    Views
    4,349

    Re: Using constuctor in class or vector

    What is the goal here exactly? This is improper code to begin with... :S

    A vector of type B doesn't mean that they are initialized right away, you need to do this manually to populate the...
  8. Re: How to refer to class which was not yet declared?

    Just because the code compiled doesn't mean it is okay. From what I seen there was lots wrong with the structure of your application design. If you want to learn better ways of writing the...
  9. Re: How to Condence Font in StringBuilder

    You don't need to escape every '\' if you use verbatim strings:
    objSaleFileWrite.WriteLine(@"\si");
  10. Re: [RESOLVED] help with structure of vc++ dll

    What did your code look like? C++ uses & for reference parameters.
  11. Replies
    4
    Views
    644

    Re: Check if a process is open?

    No, because that would eliminate all possibility of you actually taking the time to figure it out and learn something. Read the documentation and see which handles are passed to what functions, and...
  12. Replies
    4
    Views
    644

    Re: Check if a process is open?

    Enumerate the processes with CreateToolhelp32Snapshot(), Process32Next() / Process32First() until you find the process that you're looking for then call TerminateProcess()... It's not that difficult.
  13. VS 2010 Re: Calculating large numbers using mod function

    You should have read earlier posts first. He wrote the explanation for that here:
  14. Replies
    3
    Views
    750

    Re: how create a control?

    Where is the message loop exactly? You need to first understand the event based model. There's tons wrong with this, although I can't help you with this based on my current understanding of your...
  15. Replies
    17
    Views
    712

    Re: computer aided drawing

    Actually I agree with boop boops here as well. Rectangles are not the basis of drawing efficiently anymore. Newer gaming engines are reluctant to use rectangles as a base drawing model because it has...
  16. Replies
    14
    Views
    1,274

    Re: overloading char* and string operators

    These are still not user defined types... Imagine trying to convert a collection wrapper to a boolean? How would you do that? Or better yet, why? You don't know what this user defined type was meant...
  17. Replies
    18
    Views
    3,555

    VS 2010 Re: Draw a line in VB.NET (VS2012)

    dunfiddlin pointed out that the answer was given to you. If you don't see how to implement the solution, or you don't attempt to do it, how will you understand how to manage that solution even if...
  18. VS 2010 Re: Calculating large numbers using mod function

    No, i changes on this line:

    i /= 10 / 1;

    So after the initial:

    n = i;

    n is no longer equal to the value of i anymore. i = i / 10 / 1.
  19. Replies
    17
    Views
    712

    Re: computer aided drawing

    I've used AutoCAD before btw. It's quite an advanced program once you get into functions and all that good stuff. I'd taken a course and was a designer a while back. I haven't used much of it lately...
  20. Replies
    14
    Views
    1,274

    Re: overloading char* and string operators

    There's a good reason this should never be attempted in the first place however. That is over the top, and would only make the efficiency of the language worse. If the user defined type is meant to...
  21. VS 2010 Re: Calculating large numbers using mod function

    i = 0
    For i = 0...

    Seems a bit redundant. Although for explicitly defining the array size, you can calculate the size of the number by doing this:
    Dim digits As Integer =...
  22. Replies
    14
    Views
    1,274

    Re: overloading char* and string operators

    Huh?

    You'd better make sure that this works for the cases I've hinted at above. What do you mean by "share the mingw compiler with my new language"? I thought the intent was to create your...
  23. Replies
    14
    Views
    1,274

    Re: overloading char* and string operators

    C++11 just means that you'll need to be able to compile with C++11 standards, if this is supposed to be distributed to others for use, and those people may not like to use C++11 yet, or they just...
  24. Replies
    18
    Views
    3,555

    VS 2010 Re: Draw a line in VB.NET (VS2012)

    This is because the OnPaint() method fires early on when the form is created, you can't control that, what you can do is set a boolean that is evaluated the next time the control is drawn however,...
  25. Replies
    17
    Views
    712

    Re: computer aided drawing

    I wrote a very simple Pong game simulation a while back: http://tech.reboot.pro/showthread.php?tid=3594

    http://i.imgur.com/2cBZa.gif

    Perhaps it'll give you some ideas. The graphics themselves...
  26. Re: [RESOLVED] SpecialFolder returning numerical value?

    The point here is that SpecialFolder is an enum, and JMC is pointing out that you're not reading the documentation to see why it's returning a numeric value, even though it should (because it's an...
  27. Re: Best Bitrate for High Quality Video Recording With ffmpeg.dll

    Try the HEVC (H.265) encoding and see what the output is. H.264 is still pretty good otherwise. The only thing is, I've been hearing high CPU usage from the HEVC format, even though it is supposedly...
  28. Replies
    14
    Views
    1,274

    Re: overloading char* and string operators

    You need to read about how preprocessor directives like include work first to see why I've done it this way. All it does is allow the compiler to essentially replace that spot with the #include'd...
  29. Replies
    4
    Views
    835

    Re: Forcing HTML file to open in Excel

    Ahh, I didn't notice the methods being used, I just seen the regular IO stuff, and there was no mention that this was ASP.
  30. Replies
    14
    Views
    1,274

    Re: overloading char* and string operators

    Consider the following template:

    MyVarType.h

    #ifndef __MyVarType_H__
    #define __MyVarType_H__

    #include <iostream>
    #include <string>
    #include <fstream>
  31. Replies
    14
    Views
    1,274

    Re: overloading char* and string operators

    You're missing the point of include guards:

    // *** ADDED BY HEADER FIXUP ***
    #include <cstdlib>
    #include <iostream>
    #include <string>
    // *** END ***
    #ifndef VARIANT_H_INCLUDED
    #define...
  32. Replies
    14
    Views
    1,274

    Re: overloading char* and string operators

    Variant(bool val)
    {
    result=std::to_string(val);

    if (result=="0")
    {
    result="false";
    }
    else
    {
  33. Replies
    4
    Views
    835

    Re: Forcing HTML file to open in Excel

    @kfcSmitty: I wouldn't say impossible, if it does what he wants dragging the file into Excel. --> Command line arguments :confused:

    "C:\Program Files\Microsoft Office\Office15\EXCEL.EXE"...
  34. Re: how print a void pointer in string way?

    Doing so is much more complex than you think, which is suggestive by how you're demonstrating a conversion between types here. You have to provide the conversion yourself. What number did you use?...
  35. Re: how print a void pointer in string way?

    Why would you want a pointer to the string's underlying type? Or why would you do this in the first place? You're likely to receive a result that is not going to be null terminated at any 'proper'...
  36. Replies
    20
    Views
    928

    VS 2012 Re: [RESOLVED] Extract word between "

    The points in that article for the one I specifically linked to, still stand as far as naming conventions. There are errors on MSDN too, but by no means does that mean the entire site is bogus;...
  37. Replies
    10
    Views
    1,711

    Re: [RESOLVED] Prime Numbers

    The algorithm itself shows ~10 seconds for me. The problem above is with huge values for allocation and the new operator's limit for allocation within the program. I took a very basic and unmodified...
  38. Replies
    20
    Views
    928

    VS 2012 Re: [RESOLVED] Extract word between "

    To use it with a URL, all you have to do is pass the page source (as a string that contains the page HTML) to my function, along with the search string as "&quot;". Easiest way is to use the WebClient...
  39. Replies
    20
    Views
    928

    VS 2012 Re: Extract word between "

    Did you skip my example? :confused: I posted a function that basically did 99% of the work.
  40. Re: Beginning New Mini Project. Need to Separate Compiler Command Line Parameters

    Mine is configured via UCP to always start in source mode, not WYSIWYG. I find it easier to deal with especially when posting code.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.