15,300 Posted Topics
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. | |
Re: 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. ![]() | |
Re: I saw this one coming as soon as Dani gave members the ability to delete their account. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … ![]() | |
Re: 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 … | |
Re: 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. | |
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. | |
Re: What do you want to know about those questions? We are not mind readers. | |
Re: __inline int foo() { cout << "Hello World\n"; return 0; } | |
Re: 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 … | |
Re: Code::Blocks comes with several GUI toolkits. Just start a project with one of those. | |
Re: 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. | |
Re: > 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 … | |
Re: 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. | |
Re: 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. | |
Re: I agree -- I don't really like it either, but then it might be helpful for new members. | |
![]() | |
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 … | |
Re: 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 | ....` | |
Re: 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. | |
Re: 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. | |
Re: 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; } … | |
Re: 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, … | |
Re: 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. | |
Re: 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 { … | |
Re: 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 … | |
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 … | |
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, … | |
Re: here is an example #include <iostream> int main() { std::cout << "Hello World\n"; return 0; } | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
How can you remove bad links under "Linkbacks vis member badges"? The link has not been valid for some time now. | |
Re: >Researchers interviewed 115 lung cancer patients This whole story is nothing more than bullshit. | |
Re: post the assembly code that's in your program, e.g. asm { mov ax,1 mov bx,ax } | |
Re: >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 … | |
Re: 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. | |
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, … | |
Re: 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. | |
Re: 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));` | |
Re: [Here](http://msdn.microsoft.com/en-us/library/windows/desktop/ms682453(v=vs.85).aspx) is how to create a thread in MS-Windows | |
Re: 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 } | |
Re: 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. | |
Re: >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 … |
The End.