868 Posted Topics

Member Avatar for misko

Hello Misko, Welcome to Daniweb. I am sure fellow members will find your wide experience in the IT field very useful. Hope you make a lot of friends here.

Member Avatar for misko
1
441
Member Avatar for mbr2

Hello mbr2. Welcome to Daniweb. You were an early starter compared to me. I had my first computer lessons in late 2000. Programming is one of the easiest areas of technology where you can develop with relatively low cost. Make the most of daniweb. Good luck.

Member Avatar for happygeek
1
115
Member Avatar for TheNNS

cut it out guys. let bygones be bygones. if a particular post is helpful it is worth a lot to the person who wanted help. It is also acceptable for geeks to relax in here, and browse other forums and learning from the helpful posts in the process. If you …

Member Avatar for John A
0
107
Member Avatar for happygeek
Member Avatar for SHWOO

[quote=DavidRyan;248329]I haven't had much use of C/C++, but I noticed that the getHoursFromUser function has been declared as void. Void may work differently with functions in C/C++, but a void method in Java is one which does not return a value. Is that relevant?[/quote] It is not a problem. Since …

Member Avatar for mostafadotnet
1
142
Member Avatar for dilip.mathews

Actually the memory location for [inlinecode]a[/inlinecode] does get modified in Visual C++. But this is implementation specific. It may not be so in gcc. But the catch is that Visual C++ never uses the value stored in [inlinecode]a[/inlinecode]'s memory location. It is allowed to do so by the C++ standard. …

Member Avatar for WolfPack
1
476
Member Avatar for LieAfterLie

What are these conditions? Can these conditions change while the program is running, in other words depending on user input? or just when the program is compiled? Can you give a code example? I don't think that you can change it at run-time. To change it at run-time, you should …

Member Avatar for WolfPack
1
908
Member Avatar for V1RuZ

Isn'T it obvious? [code][COLOR=Red]ifstream[/COLOR] infile("data", ios::in); string name, surname; while (infile >> surname) { infile >> name; [COLOR=Red] Person temp(infile);[/COLOR][/code] [code]Person(std::[COLOR=Red]istream[/COLOR]&);[/code] istream and ifstream are not the same. So the compiler does not know a proper constructor.

Member Avatar for WolfPack
0
376
Member Avatar for V1RuZ

Why can't you just use the = operator? [code]//Accessor Function to read integer input into age variable int& Person::read_age(int& a) { a = age; return a; }[/code]

Member Avatar for V1RuZ
0
2K
Member Avatar for SHWOO

You obviously didn't look hard enough. [URL]http://www.cplusplus.com/ref/ctime/difftime.html[/URL] [URL]http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=66&rl=1[/URL]

Member Avatar for WolfPack
0
155
Member Avatar for ravi_forum
Member Avatar for Salem
0
190
Member Avatar for johnnymarz

Selecting "Hide Icons" does not affect the right click. It takes time for the Desktop to refresh, and after that the right click works as usual. Try pressing F5 a number of times and then right click the desktop and see. If that does not work, try restarting and right …

Member Avatar for johnnymarz
0
125
Member Avatar for suneet

Are you using [code]#include <gdiplus.h>[/code] or [code]#include "gdiplus.h"[/code]. Have you installed the Platform SDK properly? Have you set the Include files Directory of your compiler correctly?

Member Avatar for WolfPack
0
52
Member Avatar for jacove

