Posts
 
Reputation
Joined
Last Seen
Ranked #221
Strength to Increase Rep
+9
Strength to Decrease Rep
-2
94% Quality Score
Upvotes Received
26
Posts with Upvotes
22
Upvoting Members
17
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
21 Commented Posts
~147.91K People Reached
Favorite Tags

179 Posted Topics

Member Avatar for TheRoyalFalcon

You should forget about converting C++ to VB.NET and look for something originally in .NET. It's a lot easier to use the excel library or ADO.NET than to hack the file format as a binary stream. ;) There are a lot of threads on reading and writing excel on the …

Member Avatar for liangting03
0
1K
Member Avatar for mc8888

[QUOTE]i also knw..but i wan to c the full program ma...[/QUOTE] I think Ancient Dragon was trying to say that he won't do everything for you because it's your homework and not his. If you do some of it yourself then I think the guys here will be more willing …

Member Avatar for Zain_12
0
6K
Member Avatar for playagain

For a queue just think of stuff where something goes in one end and out the other in order. For a stack just think of stuff where something goes in one end and out the same end in order.

Member Avatar for priya..
-2
12K
Member Avatar for Sambot

[url]http://en.wikipedia.org/wiki/Vehicle_identification_number[/url] There are tons of links on google about how to decode the number. You can pick one of them and turn it into code. :)

Member Avatar for Beatrice_1
0
142
Member Avatar for bajanpoet
Member Avatar for shorty001

[QUOTE]I need a guide to make a real exe file.[/QUOTE] Type all of your code into the visual C++ editor and then press ctrl+shift+b. That builds your project and creates an exe file in the Debug or Release folders of the project folder. You can also do it the clicky …

Member Avatar for ps- india
-1
2K
Member Avatar for kobi

Does [url=http://msdn2.microsoft.com/en-us/library/70w4awc4.aspx]this[/url] answer your question?

Member Avatar for JirkaJirka
0
212
Member Avatar for 1qaz2wsx7

[QUOTE]3) I want that the Minimize button of the ControlBox in a form will do more things besides Minimizing the specific form, how can i change what this button does ?[/QUOTE] You can't change that behavior. You have to remove it completely by setting the FormBorderStyle to None and make …

Member Avatar for JerryShaw
0
2K
Member Avatar for blondie.simon

Did you set the version number by going to Project/Properties/Assembly Information and typing it into the dialog? That's where My.Application.Info.Version gets it from.

Member Avatar for Djoulz
0
8K
Member Avatar for SurviBee

All numbers are stored in binary. Do you mean generate a random number and then save the binary conversion as a string?

Member Avatar for samtronxindia
0
564
Member Avatar for Mr Gates

... Was that reply really so necessary that you had to post in a thread that's been inactive for almost four years? :confused:

Member Avatar for brainysmurf0316
1
678
Member Avatar for asilter

The fastest way is to shift the pointer. If your array is a pointer made by malloc it's really easy. [code=c] p += 1000; [/code] Be sure to shift it back before you free the memory though, or you'll get an exception. ;) If your array is a real array …

Member Avatar for IcantC
1
179
Member Avatar for Sukhbir

You [I]can[/I], but it might not turn out well. I don't think malloc/realloc/free are supposed to be mixed with new/delete. If you want to realloc some memory allocated with new, you should do some kind of allocate-copy-free pattern. [code=cplusplus] template <typename T> T *MyRealloc( T*& src, int oldSize, int newSize …

Member Avatar for abhityagi85
0
2K
Member Avatar for mimsc

