Search:
Type: Posts; User: Richard.J
Search:
Search took 0.19 seconds.
-
December 23rd, 2021, 12:05 PM
Since you are doing error checking, you should be able to tell where the code fails and you should also be able to get the error using GetLastError. That would at least be a starting point.
-
November 25th, 2021, 01:43 PM
https://www.phys.uconn.edu/~rozman/Courses/P2200_15F/downloads/floating-point-guide-2015-10-15.pdf
-
November 4th, 2021, 11:23 AM
You could use a std::map<unsigned int, int> with the key the generated number and the value the occurence counter like in this example:
https://en.cppreference.com/w/cpp/numeric/random
-
September 15th, 2021, 12:35 PM
Without more context, this looks like a constructor of a class timepos_t which takes a parameter of type samplepos_t and initializes a member variable called int62_t in the initiliazer list....
-
readAsText is exported by the DLL. I expect more of a compiler setting that causes a difference in the exported symbol and the expected one.
-
Try this DBTestConnection.h
#pragma once
#include "TestConnection.h"
#include "connection.h"
//#include "SU_ORADB_imp.h"
#include "oci.h"
//#include "ConnectionFactory.h"
-
A quick attempt to fix your problem did not lead to success.
I would try the following:
- disable the precompiled header
- in each file that is reported to have errors: comment out all includes,...
-
An entry like this should work in a .props file:
<ItemDefinitionGroup>
<ClCompile>
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
...
-
March 29th, 2021, 12:20 PM
The second link in 2kaud's post #2 seems to imply that /EHa might be what you are looking for. I don't have experience with this, either.
-
February 7th, 2021, 01:50 PM
https://en.cppreference.com/w/cpp/memory/new/operator_new
section "Class-specific overloads":
"If defined, these allocation functions are called by new-expressions to allocate memory for single...
-
November 27th, 2020, 01:00 PM
Not sure what inet_addr makes with leading zeros, but maybe that is a problem? As Victor's example shows, ping takes leading zeros as indication of a number in octal format.
-
November 27th, 2020, 12:40 PM
We are using hippomock for our unit testing, and we had to set this property to "yes" on a Windows Server 2016 or our Windows API mocks weren't called. No-one figured out why.
-
September 28th, 2020, 04:56 AM
Does this help?
http://www.gnu.org/software/libiconv
-
August 7th, 2019, 01:39 AM
Most likely, you cannot add elements to the map outside any function, i.e. in the global scope.
However, something like this should work:
map<string, unsigned int> electron_lookup{
{"C",...
-
October 27th, 2017, 10:56 AM
If you want to stick to the iterator approach:
for (BriteNodeInfoList::iterator it = m_briteNodeInfoList.begin(), endIt = m_briteNodeInfoList.End(); it != endIt; ++it)
{
os << it->nodeId...
-
August 16th, 2017, 09:01 AM
I don't think that any of the proposed solutions are really readable.
What about the use of exceptions? If any of the operations throw an exception in the case of an error, the calling function...
-
August 4th, 2017, 05:46 AM
Not sure about the thread pool functionality, but I assume your main() functions returns before any of the threads had a chance to execute.
-
June 22nd, 2017, 01:13 AM
You have forward declared and are using a function binarySearch with 3 parameters, but the definition of the method in your code has 5 parameters. Thus the error message.
-
January 5th, 2017, 04:43 AM
John, did you consider realloc?
-
December 7th, 2016, 02:04 AM
After creating the socket, use setsockopt with SO_REUSEADDR
int enable = 1;
setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &enable, sizeof(int));
-
August 12th, 2016, 03:36 AM
Does this link help?
https://msdn.microsoft.com/de-de/library/afzk3475.aspx
-
January 28th, 2016, 07:36 AM
The find_if algorithm iterates over the elements of the container. In your case, the container is map<TDummyKey,TDummy>, and each element in the container is a pair<const TDummyKey, TDummy>.
Your...
-
January 26th, 2016, 05:51 AM
I assume your server is not listening on port 50007, since you #define'd SERVER_PORT htons(50007).
You can verify this by using TcpView (or netstat) and check what port your server is listening on....
-
January 21st, 2016, 05:01 AM
A common index to be used in different kinds of maps seems odd to me. In addition, your Create method must take a M& to work correctly (like in laserlight's example).
Apart from that, I am not sure...
-
January 20th, 2016, 12:56 PM
All you need is the correct definition of your Create method
void Create(std::map& map, const Account& object) const
This assumes that Create does not modify the object passed into it and...
|
Click Here to Expand Forum to Full Width
|