User Profile
Collapse
-
That worked great, Thanks... -
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... -
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)....Leave a comment:
-
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? -
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("...Leave a comment:
-
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.Leave a comment:
-
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... -
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....Leave a comment:
-
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\\\"");Leave a comment:
-
Oh, I am very sorry. When the person attempts it, they can post if they are still haing issues. Again I'm sorry....Leave a comment:
-
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
Leave a comment:
-
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/...Leave a comment:
-
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 agoLeave a comment:
-
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....Leave a comment:
-
That fixes that error.
Now I get tge error message:
[Linker error] undefined reference to `TextOutA@20'
ld returned 1 exit status...Leave a comment:
-
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 ";
...Leave a comment:
-
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....Leave a comment:
-
Actually, I just thought of something. All I need is what goes under the "WM_PAINT" case and then I'll be golden.Leave a comment:
-
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....Leave a comment:
-
No activity results to display
Show More
Leave a comment: