1,372 Posted Topics
Re: I'm not sure what you mean by in a column... in a text file? | |
Re: You need to remove the 'mysql' parameter from connect. Should look something like this: [code=perl]use DBI; $dsn="DBI:mysql:database=mysql"; $dbh=DBI->connect($dsn, 'root', 'root', {RaiseError => 1});[/code] | |
Re: Because you never increment "n" anywhere. In your do while, you need to stick an n++ some place. | |
Re: I'm not sure what you mean by "clean" the registry key, but it's all too easy to write to the registry like this: [CODE] dim WSH set WSH = createobject("WScript.Shell") WSH.RegWrite "HKCU\Software\Microsoft\Internet Explorer\TypedURLs\url1", "http://www.google.com" [/CODE] That will effectively replace the value in url1 to [url]http://www.google.com[/url]. The most difficult Part of … | |
Re: You could look into using find: [inlinecode]find / -name $1[/inlinecode] or you could try doing it by piping it to grep: [inlinecode]find / | grep "$1" [/inlinecode], but in order for you to make it go from shallowest to deepest, you might have to do something with sort, such as … | |
Re: To give yourself a pat on the back? Another Interesting Fact: you can also post your own arbitrary snippets... but can't post tutorials. | |
Re: How 'Bout Reading The Sticky Post: [url]http://www.daniweb.com/forums/thread41057.html[/url] ? | |
Re: One of the biggest problems here, is getting the shell to handle floating point numbers. I'm not using / have access to a solaris machine, so I'm going strictly of bash in slackware.... but the shell doesn't handle floating point numbers. In a Perl script, I could knock this out, … | |
Re: Sounds like it was saved in a different format.... is this the same machine you made the file on? | |
Re: How 'Bout using code tags, and reading the office tutorial? [url]http://www.daniweb.com/tutorials/tutorial51307.html[/url] | |
Re: I hate suggesting things like this but you can use system: [code=cplusplus]system("word.exe");[/code] | |
Re: Yes. I'm not sure about if it exists through a web page... but you could connect to it with a program like [url="http://www.mirc.com/"]Mirc[/url], [url="http://download.cnet.com/IceChat-IRC-Client/3000-2150_4-10587438.html"]IceChat[/url], or [url="https://addons.mozilla.org/en-US/firefox/addon/16"]Chatzilla[/url] the firefox add-on. Then you just connect to server: irc.daniweb.com (port 6667), and join channel #Daniweb. There is probably still a web client for … | |
Re: what does your xorg.conf look like? (can be found I think in /etc/X11/xorg.conf, not 100% sure about where it is in BSD) | |
![]() | |
Re: Personally, I like the approach of having things as self-contained and self-aware as possible. This gives you greater flexibility because you are then essentially dealing with plug and play objects, instead of a monolithic overseer. I guess though, that the real question that should drive your decision.... is which design … | |
Re: You could probably get away with using expect. Basically, you could have your script call the expect script in a loop (or figure out how to make expect do a loop) which will be for each machine you want to test. So, make your shell script do a loop, where … | |
Re: Could you be a little more specific, and possibly attach the project and database? | |
Re: I usually just do it at the command line when I want it. Not that you could tell with *nix, but it might help to conserve resources... it's fairly easy: [code]X :1 & export DISPLAY=:1 startkde & # or gnome-session or something[/code] another pretty easy way is to do it … | |
| |
Re: Good luck. I had a tutorial up once that was taken down, and then administration refused to put it back up when I inquired about it.... Furthermore, all tutorials now go through a rigorous examination from the administration before being put up in the forums.... can't tell I'm still bitter … | |
Re: Don't confuse the difference between a machine initiating a connection, and having one initiated with it. If 192.168.1.3 tries to make a connection to a server on the internet, it will do so no problem, because the router remembers who start the conversation. You are trying to make a client … | |
Re: How 'Bout you post this in VB.NET, instead of VB 4/5/6? | |
Re: probably similar to this: [url]http://www.daniweb.com/forums/thread181408.html[/url] | |
Re: Your loop, where you have buttons[i] = button... yeah, that doesn't create new instances of ButtonFoo. You are taking button[0] and pointing it to button. Then taking button[1] and pointing it to the same object as button[0].... | |
Re: Just remember scope when playing with those braces. If you declare something inside the braces, it will only exist between the braces: [code=cplusplus]int main(int argc, char **argv) { int a; { int a; a=5; } cout << a << endl; }[/code] That is a whole different beast. Be careful of … | |
Re: Your code working with the outlook object... what's it look like? | |
Re: With a loop. If you are using windows, then focus on Getcursorpos, and Setcursorpos. | |
Re: A Structure in C++ [b]is[/b] a class. The only difference between the struct keyword and the class keyword, is that by default struct makes all members not explicitly identified as public. A Class makes all members (unless otherwise noted) private. That's it. No other difference. Struct has a default constructor, … | |
| |
Re: You sure it's not WM_CLOSE? | |
Re: I think if you are on linux, you should use a real database (like mysql). Sorry I can't give you a better response than that, but I'm just not sure it's plausible. | |
Re: If your e-mail client handles HTML, you can simply enclose it in [noparse]<b> </b>[/noparse] tags. You are really heavily reliant on the e-mail client for this. | |
Re: Capitalize socket in your third line. use Socket, not use socket. Also, remove the qw line following it. | |
Re: in windows can you use ShellExecute, which is an API call that will allow you to spawn an application. | |
Re: I don't get it on your post here... I don't get it on the first link, but I do get it [url=http://www.daniweb.com/forums/post805292-1.html]Here[/url]. I'm guessing he added those <b></b>'s into the code perhaps? | |
Re: [b]Module:[/b] [code=vb]Declare Function mciSendString Lib "winmm" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long[/code] [b]Play Button:[/b] [code=vb]CommandString = "open """ & FileName & """ type mpegvideo alias " & FileName RetVal = mciSendString(CommandString, vbNullString, 0, 0)[/code] Then research … | |
Re: You have gcc (The C compiler) installed, but not g++ (The C++ compiler). cc1plus is the binary you need, but it comes bundled with g++ (not gcc). Look for build-essential, or at a prompt apt-get install build-essential. Possibly you might just do apt-get install g++, but I think build-essential has … | |
Re: [code=perl]#!/usr/bin/perl system("cat '/something/something/something/darkside.txt'");[/code] | |
Re: [code=vb]dim x as string x = "hello world" if instr(1, x, " ") <> 0 then msgbox "yeah, space." else msgbox "no sir!" end if[/code] | |
Re: *waves his hand like a Jedi* You want to code an open source active directory clone..... | |
Re: I wonder if somehow the C++ program is introducing an EOF character prematurely. I strongly doubt it's a crlf \n issue (that is linux uses a different mechanism for new lines than does DOS/Windows). If I'm not mistaken, in linux EOF is ^D, and in M$ I think it's ^Z.... … |
The End.