Search:

Type: Posts; User: AceInfinity

Page 1 of 13 1 2 3 4

Search: Search took 0.17 seconds.

  1. Replies
    3
    Views
    1,222

    Re: Read Symbols in File

    Keep in mind you're using ANSI functions. There are a lot of null's in multi-byte strings... You are not using the proper functions if that's the case and most likely it is the reason why you're...
  2. Re: [RESOLVED] How to do Array of string in C

    You can also do this:

    const char *pStrings[] = { "one", "two", "three" };

    You don't need strcpy() if you're using string literals, and they can be assigned directly because they have static...
  3. Replies
    4
    Views
    1,940

    Re: *HELP* Deleting all extensions

    He only mentioned DLL files. My guess is that he wants to prevent the DLL load order from being exploited so that someone can't put a malicious DLL in the startup path for it to be loaded instead of...
  4. Re: Question regarding file size output by GCC and G++

    UPX is a bandaid to the problem however, the real issue here is with the default compiler options. Personally I've had cases where UPX has reversed the effect of lots of my manipulations to make a...
  5. Thread: Key Press

    by AceInfinity
    Replies
    8
    Views
    2,594

    Re: Key Press

    That is for a mouse event not a keypress. For keyboard and mouse you should be using the SendInput() function which deprecates both mouse_event() and keybd_event()
  6. Replies
    3
    Views
    1,524

    Re: Array indices, change the element order?

    How big is your array? Why don't you just pass a container to the function which contains the order of the read?
  7. Thread: Key Press

    by AceInfinity
    Replies
    8
    Views
    2,594

    Re: Key Press

    The majority of that code isn't even relevant. There's hardly any translation needed to convert it to C++ because this should be it:

    mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, X, Y, 0,...
  8. Re: how to build C Source code with Makefile

    You just run 'make' through the terminal.
  9. Re: [RESOLVED] Understanding IEnumerable Interface

    As jmc mentioned above, interfaces are implemented while classes are inherited. Implementing an interface basically means that yes, *this* object has *these* 'features' in simplest terms...
  10. Re: [RESOLVED] Understanding IEnumerable Interface

    An object that implements the IEnumerable interface is one that implements the necessary iterators for constructs like the foreach structure to be used on the collection. In .NET these are called...
  11. Re: Need explanation of for(; .......) statement

    Actually no, that's not correct. *Only* the first for loop example is valid and legal code. The last 2 examples you have posted are both demonstrations of undefined behavior due to sequence point...
  12. Replies
    5
    Views
    8,843

    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...
  13. Replies
    5
    Views
    8,843

    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...
  14. 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...
  15. Replies
    2
    Views
    1,256

    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...
  16. 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...
  17. Replies
    3
    Views
    5,036

    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...
  18. Replies
    3
    Views
    5,036

    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...
  19. 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...
  20. Re: How to Condence Font in StringBuilder

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

    What did your code look like? C++ uses & for reference parameters.
  22. Replies
    4
    Views
    1,105

    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...
  23. Replies
    4
    Views
    1,105

    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.
  24. VS 2010 Re: Calculating large numbers using mod function

    You should have read earlier posts first. He wrote the explanation for that here:
  25. Replies
    3
    Views
    1,145

    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...
  26. Replies
    17
    Views
    1,939

    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...
  27. Replies
    14
    Views
    2,458

    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...
  28. Replies
    18
    Views
    13,519

    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...
  29. 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.
  30. Replies
    17
    Views
    1,939

    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...
  31. Replies
    14
    Views
    2,458

    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...
  32. 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 =...
  33. Replies
    14
    Views
    2,458

    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...
  34. Replies
    14
    Views
    2,458

    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...
  35. Replies
    18
    Views
    13,519

    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,...
  36. Replies
    17
    Views
    1,939

    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...
  37. 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...
  38. 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...
  39. Replies
    14
    Views
    2,458

    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...
  40. Replies
    4
    Views
    2,109

    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.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width