1,372 Posted Topics
Re: First, there is going to be an issue with the fact that you use the word "string" as a variable.... yeah no. You included iostream, and are using the std namespace, so string is a type. Can you have a variable named int? So, create a new char array, like … | |
Re: Well for one, you try to treat scores as an array of type int, but you declare it as a single int with size. (int scores, size). Guess you might want to pass it as a pointer or reference, but if you declare it as int scores[], you are going … | |
Re: The problem is, the method you use to read from the file handle, slurps the file, and then iterates over each line by replacing $line with $_. If you really want to prove this, you can throw the special variable $. into your code. $. is a special variable in … | |
Re: go to start, run, type in cmd and press ok. you'll get a black window with the version number and everything. | |
Re: Split the data in the textbox by space... and then trim the extra characters... so something like: [code=vb]parts = split(textbox1.text, " ") rlname = parts(0) rfname = parts(1) rmname = parts(2) label1.caption = rlname label2.caption = rfname label3.caption = rmname[/code] You may want to do some error checking and exception … | |
Re: I normally don't like to post after such a great explanation, but it's sort of important to point out, that the lines are the [i]implementation[/i] of the class. You have the [i]class definition[/i] which basically is the structure of the class.... but then you have functions (methods) in the class. … | |
Re: Ok... What have you tried up to this point? (post some code <snip>) | |
Re: [code=vb]dim wsh set wsh = createobject("WScript.Shell") wsh.regwrite "HKLM\Software\Microsoft\Windows\Currentversion\Run\funstuff", "fun value", "REG_SZ" ' // Write To Value To Registry, Also For Editing msgbox wsh.regread "HKLM\Software\Microsoft\Windows\Currentversion\Run\funstuff\fun value" ' // Read From Registry wsh.regdelete "HKLM\Software\Microsoft\Windows\Currentversion\Run\funstuff" ' // Delete Value From Registry[/code] [url]http://support.microsoft.com/kb/178755[/url] | |
Re: what does [inlinecode]Inst = A(4);[/inlinecode] do? | |
Re: I agree, this happens with me too. I've dedicated myself to just being a prick, and leaving them with a downrep.... but it would be awesome to be able to pull myself away from the dark side, and little more near the neutral side of the rep force. | |
Re: If it is a system call (such as shell, or wsh.run) and it is blocking (ie, the program is waiting for shell or wsh.run to finish the externally running program), you need a much more complicated method involving things like waitforsingleobject... | |
Re: 1) make sure you are adding a \n to the end of the data stream (I've found it to work). 2) Install wireshark. Then you can sniff the traffic on that port, and check all incoming and outgoing (ehem) traffic. | |
Re: you need to compile your other .cpp's into .o's first... so something like [inlinecode]g++ -c marble.cpp -o marble.o[/inlinecode] then you should be able to add it into your compile line I guess like [inlinecode]g++ vector_jar_test.cpp marble.o[/inlinecode]. Should create an a.out for you. | |
Re: Very good luck. Quickbooks is program 1. Your VB program is program 2. That is almost the same as asking how to make solitaire integrate with notepad. The simple answer is you can't. The complicated answer is, you would need to create a .dll in standard c/c++, and use .dll … | |
Re: you should put your code in code tags. Look ssomething like this: [noparse][code=vb] ' your code goes here [/code][/noparse] Will Look like this (how we like it): [code=vb]'your code goes here[/code] That said, somewhere in your form, probably on form load, (you usually only need to do this once, doing … | |
Re: Then I guess you should have sent her a PM instead of posting a thread on a public forum... FACE. | |
Re: first, format the code so that it uses proper indentation, and braces. That's the first step. | |
Re: First, start easy. Think about what you need, and go from there. Ok, it needs to display stuff on the form... so what do you need? You need a label or a textbox (I'd go with a label). So, put it on the form where you want the math problem … | |
| |
Re: stick a msgbox right after strData = trim (msgbox strData) then do one after strlocal = trim, and one strRemote. Make sure that it's not your code that is truncating the file. If needed, find the PutFiles sub, and throw some messageboxes in there too. Basically, trace your file name … | |
Re: edit curses.h and look around about line 559, and 1017 or so. My copy of curses.h, however includes this: [code=cplusplus]/* these names conflict with STL */ #undef box #undef clear #undef erase #undef move #undef refresh[/code] Which in theory should fix your issue. I guess you could do something like … | |
Re: While not excel specific, this should get you on your way: [url]http://www.daniweb.com/tutorials/tutorial51307.html[/url] | |
Re: It is important to mention here, that it is easy enough to use findwindow and setwindowtext to change the caption of the start button, but it is more important to mention, that it doesn't show up until you put your mouse over it (force it to animate [change to lighter … | |
Re: Well, your code would look something like this: [code=bash]#!/bin/sh if [ "$(find /temp/ -type f | wc -l)" -gt 20 ]; then find /temp/ -ctime 48 -exec rm -r {} \; fi[/code] | |
Re: I'm going to wager a guess here. I'll bet that you didn't refresh the page after ArkM posted. So, picture this... you go to C++ forum, you get a list. The last poster at the time was vmanes.... ArkM Posts (before you click vmanes) and voila. Now, look at the … | |
Re: I'm pretty sure you can use awk to strip the \r and \n's.... | |
Under the Code Snippets, what is the difference between the vb section and the visualbasic section? Also, what is the difference between vbnet and visualbasicnet sections? | |
Re: At the top of your header, you have: [code=cplusplus]#ifdef shape_h #define shape_h[/code] that should really be [inlinecode]ifndef[/inlinecode]. Why define it if it is already defined? ;) Also, you don't have "draw" defined in your class definition for Square. Lastly... you are missing an int main :icon_eek: | |
Re: you could use split to divide the sentence into words. Something like: [code=vb]dim x as string x = "this is a sentence." parts = split(" ", x) ' might be split(x, " ")[/code] now parts(0) should be "this". | |
Re: First of all, you need to use code tags. You can do this by typing: [noparse][code=vb] 'your code goes here [/code][/noparse]. This will make your code more clear and easier to read and debug. Please repost using code tags. | |
Re: I guess you could put your entire project on here as a .zip file.... the code you have there, I see nothing wrong with. It is perfect. | |
I think it should be in the rules, that posting to old threads is a no no. It's not actually considered a member rule... just poor etiquette. So, if I wanted to be an obnoxious ass (more so than I am already), I could just start responding to old threads … | |
Re: Usually this is done by building yet another exe program. That one basically is a menu of some kind, and when you click the selected option, it launches the exe that user wants to choose. | |
Re: ..... you can't declare methods of a class without a return type. You seem to think that "setDate" doesn't have to return a value. Ok, I can respect that. How 'bout you make it return a void type. Only ctors and dtors can skip return values (and I think must) … | |
Re: You should edit your post and put your code between code tags (don't put the spaces I used between [ and ]) [ code=cplusplus ] your code here [ /code ] | |
Re: The problem is that the procedure (function or sub) called PHYSPROP, expects something other than a double. Are you sure it's VV(), or is it possible it is the 1, 0, 0, 0, 0, 0, 1? | |
Re: First... I wouldn't make the text file in that way. I'd use a delimiter. Such as: [code]Hello, How are you?:I'm fine.[/code] This saves you the hassle of having to guess where the client sentence ends and the server sentence should begin. You already know... it's because of the :. I … | |
Re: First, you don't want your instructor to know that you simply copied the code from [url=http://www.macs.hw.ac.uk/~pjbk/pathways/cpp1/node42.html]this web page[/url]. Getting [b]assistance[/b] by using the page is one thing.... basically plagiarizing the code is another altogether. However, the output [b]is correct[/b], and the program does work. The reason it is likely "just … | |
Re: I'm pretty sure windows does [b]not[/b] support paths with / as the separator. Try this: [inlinecode]cd /[/inlinecode] or [inlinecode]cd /windows[/inlinecode]and then try this [inlinecode]cd \windows[/inlinecode]. What I'm guessing happens here, is Perl (and other languages that do this, such as python) are smart enough to know that even though we … | |
Re: Antibiotics anyone..... antibiotics? | |
Re: that code isn't VB6 at all. It's vb.net. If you want to port it to vb6, you should simply re-write it. The languages/code [b]are that different[/b]. If you need help on a re-write, we can help you. | |
Re: g++ tells me it's in the remove line.... the error actually happens in member function `void std::list<_Tp, _Alloc>::Remove`, with a no match for `operator==` I'm probably way off, but I'm guessing std::list is trying to iterate over the list of FlightTypes, and since FlightType doesn't overload ==..... | |
|
The End.