1,372 Posted Topics
Re: [url=http://search.cpan.org/dist/Parse-RecDescent/lib/Parse/RecDescent.pm]Right Here![/url] | |
Re: Very, Very Nice. Thank you. | |
Re: 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. | |
Re: 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 | |
Re: 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). | |
Re: 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. | |
Re: 2- [icode]System.Net.Mail.SmtpClient[/icode] would help you. Which isn't an smtp server, but a client. | |
Re: 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 … | |
Re: You should be able to just specify the entire path and file name as the parameter. | |
Re: [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 & … | |
Re: 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 … | |
Re: Missing ; after } for class prototype: [code]class circuit { public: int append_and_file(stack<int> &); /* Some other variables defined */ };[/code] | |
Re: 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 … | |
Re: [url]http://support.microsoft.com/kb/231497[/url] | |
Re: You don't need a loop. Use a stack, and use the .contains method to see if the stack contains the voter number. | |
Re: [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. | |
Re: [code=vb]clipboard.clear() clipboard.SetText "Whatever You Want On The Clipboard Here"[/code] | |
Re: [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) != … | |
Re: 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? | |
Re: 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] | |
Re: 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 … | |
Re: [code=C++]#include <windows.h> using namespace std; int main() { ShellExecute(NULL, "open", "C:\\cool.txt","", "C:\\", SW_NORMAL); return 0; }[/code] | |
Re: 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 … | |
Re: 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. | |
Re: 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] | |
Re: [code=C++]#include <windows.h> #include <iostream> using namespace std; int main() { SendMessage(GetDesktopWindow(), WM_SYSCOMMAND, SC_SCREENSAVE, 0); return 0; }[/code] | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: Post the code that you have already (for the open and write sections) | |
Re: 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 … | |
Re: [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 … | |
Re: I'm still a little confused here on what you need... could you give me a little more info.. | |
Re: sudo apt-get install g++ and you probably want to compile it with g++ not gcc | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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, … | |
Re: 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] | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: *Just Smiles* | |
Re: [code]int *x = new int();[/code] How can you dynamically allocate memory on the heap using a reference? | |
Re: 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? | |
Re: 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. |
The End.