472 Posted Topics
Re: [quote] 2.]I have multiple forms that is "linked". linked in a way that the value of a textbox In the first form will be used in the next form.there are 'next' and 'back' button in every form.when I entered for example "daniweb" in one of my Txtbox,click next,then click back … | |
Re: Check out this MSDN link and look at the C++ example: [URL="http://msdn.microsoft.com/en-us/library/aa904305(VS.71).aspx"]String to Array using Split[/URL] | |
Re: [QUOTE=GooeyG;979885] [CODE]float OverTime::getsalary() { if (hoursWork > 40) { hourlyRate += (hourlyRate /2); } else return hoursWork * hourlyRate; }[/CODE][/QUOTE] Problem with the above function is you have an [icode]else[/icode] clause you don't need. In the above, not all paths return a value because the [icode]return[/icode] statement is part of … | |
Re: Hi. Did you figure this problem out yet? I could simply give you a short and precise answer to your question--Yes (LOL), but you probably want to know what the reason is too, right? Can you attach the report file and list what the "3 specific values" are? | |
Re: In no particular order: [URL="http://www.csharp-station.com/Tutorial.aspx"]http://www.csharp-station.com/Tutorial.aspx[/URL] [URL="http://msdn.microsoft.com/en-us/library/aa288436(VS.71).aspx"]http://msdn.microsoft.com/en-us/library/aa288436(VS.71).aspx[/URL] [URL="http://www.csharphelp.com/archives2/archive402.html"]http://www.csharphelp.com/archives2/archive402.html[/URL] [URL="http://www.devhood.com/training_modules/dist-a/LearningCSharp/learningcsharp.htm"]http://www.devhood.com/training_modules/dist-a/LearningCSharp/learningcsharp.htm[/URL] | |
Re: [URL="http://www.google.com/search?hl=en&rlz=1C1CHMR_enUS325US325&q=decimal+hexadecimal+converter+cpp&aq=f&oq=&aqi="]decimal hexadecimal converter cpp[/URL] | |
Re: Can you be more specific with, "I don't know what it means?" Are you talking about compiler errors you are getting?:?: | |
Re: It is hard to determine what you require. Can you supply a textual pattern of what the design should look like after it is drawn? Where do the values of "side" and "border" come from? | |
Re: [code=csharp] System.Reflection.Assembly exe = System.Reflection.Assembly.GetEntryAssembly(); string exePath = System.IO.Path.GetDirectoryName(exe.Location); [/code] | |
Re: There are many example projects of file compression in CPP: [URL="http://www.google.com/search?hl=en&rlz=1C1CHMR_enUS325US325&q=compression+cpp+codeproject&aq=f&oq=&aqi="]CPP and File Compression[/URL] | |
Re: Look at [icode]Array.IndexOf and Array.LastIndexOf[/icode], which will give you the index of the first and last occurrence of the int in your array. | |
Re: [QUOTE=zydaru;978921]Hy, I want to create several mdb files. Done that,I've created several tables, populated them, but I want to protect them by a custom password. How can I do that? :icon_confused: Thanks![/QUOTE] Not sure if this is a C# question, but if you open your MDB and goto Tools > … | |
Re: You can certainly call the OpenFileDialog in your click event: [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx"]http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx[/URL] Your application can delete the files they have selected if that is what you want, or load them and have your app do something with it. If you want to allow the user to save a resource, you could … | |
Re: Sure. C2535 - means you already defined a function with that name and parameter list. It's been a while for me in cpp, but try commenting out the prototype statement at line 34 above and see what happens. C1075 - means you have some misplaced/mismatched braces. Check your opening and … | |
Re: goto? really? Why not put the switch code into a function [icode]bool ValidInput(...)[/icode] and then loop for each user's input until it is valid? [code=cpp] while (!ValidInput(...)) { cout<<"...make your move..."; cin>>input; } [/code] You could then reuse one set of the [icode]switch[/icode] code for each user input call. Though … | |
Re: You forgot to include the contents of: "nodeType.h" | |
Re: This article appears to answer your exact problem: [URL="http://www.add-in-express.com/docs/outlook-security-manager-addins.php"]Disable Outlook Security Message[/URL] | |
Re: Please use code tags--it is very difficult to look at code that is not formatted. You posted your code, but you haven't indicated a problem. Is there a particular problem you are noticing (compiling or at runtime)? You should also attach your input data file so when someone wants to … | |
Re: Sounds similar to another user's question. See responses and see if it fixes your problem: [URL="http://www.daniweb.com/forums/thread220905.html"]http://www.daniweb.com/forums/thread220905.html[/URL] | |
Re: I'm not sure why Serkan's example was not sufficient, but here is another demonstration. You would need to complete the case labels with the remaining conditional requirements. [code=csharp] public static void Test() { int [] A = {6090, 6100, 6200}; bool b = CompareAB(A, 995); b = CompareAB(A, 1005); } … | |
Re: You probably need to commit your changes. See [icode]AcceptChanges()[/icode] method. | |
Re: [QUOTE=papanyquiL;978424]Ok, so this was a bit more simple than I thought... Here's the method I created to display the control's event info [code=c#] private void LogIt(object sender) { checkedList.Items.Add((string)sender.ToString()); } [/code] Then after the click event of every control I simply put LogIt(sender) and it sends the info into the … | |
I get this error that I don't know how to properly prevent it from happening: [QUOTE]Cannot bind to the property or column SomeField on the DataSource. Parameter name: dataMember[/QUOTE] I'm including a zipped up project I created that simulates what is happening in my much larger application. I have created … | |
Re: Yes, well, consider the source--FOX News. I was working with a CPA a couple of weeks ago who exclaimed, "I don't want socialized medicine."--she's on Medicare--LOL. She went on to tell me about a Glen Beck show she was watching and how they had all these "experts" there and it … | |
Re: Please use code tags. In your matrix function, you are assigning -1 to all elements. If you want to assign the pattern of numbers you specified you would like to output, then you need to assign them as such. Having said that, do you want to put them into your … | |
Re: [quote]I already searched web about this error and I still cannot figure it out why it is happening. I am the only who is updating the database, there are no other users. The DataRequestTable has primary key defined (NodeID). I have UPDATE statement defined for myDBAdapter. I have no clue … | |
Re: [QUOTE=gkaykck;965895]I guess the problem is c# creates the textboxes after runs my naming code. If there way to get the names directly from the database? Or another way for doing this?[/QUOTE] Just an FYI because it's not a solution to your problem. Unless you have manually implemented the creation of … | |
Re: This snippet demonstrates how to obtain several objects from an Outlook folder. I don't use Outlook, so I can't really verify it, but maybe it will help get you started: [URL="http://geekswithblogs.net/TimH/archive/2006/05/26/79720.aspx"]Outlook Folder Objects[/URL] | |
Re: [QUOTE=ddanbe;961535]Have you a SelectedListViewItemsCollection class, or is it missing in a compact framework?[/QUOTE] I think what ddanbe has led you to is what you want/need. However, I was a little confused when you said there is no constructor and you couldn't create an instance, so I had to check this … | |
Re: [QUOTE=darab;960718]Hi Friends i have a datagird and it has 2 columns and have calculate with the content of them but when i typed them in runtime my result was wrong i followed it by BreakPoint and underestood that the content of last column didn't use in my calculate(although it has … | |
Can anyone tell me how to get my blocks of code to automatically indent when I place the final closing brace--"}". This works fine when I am coding in C# and I know there must be a way to enable this feature for CPP source documents. | |
Re: You are losing the precision in your division. You need to cast: [code] div = (float)num1 / (float)num2; [/code] Your printf requires "%%" to represent a literal % symbol: [code] printf("> %d %% %d = %d.\n", num1, num2, mod); [/code] Can't help you with the search parameter for "C", but … | |
Re: [QUOTE=vivekarora;962189]Hello Friends, Generally, we have pure virtual function without body, but C++ does allow to write pure virtual function with body. Can anyone suggest any use-case where we need to write pure-virtual function with body? Regards, Vivek[/QUOTE] This is news to me, but it has been a while since I … | |
Re: [QUOTE=Gribouillis;962256]You could also consider loading all the schools and children in memory and modify the database only when you know in which school each child goes (this can be done if you're able to compute the distance between a child and a school without the ST_DISTANCE function). Also, try to … | |
Re: [QUOTE=logine;962252]please help me to have a program that will compute for n! (n factorial) which is the product of all numbers from 1 to n.[/QUOTE] OK, but this is a secret between you and me: [URL="http://www.google.com/search?hl=en&rlz=1C1CHMR_enUS325US325&q=factorial+cpp&aq=f&oq=&aqi="]factorial cpp[/URL] | |
Re: Well, you probably want to remove any leading or trailing spaces so you don't count extra words--see [icode]string.Trim()[/icode]. Then, you could loop through the string looking for " " (space) and count each one you find using[icode]string.IndexOf() or IndexOfAny()[/icode], but you probably want another loop inside of that to skip … | |
Re: [QUOTE=namehere05;962121]I have the following code and it wont compile, it says no matching function for call to `autop::autop(autop)' at this part [CODE]autop j = f();[/CODE] [/quote] I got no compiler error with that code. [quote] Another Thing: when used inside the function parameter list (i.e autop(autop & s) , whats … | |
Re: The .NET compact framework does not natively provide support for bluetooth, so you will need to device specific support I believe. Try google'n "Codeproject bluetooth c#" to see some examples. If supporting a particular PDA, you might include that in your search as well. | |
Re: [code] if ((count % 2) == 1) [/code] oops! I posted this before realizing it was Java...Sorry in advance if the syntax is wrong. | |
Re: If you specify a default contsructor for you Item struct definition, this error will go away: [code] Item(void) :name(""), iid(0), value(0.0) {} [/code] | |
Re: Is "input" a string and how is it obtained? This might be more of a web programming question, which is probably why nobody has responded to your question yet, but go ahead and answer my question and we will see... Also, please use code tags around your code. | |
Re: Not sure whether this is a good idea, but I believe it will do what you asked: [code=csharp] while (true) { // get all instances of notepad running... System.Diagnostics.Process[] procs = System.Diagnostics.Process.GetProcessesByName("notepad"); if (procs.Count() == 0) // process by that name no longer running--we're done break; System.Threading.Thread.Sleep(30000); // pause this … | |
Re: Although your code is C#, your error might be strictly DB. Have you checked the server's error log for more details? | |
Re: FYI: You can set the Tag property to your table for each treenode without having to use an owner drawn control. Are you planning to drag/drop from one TreeView to another? | |
Re: [QUOTE=megha.jain08;959479]hii... :-/ can u plz get me out of the problem..!!!!1 m using visual studio 2005. whenever i click an update button to update values of a particular column of a gridview, all the columns gets updated with the same values. eg. if the 2nd column of 1st row with … | |
Re: If the class object is exposed (public) then you can use it. If it inherits from any non-exposed objects (not public) then you will not be able to use it. | |
Re: Wrong Forum. You need to move this to one of the Web Programming forums--probably ASP.NET? | |
Re: If the controls are not available from the Tools tab in the IDE, then they are not installed and you would have to: 1) find custom controls already written and available for free: [URL="http://www.google.com/search?rlz=1C1CHMR_enUS325US325&sourceid=chrome&ie=UTF-8&q=custom+slider+controls+c%23"]Custom Slider Controls[/URL], or 2) buy a third-party toolkit containing custom controls, or 3) write/create them yourself … | |
Re: It's not clear by your description what you want us to do. You provided some code, and some sort of description of what it does, but not whether you want it to do something different, or you are getting an error, etc. Please clarify how you want to be helped. | |
Re: Are you asking how to check for version information? If so, are you asking how to check it inside the application, or inside the setup/install? |
The End.