User Profile

Collapse

Profile Sidebar

Collapse
compman9902
compman9902
Last Activity: Nov 13 '08, 11:58 PM
Joined: Mar 21 '07
Location: Anchorage, Alaska
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • compman9902
    replied to Double Returning 0 - Visual C++
    in C
    That worked great, Thanks...
    See more | Go to post

    Leave a comment:


  • compman9902
    started a topic Double Returning 0 - Visual C++
    in C

    Double Returning 0 - Visual C++

    Hello, my problem is that everytime I run my code (below) the variable "dPercent" returns a zero value. Thank you for your time and help.

    [CODE=cpp]String^ originalString = textBoxDecrypt->Text;
    String^ sPercent;
    String^ currentChar;
    long double dPercent;
    int level = int(numEncrypt->Value);
    int iPercent;
    int position = 0;
    clearFields();
    textBoxDecrypt->Text...
    See more | Go to post

  • compman9902
    replied to File Loading
    in C
    Actually this makes a lot of sense. Thanks for replying to my post. As a matter of fact, I have opened many files in notepad, just to see what their guts look like. In one case, it crashed my computer! (Its was a 50 megabyte mpeg movie file, on a very old computer)....
    See more | Go to post

    Leave a comment:


  • compman9902
    started a topic File Loading
    in C

    File Loading

    Is there any way to load a file with a suffix other than ".txt" like a text file? If not, how do you load files with other suffixes and in what format does data come out of them?
    See more | Go to post

  • This is actually fairly simple, but as the Administrator said, we don't give that code out (using google and the terms that we give you it should be very simple). First of all, I am going to assume that you are using an std::string. Heres what you do:
    1) Find the first instance of the character "space" (yourString.fin d(" "))
    2) Take the substring of that from character 0 to whenever the space is using substr (yourString.sub str(0,yourStrin g.find("...
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to To create folders in c
    in C
    What do you need help with specifically? Do you need help in the actual function of creating the folders or with another part of the code? Please be specific.
    See more | Go to post

    Leave a comment:


  • compman9902
    started a topic Includes In Visual C++ Express
    in C

    Includes In Visual C++ Express

    My question is about the free version of Microsoft's Visual C++ known as Visual C++ Express. It is about includes. A couple of months ago, I made an include and I would now like to include that into a GUI, which I found Visual C++ Express a great program becasue of it being free and fairly easy to use. I have little experience with the Visual Studio family, because I have only used the Visual Basic that they provide at my school. (Any suggestions...
    See more | Go to post

  • compman9902
    replied to if statement problem?
    in C
    In the future, you shouldn't try to cut corners with your code in C++. I think that only works in Visual Basic. <--Joke
    Have fun with your programming though....
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to To run dos commands in C programming
    in C
    Since you have attempted the code, I think that it is okay for me to help you out using code.
    Try this:
    Code:
    system("MKDIR \"C:\\add\\add1\\\"");
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to To create folders in c
    in C
    Oh, I am very sorry. When the person attempts it, they can post if they are still haing issues. Again I'm sorry....
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to To create folders in c
    in C
    Okay, I think that I have the solution to your problem. The only thing is that my computer won't run this for some reason so I couldn't test it out all the way, but there were no compiler errors so that is a start. Hopefully, you can build off of this code.

    Code:
    Code removed
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to Where Do You Download C++?
    in C
    I'm not very good with Macs but I think that this might be what you are looking for:
    http://developer.apple.com/tools/download/...
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to Dynamic GUI
    in C
    I would just like to remind everyone involved with this post that the issue has not been resolved.
    It seems like everyone has forgotten since the last post was 29 days ago
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to Dynamic GUI
    in C
    Neat, it works.
    Well, now all I need is how to get it to be dynamic whenever I pass an intiger into the function that creates the window, and then it displays that....
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to Dynamic GUI
    in C
    That fixes that error.
    Now I get tge error message:
    [Linker error] undefined reference to `TextOutA@20'
    ld returned 1 exit status
    ...
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to Dynamic GUI
    in C
    I wanted to try out the textout() function, so I created the following program:
    [code=cpp]#include <windows.h>
    #include <string>
    #include <vector>
    using namespace std;

    /* Declare Windows procedure */
    LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

    /* Make the class name into a global variable */
    char szClassName[ ] = "WindowsApp ";
    ...
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to Dynamic GUI
    in C
    Oh, then I'm stuck. Any Tips? Anybody?
    Also, just for future refrence, I was wondering what include to put in to the textout() function works. I'm using Dev-C++. Thanks....
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to Dynamic GUI
    in C
    Actually, I just thought of something. All I need is what goes under the "WM_PAINT" case and then I'll be golden.
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to Dynamic GUI
    in C
    Could you maybe write an example of how to use it? Becasue I have next to no experience with GUI in C++, so that would be great....
    See more | Go to post

    Leave a comment:


  • compman9902
    replied to Dynamic GUI
    in C
    Then it is agreed, I need help.
    Anyone?...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...