1,372 Posted Topics

Member Avatar for are_nice
Member Avatar for Nick Evan
0
69
Member Avatar for john_prince

just check for the newline characters and replace them...something like: [code=perl]$linefromfile =~ s/\n//gi;[/code] Just remember though, that you will have to manually add your own newline character ("\n") whenever you want to save the data to the new file... otherwise it will be one big ass line. :icon_eek:

Member Avatar for john_prince
0
184
Member Avatar for glamiss

you could try to code it in another language so that it runs faster and uses less time?

Member Avatar for eggi
0
143
Member Avatar for nagatron
Member Avatar for nagatron
0
226
Member Avatar for dhpatil1

make sure the .dll's are registered in the registry (if required) and make sure VC is linking to them, in the linker.

Member Avatar for tomtetlaw
0
200
Member Avatar for crackerjacker

If you would spend some time looking through the forum, you would have found your answer with relative ease..... [url]http://www.daniweb.com/forums/thread165458.html[/url]

Member Avatar for crackerjacker
0
80
Member Avatar for jalpaeol
Member Avatar for yuanza

you declare your array as [6] (six elements) but you try to use 7 (0-6). Change your string days to 7

Member Avatar for yuanza
0
127
Member Avatar for jo84

[code=vb]if right(ucase(text1.text), 1) <> "R" then text1.text = text1.text & "R" else text1.text = "0" & text1.text end if[/code] ...

Member Avatar for QVeen72
0
151
Member Avatar for Stefano Mtangoo

first, remove the ; after rotate-- second, you can't have an opening { without a closing } (for loop), so add a brace. third, using rotate > value will for loop until rotate is no longer greater than value, but likely won't loop the final iteration. So if value is …

Member Avatar for Stefano Mtangoo
0
92
Member Avatar for stephen lowry

[code=vb]dim x as string x = "white bread 0.67" parts = split(x, " ") xCost = parts(ubound(parts())) ' // ;-)[/code]

Member Avatar for Comatose
0
94
Member Avatar for mortgage_master

There has been chatter about how to use Legacy VB with PDA's, without much real promise. A couple hype products (Crossfire and what not), but actually finding a working VB app on a PDA has been ultimately elusive. My strongest suggestion, is to look into VB.NET, with the Compact .Net …

Member Avatar for Comatose
0
95
Member Avatar for tomtetlaw

When talking about "programming" people tend to think that all code is a "program", but this just isn't true. Languages like VB, and C/C++, require that you first take the code that you write, and convert it to machine code (compile). After that (often done in the same step) you …

Member Avatar for Comatose
0
107
Member Avatar for devilz

Post the code that you have accomplished already, and show us where you are having trouble so that we can guide you.

Member Avatar for Comatose
0
95
Member Avatar for LucyB

