15,300 Posted Topics
Re: Another hint: mkdir() only works on one directory at a time. You have to call mkdir() for each new directory in the directory hierarcy. If you want to create a directory "c:\one\two\three" then call mkdir("c:\one"), mkdir("c:\one\two") and finally mkdir("c:\one\two\three") | |
Re: <deleted, wrong info> | |
Re: Microsoft does not support XP any more, so you probably can't get the service packs for it. Your hardware is too old to support Windows 7 or 8, so I'd suggest you toss out that computer and get a new one that will last a few years. | |
Re: Sounds like you are not logged in. Look in the purple ribbon at the top of the page, It should say "Logged in as Fiorentino01^" If it doesn't say that then you need to hit the login button. The recommended way to thank someone is to hit the Up Arrow … | |
Re: Is that inserting a value into every column of the table? If it is then you don't need to specify the column names. | |
Re: Do the sinclock before anything else in that function. Move line 4 up to between lines 1 and 2 and move line 6 down to line 11. If you don't want to lock the entire thread then you might consider something like this: (I'm not VB.NET expert, but I think … | |
Re: why not just copy the libs anywhere you want on the file system then use the -L<directory> to tell gcc where the library is located. | |
Re: line 12: Do not declare variables in switch statements like that, but declare FILE\* at the top of main() so that it is global to the entire function. | |
Re: Dani has said several times before in this forum that there is nothing wrong with resurrecting old threads as long as the new posts are relevant to the topic. [Here](http://www.daniweb.com/community-center/daniweb-community-feedback/threads/175236/responding-to-old-threads) is one of the threads. I seem to recall others. | |
Re: You can install both if you want to as long as your computer has sufficient free disk space. If I were you I'd get Visual Studio 2012 Express and use VC++ 2008 only if you need to. Microsoft put all their compuiler into a single package, you can't just get … | |
Re: Don't you have to pass a user name and password (for security reasons don't post them here)? | |
Re: [URL="http://www.takingontobacco.org/qofm/0202a.html"]cigarettes are not harmful[/URL]. | |
Re: foo() on line 4 of that code is a pointer, not a function. All pointers regardless of type are the same size, and in 32-bit compilers they are 4 bytes. szieof() does not work on functions as it treats function names as pointers to a function. | |
Re: what is point3d? line 31 doesn't work because there is no memory allocated for the pointers. We hve no clue what point3d and edge are so we can't really help you very much, except to say they are pointers which need to be allocated before attempting to read the data … | |
Re: [Here](http://www.vbmysql.com/articles/vbnet-mysql-tutorials/the-vbnet-mysql-tutorial-part-1) is a good tutorial, it's written in vb.net but its almost identical to C# because they both use .NET framework classes and namespaces. | |
![]() | Re: @Rahul47: G_Waddell already provided some info about two commonly used databases, you just appeared to have ignored that advise. In addition to VB.NET you will have to learn how to communicate with the databases, the language is SQL (Structured Query Language). There are a number of [online tutorials](http://www.google.com/webhp?source=search_app#hl=en&sugexp=les%3B&gs_rn=1&gs_ri=hp&cp=5&gs_id=i&xhr=t&q=sql+tutorial&es_nrs=true&pf=p&tbo=d&output=search&sclient=psy-ab&oq=sql+t&gs_l=&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&bvm=bv.41524429,d.eWU&fp=c4a6a840dc754efa&biw=1430&bih=701) to help … |
Re: You could do that, but there is a much easier way if you use the macros in ctype.h if( isdigit(i) ) { // blabla } else if( isalpha(i) ) { // blabla } | |
![]() | Re: Most programmers do NOT use Notepad or any other plain text editor, they use what's called an IDE (Integrated Development Environment). It includes a text editor, project editor, and the compiler (or ability to set up for some other compiler). For MS-Windows and \*nix I'd suggest Code::Blocks, you can download … |
Re: >The header #include <conio.h> dates back to MS-DOS and is also deprecated. Not many up-to-date compilers still provide that header, and I think that only older versions of Windows can still run it. It was never part of the C or C++ standards, so it can't be deprecated. There are … | |
Re: You can use [qsort(](http://www.cplusplus.com/reference/cstdlib/qsort/)) in C programs. You can make an array resize itself by calling realloc() to change its size. The array has to be initially declared as a pointer, something like this: `int* array = NULL;` You also need to have two more integers, one integer to keep … | |
Re: Use substr() method e.g. `if textBox1.Text.Substring(0,1) = '"' then` | |
Re: The most portable way to do it is to use the macro toupper() and tolower(). Your program only works if the language is English and uses standard ascii character set. See [this page](http://www.cplusplus.com/reference/cctype/isupper/) #include <ctype.h> int main() { char c = 'A'; if( isupper(c) ) c = tolower(c); else c … | |
Re: Sounds like you need to format it. | |
Re: Your compiled program does not contain all the code that it uses. Most of the windows code is contained in DLLs and ocx files. When you deploy your program you might also have to deploy some (or all) the DLLs and ocs files. Before doing anything, download a copy of … | |
Re: As long as it's neat and uncluttered any form size will do. Put too many controls on the form and many people will just get confused. Let the form be resizeable so that users can make it any size they wish. | |
Re: You don't need to worry about that. Just call the registry functions and they will take care of all that complexity. | |
Re: >>when i was talking about hating everything gay, i wasn't talking about what they've invented, because the fact that they're gay doesn't mean they're intelligent... Ok, then what did you mean? >>is a decision from a human being about going the wrong way... many people do not believe gayness is … | |
Re: You can not easily upgrade from 32-bit to 64-bit [Link here](http://windows.microsoft.com/en-US/windows7/32-bit-and-64-bit-Windows-frequently-asked-questions) > Q: Can I upgrade from a 32-bit version of Windows to a 64-bit version of Windows 7 or from a 64-bit version of Windows 7 to a 32-bit version of Windows? A: You can use the Upgrade option … | |
Re: line 4: the array should have 10 values, not 11. line 14: array indix values are 0 based, meaning 0, 1, 2, ... 9. There is no 10th. Count them on your fingers if you have to so that you verify to yourself that 0 to 9 is 10 values. … | |
Re: That can easily be done with .NET languages such as C# and VB.NET ([see this link](http://msdn.microsoft.com/en-us/library/system.windows.forms.linklabel.linkclicked.aspx)), but I might be terribly complicated to accomplish the same thing with win32 api functions. | |
Re: Another way to disable warnings just for specific \*.c or \*.cpp files is to use pragma `#pragma warning(disable: 4996)` But I like deceptikon's suggestion better. | |
Re: There are lots of tutorials, just google for them ([click here](http://lmgtfy.com/?q=vb.net+database+tutorials)) | |
Q1: I'm trying to convert a working c++ program to VB.NET 2012 just to see how networkstream works. First send a stream to web address then get response. Send seems to work ok but read() blocks (line 34 of the code). Sometimes it doesn't block but doesn't return any data … | |
Re: Below is a very very brief explanation. More in-depth explanation is found in [this article](http://www.ualberta.ca/CNS/RESEARCH/LinuxClusters/mem.html) All programs are divided into several segments 1. code segment: This is where the program instructions are stored. When you compile your program all the instructions are stored in an area of memory called the … | |
Re: The problem is the structure, there is no memory allocated for name, that is just a pointer. scanf() does not allocate the memory. struct data { char name[40] ; int grade ; }; | |
Re: Read the last couple pages of that sticky thread, there are posts only a couple weeks old. | |
Re: have you tried asking that question to their mailing list at help@octave.org? ([link here](http://www.gnu.org/software/octave/support.html)) | |
Re: look in the Release or Debug folder (whichever one you are compiling) and you will find the \*.exe program. All you need to distribute is that file | |
Re: Antidisestablishmentarianism | |
Re: it's only available on Windows 8 and vb.net 2012. You can download examples from [here](http://code.msdn.microsoft.com/windowsapps/Windows-8-Modern-Style-App-Samples) | |
Re: your link is not valid. But [here](http://lmgtfy.com/?q=c+reverse+string) is how to do it | |
Re: [QUOTE=jbennet;450702]In 2038 or 2106 (depending on signing) most UNIX/Linux and modern Windows NT based systems will fail due to a date bug. This could very well signal the end of the world, or just anothe fun time for y2k paranoids[/QUOTE] Not true any more with modern compilers because that problem … | |
Re: Preferred editor should depend on your preferred coding environment. On MS-Windows I prefer Visual Studio for C, C++, C# amd VB.NET. For others like HTML I just use Notepad. In \*nix I use Code::Blocks or vi. | |
Re: That zip file does not contain the source code. Just the \*.exe and some html doc files. | |
Re: My advice is to take a vacation from programming for a little while. you sound burned out and that could be disasterous for your job if you do programming there. All work and no play makes a very boring person. | |
Re: I don't know the answer to the problem off the top of my head, but I do know that it needs to [uninstall the hook](http://msdn.microsoft.com/en-us/library/windows/desktop/ms644993(v=vs.85).aspx) before program exit to avoid system-wide crash. | |
Re: According to [this article](http://www.dotnetperls.com/lock) lockThis needs to be a static object. ` static readonly System.Object lockThis = new System.Object();` The above change made your program work for me. | |
Re: did you try just passing the string as a second parameter as shown in the exmaple [here](http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlparametercollection.addwithvalue.aspx) `query.Parameters.AddWithValue("@EMP_ID",TXTEMPID.Text)` | |
Re: Check the permissions on the folder and files to see if you only have readonly permissions. I don't know how that could have been changed, but worth a try. | |
Re: get Visual Studio 2012. I have not had any problems with intellisense. IMO you shouldn't learn to probram with an IDE that has intellisense anyway, you learn a lot better and fasteer if you have to completely type everything yourself. Nothing like good repetition to pound things into your brain. |
The End.