15,300 Posted Topics

Member Avatar for XMasterrrr

>>compile the main file using this libraries(header file) and you'll see some thing strange really strange!!! Ok, I give up. What is so strange?? and please be specific.

Member Avatar for XMasterrrr
0
250
Member Avatar for noshdb

Like all Microsoft's certs, college degree is not mandatory. Some people have passed the cert tests without ever reading a book, which is one reason IMO they are almost next to useless. But Narue could respond to that better than I can.

Member Avatar for Ancient Dragon
0
52
Member Avatar for dgreene1210

For starters, line 16 and 18 are incorrect. To call a function you need ( and ), such as [icode]getInput();[/icode] You also have to add all the necessary parameters, such as those that calculate() require.

Member Avatar for dare599z
0
1K
Member Avatar for iret

You would be right if there were enough demand for such an operating system. But there isn't, and hasn't been for many years now. If you want a 32-bit DOS then just use *nix. MS-DOS is dead, so leave is dead and buried.

Member Avatar for iret
0
231
Member Avatar for Ancient Dragon

I have several computers all on a home network running Windows 7 OS, all connected to a router. What do I need to do to convert them to IPV6 protocol? Just buy new network cards?

Member Avatar for maninaction
0
69
Member Avatar for Evenbit

Your first link said I do not have IPV6 but I should not have any problems either.

Member Avatar for skilly
1
228
Member Avatar for VernonDozier
Member Avatar for VernonDozier
0
332
Member Avatar for TomaCukor

1. No. 2. That does not add members to the structure, it declared 15 objects of the structure. A better way to do that is by using an array of structs e.g. [icode] jatekos array[15]; // declare 15 objects of type jatekos [/icode] 3. Ok the code you posted here …

Member Avatar for Schol-R-LEA
0
137
Member Avatar for anjoz

>>int length = fread(buf, 1, sizeof(buf), inputFile); That is not how you get the length of a file. First you have to call fseek() to move the file pointer to end-of-file, then call ftell() to get the file position.

Member Avatar for Narue
-1
551
Member Avatar for xpartmgr

There are lots of ways to create GUI ms-windows applications. One of them is by using CLR/C++ Windows Forms, another using wxWindows c++ classes, or pure win32 api functions [URL="http://www.google.com/#sclient=psy&hl=en&source=hp&q=windows+forms+tutorial+c%2B%2B&aq=1&aqi=g5&aql=&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=9589d0f2bb20ed2d&biw=1111&bih=549"]Here[/URL] are a few tutorials for you to consider

Member Avatar for xpartmgr
0
87
Member Avatar for nnaaddrr

No one will write your program for you. Just don't get overwhelmed with all the requirements. Do it a little bit at a time and you will be able to write it yourself. For example, start out by creating a program that does nothing more than display the menu. When …

Member Avatar for Narue
-2
120
Member Avatar for Ancient Dragon

This has been an annoyance for some time now. Hover the mouse of any of the links on the purple ribbon at the bottom of the screen and something or someone is displaying the URL for that link, which hides half the purple ribbon. The same thing happens with IE8, …

Member Avatar for pseudorandom21
0
128
Member Avatar for megha10

how was the file opened? The file needs to be opened for either reading only or both reading and writing, such as in the example [URL="http://www.cplusplus.com/reference/clibrary/cstdio/rewind/"]here[/URL]

Member Avatar for abhimanipal
0
88
Member Avatar for anjoz

line 12: you don't need double star on FILE since the function is not attempting to change the caller's pointer. Just pass FILE pointer by value -- with only one star then on line 66 remove the & operator. line 61: you are assuming that fgets() read in exactly sizeof(buf) …

Member Avatar for abhimanipal
-1
1K
Member Avatar for illuminatus89

You are more than likely corrupting the stack with that huge array. Move the array into global, outside any function, such as move line 8 just after line 4.

Member Avatar for Narue
0
110
Member Avatar for pril

It's not possible to determine if the array is empty or not without knowing the array size. Even then the only way to tell if the array is empty is if the array size is 0.

Member Avatar for pseudorandom21
0
115
Member Avatar for epdmcoatings

You're never too old to watch cartoons :) Sometimes I like to watch Scooby-Do and Bugs Bunny. And [URL="http://disney.go.com/disneyvideos/animatedfilms/ratatouille/"]Ratatoulille[/URL] was hiralious

Member Avatar for sneekula
3
334
Member Avatar for illuminatus89

t.c is nothing more than a pointer that has no memory allocated to it. scanf() does NOT allocate the memory for you, you have to do that yourself. Change the structure to something like this and it will work. [code] struct a { char c[255]; int b; }; [/code]