I don't think you're in the right forum. It looks like you want [url=http://www.daniweb.com/forums/forum24.html]this one[/url]. And when you need help it's best to be specific about what problem you're having. Just asking for suggestions and pasting reams of code won't get you much. I'd probably be able to help you, …

Member Avatar for masijade
0
2K
Member Avatar for JaksLax

C++ is case sensitive. Change it to list instead of List and if you don't do [INLINECODE]using namespace std;[/INLINECODE] you have to prefix the name with std. [code=cplusplus] #include<list> class MergeSort{ public: MergeSort(); bool sortedIsEmpty(); int sortedGetLenght(); bool sortedInsert(int); bool sortedRemove(int); int sortedRetrieve(int); int locatePosition(bool); private: std::list<int> intergerList1; }; [/code]

Member Avatar for nikash
0
3K
Member Avatar for n.aggel

What do you mean by making the data structure heavier? You have to free the memory and to free the memory you have to visit every node. The only heavy thing about the clean function is that it uses recursion. That's a pre-order tree walk so you can make it …

Member Avatar for ani malviya
0
221
Member Avatar for emran834

I have a few questions? [LIST=1] [*]What version of Access? [*]Are you using OLEDB or ODBC? [*]Can you post your connection string? [/LIST] The connection string should look like this for Access 2007 with a password. [code] Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\mydb.accdb;Jet OLEDB:Database Password=password; [/code] Standard security with ODBC should look like this …

Member Avatar for propatrio
0
2K
Member Avatar for Shannanigin

Send the text of those two text boxes as arguments to a stored procedure. The stored procedure should check if the username exists and the password matches. Something like this I guess. [code] create procedure ValidateUserLogin @UserName varchar(30) , @Password varchar(30) as begin if exists (select * from UsersTable as …

Member Avatar for khusiaaaan
0
775
Member Avatar for BalagurunathanS

A typed dataset is a custom class generated for your project by Visual Studio that makes common jobs easier. It adds things like named properties that match column and row data in the tables. It's generated code and not a part of .NET, so you can't use typed datasets without …

Member Avatar for vinod991
0
168
Member Avatar for sgriffiths

Go over the string and count spaces. The number of words is one more than the number of spaces in the string if the string isn't empty. [code=cplusplus] #include <stdio.h> #include <ctype.h> int main( void ) { char string[100]; int i; int count = 0; printf( "Enter a sentence> " …

Member Avatar for jephthah
0
270
Member Avatar for 1qaz2wsx7

If by mail box you mean an email application like outlook, you can use the Process class from System.Diagnostics. [code=C#] System.Diagnostics.Process.Start( "outlook.exe" ); [/code]

Member Avatar for Seema
0
2K
Member Avatar for radskate360

You don't even need to read lines. Just read characters and test them because all you're doing is dropping letters into categories. [code=cplusplus] #include <cctype> #include <fstream> #include <iostream> #include <map> #include <string> using namespace std; enum {CONSONANT, VOWEL}; bool isvowel( char ch ) { static string vowels( "aeiou" ); …

Member Avatar for phanirampally
0
164
Member Avatar for Hamrick

A simple solution that prints the first n values in the fibonacci series up to the limit of an unsigned long. The program takes either command line arguments or interactive input for n and has code in place to make the program more flexible, like printing to a file.

0
157
Member Avatar for DeathEvil

Try dividing by 10 until the number as an int equals 0. [code=c] float temp = net_pay[i]; while ( (int)temp > 0 ) { temp /= 10; } printf( "Before the radix -- %f\n", (float)(int)net_pay[i] ); printf( "After the radix -- %f\n", temp ); [/code]

Member Avatar for 42Wired
0
189
Member Avatar for zmariow

I don't think you can get templates like that. You'd still have to know how they work to make the controls function, and that's the biggest part of writing an UI. But tools like visual studio make designing the UI really easy...

Member Avatar for sknake
0
680
Member Avatar for Dave Sinkula

[QUOTE]Do you ever hear about people dying due to overexposure of campfire smoke?[/QUOTE] I don't think people camp enough to die of campfire smoke like they do of cigarette smoke. ;)

Member Avatar for jbennet
0
4K
Member Avatar for asilter

You need to include stdlib.h. The error cryptically tells you that malloc wasn't declared and the compiler just assumes it's a function that returns int and casting from int to char* isn't friendly.

Member Avatar for SphinCorp
0
301
Member Avatar for apchidara

Here's a function for loading an excel spreadsheet using ADO.NET. It's in C#, but you should know how to convert between the two languages. :) [code=csharp] using System; using System.Data; using System.Diagnostics; using System.ComponentModel; using System.Collections.Generic; using System.Data.OleDb; public class ExcelSpreadsheet { private List<string> _worksheets = new List<string>(); [Description( "Gets …

Member Avatar for rmjagnaan
0
940
Member Avatar for bkastel1

I think I'd make a custom control that copies a listview except instead of text items it contains user controls with all of the stuff you want in them. You probably want more than just a progress bar and doing it with user controls means you can do more and …

Member Avatar for CraigSchaefer
0
2K
Member Avatar for piote

1) Yeah, you can tell the BinaryReader what encoding to use with the System.Text.Encoding class. [code=csharp] BinaryReader reader = new BinaryReader( stream, Encoding.BigEndianUnicode ); [/code] 2) No, but you can use the System.BitConverter class to turn an array of bytes into whatever type it supports. And it supports both single …

Member Avatar for sidharthrshah
0
179
Member Avatar for Mahen
Member Avatar for Mahen
0
430
Member Avatar for Dave Sinkula

I use it to see who's posting to threads I started or posted to or who's making new threads.

Member Avatar for Dave Sinkula
0
283
Member Avatar for radskate360

An array of structs is just like an array of other stuff. Once you index the array you have a single struct and can use it just like normal. [code=cplusplus] #include <fstream> #include <iostream> #include <string> using namespace std; struct Location { string name; double latitude; double longitude; }; int …

Member Avatar for jmvr_danga_14
0
167
Member Avatar for 1qaz2wsx7

This is a DataGrid and not a DataGridView, right? DataGrids are weird in that you have to make a table style to the grid and add columns to the table style to get what you want. DataGrids aren't a storage medium, they're a presentation tool so you can't store rows …

Member Avatar for o_shawky
0
188
Member Avatar for tomekk001
Member Avatar for davemaster
0
2K
Member Avatar for prahalad
Re: C#

I'd ask just enough to see if the person really knows C# and move on to more important questions. Start with simple stuff like what the main method looks like, what data types are available, and basic class functionality. :)

Member Avatar for msenthilrajan
0
167
Member Avatar for sk8ndestroy14
Member Avatar for virus220

[url=http://www.codeproject.com/dotnet/SimpleEncryption.asp]This[/url] is a good article on .net encryption.

Member Avatar for shomic.goyal
0
140
Member Avatar for shizu

I think you'd be better off trying to separate the common stuff that both apps use into a dll and then having both apps reference the dll. What exactly do you need to do this for anyway?

Member Avatar for shizu
0
165
Member Avatar for upstream

I've heard that it's better to learn how to use the compiler from the command prompt first, then use an IDE to be more productive. I say do whatever makes you more comfortable. :)

Member Avatar for jasimp
0
255
Member Avatar for lasher511

[QUOTE]when there are lots of music players with higher quality sound and more features[/QUOTE] Can you post some links to those lots of music players that are so much better? :) [QUOTE]So the new ipods are here which one if any do you want.[/QUOTE] I want the ipod touch, but …

