Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
5
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~6K People Reached
Favorite Forums
Favorite Tags

14 Posted Topics

Member Avatar for VictorK19

You should be more precise about what OS and which API you are using to read the socket for people to help you. However, in general functions that read sckets do not concern themselfs about the state of your buffer. It is your responibility to copy the buffer contents after …

Member Avatar for aradicev
0
294
Member Avatar for aradicev

Hi, I have run into an obstacle while trying to restart a direct sound device on windows 7. What I'm doing is clasical stuff: 1. Create the interface `DirectSoundCaptureCreate8(CConfig::GetMainSoundDeviceCaptureGUID(), &m_radioRecordObj, NULL);` 2. Create the buffer `m_radioRecordObj->CreateCaptureBuffer(&m_radioRecordDesc, &pDsb, NULL);` ... `pDsb->QueryInterface(IID_IDirectSoundCaptureBuffer8, (LPVOID*) &m_radioRecordBuf);` 3. Start the buffer `m_radioRecordBuf->Start(DSCBSTART_LOOPING);` after some time …

0
166
Member Avatar for chrisschristou

Besides that the main funcition is a special funcition, it's the entry ponint of the program, you cannot have multiple functions with the same name defined when you write pure C programs where the name are not mangled. That is, if you have defined one fucntion foo() in your project/program, …

Member Avatar for chrisschristou
0
2K
Member Avatar for chubbyy.putto

Firstly, you have palced your question in the wrong forum. c shell (csh) is a command line interpreter of unixoid systems unlike c which is a programming language, although there is a slight resemblance in the syntax. As for your question, it largely depends which commanda you would like to …

Member Avatar for aradicev
0
141
Member Avatar for muhd.hadziq

I'd say that a bigger problem for the compiler is the missing right parentheses in the limes: `33. printf ("What is your salary (0 to stop)? $", salaryIn ;` and `34. scanf ( "%d" , salaryIn ;` anyway, the compiler must have told you that.

Member Avatar for aradicev
0
147
Member Avatar for mehak70

No cannot do this. Why would you want to do a thing like this?! The access to the router shold be restriced to a small number of people who are administrators. So why would you hide mac adresses?

Member Avatar for rubberman
0
335
Member Avatar for yassink

Come on! That's so easy. If you would have peeked in any of the c++/c books or online tutorials, you woud have found an revealing example. Use google, try with c++ tutorial. I'm sure you'll find the answer there.

Member Avatar for RonalBertogi
0
320
Member Avatar for algrandjean1

Hi, you cannot output objects to a stream the way you do, no matter if you want them otput as binary or text data. The problem is that most of your members are dynamicaly allocated and are on the heep so you cannot just output the object to the stream …

Member Avatar for aradicev
0
280
Member Avatar for localp

Hi, first of all, this post does not belong here. This is a C++ discussion thread and not about specific IDE-s or tools. How ever, your problem is that your compiler, actually your preprocessor does not know where to look for the mysql.h file. You either have to prepend the …

Member Avatar for aradicev
0
331
Member Avatar for adarbyem

No, this is not possible and even not meaningful. Why would you want a program user to specify the name of a variable? If you want to give a name to your "Recipe", all you need is to give it an attribute (i.e. a member variable) which you can set …

Member Avatar for adarbyem
0
276
Member Avatar for kerp

There are several issues you have to take care at least about: 1. You cannot run code compiled for 64 bit OS on a 32 bit OS. You have to build a binary for each platform you want your program to run on. 2. When using API-s (even those from …

Member Avatar for kerp
0
426
Member Avatar for saqib_604

Hi, this is the simplest and fastest way: declaration: [CODE=c++]int* getArray(); // getter for array elements[/CODE] implementation: [CODE=c++] int* integer:: getArray() // getter for array elements { return array; } [/CODE]

Member Avatar for mrnutty
0
296
Member Avatar for Andreas5

How can your += operator work?! It doesn't return anything. The declaration should be: [CODE=c++] Str2 & Str2::operator+=(const Str2& a); [/CODE] and in the implementation you should return *this. Same for the + operator. You can read about operator overlading [URL="http://www.cs.caltech.edu/courses/cs11/material/cpp/donnie/cpp-ops.html"]here[/URL].

Member Avatar for Andreas5
0
93
Member Avatar for seanzshow

Hi, val and total are on different memory locations, so if you assign a value to total it does not change the value of val. With: [code=c]val = *ptr;[/code] you have just copied the value from the memory location of total to the location of val. There is no way …

Member Avatar for Fbody
0
134

The End.