15,300 Posted Topics

Member Avatar for necrovore

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")

Member Avatar for Moschops
0
198
Member Avatar for c_learner
Member Avatar for BagelAnne

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.

Member Avatar for javanoob101
0
134
Member Avatar for Fiorentino01^

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 …

Member Avatar for <M/>
0
295
Member Avatar for kenomote

Is that inserting a value into every column of the table? If it is then you don't need to specify the column names.

Member Avatar for TnTinMN
0
256
Member Avatar for Resentful

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 …

Member Avatar for Resentful
0
157
Member Avatar for erogol

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.

Member Avatar for rubberman
0
6K
Member Avatar for dendenny01

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.

Member Avatar for dendenny01
0
458
Member Avatar for Reverend Jim

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.

Member Avatar for Reverend Jim
3
283
Member Avatar for AndyPants

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 …

Member Avatar for Ancient Dragon
0
114
Member Avatar for Resentful

Don't you have to pass a user name and password (for security reasons don't post them here)?

Member Avatar for Resentful
0
260
Member Avatar for ndeniche

[URL="http://www.takingontobacco.org/qofm/0202a.html"]cigarettes are not harmful[/URL].

Member Avatar for chrishea
0
1K
Member Avatar for saurabh.mehta.33234

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.

Member Avatar for deceptikon
0
397
Member Avatar for Gado

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 …

Member Avatar for Gado
0
192
Member Avatar for A.Muqeetkhan

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

Member Avatar for Ancient Dragon
0
244
Member Avatar for Rahul47

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

Member Avatar for Reverend Jim
0
170
Member Avatar for enkitosh

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 }

Member Avatar for enkitosh
0
318
Member Avatar for napninjanx

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 …

Member Avatar for Moschops
0
2K
Member Avatar for abbashadwan

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

Member Avatar for Ancient Dragon
0
232
Member Avatar for pinkesh25gar

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 …

Member Avatar for Ancient Dragon
0
273
Member Avatar for RaoxFaello
Member Avatar for Asmaa_2

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 …

Member Avatar for MandrewP
0
500
Member Avatar for Blakeman321
Member Avatar for 2mhzbrain

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 …

Member Avatar for 2mhzbrain
0
278
Member Avatar for azareth

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.

Member Avatar for Doogledude123
0
151
Member Avatar for Suzie999

You don't need to worry about that. Just call the registry functions and they will take care of all that complexity.

Member Avatar for Ancient Dragon
0
157
Member Avatar for ndeniche

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

Member Avatar for GrimJack
0
2K
Member Avatar for JwAlstrom

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 …

Member Avatar for JorgeM
0
346
Member Avatar for brock.holman.7

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

Member Avatar for Lerner
0
113
Member Avatar for Suzie999

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.

Member Avatar for Suzie999
0
199
Member Avatar for herge

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.

Member Avatar for deceptikon
0
238
Member Avatar for Avni.Naik11

There are lots of tutorials, just google for them ([click here](http://lmgtfy.com/?q=vb.net+database+tutorials))

Member Avatar for remunance
0
49
Member Avatar for Ancient Dragon

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 …

Member Avatar for TnTinMN
0
714
Member Avatar for lewashby

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 …

Member Avatar for Ancient Dragon
0
154
Member Avatar for ehsann.sharif

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 ; };

Member Avatar for Ancient Dragon
0
228
Member Avatar for <M/>

Read the last couple pages of that sticky thread, there are posts only a couple weeks old.

Member Avatar for vijayan121
0
221
Member Avatar for jessada.dissopa

have you tried asking that question to their mailing list at help@octave.org? ([link here](http://www.gnu.org/software/octave/support.html))

Member Avatar for Ancient Dragon
0
317
Member Avatar for santo12

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

Member Avatar for tinstaafl
0
237
Member Avatar for <M/>
Member Avatar for rbcontra

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)

Member Avatar for rbcontra
0
118
Member Avatar for avidwan

your link is not valid. But [here](http://lmgtfy.com/?q=c+reverse+string) is how to do it

Member Avatar for rustysynate
0
275
Member Avatar for Lardmeister

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

Member Avatar for sneekula
2
2K
Member Avatar for <M/>

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.

Member Avatar for sneekula
0
211
Member Avatar for andika.kurniawan.121
Member Avatar for Ancient Dragon
0
356
Member Avatar for mrnutty

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.

Member Avatar for kemcar
0
190
Member Avatar for mefju

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.

Member Avatar for Ancient Dragon
0
244
Member Avatar for WDrago

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.

Member Avatar for WDrago
0
6K
Member Avatar for thanzeem7

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)`

Member Avatar for edensigauke
0
425
Member Avatar for acepeda

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.

Member Avatar for TnTinMN
0
136
Member Avatar for Raisefamous

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.

Member Avatar for tinstaafl
0
299

The End.