1,372 Posted Topics

Member Avatar for cevion

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 …

Member Avatar for siddhant3s
0
110
Member Avatar for ox99racer

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 …

Member Avatar for Comatose
0
108
Member Avatar for raghavendra83

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 …

Member Avatar for KevinADC
0
184
Member Avatar for chadactive

go to start, run, type in cmd and press ok. you'll get a black window with the version number and everything.

Member Avatar for chadactive
0
194
Member Avatar for ryan311
Re: help

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 …

Member Avatar for cguan_77
0
103
Member Avatar for xonxon

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. …

Member Avatar for xonxon
0
70
Member Avatar for yaee
Member Avatar for Comatose
0
242
Member Avatar for vtelebyteM

[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]

Member Avatar for debasisdas
0
107
Member Avatar for arpeggio54
Member Avatar for Rashakil Fol

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.

Member Avatar for happygeek
0
169
Member Avatar for jeevsmyd
Member Avatar for RahulV

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...

Member Avatar for RahulV
0
159
Member Avatar for number87

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.

Member Avatar for Comatose
0
356
Member Avatar for crewxp

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.

Member Avatar for crewxp
0
140
Member Avatar for PinoyDev

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 …

Member Avatar for PinoyDev
0
121
Member Avatar for venomocity

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 …

Member Avatar for venomocity
0
126
Member Avatar for tuse

Then I guess you should have sent her a PM instead of posting a thread on a public forum... FACE.

Member Avatar for peter_budo
0
139
Member Avatar for jeevsmyd

first, format the code so that it uses proper indentation, and braces. That's the first step.

Member Avatar for siddhant3s
0
370
Member Avatar for maccold321

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 …

Member Avatar for maccold321
0
78
Member Avatar for Yersey
Member Avatar for omega1

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 …

Member Avatar for Comatose
0
99
Member Avatar for azwraith69

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 …

Member Avatar for azwraith69
0
197
Member Avatar for Tamir09

While not excel specific, this should get you on your way: [url]http://www.daniweb.com/tutorials/tutorial51307.html[/url]

Member Avatar for Tamir09
0
327
Member Avatar for vasunttfshimoga

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 …

Member Avatar for Tamir09
0
159
Member Avatar for oguru

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]

Member Avatar for oguru
0
64
Member Avatar for mtramnes
Member Avatar for William Hemsworth

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 …

Member Avatar for Comatose
0
378
Member Avatar for scias23
Member Avatar for Pender
Member Avatar for Comatose

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?

Member Avatar for William Hemsworth
0
141
Member Avatar for c_shaft05

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:

Member Avatar for c_shaft05
0
150
Member Avatar for thuku

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".

Member Avatar for Comatose
0
82
Member Avatar for muhammad.atif

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.

Member Avatar for muhammad.atif
0
104
Member Avatar for dollmar

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.

Member Avatar for dollmar
0
159
Member Avatar for Comatose

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 …

Member Avatar for Ezzaral
0
446
Member Avatar for adamsn

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.

Member Avatar for adamsn
0
301
Member Avatar for hatemstar

..... 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) …

Member Avatar for Comatose
0
108
Member Avatar for deepalici0us

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 ]

Member Avatar for vmanes
0
267
Member Avatar for rohit joshi
Member Avatar for Gregg Wilson

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?

Member Avatar for Comatose
0
235
Member Avatar for number87

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 …

Member Avatar for number87
0
156
Member Avatar for southernd0529

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 …

Member Avatar for rudasi
-1
192
Member Avatar for mtramnes

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 …

Member Avatar for KevinADC
0
172
Member Avatar for shasha821110
Member Avatar for babu02021964
Member Avatar for happyday09

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.

Member Avatar for happyday09
0
106
Member Avatar for bonbonbon
Member Avatar for rolinski
Member Avatar for MentallyIll5150

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 ==.....

Member Avatar for MentallyIll5150
0
124
Member Avatar for sarifah

The End.