[url=http://letmegooglethatforyou.com/?q=for+loop+flow+chart]Try This Link[/url]

Member Avatar for Salem
0
91
Member Avatar for matrimforever
Member Avatar for MrVile

Also, I never see you call any kind of function to convert the string to an int: [code=cplusplus]#include <iostream> #include <sstream> using namespace std; int main(int argc, char **argv) { stringstream ss; std::string x; int integer; x = "5"; ss << x; ss >> integer; cout << integer << endl; …

Member Avatar for MrVile
0
267
Member Avatar for Liszt
Member Avatar for Liszt
0
86
Member Avatar for sonia sardana
Member Avatar for bharanidharanit

This line [inlinecode]ab = RichTextBox1.Text[/inlinecode] doesn't actually write anything to the file. You might want to replace that line with something that accesses myStream.

Member Avatar for Ramy Mahrous
0
91
Member Avatar for sonia sardana

[url]http://msdn.microsoft.com/en-us/library/system.security.permissions.registrypermission.aspx[/url]

Member Avatar for Comatose
0
115
Member Avatar for gauravmishra
Member Avatar for Salem
0
183
Member Avatar for Teethous
Member Avatar for ryan311
Member Avatar for lehe
Member Avatar for culebrin

First, it's strongly frowned upon to post to threads that are more than three months old. Even if you have a question regarding an old thread, then you would start a new thread, and post a link to the old thread with your question. This will help to ensure that …

Member Avatar for Comatose
0
419
Member Avatar for Phil++
Member Avatar for asif786

You give me code first. All you have to do is total the votes, and use a simple if statement.

Member Avatar for Comatose
0
88
Member Avatar for Liszt
Member Avatar for rahul.k
Member Avatar for Matt3144

yeah a unique record ID would be the best way to go, because what if you have more than one Matt? How then will you distinguish him from another Matt? The code however for what you have, without the need to complicate it with userid's, would be, in your "load" …

Member Avatar for Comatose
0
219
Member Avatar for yuleball

It already works using the number pad (ie: alt + 251 or whatever), but to do it how you want, you must subclass the form (which is kind of ugly), can't you just on keyup or keydown do something like this: [code]richtext1.text = richtext1.text & chrw(keycode)[/code] or am I missing …

Member Avatar for Comatose
0
1K
Member Avatar for TheBeast32

I'm not sure you can put winsock in permiscous mode. I know most sniffers come with like winpcap and what not...

Member Avatar for TheBeast32
0
706
Member Avatar for dreyes67

In The Combo (or drop down) menu's keypress event, you trap the user typing. For example, you could, change keyascii to be the backspace character, or set the .text property to "". You could, display a message box that tells the user that keyboard input is a restricted function. The …

Member Avatar for visuallearner
0
152
Member Avatar for sunnyalways1234
Member Avatar for DougC

[QUOTE=DougC;784836]Is my only option to install VB2008 Express on a 64 bit machine and create a separate 64 bit version?...[/QUOTE] Yup. If you recompile it on a 64-bit vista platform, it should work.... other than that, good luck.

Member Avatar for edgar5
0
132
Member Avatar for Emma1

[url=http://www.letmegooglethatforyou.com/?q=C%2B%2B+Abstract+Class]Here Is Your Answer[/url]

Member Avatar for skatamatic
0
81
Member Avatar for ShadyxxLady
Member Avatar for kehar

you can pretty much do what riju_sh02 said, but you could replace chr(13) with vbnewline. The constant is pretty much just a chr(10) and chr(13) (crlf, you can use vbcrlf too)

Member Avatar for debasisdas
0
92
Member Avatar for veledrom

Use VB.Net.... not VB 6 :) Seriously, I like VB6 a thousand times more than .NET, but the fact is, that code is meant for the .NET platform. VB 6 is not quite that object oriented and structured. I suggest however, that to do the same thing in VB6, use …

Member Avatar for Comatose
-1
166
Member Avatar for aligatorfurr

Yeah, that code is [b]Not VB6 Code[/b]. In order to do something similar to what you have there: [code=vb]open path & "checkinfo.txt" for output as #1 'or for append mydata = ourCheck.employee & string(20, " ") mydata = mydata & string(10, " ") & ourCheck.check mydata = mydata & string(10, …

Member Avatar for aligatorfurr
0
100
Member Avatar for RahulV

In the mdi parent (main form) when you want to get the caption of the foreground/active window, you can use [inlinecode]msgbox me.activeform.caption[/inlinecode] to get the caption of the active child MDI form. To find out if the window is loaded and visible you can use this (add it to the …

Member Avatar for jireh
0
236
Member Avatar for RahulV

You have to calculate the distance, and use form.move....in a module (normal code module, not class) add this: [code=vb]Sub DoCenter(child As Form, parent As Form) Dim mTop As Integer Dim mLeft As Integer If parent.WindowState <> vbNormal Then Exit Sub mTop = ((parent.Height - child.Height) \ 2) mLeft = ((parent.Width …

Member Avatar for jireh
0
690
Member Avatar for shasha821110

it looks like when you pass 0 to the constructor, that number is used as the size of your new array... [code=cplusplus]maxlen=size; top=-1; p=new int[maxlen];[/code] Then you try to push 1 on to it...but it's size is zero.... or am I crazy?

Member Avatar for shasha821110
0
92
Member Avatar for AdRock
Member Avatar for Board22
Member Avatar for Board22
0
143
Member Avatar for dinilkarun

[code=vb]Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Const WM_VSCROLL = &H115 Const SB_BOTTOM = 7 Private Sub Text1_Change() SendMessage Text1.hwnd, WM_VSCROLL, SB_BOTTOM, 0 End Sub[/code]

Member Avatar for Comatose
0
263
Member Avatar for Rombosia
Member Avatar for rock9449

your last else if is missing an opening and closing brace. { } And in a couple of spots, you are using parenthesis where they should be braces. [code=cplusplus]#include <iostream> using namespace std; int main () { int choice,num1,num2,answer; cout<<"This is a caculator program which will do math for you\n"; …

Member Avatar for shasha821110
0
94
Member Avatar for Ravi Kant
Member Avatar for binoj_daniel
0
101

The End.