Member Avatar for illuminatus89
0
137
Member Avatar for vgd

Since the function does not have a loop variable p can be removed and line 15 deleted. Line 15 is wrong anyway because it used = assignment operator instead of == boolean operator. Also, without a loop line 15 does nothing even then the == operator is corrected. >> what's …

Member Avatar for Ancient Dragon
0
120
Member Avatar for DaMoose75

Have you read [URL="http://winprog.org/tutorial/simple_window.html"]this tutorial[/URL]?

Member Avatar for DaMoose75
0
3K
Member Avatar for vTr

You need to add year, month and day to the clockType class because you can not compare times if you don't know what days they are on. Suppose you have two times that have the same numeric numbers for hour, minute and second. Are they the same, or are they …

Member Avatar for mrnutty
0
624
Member Avatar for Dante2002
Member Avatar for WolfShield

[QUOTE=katmai539] i can almost call myself C++ and VB.NET engineer now :)[/QUOTE] Just because you can write code doesn't make you a "software engineer". See[URL="http://en.wikipedia.org/wiki/Software_engineering"] this link[/URL] to see the definition of a software engineer. In order to claim to be a software engineer you have to be certified by …

Member Avatar for thing789
0
315
Member Avatar for pseudorandom21

Yes of course you can -- that's the whole purpose of doing that. After calling LoadLibrary() to load the DLL into memory you need to call[URL="http://msdn.microsoft.com/en-us/library/ms683212(v=vs.85).aspx"] GetProcAddress[/URL]() to get the address of the function you want to call. If you want to inject YOUR DLL into another process, then [URL="http://www.codeproject.com/KB/threads/winspy.aspx"]here …

Member Avatar for pseudorandom21
0
188
Member Avatar for chunalt787

Some years ago we controlled external devices by sending a signal out the serial port to a [URL="http://www.google.com/#sclient=psy&hl=en&source=hp&q=plc+programming&aq=4&aqi=g5&aql=&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=6782d3fc39a1f682&biw=1111&bih=549"]PLC[/URL] which, in turn, turned on/off switches to the device.

Member Avatar for Ancient Dragon
0
1K
Member Avatar for dilequeno

If the blocks are in sequential order with no unused numbers then just store then in a vector or array and use the index value as the block number.

Member Avatar for Ancient Dragon
1
321
Member Avatar for kutuup

MSVCR90D.dll is a debug DLL (which is what the D at the end means). Sounds like you are trying to mix files compiled for debug with others compiled for release mode. Calling DLLs compiled for debug may also produce that error. [URL="http://stackoverflow.com/questions/218747/msvcr90d-dll-not-found-in-debug-mode-with-visual-c-2008"]Here[/URL] are other suggestions to try

Member Avatar for kutuup
0
497
Member Avatar for jenymaru08

you probably need to add more braces, like this, and don't put braces on the same line as other code because it makes the program moe difficult to read and understand. Strive for clarity, not cuitness. [code=c] int main() { for(int i=0;i<=7;i++) { for(int j=0;j<=i;j++) { cout<<'*'; for(int k=0;k<=i;k++) { …

Member Avatar for EMDArellano
0
134
Member Avatar for jingda

If this were a forum about English grammer then I would agree with WaltP. This isn't, so I don't. The important thing on DaniWeb is that the poster expresses him/herself as clearly as possible, not whether he dotted all the is or crossed all the ts. I don't really care …

Member Avatar for Rik_
0
309
Member Avatar for Argo54325

The first error indicates that you have called a time functon that does not exist. Read [URL="http://cboard.cprogramming.com/windows-programming/18669-using-timegettime.html"]this thread[/URL] for the solution to that problem. The second error is quite simple. You created a MS-Windows project but you probably replaced WinMain() with main(). If you wanted main() then you should have …

Member Avatar for Argo54325
0
234
Member Avatar for lexusdominus

