1,372 Posted Topics
![]() | Re: Ok... and the problem you are having is? |
Re: When dealing with servers (which are usually important to the company) the safest way to move the database, is to duplicate it first.... then later remove it from the source. So while you are right, moving and duplicating are different.... would you think it is wise from an administration point … | |
Re: By the beard of Zeus, I'm guessing it doesn't know what kind of database your .xsd is..... how was it made? | |
Re: I don't know enough about the entities in your database to help you here. Your SQL query string, has a "WHERE" clause, with no condition! You need to put someting like: [code=vb]cmd = New OleDbCommand("SELECT * from UMP WHERE username =" & text1.text, cn)[/code] | |
Re: Try not to back to back post... it's bad etiquette (though sometimes necessary). The better alternative is to edit your post within the grace-period provided by the site. | |
Re: There is probably a cleaner and easier way to do this, but if you include this sub in your perl file somewhere: [code=perl]sub Compare_Items { ($ref_cmplist, $ref_udata) = @_; foreach $udata (@{$ref_udata}) { $flags{$udata} = false; foreach $cmp_item (@{$ref_cmplist}) { if ($cmp_item eq $udata) { $flags{$udata} = true; } } … | |
Re: [code=perl]use CGI; chomp($name = param("name")); # // $name should have "foo" in it.[/code] | |
Re: [url=http://www.dreamincode.net/code/snippet60.htm]This Page[/url] might help. | |
Re: I'm not a big fan of just giving out code.... especially when I know it's for homework, but let me give you some detail.... once you do as KevinADC suggested, and get the DBI module installed, you need to have the SQL database setup. In this example, I connect to … | |
Re: Yeah, let's not post to threads that are nearing a year old..... | |
Re: I'm not sure I fully understand the problemo | |
Re: VB6, to the best of my knowledge.... is NOT .NET friendly. That said, have you tried putting a declaration to it (just like an API call)? | |
Re: [url=http://www.codeblocks.org/downloads/5]Right Here![/url] ie: Get the one with mingw | |
Re: [code=vb]dim mydate as string dim a, b, c mydate = "3/02/09" dim myParts as string() = mydate.split("/") a = myParts(0) b = myParts(1) c = myParts(2)[/code] | |
Re: [code=vb]dim somedate as string somedate = "2/3/2009" parts = split(somedate, "/") if ubound(parts()) < 2 then msgbox "Error Parsing Date String" exit sub else mymonth = somedate(0) myday = somedate(1) myyear = somedate(2) combo1.additem(mymonth) combo2.additem(myday) combo3.additem(myyear) end if[/code] | |
Re: I could have sworn <vector> is part of the STL.... | |
| |
Re: I'm pretty sure you can use .NET inside of C++, but I'm willing to bet it's going to be an uglier mess than simply using sockets and sending the e-mail yourself....but that in and of itself is nasty, because you have to deal with low-level sockets (be wise, use SDL_Net … | |
Re: [url=http://www.letmegooglethatforyou.com/?q=installing+vb.net]Here is help[/url] | |
Re: [url=http://letmegooglethatforyou.com/?q=C%2B%2B+hello+world]Here Is A Great Start![/url] | |
Re: I'll take: people who don't ask questions for 1000 alex... | |
Re: I'm pretty sure it has to be compiled on the platform you plan to deploy it on. You could look up cross-compilers or cross-compiling, but that's a huge mess. The most sane way to do it, is to grab a mac and compile your code on it. | |
Re: Well for one, you didn't use code tags. When you post code, you should put it in code tags: [ code=cplusplus] // Your C++ Code Here [ /code] Secondly, your main function doesn't seem to return an int, or take command line parameters... Third, you aren't using namespace std;, which … | |
Re: static libraries go to Properties - Configuration Properties - C/C++ - Code Generation - Runtime Library and select either "Multi-threaded (/MT)" or "Multi-threaded Debug (/MTd). Otherwise, you'll have to distribute the runtimes with it. | |
Re: I suppose you could overload the assignment operator, or some wild nonsense.... why not just make a getter method, and properly encapsulate the variable? | |
Re: Ok.... So instead of making a post that is going to get buried layers deep into the forum... how about you post it as a code snippet? | |
Re: [QUOTE=soroushc;794193]don't type else part of if statements!just write two if statements!this would save you some time when you want to later view the program![/QUOTE] What The Hell? Please don't post crappy advice. | |
Re: it's difficult to tell without the Perl script..... I personally would just use the [url=http://www.w3schools.com/PHP/func_string_str_replace.asp]PHP str_replace function[/url] and have it check for 's in the text, and remove them..... I'm guessing it happens because of something in the perl script not getting cleared...or something about the page not getting reset... … | |
Re: I suggest [url=http://www.libsdl.org/projects/SDL_net/]SDL_Net[/url].... I have had very good results with it, even though it does have a quirk or two. If you build a class (or a couple of them if you plan to thread) to encapsulate the networking code, you can make this part a breeze for sure. Be … | |
Re: it's because C++ calls the function on the right first, and works its way left. Just add a couple of cout's in your two methods, and see the order in which they are called... getX is called, and then setX is called: [code=cplusplus]#include <iostream> using namespace std; class Y { … | |
Re: Your post is missing a bit of data, but from what I can see (and without more information, it very well could be swing and a miss) but it looks like Parts is a vector of std::strings. If I'm not mistaken, printf knows nothing of your std::strings, and requires a … | |
Re: In C++? I foresee ugliness in the future. Why not just use that goofy active desktop thing that windows has, and set the desktop to a web-page (one that you make) so you can toss in some cool javascript and what not? | |
Re: .... [code=cplusplus]#include <iostream> #include <iomanip> using namespace std; int main(int argc, char **argv) { int size, lines; // Get Number Of Lines cout << "Enter in lines: "; cin >> lines; cout << endl << endl; // Set Size Variable Equal To The Number Of Lines size = lines; // … | |
Re: [code=vb]dim wsh set wsh = createobject("WScript.Shell") wsh.regwrite "HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices\MyService", "c:\path2myapp\myapp.exe", "REG_SZ" set wsh = nothing [/code] | |
Re: you can treat it as an array if you want. [code=cplusplus]std::string somestring; somestring = "2x^2+8"; cout << somestring[0] << endl; // Shows 2 cout << somestring[1] << endl; // shows x cout << somestring[2] << endl; // shows ^ cout << "you get the point..." << endl; // ;-)[/code] | |
Re: So, what I gather is you have a problem.... the solution to the problem.... and you are posting here because you have temporarily gone insane? | |
Re: :) -r is recursive (folders too). The f however is to force the operation (don't ask questions) | |
Re: [code=cplusplus]replace (mystring.begin(), mystring.end(), " ", ""); cout << mystring.length() << endl; // what?[/code] | |
Re: [code=cplusplus]for (i=0;i<=number;i++)[/code] | |
Re: Even though it's solved, another solution to this would have been to set the value of the textbox to 0 by default (such as in form load) | |
Re: One problem, is that you didn't create your own thread.... using someone else's thread to post your question is a sure way to get flamed and not get the answer you desire. It also helps to use code tags.... we see code, all ugly and without colors or indentation, and … | |
Re: [url=http://www.startvbdotnet.com/controls/treeview.aspx]here's a pretty good link[/url] | |
Re: I'm pretty sure you can give it a function pointer as a parameter.... | |
Re: I'm pretty sure the only way is to refer to the object and assign it directly. That is, something along the lines of: [code=vb]form2.txtBudget.text = form1.txtBudget.text[/code] | |
Re: It should send you to the ASP.NET forum page... which is where your question belongs. EDIT: :p Talk about timing. |
The End.