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

Search:

Type: Posts; User: AceInfinity

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds; generated 12 minute(s) ago.

  1. Replies
    7
    Views
    1,077

    Re: What is best option here?

    I would go with 2kaud's solution:

    class A
    {
    public:
    int GetA() { return m_a; };
    double GetB() { return m_b; };
    private:
    int m_a;
    double m_b;
  2. Replies
    155
    Views
    40,863

    Re: Read binary file with line delimeter

    Not sure how you expect an unsigned int to hold a decimal value. :confused: But why do you have hex in there to pipe the data to the stringstream though? What's the point? A number is a number, you...
  3. Replies
    155
    Views
    40,863

    Re: Read binary file with line delimeter

    CLR, why do you want that? Try "Win32 Project" instead. What errors are you getting? You just posted a reference link, but nothing that describes the errors.
  4. Replies
    155
    Views
    40,863

    Re: Read binary file with line delimeter

    You're assuming that it's a paid software. There are express editions of Visual Studio for 2013 which are free.
  5. Replies
    155
    Views
    40,863

    Re: Read binary file with line delimeter

    I'm using VS 2013 and am able to use the <regex> header with this setup. Dev C++ is old (assuming you're using bloodshed's, and not orwells), and if so, you should abandon it.
  6. Re: looking for exercises to practice interfaces on c#

    You should be able to develop a console based (or text style) game using interfaces as well, as long as you take on a good OO model for the design. You can write a strictly procedural game as well,...
  7. Replies
    155
    Views
    40,863

    Re: Read binary file with line delimeter

    No need for the criticism here. I don't see how hard it could be for somebody to change the function parameters around to be honest, although, my post served as an example... Perhaps you have...
  8. Re: std::string to std::vector with terminator

    Maybe I'm confused. Unless you need the functionality of the vector... But if you're avoiding reallocation, why not just go with a simple array? :S

    I know this may not help much, but thankfully...
  9. Replies
    7
    Views
    2,760

    Re: Six sided cube

    Dice start at 1, the range would be 1 - {# of faces}. The Random class would be perfect for this, and if you look at some MSDN documentation for the usage of it's methods, declaring an instance, and...
  10. Re: looking for exercises to practice interfaces on c#

    Write a plugin wrapper. :) Possibly one of the best scenarios where an interface is used.
  11. Replies
    155
    Views
    40,863

    Re: Read binary file with line delimeter

    I would've taken a more generic approach, utilizing more function parameters instead of hardcoding everything in there...


    void get_fields(const std::string& s, const std::string& find_str,...
  12. Replies
    6
    Views
    4,034

    Re: The best way to get random numbers.

    You can also use RngCryptoServiceProvider to generate random data if needed: http://msdn.microsoft.com/en-us/library/system.security.cryptography.rngcryptoserviceprovider.aspx

    The downside I've...
  13. Re: windows form .call console and give commands

    Nope... Sadly. I did want to go, but no real way of transportation for me, and I am of the slightly younger audience among MVP's. It would have been a good opportunity to meet usasma and jcgriff, who...
  14. Re: windows form .call console and give commands

    You're not wrong though, I'm not saying that. I'll wait and see until OP can clarify what he's willing to do before going further in a specific direction. It's like a forest, you don't start going in...
  15. Re: windows form .call console and give commands

    I know I did, this is why I mentioned "P/Invoke" :) http://msdn.microsoft.com/en-us/library/aa446536.aspx

    That code I shared with you is not C++ either.



    I read this:


    1. "It's a Windows...
  16. Re: windows form .call console and give commands

    You can P/Invoke AllocConsole():

    [DllImport("kernel32.dll")]
    static extern bool AllocConsole();

    private void MainMethod()
    {
    if (AllocConsole())
    {
    Console.WriteLine("Hello world!");
  17. Re: Need to comapre a string and a number to find the Max Value

    cast the string to a numeric value type then... ;)

    :thumb:
  18. Replies
    2
    Views
    363

    Re: Beginner need help!!!!!

    Words meaning separated by a space? (Note: you'll have to trim out the delimiters in case someone types in "badword!" for example. "badword" != "badword!". Or in-string values as well?...
  19. Replies
    20
    Views
    2,363

    Re: Find Minimum and Maximum values

    Post a new thread and I will help you out entirely. Comparisons don't allow you to make the best of your learning endeavors. :)
  20. Replies
    11
    Views
    942

    Re: Beginner Need Help!!!!

    That was one of the reasons why I did not reply further. Although the original links were in fact broken, it looked like a copied version from being posted someplace else, because the link itself...
  21. Replies
    11
    Views
    733

    Re: scroll bars on a panel ?

    XNA? It's limited though mainly towards gaming.

    For a PictureBox you could take the image out and modify it with GDI before assigning it back to the PictureBox quite easily to layer images into 1....
  22. Re: how do I use the .net Framework as a cross platform programming tool

    You may be interested in Node.js if you get into JavaScript: http://nodejs.org/
  23. Replies
    5
    Views
    965

    Re: display average pixel values

    I would agree with what BioPhysEngr is saying, the method for pixel retrieval or whatever you want to term it is slow. When I was encrypting data to a compressed bitmap in one of my hobby projects, I...
  24. Re: VB.net - HttpWebRequest 401 Unauthorized Error

    You're passing the incorrect credentials most probably. Anything else past the Credentials part doesn't matter if you don't have the credentials right, if you're getting a 401 code.
  25. Re: how do I use the .net Framework as a cross platform programming tool

    The .NET framework is not cross platform and will never be, because it uses Win32 API's, which will not exist on others like Linux or Mac. For C#, you've got things like Mono though, which can make...
Results 1 to 25 of 51
Page 1 of 3 1 2 3


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center