179 Posted Topics

Member Avatar for mustoora

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 …

Member Avatar for preetham.saroja
0
170
Member Avatar for eranga262154

[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 …

Member Avatar for eranga262154
0
324
Member Avatar for Duki

[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[] , …

Member Avatar for Dave Sinkula
0
307
Member Avatar for Dave Sinkula
Member Avatar for hassan_kh

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.

Member Avatar for mark busenitz
0
557
Member Avatar for hassan_kh

[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? :(

Member Avatar for Hamrick
0
191
Member Avatar for iamthwee

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.

Member Avatar for Hamrick
0
383
Member Avatar for ndeniche

[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 …

Member Avatar for Hamrick
0
72
Member Avatar for m_meena

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].

Member Avatar for Hamrick
0
154
Member Avatar for gaurav252

[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 ) { …

Member Avatar for Ancient Dragon
0
107
Member Avatar for hapiscrap

[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 …

Member Avatar for vijayan121
0
148
Member Avatar for ptaylor965

[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 …

Member Avatar for ptaylor965
0
138
Member Avatar for goldfish999

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 …

Member Avatar for Hamrick
0
95
Member Avatar for Sebouh

[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, …

Member Avatar for Hamrick
0
195
Member Avatar for TkTkorrovi

[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 …

Member Avatar for TkTkorrovi
0
3K
Member Avatar for apchidara

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.

Member Avatar for binoj_daniel
0
109
Member Avatar for asilter

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 ); …

Member Avatar for Salem
0
129
Member Avatar for ehsen

[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 …

Member Avatar for sd.lamba
0
114
Member Avatar for vijayan121

That's a little much for me, thanks. ;) Template metaprogramming looks cool, but is it really practical?

Member Avatar for Bench
1
453
Member Avatar for hungdt

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 …

Member Avatar for hungdt
0
92
Member Avatar for mahvish

Yeah, you can connect to SQL server 2000 with .net 2.0. What errors are you getting when you try?

Member Avatar for Hamrick
0
72
Member Avatar for VIDHYAPREM

[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

Member Avatar for ritika_khanna
0
104
Member Avatar for asilter

[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.

Member Avatar for asilter
0
164
Member Avatar for Ashu@sym

A handle is an [url=http://en.wikipedia.org/wiki/Opaque_pointer]opaque pointer[/url].

Member Avatar for SpS
0
262
Member Avatar for apchidara

[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 …

Member Avatar for Hamrick
0
948
Member Avatar for asilter

[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]

Member Avatar for Hamrick
0
86
Member Avatar for MidiMagic

[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, …

Member Avatar for Dave Sinkula
0
179
Member Avatar for bcm

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...

Member Avatar for bcm
0
120
Member Avatar for Tight_Coder_Ex

[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. ;)

Member Avatar for WaltP
0
143
Member Avatar for Lost in Code...

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.

Member Avatar for WaltP
0
197
Member Avatar for Duki

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

Member Avatar for Duki
0
225
Member Avatar for Ken JS

[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 …

Member Avatar for Ken JS
0
135
Member Avatar for joydsouza90

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]

Member Avatar for WaltP
0
9K
Member Avatar for icetux

In [INLINECODE]setiosflags(ios:fixed)[/INLINECODE] you only used one : instead of two for name resolution. It should be [INLINECODE]setiosflags(ios::fixed)[/INLINECODE].

Member Avatar for icetux
0
128
Member Avatar for Hamrick

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 …

Member Avatar for nakul.bhagat
0
461
Member Avatar for nayr055
Member Avatar for apchidara

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]

Member Avatar for apchidara
0
246
Member Avatar for shannonpaul

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( …

Member Avatar for ndeniche
0
128
Member Avatar for NycNessyness

[QUOTE]It's pretty obvious.[/QUOTE] Just because it's obvious to you doesn't make it obvious to everyone. ;)

Member Avatar for Bench
0
125
Member Avatar for patrick210

I don't understand the prompts. Can you give a couple of examples for each one, please?

Member Avatar for Bench
0
135
Member Avatar for aruna

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?

Member Avatar for vijayan121
0
86
Member Avatar for kazek

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.

Member Avatar for kazek
0
2K
Member Avatar for Darnie
Member Avatar for The Dude

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 …

Member Avatar for hbk619
1
125
Member Avatar for Kshiteesh

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 …

Member Avatar for Kshiteesh
0
130
Member Avatar for iamthwee

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. :(

Member Avatar for Hamrick
0
292
Member Avatar for qaiser
Re: c

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. :)

Member Avatar for TkTkorrovi
0
110
Member Avatar for scrypt3r

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.

Member Avatar for scrypt3r
0
376
Member Avatar for scrypt3r

You can set the FormBorderStyle to None and that removes the border and toolbar completely. Is that what you wanted?

Member Avatar for scrypt3r
0
77
Member Avatar for dineshsachdeva

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 …

Member Avatar for Hamrick
0
169

The End.