Member Avatar for jbennet
0
279
Member Avatar for apchidara

Before vb.net there was vb4, vb5, and vb6 for 32 bit windows programming. vb6 is going to stop being supported by microsoft early next year, and vb.net is the successor to vb6, so you should be using vb.net unless you have a good reason to use vb6. vb.net has 3 …

Member Avatar for bka_k@Yahoo.com
0
165
Member Avatar for tonyaim83

I think this might work. [code=cplusplus] #include <iostream> using namespace std; class Class1 { }; class Class2 { }; // Specialize two type traits for picking class 1 and class 2. template <bool> class ClassType { }; template <> class ClassType<false> { }; // Overload createandmanipulate to use the type …

Member Avatar for vijayan121
0
173
Member Avatar for fishsqzr

Use either Environment.NewLine or "\r\n". Environment.NewLine is more portable, but that's not a big problem with .net programs. ;)

Member Avatar for Ramy Mahrous
0
105
Member Avatar for theraven1982

You can only access an object if it was declared in the same scope or an enclosing scope. That's the techno babble explanation. :) What it means is that if you declare something inside a loop, you can't use it outside the loop because the body of a loop counts …

Member Avatar for theraven1982
1
14K
Member Avatar for Granprix

[QUOTE]Does there have to be a default constructor?[/QUOTE] Only if you use the default constructor when making objects. If you do [INLINECODE]Object obj;[/INLINECODE] then Object has to have a default constructor, but if you do [INLINECODE]Object obj( arg );[/INLINECODE] then Object only has to have a constructor that takes a …

Member Avatar for Hamrick
0
142
Member Avatar for ithilgore
Member Avatar for JaedenRuiner

[QUOTE]Is KeyPreview = True a Lie, because it sure seems that way on my end.[/QUOTE] It's not a lie, but you might be confused about when and how a control captures key strokes. I think you want a [url=http://www.codeproject.com/useritems/WindowsHookLib.asp]global winndows hook[/url]. [url=http://www.developer.com/net/vb/article.php/2193301]Here's[/url] another link.

Member Avatar for Hamrick
0
246
Member Avatar for jsap

I think you have to do something like this because int** isn't a compatible type with void**. [code=cplusplus] int i = 123; int *p = &i; void pop( void **data ) { *data = p; } int main() { int *q; void *pv; pop( &pv ); q = static_cast<int*>( pv …

Member Avatar for jsap
0
143
Member Avatar for SkyRender

I don't think a PhD makes you look any better than an MS to employers. It takes longer to get too. Starting salaries look for minimum requirements like a BS and x number of years for experience. In my area the starting salary is around 40k per year.

Member Avatar for realnapster
0
143

The End.