1,372 Posted Topics

Member Avatar for perl1user

[url=http://search.cpan.org/dist/Parse-RecDescent/lib/Parse/RecDescent.pm]Right Here![/url]

Member Avatar for KevinADC
0
213
Member Avatar for RahulV
Member Avatar for purplegerbil

That's Really Great Work. Not only did you solve your own issue, but you also showed us a valid, and clean way to do it. Great Job pG.

Member Avatar for Comatose
0
125
Member Avatar for debonair

You're gonna have to get fancy with this one.... check attached project. You will [b]Need[/b] to resize form1 in order to see the solitaire window. Probably should just maximize it after clicking "Kidnap". So click launch, click kidnap, maximize. Comatose Taboo Programmer

Member Avatar for Comatose
0
122
Member Avatar for perl1user

Basically, you need a specially module. [url]http://search.cpan.org/~ingy/Inline-0.44/C/C.pod[/url]. This will let you put C++ code INLINE, that is, into the Perl file. This still doesn't let you call the C function stored in another file (from what I can tell).

Member Avatar for perl1user
0
122
Member Avatar for balamurali07

This is not the .net forum. You should probably [url=http://www.daniweb.com/forums/forum58.html]Start A New Thread[/url] in the VB.NET Section.

Member Avatar for Comatose
0
113
Member Avatar for muhammad ismail

2- [icode]System.Net.Mail.SmtpClient[/icode] would help you. Which isn't an smtp server, but a client.

Member Avatar for Comatose
0
65
Member Avatar for rajuprasad82
Member Avatar for mrnutty

Well, one thing is for sure... in a 3D game, Trig is pretty much vital... for example, using a sound library that works in 3D. You have to calculate how far you are from the event that makes the sound... then the velocity of the item and speed, to determine …

Member Avatar for mrnutty
0
142
Member Avatar for Bladtman242
Member Avatar for Bladtman242
0
284
Member Avatar for ryan311
Re: help

[code=vb]Dim LastNum As Integer Private Sub Command1_Click() Dim NewNum As Integer Dim I As Integer If Text1.Text = vbNullString Then MsgBox "Enter A Value" Exit Sub End If NewNum = LastNum + Val((Text1.Text) - 1) Text2.Text = vbNullString For I = LastNum To NewNum Text2.Text = Text2.Text & I & …

Member Avatar for ryan311
0
303
Member Avatar for namita.mundada

You could probably use some calls to [b]FindFirstChangeNotification[/b], and [b]WaitForSingleObject[/b] api calls. Then whenever your app notices a change to the file.. it automatically changes the permissions back. Though, if you have access to the service that dumps data to the file... why not make the service simply check the …

Member Avatar for namita.mundada
0
130
Member Avatar for guest7

Missing ; after } for class prototype: [code]class circuit { public: int append_and_file(stack<int> &); /* Some other variables defined */ };[/code]

Member Avatar for Comatose
0
142
Member Avatar for biato

Hmmm, I think the mscomm control handles both serial and parallel communications... but seeing that this is a network printer, and you are mapping it, it complicates things some. If the second code that you posted works (ie: using Open "c:\test1.txt" for Binary as #1) then why not simply save …

Member Avatar for biato
0
276
Member Avatar for dmanw100
Member Avatar for asif786

You don't need a loop. Use a stack, and use the .contains method to see if the stack contains the voter number.

Member Avatar for Comatose
0
124
Member Avatar for alphakillz

[url=http://www.daniweb.com/forums/showthread.php?t=18618]This Thread[/url] is probably exactly what you are looking for. What you are going to find, is that using a VB program to send data to a web page/forum type thing... is going to get really ugly... really fast.

Member Avatar for alphakillz
0
92
Member Avatar for altafad

[code=vb]clipboard.clear() clipboard.SetText "Whatever You Want On The Clipboard Here"[/code]

Member Avatar for Comatose
0
50
Member Avatar for guest7

[code=C++]/* ************************************* */ /* Function To Run A Shell Command, And */ /* Read The Output Back Into Our Program */ /* ************************************* */ std::string run_command(string cmd) { string data; FILE *stream; char buffer[1024]; // Open The Command With Read Flag stream = popen(cmd.c_str(), "r"); while (fgets(buffer, 1024, stream) != …

Member Avatar for guest7
0
110
Member Avatar for edgar5

The SelectedIndexchanged() event only fires when you actually click an item to "change" the contents of the combobox.... perhaps "click" or "keypress" would be the right choice?

Member Avatar for Comatose
0
277
Member Avatar for Grimshad

Sure, but your if statement is looking for [inlinecode]if(tfgame.ToggleWarhead == True)[/inlinecode] which from what I can tell is not the name of your class. Unless I've been living in *nix too long, and case doesn't matter any more: [inlinecode]class TFGame extends xTeamGame;[/inlinecode]

Member Avatar for Grimshad
0
181
Member Avatar for clutchkiller

What you may consider instead, is killing the process "explorer.exe". Then do a findwindow and look for taskmanager... if you see task manager, send a wm_close message (so they can't just open task manager, and run explorer.exe again). With explorer.exe gone... they have access to nothing but taskman... just a …

Member Avatar for Comatose
0
105
Member Avatar for monere

[code=C++]#include <windows.h> using namespace std; int main() { ShellExecute(NULL, "open", "C:\\cool.txt","", "C:\\", SW_NORMAL); return 0; }[/code]

Member Avatar for monere
0
130
Member Avatar for clutchkiller

SC_SCREENSAVE is a windows message.... it's a constant. A constant hex value (0XF140) and will never be 1. So your do loop will only run once, no matter what. If it where a while loop instead, the system("pause"); would never run, because the test condition would happen first.... I mean …

Member Avatar for Comatose
0
111
Member Avatar for edgar5

Set AutoCompleteSource to ListItems, then set AutoCompleteMode to whichever one you like. I prefer Suggest, but you can check them all to see which one is ideal for you.

Member Avatar for edgar5
0
120
Member Avatar for scrypt3r
Member Avatar for brothertse2008

I'm pretty sure that you can't use a variable name as a property of an object..... you could try this instead: [code=visualbasic]Data1.Recordset.FindFirst(store) ' might work [/code]

Member Avatar for ryan311
0
122
Member Avatar for clutchkiller

[code=C++]#include <windows.h> #include <iostream> using namespace std; int main() { SendMessage(GetDesktopWindow(), WM_SYSCOMMAND, SC_SCREENSAVE, 0); return 0; }[/code]

Member Avatar for Freaky_Chris
0
186
Member Avatar for simonpaul

The tools should be on the right hand side... there should be a small little box that says "tools" and when you hold your mouse over it... it should come out. I hate the design too, but there is a button to make it "sticky" so that it stays open.

Member Avatar for jbrock31
0
145
Member Avatar for ryan311

I'm a little confused.... you are trying to save data? If so, you wouldn't open a connection to the database with a Select... Select is used to retrieve rows and columns from the database table.... I think you want something like with like [inlinecode]UPDATE table SET field = 'whatever' WHERE …

Member Avatar for ryan311
0
145
Member Avatar for ryan311

You'll want to put the code to change the label (labelname.backcolor = vbred) color in mousedown or keydown, and then change it back to whatever it was previously on mouseup or keyup. You may need to use a variable of some kind (public to the form) to hold the default …

Member Avatar for ryan311
0
79
Member Avatar for tomtetlaw

Not sure what pygame is, but free 3d game engine for C++: [url=http://www.letmegooglethatforyou.com/?q=ogre3d]Ogre3d![/url] EDIT: Sorry... Ogre3d isn't a game engine... it's a rendering engine. [url=http://www.crystalspace3d.org/main/Main_Page]Crystalspace[/url] [url=http://www.ogre3d.org/index.php?set_albumName=album71&option=com_gallery&Itemid=55&include=view_album.php]StemCell Engine[/url]

Member Avatar for tomtetlaw
0
146
Member Avatar for Dav 1
Member Avatar for onlyehtisham

The best way to get started on this, is to make the dialog box as a form of your own... so in your project add a new form, and design it to look like that (with the controls and drop-downs where they go, and the picture box). Then start working …

Member Avatar for Comatose
0
119
Member Avatar for asif786

[code]' /* Declare A New Stack Object */ Dim usedIDs As New Stack ' /* Assume User Enters VoterID In Textbox1 */ if usedIDs.Contains(textbox1.text) then ' /* Voter Number Has Not Been Used Yet So... */ ' /* Add Item To Stack */ usedIDs.Push(textbox1.text) ' /* Keep Doing Stuff For …

Member Avatar for Comatose
0
163
Member Avatar for "dam"
Member Avatar for "dam"
0
359
Member Avatar for massivefermion

sudo apt-get install g++ and you probably want to compile it with g++ not gcc

Member Avatar for cam875
0
257
Member Avatar for edgar5

Well.... I don't see when the destructor would be called.... that is, does a second new mean a call to the first destructor? I don't think so... because destruction happens when the object is set to nothing, or it goes out of scope... and neither one is happening. You are …

Member Avatar for Comatose
0
135
Member Avatar for ramesh_natesan

Well, one thing to consider instead of remotely logging in, is remotely shutting down / rebooting the machine. Which in XP can be done with the shutdown program (command line). [code]shutdown -r -f -m \\MachineName[/code] However, you'll need to be logged in as someone that has such rights in your …

Member Avatar for Comatose
0
159
Member Avatar for yuleball

Certainly.... If you know the ascii value that corresponds to the diacritical mark. For example, I can change e to é or ë by doing something like: [code]letter = chrw(233) 'or letter = chrw(235)[/code] However, there is no built in functionality to take a character and simply combine a diacritical …

Member Avatar for yuleball
0
206
Member Avatar for shwick

I'm not sure how doing it in another language is going help... if you planning on pruning the entries, the list will be the same in Python or in Bash (or anything else for that matter). I suppose you could do something nifty, like create an array of forward items, …

Member Avatar for Comatose
0
555
Member Avatar for GadiK
Member Avatar for jaiprakash15

Hmmm... [code]dim objWord dim myDoc Set objWord = New Word.Application Set myDoc = objWord.Documents.Add("filename") msgbox myDoc.BuiltInDocumentProperties("NUMBER OF LINES").Value [/code] If The Above Doesn't Work, It Might Be: [code]msgbox objWord.BuiltInDocumentProperties("NUMBER OF LINES").Value[/code]

Member Avatar for jaiprakash15
0
147
Member Avatar for sumeth

It ultimately depends on the version of Windows Media Player you are using. For example, scripting/coding for Windows Media Player 9, is vastly different than for 11. One way to figure out how the control works and behaves, is to add the control to the form, and give it a …

Member Avatar for debasisdas
0
288
Member Avatar for roberteregina

Certainly. The possibility that an API call, for example, that worked in XP was modified to a different datatype or even name under Vista. Ultimately, I'd need to see the code (at least, the portion of the program that craps out) in order to be able to figure out for …

Member Avatar for roberteregina
0
123
Member Avatar for csross

Well, since UDP is connectionless, you are going to have a heck of a time with traditional tools like that. My personal suggestion, is get wireshark, and set the filters to only deal with UDP, and only deal with the ports in question. Then run wireshark, and keep an eye …

Member Avatar for Comatose
0
172
Member Avatar for Phreak
Member Avatar for fireballnelson

[code]int *x = new int();[/code] How can you dynamically allocate memory on the heap using a reference?

Member Avatar for ArkM
0
169
Member Avatar for Paryushan

Not to distract from your original question (ie: how to run commands from perl) but, if accessing a database is what you want to do, why not simply do so directly from Perl, using say.... The DBI Module?

Member Avatar for KevinADC
0
148
Member Avatar for JordyD

Which platform are you planning to deploy it on? You can choose say, RPM for RH based distro's, or .debs for debian... or, go good old fashioned tar ball (.tar.gz) which is pretty universal.

Member Avatar for JordyD
0
185

The End.