1,372 Posted Topics
Re: Actually, even with threading, the hard-drive can still only do one thing at a time. So, you'll likely have one thread blocking on the HD to finish the write from the previous thread before the second thread even gets a chance to do anything. | |
Re: oof. That's a heck of a job. I would imagine you would need to include the header in the other files as well, and PROBABLY have to modify the header so that it holds the new size of the split file. | |
Re: I have an idea (was gonna write the code myself, but your project is a little full-fledged already with the textboxes and all). As you read in a new line from the file, basically make a variable that contains the "old" variable, and then replace the current variable with the … | |
Re: At the very top of your form: [code=vb]Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long[/code] Then in your picturebox_click: [code=vb]shellexecute me.hwnd, "open", cstr(url), "c:\", 1[/code] | |
Re: I was recently trying to do this myself for a business project at work. What I learned was, that the ID was the same for all the chips in my computer lab (same manufacturer). After reading a while, I learned that by default, Intel now has the processor ID disabled. … | |
Re: It typically represents a new line. Try it at a command line... type in say: mkdir \ your prompt will probably change to >, which means the command is not complete yet, and requests more info. I don't know the context or the script, so it makes it a little … | |
Re: I'm not going to build the calculator for you, but here is a project that basically does what you want, but only adds up the sum. First, type a number in the bottom box, and then click the button. Type another number in the bottom box, and click the button... … | |
Re: [code=cplusplus]int calcList() { std::string inputVal; int cnt = 0; int list[100]; while (inputVal != "complete") { std::cout << "Enter an integer: "; std::getline(std::cin, inputVal); if (inputVal != "complete") { list[cnt] = (int)inputVal.c_str(); cnt++; } } return 0; }[/code] or something. | |
![]() | Re: Is this homework, or what is it that you want to accomplish? ![]() |
Re: wm6? [code=vb]If Process.GetProcessesByName(Process.GetCurrentProcess.ProcessName).Length > 1 Then MsgBox("Already Running") End End If[/code] | |
Re: You are using std::string, you need to be using array of char. EDIT: Didn't see Narue Posted... My responses never do so well following hers... discard this :p | |
Re: go to a dos prompt (start, run, cmd) go to your DarkGDK include folder (cd \program files\DarkGDK\Include) probably, and do [inlinecode]for %x in (*) do type %x | find /i "#define" >>c:\outputfile.txt[/inlinecode]. Then, double click my computer, double click C: drive, double click "outputfile.txt", and read it. | |
Re: A) make sure you are not firewalled. -Windows Firewall -Router firewall / port forwarding B) Use a sniffer to see if the packet is even coming in on your network. C) Attach the project so I can look at it. | |
| |
Re: [inlinecode]winsock1.SendData cstr(x) & s & y & vbcrlf[/inlinecode] | |
Re: .vbx files are typically related to modern day .ocx files. They are basically old-school custom controls. In order for the software to work, it will require this file. Chances are it was a file written by the person or company responsible for the software, and has sense gone the way … | |
Re: Read [url=http://www.daniweb.com/forums/thread41057.html]This Thread[/url]. | |
Re: Double Click The Menu Item, And Add The Code To The Menu Item | |
Re: You need to either Prepend std:: to your cout [inlinecode]std::cout[/inlinecode] or add a [inlinecode]using namespace std;[/inlinecode] before your main function (and typically after your includes) | |
Re: [QUOTE=RamyMahrous;781077],,,someone professional in Java, the next step should be C# not VB.NET:)[/QUOTE] I couldn't agree more. To answer your question, however: AddHandler :) | |
Re: Well first, you should put a meaningful topic. "need help" doesn't give us any kind of idea...... what your situation is, or if it is even relevant to something I know. If you had said "class behavior blah blah blah" I might be able to say "oh, he needs help … | |
Re: It can't find the file, because it's not compiling or linking (very likely). Sooooo, how about showing us the code? | |
Re: 1. You didn't use code tags. 2. This thread is ancient.... like, year 2005. You think he figured out his issue yet? | |
Re: The only two ways I can see this going down, is that either you have the program go to the hard-drive and copy the .frm file (which they won't be able to open/see/use without VB) or to take a screenshot with VB, for example, and then mail the screenshot as … | |
Re: what exactly do you mean? You want your vb project able to send e-mail with attachments? | |
Re: To my knowledge this isn't plausible. This is why: you have an internal IP address, on your computer, probably something like 192.168.1.101. Loopback (127.0.0.1) is an entirely different interface... so, let's just say that your connection to the internet is through Ethernet 0 (eth0). eth0, basically asks the router for … | |
Re: I've been working on this with sendmessage, and to be honest, I've been having a hell of a time with using sendmessage in .NET. I can write one in less than 2 minutes that sends a minimize message to a window in VB6, but .NET has somehow made it much … | |
Re: [QUOTE=debasisdas;779980]that is not possible (to reverse engineer the EXE to get the source code).[/QUOTE] It's very possible to get the code to the EXE... just not in a visual basic program. They have programs called decompilers (google it). You can decompile code into assembly language, or decompile it (sometimes) into … | |
Re: Yay! *Votes In Favor of Boost::Threads* | |
Re: Not sure why time variables are required..... I'd simply use integers (cast the time function or date function to int) and have a timer that updates once a minute (or second). A Few if's a few minute = minute + 1's and you should be good to go. Just remember, … | |
![]() | Re: yeah, try using return instead... *mumbles something about multiple exit points* |
Re: I'll wager a bet that he means "The most efficient" means by which to add a value to all items in an array. | |
Re: What do you mean search a file? Are you trying to make a program that the user can type in a search text, and it will find the file name? or will it find that phrase/word /INSIDE/ the file? | |
Re: it seems your AddToListBox procedure doesn't do anything. [code=vb]Private Sub AddToListBox(ByVal barcode As String, ByVal item As String, ByVal price As String) list1.additem(barcode & " " & item & " " & price) End Sub [/code] | |
Re: First problem: you didn't use code tags. you can do that by typing (without the added spaces): [ code=vb ] ' your vb code here [ /code ] Second Problem: it seems you are closing your file two times, but only opening it once... Tsk, Tsk. Lastly, it seems that … | |
Re: If you are running apache, I believe it runs as user apache, or as nobody.... you could in theory, make the php script setuid and run as someone with permission to write to the directory. However, this is pretty glaring security risk, but if you keep it contained, it shouldn't … | |
Re: How about you rename your FlexGrid control to Grd..... (or is it already Grd)? | |
Re: An initializer list? | |
Re: [url]http://downloads.sourceforge.net/codeblocks/codeblocks-8.02mingw-setup.exe[/url] <<-- you got this one? | |
Re: 1) You shouldn't post in red. It doesn't alter our level of urgency, and actually annoys us. I know your reason was probably to distinguish between your code and your words, but see 3 for that. 2) Let's not post in all caps. Makes it seem like you are yelling … | |
Re: Certainly makes you think twice before adding a bad rep point... | |
Re: Eah, I'm not sure how long SendWait waits, but when I did this type of thing in visual basic 6, I had to add sleeps after every sendkeys event... I also had to add doevents (app.doevents). Even then, it never worked 100% correctly. It has been my years of experience … | |
Re: I'm pretty sure you are going to need some kind of graphic library (sdl probably will do) in order to do what you are talking about. edit: maybe you'll need a physics engine too.... I vote newton. | |
Re: And The Problem Is.....? | |
Re: "The only thing that interferes with my learning is my education.” -=Al Einstein=- |
The End.