call CreateThread() or _beginthread() in WM_CREATE, not WM_PAINT. Creating a console from GUI is simple -- just call AllocConsole(); Example [code] void ConsoleThread(void* p) { HANDLE hStdin = 0; HANDLE hStdout = 0; DWORD dwCharactersWritten = 0; if( AllocConsole() == 0) { return; } HWND hConsoleWnd = GetConsoleWindow(); hStdin = …

Member Avatar for Ancient Dragon
0
214
Member Avatar for C++NewBe

Homework? Have you read your textbook yet about how to declare arrays? [URL="http://lmgtfy.com/?q=declare+2d+array"]Or this[/URL]?

Member Avatar for YOUSAFZAI
0
123
Member Avatar for Muhammad Anas

You don't have to actually declare the array to be of size 0 in order for it to be considered empty. The size parameter may just mean the number of elements in the array that have valid entries. The array itself could have been declared with any size > 0. …

Member Avatar for Muhammad Anas
0
1K
Member Avatar for leetari

You will have to use two temp arrays (1) and array that contains the random numbers so that when a random number is generated the program searches this array to see if it has already been used. If the new random number already exists in the array then go back …

Member Avatar for leetari
0
4K
Member Avatar for ichigo_cool

I always used ODBC because its supported by most (all) SQL compliant databases and is well documents. You can even find [URL="http://www.google.com/#hl=en&sugexp=ldymls&xhr=t&q=odbc+c%2B%2B+classes&cp=14&pf=p&sclient=psy&source=hp&aq=0l&aqi=&aql=&oq=odbc+c%2B%2B+clase&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=b293108ef6c36611&biw=1036&bih=532"]free c++ classes [/URL]that wrap the odbc calls. If you are using MySQL then you can get MySQL++ which are c++ wrapper class for MySQL. That's a little different …

Member Avatar for Ancient Dragon
0
143
Member Avatar for Portgas D. Ace

I use IE8 exclusively. I have google chrome installed but don't like it. I've used FF, but dropped it when IE added tabs like FF has. As for speed -- I don't give a dam about a few milliseconds nor do I care about themes or add-ons or writing web …

Member Avatar for Portgas D. Ace
0
508
Member Avatar for Siberian

What everyone else is getting is probably illegal, so be careful that you don't get sued for downloading copright material.

Member Avatar for predator78
0
225
Member Avatar for ilovec++
Member Avatar for Ancient Dragon

I don't know about you all, but I love pies and I love cakes. But put them together, and what do you get? A [URL="http://www.youtube.com/watch?v=Rp4yWTLIPaE"]Cherpumple Pie Cake[/URL] Yuuuuuuummmmmmm!;)

Member Avatar for Portgas D. Ace
2
125
Member Avatar for quetzal_7

You should pass the structures by reference, not by value. That means passing a pointer to the structure. I don't know what InitArray() does or returns, but I assume it returns a pointer. Here is how you need to write the first function you posted. Do something similar with the …

Member Avatar for Ancient Dragon
0
207
Member Avatar for smrati.katiyar

[QUOTE=ilovec++]So the program converts the character into a number, as variables a & b are of int type and not char. However, it should convert the character into its ASCII code, but I don't know why does it give such an odd output.[/QUOTE] It does no such thing. cin produces …

Member Avatar for Ancient Dragon
0
129
Member Avatar for urtrivedi

DaniWeb has server problems occasionally and sometimes I have a problem now and then like you mentioned (maybe only about once or twice in any given week). It might be that you are trying to make a post at the moment their servers go bonkers. But since you were able …

Member Avatar for WaltP
0
210
Member Avatar for littlestone

google is a wonderful invention :) [quote]A constructor cannot be virtual because at the time when the constructor is invoked the virtual table would not be available in the memory. Hence we cannot have a virtual constructor.[/quote] [url]http://www.codersource.net/published/view/325/virtual_functions_in.aspx[/url]

Member Avatar for Ancient Dragon
0
257
Member Avatar for enakta13
Member Avatar for sergent

C programming in mid-80s -- zenith 100 computer, 2 floppy drives, no hard drive, 64K 8 MZ RAM, MS-DOS Version 1.0 which did not support sub-directories. The C compiler was on a 5 1/2" floppy in one drive and the data/program in the other drive. Started a compile then go …

Member Avatar for iret
0
135
Member Avatar for thetwig

that's true -- atof("2a") is 2.00. I have no idea what the 'a' is for, but atof() stops converting at the first character that is not a digit or '.' or '-'.

Member Avatar for WaltP
0
215
Member Avatar for iamuser_2007

When is the assignment due, that is, how much time do you have before you have to turn it in? Have you studied c++ classes and arrays yet?

Member Avatar for sergent
-2
193
Member Avatar for simply_viks

Once text files are written you can not overwrite the data with larger amounts because it will overwrite other data that follows it. For example if the file contains "Hello world" and you want to change it to "Hello12 world" the result would be "Hello12orld", which ic clearly not what …

Member Avatar for simply_viks
0
317
Member Avatar for martin111

The error message tells you what you have to do error C2440: 'initializing' : cannot convert from 'b_t **' to 'a_t *const *' 1> Types pointed to are unrelated; [color=red]conversion requires reinterpret_cast[/color], C-style cast or function-style cast [icode]a_t* const * ref_pa = reinterpret_cast<a_t**>(&pb); [/icode]

Member Avatar for mike_2000_17
0
302
Member Avatar for heshan86

The End.