15,300 Posted Topics

Member Avatar for Ancient Dragon

Anyone familiar with this programming language? If so, anyone use it on the job? I just started reading [this turorial](http://www.developerfusion.com/article/122079/intro-to-f/) and find it to be interesting.

Member Avatar for sepp2k
0
120
Member Avatar for prakhs

Have you used a debugge on that so that you can see the value of the variables on each loop iteration? My guess that behavior is happening is because k/2 is beyond the bounds of the array which causes array overflow and unpredictable results.

Member Avatar for iamthwee
0
248
Member Avatar for nitin1

I saw this one coming as soon as Dani gave members the ability to delete their account.

Member Avatar for happygeek
0
791
Member Avatar for jacksonbird03

you can also install operating systems on virtual machines (VMs) AFAIK there is no limit to the number of os you can install that way, but I don't claim to be an expert on that subject.

Member Avatar for garyson02
0
168
Member Avatar for Affable zaki

I love [this tutorial](http://books.google.com/books?id=OxLlA7LQwMcC&printsec=frontcover#v=onepage&q&f=false), shows you lots of things about vb.net, including the solution to this thread. I wound up buying the ebook because it contains a couple more chapters that are not in the free online tutorial.

Member Avatar for M.Waqas Aslam
0
389
Member Avatar for Clanstrom

You can read the file either the entire line at one time then step through the string and convert each character to hex, or you can read the file one character at a time in a loop, convert it to hex then write it back to the console screen. For …

Member Avatar for Ancient Dragon
0
246
Member Avatar for huniebabe

Movie collection system. Read barcodes from movie dvd, look up the information (actors, description, etc) on the internet, and create a local SQL server (e.g. free MySQL) database of that information. You could do lots of stuff with this such as search for specific movie, produce a list of all …

Member Avatar for diafol
-1
268
Member Avatar for CodyOebel

You need to add a message pump (see code below) within that loop so that the program can process messages. Same thing as lines 98-103 of the code you just posted. Another way to do it is to run that loop in anothe thread so that your main program is …

Member Avatar for Ancient Dragon
0
318
Member Avatar for alaya
Member Avatar for ogsirus

call Directory.GetFiles() as shown [here](http://msdn.microsoft.com/en-us/library/system.io.directory.getfiles(v=vs.71).aspx). But be warned that this will take a long time to search your entire hard drive for the files you want. It would be a lot faster to use an MS Access or other SQL database to keep the links to the files.

Member Avatar for tinstaafl
0
241
Member Avatar for Ancient Dragon

When I post a URL such as www.programmersforum.org it would be nice if DaniWeb turned it into a clickable link. I thought it used to do that at one time.

Member Avatar for Ancient Dragon
0
64
Member Avatar for lolo nice
Member Avatar for Ancient Dragon
0
162
Member Avatar for shambel
Member Avatar for rubberman
-2
96
Member Avatar for gmwass

We're not going to give you a complete solution, wouldn't want to spoil your fun by learning how to program it yourself. How much C and/or C++ do you already know? Do you know how to make the program chose a number between 1 and 100? Hint: use the mod …

Member Avatar for tinstaafl
0
150
Member Avatar for simbarashe.tandi
Re: GUI

Code::Blocks comes with several GUI toolkits. Just start a project with one of those.

Member Avatar for rubberman
0
98
Member Avatar for sanyam.mishra

Before calling getch() find out if anything is in the keyboard buffer kbhit() from conio.h will tell you that. If nothing there then you can check for mouse input.

Member Avatar for sanyam.mishra
0
688
Member Avatar for rash_13

> remove suffix from each word. Say, first on connecting, then on classes. You mean change "connecting" to "connect" and "classes" to "class"? The code you posed makes no sense, some lines are incomplete and other just unreadable. Example: line 13 is incomplete, no compiler would be able to successfully …

Member Avatar for Lucaci Andrew
0
319
Member Avatar for eos.paks

Did you read [this article](http://www.codeproject.com/Articles/19689/Working-with-Active-Directory-in-VB-NET)? It contains code to read AD database to verify login credentials.

Member Avatar for eos.paks
0
168
Member Avatar for AmrMohammed
Re: CLI

CLI is a set of .NET languages that include C++/CLI, VB.NET, C# and F#, and was originally developed by Microsoft. All those languages access the same set of .NET framework API functions and classes. For a detailed explanation you have to read the previously posted link.

Member Avatar for Ancient Dragon
0
113
Member Avatar for Stuugie

I agree -- I don't really like it either, but then it might be helpful for new members.

Member Avatar for DavidB
0
217
Member Avatar for iamthwee
Member Avatar for Ancient Dragon

Is there any way to make the size of the tab control expand in both hight and width when the entire window is resized? For example, if I initially set the top of the tab control to be about 1 inch below the top of the window and fill the …

Member Avatar for Ancient Dragon
0
754
Member Avatar for santosh.pandey.1293575

Does the grid have a column for each month so that all pay for a year is in one row of the grid? `payID | payYear | Jan | Feb | Mar | ....`

Member Avatar for santosh.pandey.1293575
0
153
Member Avatar for dirtydit27

After the loop you posed finishes you have to finish reading from the file that has not yet reached EOF and writing it's data to the output file. You need to add more code after line 65 to do that.

Member Avatar for aakash121
0
416
Member Avatar for chikaibeneneme

lines 26-28: you can't put functions that have no return value in cout statements. What do you expect cout to print? It can't print what the function doesn't return.

Member Avatar for Lucaci Andrew
0
229
Member Avatar for Smeagel13

It might depend on the compiler. What compiler and operating system are you using? On 32-bit VS 2012 it produces 12. The difference might be your definition of tick. #include <stdio.h> typedef int tick; typedef struct dataPoint { tick * tickData; struct dataPoint * previousDataPoint; struct dataPoint * nextDataPoint; } …

Member Avatar for Smeagel13
0
296
Member Avatar for nathan.pavlovsky

lines 54-56 -- class member variables can not be initialized like that -- put the initialization inside the constructor. The same with line 57 -- can't initialize non-static arrays like that either. Also: static class data objects must also be declared as if they were normal global variables, that is, …

Member Avatar for nathan.pavlovsky
0
1K
Member Avatar for eldiablo1121

Move lines 20 and 21 (beginning of the first do loop) up to just after line 6 so that all those variables are declared inside the first do loop. That way they will get reset to 0 each time the first do loop is executed.

Member Avatar for tinstaafl
0
400
Member Avatar for t2nator

where did you get those expected numbers? You don't need all three classes, just Account class would work. But if the intent is to learn polymorphism then just ignore this suggestion. #ifndef ACCOUNT_H #define ACCOUNT_H #include <iostream> #include <string> using namespace std; const int DAYS_PER_MONTH = 30; class Account { …

Member Avatar for dexblack_1
0
173
Member Avatar for taogomano.wau

You need to post the code that produces the error. But I have seen it when I tried to declare a variable within one of the case statements without usine brackets { and } switch(item) { case 1: int x; // this will produce that warning The solution is to …

Member Avatar for RonalBertogi
0
295
Member Avatar for LegateLucius
Member Avatar for xrjf
Member Avatar for Ancient Dragon

I have the code below in VS 2012. It dynamically allocates a DataGridView and an Update button, then it binds the grid to MS Access database table. That all works well. When I click the Update button btnUpdate_Click() is called, which calls the DataAdapter's Update() method. That produces the syntax …

Member Avatar for Ancient Dragon
0
952
Member Avatar for Ancient Dragon

I spent the last 8 or so hours trying to install Microsoft Office 2010 on Windows 8 Pro. Didn't happen. I called iYogi tech support who tryed to help me for the last 3 hours with no success. We finally concluded Office 2010 is not compatible with Windows 8. So, …

Member Avatar for Ancient Dragon
0
332
Member Avatar for lemongardens

here is an example #include <iostream> int main() { std::cout << "Hello World\n"; return 0; }

Member Avatar for Ancient Dragon
0
134
Member Avatar for Xantipius

My favorites are classical (especially violen and piano) and music written in 1940's to 1960's. I hate almost everything written after 1969 (such as hard/acid rock) as well as opera. I'm not fond of jaz but will listen to it occasionally.

Member Avatar for 45hot45
0
324
Member Avatar for andy2075

In fact, this is not related to partition hard drive, "partition the letter" seems to change drive letter, you directly solve this problem in disk manaement. to partition drive, there are many tools: Fdisk - dos - will loss data diskpart -command line -won't loss data, but not easy, insufficient …

Member Avatar for Grado
0
358
Member Avatar for jemartalaban_1

When you load the combo box items do you load both country and capitals? I think there is a combo box property where you can associate something with each of the items in the list. If so then in the OnItemSelect event handler get the name of the capital and …

Member Avatar for Ancient Dragon
0
105
Member Avatar for Ancient Dragon

How can you remove bad links under "Linkbacks vis member badges"? The link has not been valid for some time now.

Member Avatar for Ancient Dragon
0
77
Member Avatar for Xantipius
Member Avatar for Agilemind
-4
540
Member Avatar for sanyam.mishra
Member Avatar for sanyam.mishra
0
725
Member Avatar for harinath_2007

>Firstly , i am bored of asking this question as i dont think it is possible.. It's not possible. The best you can do is get the assembly language, which isn't very useful to you. You could always ask the original author for the source code, which may or may …

Member Avatar for deceptikon
0
140
Member Avatar for motlatsisehole

Are you asking us to do your homework for you? Or do you have a specific question about that assignment? Just posting the assignment dos not tell us what you don't understand.

Member Avatar for Ancient Dragon
0
141
Member Avatar for Ancient Dragon

I'm using VS 2012 and coding a try/catch block in an MS Access database project, but VS says OleDbException is not defined (see line 3 in the code). Anyone know why? I got some of this code from [here](http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/c822d48c-fd90-44a1-a186-a15e16966233/), and according to MSDN OleDbException is valid in vb.net Try data_adapter.Update(CType(binding_source.DataSource, …

Member Avatar for Ancient Dragon
0
240
Member Avatar for Xantipius

IMHO that's great news :) English is (or is becoming) the universal language of business, so everyone all over the world is better off if they learn at least some English.

Member Avatar for Xantipius
1
247
Member Avatar for general2012

The syntax is slightly wrong, each of the pointers will contain the same address. In C language it is not necessary to typecast the return from functions that return void\* such as malloc(). `p=q=r=n=malloc(20 * sizeof(int));`

Member Avatar for general2012
0
124
Member Avatar for nitin1

[Here](http://msdn.microsoft.com/en-us/library/windows/desktop/ms682453(v=vs.85).aspx) is how to create a thread in MS-Windows

Member Avatar for Ancient Dragon
0
146
Member Avatar for mzeewashooo

You need to use the mod % operator instead of division to find out if it's odd or even if( Value%2 == 0) { // even } else { // odd }

Member Avatar for Ancient Dragon
0
223
Member Avatar for sntoane

what does that have to do with artifical intelligence? And what about the code? you need to explain what you want a lot more than that.

Member Avatar for sanyam.mishra
0
126
Member Avatar for Xantipius

>and originated from verb "to snap"? "to snap" means to break in half, such as snap a twig (small tree limb). It could also mean to rub the thumb and middle finger together to make a noise -- snap you fingers. People who do those things are not usually called …

Member Avatar for Xantipius
0
289

The End.