That means you are not linking the libraries with the object code for those functions. [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/83f1e307-095b-4d27-a3ec-ff4aa22f471a.asp"]RTFM [/URL]and find the required library.

Member Avatar for ishwar
0
249
Member Avatar for rangaSL

Hello Ranga. Welcome to Daniweb. Don't worry, this is the right place to be. You will surely get a lot of help, from the Java experts in the [URL="http://www.daniweb.com/techtalkforums/forum9.html"]Java forum[/URL].

Member Avatar for WolfPack
0
166
Member Avatar for aqab

[quote=aqab;247099][B][COLOR=blue][/COLOR][/B][B][COLOR=blue]wonderful In-laws[/COLOR][/B] [/quote] Forget the child. How do you develop this?

Member Avatar for aqab
0
296
Member Avatar for ishwar

[quote=ishwar;246736]Listen, I don't speak c++, I don't really care what you c++ rabis debate about evry day. In school we do Pascal , Pointers don't come into play until 1st year university.[/quote] So what are you trying to tell us? If you expect C++ to behave like Pascal, you better …

Member Avatar for ishwar
0
22K
Member Avatar for ishwar
Member Avatar for Dave Sinkula

[quote=hollystyles]And someone has just voted beer[/quote]judging from some recent posts, I'd say that was dave. :twisted:

Member Avatar for UrbanKhoja
0
1K
Member Avatar for ishwar

No I don't think so. The windows firewall is external to your program. So unless you have administrative rights to unblock the port that the program needs to update itself, the Windows firewall will block it. Sometimes antivirus programs also may block certain ports.

Member Avatar for WolfPack
0
259
Member Avatar for Eddy Dean

Explain these two lines to me. [code] unsigned long v0 = *((unsigned long*)(buf+n)); unsigned long v1 = *((unsigned long*)(buf+n+4));[/code] During the first iteration of n, ie n =0 ; the above code becomes [code] unsigned long v0 = *((unsigned long*)(buf)); unsigned long v1 = *((unsigned long*)(buf+4));[/code] Now, the length of …

Member Avatar for Eddy Dean
0
1K
Member Avatar for ishwar

You can either use [code] char filename[MAX_PATH]; GetModuleFileName(NULL, filename, MAX_PATH);[/code] or the command line passed to WinMain [code]int WINAPI WinMain(HINSTANCE instance, HINSTANCE prev_instance, [COLOR=Red]char* command_line[/COLOR], int show_command)[/code]

Member Avatar for ishwar
0
144
Member Avatar for hay_man

[quote=hay_man;246195]any idea to to divide the string say into blocks of 4 characters?[/quote] Use [URL="http://www.cppreference.com/cppstring/substr.html"]std::string::substr()[/URL].

Member Avatar for Grunt
0
157
Member Avatar for grunge man
Re: ????

Yes I think you are over-reacting a bit. Nobody thinks that you are an idiot, and if there is anyone who thinks that, it is (s)he who is the idiot. Walt's advice is spot on. Summarizing, the basic idea is that this Forum is a "give and take" forum. You …

Member Avatar for Bench
0
290
Member Avatar for comp_sci11

What is the problem? We don't have the time to run and debug your program. Narrow down the function that is wrong and post it. Post properly formatted code.

Member Avatar for Salem
0
310
Member Avatar for yuelabtina

properly indent when you are posting bulk code. That makes reading easier, and will give you a better chance of expert help.

Member Avatar for yuelabtina
0
332
Member Avatar for ganeshprasad_7

[quote=ganeshprasad_7;245628]hi everyone, i am facing a problem in developing a software of pc maintainence, i require a source code to detect the ports of a general purpose processor [/quote] Explain a bit more. What do you mean by ports? The I/O ports or the network ports like FTP, TelNet etc? …

Member Avatar for Ancient Dragon
0
119
Member Avatar for aman_dce

[quote=aman_dce;243856]hv alrdy n colg hd lik smthn tim sm1 advicd 2 mak cald u bt [/quote] What language is this? Indian? It sure is funny. Anyway just in case you didn't know, this is an English language forum.

Member Avatar for DMR
0
360
Member Avatar for The Dude
Member Avatar for sleepygamer
0
245
Member Avatar for KSImodBR
Member Avatar for goldeagle2005
Member Avatar for MikeTiger

[URL="http://www.daniweb.com/techtalkforums/post240801-7.html"]link[/URL]

Member Avatar for steveh
0
103
Member Avatar for comp_sci11

[code] do { flag=arrange(array,num); }while( flag==-1); [/code] This is the only place where flag is being used. So isn't it simple? flag is used to store the result of arrange and arrange is called while the flag is -1. Now go to the arrange function. It returns -1 when two …

Member Avatar for dwks
0
278
Member Avatar for ~s.o.s~
Member Avatar for Gunner54

[quote=Gunner54]that takes time and money the ony thing i didnt understand was words... period and semicolon[/quote] If you are not ready to spend time and money to educate yourself, why should we spend ours trying to educate you? [quote=Gunner54]-.- I Cant Help A Habbit I Have[/quote]When you are adviced for …

Member Avatar for Dave Sinkula
0
582
Member Avatar for joshilay

[quote=Grunt]Everything you can do in C++ you can also do in C.[/quote]Are you sure? You can create a class in C++. Can you create a class in C also?

Member Avatar for Dave Sinkula
0
603
Member Avatar for MikeTiger

Explain a bit more. How is the program outputting the data now? Is it a console applitcation or a GUI application. If the output is currently displayed in the console, the easiest method is to redirect the output to a text file. If it is a GUI application, you will …

Member Avatar for Ancient Dragon
0
183
Member Avatar for zsix

Hello zsix. Welcome to Daniweb. You are absolutely right. This is a very good place to learn C/C++. Check out the C/++ forum if you ever need to. There is a very good team of knowledgable posters who know every nook and corner of C and C++ ready to help …

Member Avatar for WolfPack
0
63
Member Avatar for dilip.mathews

[quote=dilip.mathews]Hi Guys, I still didn't get answer for my question. By reference to pointer I mean this [code]int * & x;[/code] Here x is a refernce to a pointer [/quote] This code is illegal because a reference has to be initialized not assigned. There are exceptions but in this case …

Member Avatar for dilip.mathews
0
221
Member Avatar for jaininaveen

If you want to build from scratch, read the [URL="http://www.w3.org/Protocols/rfc2616/rfc2616.html"]HTTP Specification[/URL] and implement it in C. If you want a C API library, check [URL="http://curl.haxx.se/"]curl[/URL].

Member Avatar for jaininaveen
0
256
Member Avatar for RFBourquin

Use string::c_str(). It gives a constant C style character string. Use this when a datatype of LPCTSTR is needed. Now your second question does not need an answer.

Member Avatar for GloriousEremite
0
151
Member Avatar for Miles Archer

First of all, I must say that your question is really very well presented, complete with the compiler versions, operating system versions, full code and error report. It really makes answering it easy in our part. if only all the posts were formatted like yours... Remove the line [code]#include "stdafx.h"[/code] …

Member Avatar for Salem
1
344
Member Avatar for sgriffiths

Inline code tags are used when you want to have pieces of code appear within a sentence. When posting large pieces of seperate code use code tags.

Member Avatar for jim mcnamara
0
236
Member Avatar for ViVA

Hi. welcome to Daniweb. [quote=ViVA]As a computer fan,[/quote] You must be really close to the CPU.:cheesy:

Member Avatar for happygeek
0
297
Member Avatar for dilip.mathews

[quote=hollystyles]I'm guessing here, but I recon they cancel each other out. All directives run on each instance, so: Preprocessor finds the first instance of a and runs ALL directives on it a = b = a Then it finds the first instance of b and applied all directives to it …

Member Avatar for WaltP
0
228
Member Avatar for comp_sci11
Member Avatar for Ancient Dragon
0
155
Member Avatar for WolfPack

This is a modification of the [URL="http://www.petri.co.il/add_command_prompt_here_shortcut_to_windows_explorer.htm"]Add Command Prompt Here[/URL] tweak that is fairly common in the internet. What the original tweak basically did was, create a shortcut in the Directory/Drive Context Menu of Windows Explorer when clicked executes a command prompt with the clicked directory as current directory. This …

Member Avatar for WolfPack
0
183
Member Avatar for rxgmoral

try this <<<<<<<<<<Class.h>>>>>>>>>> [code] #pragma once class Class { public: int get_return(int a,int b,int (*compare)([COLOR=Red]int, int[/COLOR])); int Rxgmoral(int a,int b); void Fun(); };[/code] <<<<<<<<<Class.Cpp>>>>>>>> [code] #include "Stdafx.h" #include "Class.h" int Class::get_return(int a,int b,int(* compare)([COLOR=Red]int, int[/COLOR])) { return (compare(a,b)); } int Class::Rxgmoral(int a, int b) { return a+b; } void Class::Fun() …

Member Avatar for rxgmoral
0
146
Member Avatar for djkross

Please format your code properly.[LIST] [*] Increase the Tab settings [*] put braces even for the places where there is only one statement inside a for loop[/LIST]When debugging problems, you don't debug all of the functions at once. Check each function one by one. If there is a debugger in …

Member Avatar for djkross
0
76
Member Avatar for blazinking

[quote=blazinking][B]I wouldnt just copy[/B] somones work cause thats not me ... thats one of the reasons y [B]i didnt post up the code cause i didnt need someone to solve this for me[/B] i just needed a boost in where to look into ... anyways [B]thx for the info help[/B] …

Member Avatar for WolfPack
0
147

The End.