Search:
Type: Posts; User: xargon
Search:
Search took 0.16 seconds.
-
December 2nd, 2013, 03:11 PM
Hello,
I have been thinking about this all day and I am yet to come up with a good solution. So, I need to design an image class which should work with various data types (int, float, double etc.)...
-
February 6th, 2012, 12:21 PM
hello,
Sorry. It was not my intention to disappear but I had a terrible shoulder problem and was indisposed for a few weeks and might have to undergo a small surgery later. I was actually told not...
-
January 19th, 2012, 05:55 PM
Hello,
I have a function where a particular chunk of nested loops takes majority of the time. I call this function a lot, so any speedup would be most welcome. I was wondering if anyone can spot...
-
December 7th, 2011, 04:41 PM
Hello all,
I am porting some C# code to C++ and there is a particular bit that has me a bit perplexed. The code is as follows:
byte [,,] data = new byte[d,h,w];
int i=0;
for (int z = 0;...
-
November 18th, 2010, 08:10 PM
This particular case is only 64x64, so not that large.
Ok, it seems that the real culprit actually is this line:
index += static_cast<int>(floorf((float)values[i]) * offsets[i]);
and not the...
-
November 18th, 2010, 07:11 PM
Hello everyone,
I have a severe performance decrease when I am accessing random locations in a C-array. So, I have a function which is briefly as follows:
template<typename T>
int...
-
October 17th, 2010, 03:38 AM
That is irrelevant. I am smoothing each axes using wavelet filtering. What would be the point of putting that in my question? I do not understand what you do not understand about wanting to traverse...
-
October 16th, 2010, 12:32 PM
It is not the same at all.
I am not traversing the array sequentially but along the three axes.
You can imagine it to be a three dimensional array and each loop is traversing one of the...
-
October 16th, 2010, 10:12 AM
Hello everyone,
I am unable to figure how to code the following in C++. It is quite simple when the dimensions of the input array is preset. However, I am at a loss on how to do this when that is...
-
July 16th, 2010, 07:26 PM
Hello everyone,
I have been trying to cast some pointers in 'unsafe' code block but running into the following error:
error CS0208: Cannot take the address of, get the size of, or declare a...
-
June 10th, 2010, 02:15 PM
Hello,
Can I do this?
float tt = 15.57;
float *pt = &tt;
unsigned *it = reinterpret_cast<unsigned *>(pt);
std::cout << *it << std::endl;
-
Hello,
I currently have an unmanaged DLL written in C++ and I can call the exported methods in this DLL from my C# app without any problems and it works quite well.
Now, I need to call from...
-
Hello,
I have a small DLL written in C++ that exports 4 functions. I call this DLL from my C# application and can call all these functions without any problem.
I want to arrange for a DLL...
-
Ok, I fixed that problem. So, there were two issues:
First, I had to call ReleaseHdc on the graphic object.
Secondly, the HDC parameter should have been declated as an 'out' parameter.
...
-
Hello everyone,
I am trying to use some managed code with some unmanaged rendering functions using OpenGL. I have a C# bitmap and I am trying to use OpenGL functions to draw on this bitmap.
...
-
Hello,
I have a bitmap object that is created in C# and I want to share this bitmap between managed and unmanaged code.
So, I have something as follows in my C# code:
void DrawGraphic()...
-
April 25th, 2010, 02:35 AM
Hello everyone,
I have a C# application that allows users to write some plugins. I have an app that I have written in C++ and OpenGL and I want to write a plugin that encapsulates that app.
So,...
-
April 19th, 2010, 04:48 PM
Hello,
Thanks for the reply. What I wanted was basically that all GUI events would be marshalled and passed to the unmanaged window and maybe I could write some simple wrapper around the unmanaged...
-
April 19th, 2010, 03:12 PM
Hello everyone,
I have a managed app that I have inherited and I have another GUI application that is written using Qt and OpenGL. What I would like to do is create an instance of my unmanaged GUI...
-
September 2nd, 2009, 09:32 AM
Hello everyone,
I have a question about doing arithmetic with C++. Say I have something like:
(71/10) - 7.0 and it gives me something like: 0.0999999. How can I get it to give me 0.1.
...
-
August 16th, 2009, 03:10 AM
Yes, the sub-blocks will not be contiguous. It is a 3D array and I have certain offsets after reading each line of the sub-block.
Thanks again everyone.
xarg
-
August 15th, 2009, 04:10 PM
The underlying datatype are floats or doubles. Can I still use memcpy without any problems? I am always scared of using bulk copy!
The comments about using STL and boost are very valid but...
-
August 15th, 2009, 11:31 AM
I think you have to parse the input string using functions like atof or atoi.
cin >> atof(side1);
... etc.
xarg
-
August 15th, 2009, 10:56 AM
Hello everyone,
I have a bit of code which needs to read sub-blocks of data in a big array. So, the big array represents a 3D dimensional structure in memory and I need to access a cube like block...
-
August 13th, 2009, 04:27 AM
I did not make that explicit. FLT_MAX is defined in float.h
The reason is that one function marks some array elements as FLT_MAX to indicate that they should not be part of some computation. I...
|
Click Here to Expand Forum to Full Width
|