- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
14 Posted Topics
Re: 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 … | |
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 … | |
Re: 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, … | |
Re: 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 … | |
Re: 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. | |
Re: 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? | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: 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]. | |
Re: 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 … |
The End.