179 Posted Topics
Re: Get the user's choice from a message box and only set the dialog's DialogResult property to true if they click 'yes'. :) [code=vbnet] Private Sub ButtonCancel_Click( ByVal sender As Object, ByVal e As EventArgs ) _ Handles ButtonCancel.Click ' Verify the cancel Dim result As DialogResult = MessageBox.Show( "Do you … | |
Re: [QUOTE]1: Binary data is not string data. You should probably be using a char array.[/QUOTE] How does that make a difference? A string just handles the memory for the char array instead of making you do it. I don't think there should be any problem with using a string as … | |
Re: [CODE=cplusplus]toppings[z] = a[z] ;[/CODE] If a is declared as a plain int, why are you subscripting it like an array of int? I think you should make the whole thing an array and that'll fix your problem. [code=cplusplus] void Pizza::set ( int x , int y , int a[] , … | |
Re: Stop spamming with the same thing, please. All of your questions are pretty much impossible to answer as given, and it seems like you're trying to get free homework help. | |
Re: [QUOTE]These days I am trying to solve as many questions as possible as I learn more from it.[/QUOTE] If _you_ don't solve the question, what do you expect to learn? :( | |
![]() | Re: Yeah, for some forums like vb.net and C#, i don't even know what name to use. some kind of documentation would be great. |
Re: [QUOTE]the problem is: the mathematical expression must be input by the user, and the program must break it down...[/QUOTE] Any user input has to be validated first. Once you read the string you need to go over it and make sure that all of the parentheses are matched the right … | |
Re: If the C++ program is C++/CLI, you can add the C# dll as a reference in the C++ project and use it normally. If it's native C++, [url=http://www.thescripts.com/forum/thread414309.html]it's a little harder[/url]. | |
Re: [QUOTE]but if printf did not return a value, this program would be valid.[/QUOTE] If printf didn't return a value, it would return void. There aren't any values of void type, so something like this shouldn't ever compile. That means it's not valid. [code=c] #include <stdio.h> void dummy( void ) { … | |
Re: [QUOTE]2. illegal character: \35[/QUOTE] You probably have control characters stuck in the code. I think the ?'s in the code you posted mean that the forum can't print them, but that's where they are. [QUOTE]3. 'class'or 'interface' expected[/QUOTE] You said Xcode with java tools, does that mean you're trying to … | |
Re: [QUOTE]Is there any way to put the Progress bar in the copying thread, Access the forms control from another thread or create a new form control that is on the Form but generated by the Copying Thread?[/QUOTE] Yes, there is! :) What you need to do is access the controls … | |
Re: Did you try databinding? [code=vbnet] DateTimePicker1.DataBindings.Add( "Value", MasterTable, "Dates" ) [/code] I don't think that'll work very well though. If you pick a date that isn't in the table, you'll probably get an exception. How about using a combo box instead of a date time picker? That makes more sense … | |
Re: [QUOTE]The problem is in the last statement, when i use main.Invoke() the CreatemessageBox creates a msgbx, which is part of the Form1. But when i use sendInform() I get a messagebx that appears, but is part of the new thread. So if it were a Form instead of a msgbx, … | |
Re: [QUOTE]Look you guys really drive me nuts with your talk about other graphics libraries and gui toolkits.[/QUOTE] That sounds pretty narrow minded. You found something you like, and other people have to use it too because you won't tolerate listening to other suggestions? Ignoring technical details, that attitude makes me … | |
Re: It depends on how much data you have and how users expect it to be presented... That's a design thing that's up to you. | |
Re: You write a C callable wrapper that runs the method. [code=cplusplus] #include <cstring> #include <sstream> #include <string> #include <vector> using namespace std; class Split { vector<string> result; public: Split( const string& s ) { stringstream sin( s ); string temp; while ( sin >> temp ) { result.push_back( temp ); … | |
Re: [QUOTE]I tried to fix it myself by adding cin.ignore(); at the end of the program. But this doesn't workout where program requires the input from user.[/QUOTE] It doesn't work because there's still something in the stream and ignore gets it right away. You should clear the stream first then do … | |
Re: That's a little much for me, thanks. ;) Template metaprogramming looks cool, but is it really practical? | |
Re: getline stops reading when one of three things happen. [LIST=1] [*]EOF is hit on the stream and the eofbit is set [*]the delimiter for that function call is found. the default is '\n' [*]the array is filled up to n-1 and the failbit is set [/LIST] if the stream state … | |
Re: Yeah, you can connect to SQL server 2000 with .net 2.0. What errors are you getting when you try? | |
Re: [QUOTE]please give me full details about my project of online railway reservation in vb.net.what should be included in this project and also give its source code.[/QUOTE] You just described the completed project. I don't think anyone is going to do it all for you without some kind of payment. :D | |
Re: [QUOTE]Where did i do wrong?[/QUOTE] I don't know. It looks like CreateRawDataBUFR is corrupting your object, but you didn't post the logic for CreateRawDataBUFR. Without the code I can't even guess where you went wrong. | |
Re: A handle is an [url=http://en.wikipedia.org/wiki/Opaque_pointer]opaque pointer[/url]. | |
Re: [QUOTE]and when I run my combo box will get filled with nSystem.Data.DataRowView[/QUOTE] You set the data source but not the display member. The display member is the name of the column in the data table that you want to show in the list. [code=vb.net] ComboBox1.DataSource = dt.Tables( 0 ) ComboBox1.DisplayMember … | |
Re: [QUOTE=rohit_hegde;426781]The following changes will work typedef struct { long size; char * data[1000]; }bulk; bulk blob; blob.data[0] = &ucBufrMessage;[/QUOTE] That's not any different from this, except it wastes 999 pointers. [code=c] typedef struct { long size; char *data; }bulk; bulk blob; blob.data = &ucBufrMessage; [/code] | |
Re: [QUOTE]- Why do most spreadsheets and programming languages do trigonometric functions in radians, when most people use degrees?[/QUOTE] I guess because radians simplify calculations and it's easy enough to turn the result in radians into degrees for human consumption. :) [QUOTE]- Why do most of the C-based languages (including Java, … | |
Re: I'm not sure what you mean, but you can write a unit test method that runs the event handlers for each of the buttons as if you clicked on them. That automates a sequence of button clicks... | |
Re: [QUOTE]Better than M$, why am I not surprised.[/QUOTE] I hope you're not surprised that intel's compiler has better optimizations because they _make_ the processors, and not because you just don't like microsoft. ;) | |
Re: The window gets destroyed when the program ends. If you call getchar so that it blocks for input, the program doesn't end and the window isn't destroyed until getchar returns. | |
Re: How do you rotate a point? A point is a point, there's no kind of transformation you can do until you have more than one. :D | |
Re: [QUOTE=zmariow;425483]This should work: [code] int a = 20; int b = 07; string as = a.ToString(); string bs = b.ToString(); string result = as + bs; int result_int = Convert.ToInt32(result); [/code] Cheers :)[/QUOTE] And without .net this works. [code=cplusplus] #include <sstream> template <class T> T Join( T a, T b … | |
Re: It's a character string? Just set the first character to be a terminator and it'll be treated as "". [code=cplusplus] name[0] = '\0'; [/code] If it's a C++ string you can call the clear method and that truncates the string to be "". [code=cplusplus] name.clear(); [/code] | |
Re: In [INLINECODE]setiosflags(ios:fixed)[/INLINECODE] you only used one : instead of two for name resolution. It should be [INLINECODE]setiosflags(ios::fixed)[/INLINECODE]. | |
I wrote a windows service in .NET 2.0, but when I try to uninstall it, I get an exception. The full text for the message from my event viewer is this. [quote] The description for Event ID ( 11001 ) in Source ( MsiInstaller ) cannot be found. The local … | |
Re: You don't need to surround the database path in quotes inside a connection string. The key/value pairs are all delimited. It should look like this instead. [code] con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Documents and Settings\shassanzadeh\Desktop\Sara\extra\AddressBook.mdp" [/code] | |
Re: Try using the number of values in the sequence to drive the loop. Say you want the first 10 fibonacci numbers. [code=cplusplus] unsigned long a = <a's initial value>; unsigned long b = <b's initial value>; for ( int i = 0; i < 10; ++i ) { cout<< NextInSequence( … | |
Re: [QUOTE]It's pretty obvious.[/QUOTE] Just because it's obvious to you doesn't make it obvious to everyone. ;) | |
Re: I don't understand the prompts. Can you give a couple of examples for each one, please? | |
Re: Both? It's predefined in that you have to define it the way that C++ expects, but it's user defined in that you still have to define it. Does that make sense? | |
Re: I can answer that one. :) I was just looking at [url=http://www.cppreference.com/cppstring/find.html]this[/url] not too long ago. It's a good reference. | |
Re: What is setpos supposed to do? | |
Re: How about both? :) On the one hand you have free will where we make our own decisions and direct the flow of our lives. But on the other hand you have fate where everyone else's free will and the world around us affects our decisions and the way our … | |
Re: I guess you're using visual studio, right? With the express editions, setup and deployment projects aren't supported, but you can publish with ClickOnce or make your own custom installer and uninstaller. I haven't tried that yet so I can't tell you how to do it. :( If you use one … | |
![]() | Re: Are you writing a VB.NET application to do it? Is the database configured for remote access? What problems are you having right now? I need more info before I can help you. :( |
Re: This is a really easy program. Have you tried doing it on your own? If so, post what you have and we can work from there. :) | |
Re: Add a [url=http://www.codeproject.com/csharp/trayiconmenu01.asp]NotifyIcon[/url] to your project that's only visible when the main form's window state is minimized. | |
Re: You can set the FormBorderStyle to None and that removes the border and toolbar completely. Is that what you wanted? | |
Re: Is the spacing consistent in the file? Like do each of the values always start at the same column? [code] abc d efd de xxx 25.80 12.10 180000.0 11111 yyyyyyyy 709. .03 zz 1426. [/code] If yes, you can use the starting column index for each item to extract the … |
The End.